$(function()
{
	if (typeof Cufon != 'undefined') { // in case called without cufon
		Cufon.replace('h1', {
			fontFamily: 'trajan'
		});
		/*Cufon.replace('.rockwell,.widgetTitle', {
			fontFamily: 'Rockwell Extra Bold'
		});*/
		Cufon.replace('.trajan, h2:not(.events-homepage h2)', {
			fontFamily: 'trajan'
		});
		// line height adjustment hack for IE
		if ( $.browser.msie ) {
			Cufon.now();
			$('h1').each(function(){
				var $this = $(this);
				var fontSize = parseInt($this.css('font-size'));
				var lineHeight = parseInt($this.css('line-height'));
				var newFontSize = Math.round( (fontSize + lineHeight)/2 );
				$this.css('font-size',newFontSize + 'px');
			});
		}
		// you can't set the main nav to use this font since line-height can't be adjusted in IE
	}
	
});


