	var trajanPro = {
		src: '/js/sIFR/r408/fonts/trajanPro.swf'
	};

	sIFR.activate(trajanPro);
	sIFR.replace(trajanPro, {
		selector: '#menuTitle',
		wmode: 'transparent',
		forceSingleLine: true,
		css: {
			'.sIFR-root' : {
				'color': '#000000',
				'text-align': 'right',
				'cursor': 'pointer'
			}
		}
	});
	sIFR.replace(trajanPro, {
		selector: '#mainTitle',
		wmode: 'transparent',
		css: {
			'.sIFR-root' : {
				'color': '#FFFFFF'
			}
		}
	});
	sIFR.replace(trajanPro, {
		selector: '#contentMenuTitle',
		wmode: 'transparent',
		css: {
			'.sIFR-root' : {
				'color': '#000000'
			}
		}
	});
	sIFR.replace(trajanPro, {
		selector: '#footerTitle',
		wmode: 'transparent',
		css: {
			'.sIFR-root' : {
				'color': '#000000',
				'text-align': 'center'
			}
		}
	});

function createPlayers(videoId, previewId) {
	document.write('<div class="videoBox"><div class="overlayVideoBox"><a href="#" class="jqModal"><img height="160" width="200" alt="Video" src="/img/empty.gif" /></a></div><div class="innerVideoBox"><div id="preview"></div></div></div>');
	$(document).ready(function(){
		$('body').append('<div class="jqmWindow" id="video"><div id="playerdiv">&nbsp;</div><div style="text-align: right;"><img class="jqmClose" src="/download/?id=8921057" alt="Close" style="cursor: pointer;"></div></div>');

		var close=function(hash) {
			var player = document.getElementById('player');
			player.sendEvent('STOP');
			hash.w.fadeOut('500',function(){
				hash.o.remove();
			});
		};

		var show=function(hash) {
			hash.w.show();
			swfobject.embedSWF("/vid/jwFlvMediaPlayer/4.2.90/player.swf", "playerdiv", "892", "500", "8", false, flashvars, params, attributes);
			var player = document.getElementById('player');
			player.sendEvent('PLAY');
		};

		$('#video').jqm({overlay: 80, onHide: close, onShow: show});

		var flashvars = {
			file:"/download/"+videoId+".flv",
			autostart:"true",
			backcolor: "000000",
			frontcolor: "CCCCCC",
			controlbar: "over"
		}

		var pflashvars = {}

		var params = {
			allowfullscreen:"true",
			allowscriptaccess:"always",
			wmode: "transparent"
		}

		var pparams = {
			wmode: "transparent"
		}

		var attributes = {
			id:"player",
			name:"player"
		}

		var pattributes = {
			id:"preview",
			name:"preview"
		}

		swfobject.embedSWF("/download/?id="+previewId+"&cache=1", "preview", "200", "160", "9", false, pflashvars, pparams, pattributes);

	});
}

$(document).ready(function() {
	$('#footerLinks').hover(function() {
		$(this).css('height', 'auto');
	}, function() {
		$(this).css('height', '25px');
	});

	if ( $('#content').height() < 200 ) {
		$('#content').height(200);
	}

	if ( $('#contentNarrow').height() < 200 ) {
		$('#contentNarrow').height(200);
	}
});

$(document).load(function() {
	if ( $('#content').height() < 200 ) {
		$('#content').height(200);
	}

	if ( $('#contentNarrow').height() < 200 ) {
		$('#contentNarrow').height(200);
	}
});