function getScreenSize() {
	var screenWidth = 0;
	var screenHeight = 0;
	
	if (typeof( window.innerWidth ) == 'number') {
		//Non-IE
		screenWidth = window.innerWidth;
		screenHeight = window.innerHeight;
	} else {
		if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
			//IE 6+ in 'standards compliant mode'
			screenWidth = document.documentElement.clientWidth;
			screenHeight = document.documentElement.clientHeight;
		} else {
			if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				screenWidth = document.body.clientWidth;
				screenHeight = document.body.clientHeight;
			} //end if
		} // end if-else
	} //end if-else
	
	document.getElementById('heightSpacerImg').setAttribute('height',screenHeight+1-40);
} //end function



function highlightClip(cuepoint) {
	$(".pli img").css("borderColor","#000");
	$(".pli#cue" + cuepoint + " img").css("borderColor","#fff");
	$('#hiddenLink').focus();
	//.css('height','500px');
}


$(function() {
	if ($("#videoLink")) {
		$("#videoLink").overlay({
			expose: { 
				color: '#000', 
				loadSpeed: 200, 
				opacity: 1.0 
			}, 
			closeOnClick: false,
			onLoad: function() {
				vid = $f("player", { src:"/flash/flowplayer-3.1.5.swf"}, {
						wmode: 'opaque',
						key: '#@a13e4d6d933d62deccc',
						clip: { 
						autoPlay: false, 
						autoBuffering: true
					},
					plugins: { 
						controls: { 
							play:true, 
							volume:true, 
							mute:false, 
							time:true, 
							stop:false, 
							playlist:false, 
							fullscreen:true,
							height: 20
						}
					}, 
					// player config 
					clip: { 
						// common clip properties 
						scaling: "none",
						onCuepoint: [[0,5400,81500,161000], function(clip, cuepoint) { highlightClip(cuepoint); }] 
					}, onLoad: function() {
						setTimeout("vid.pause().seek(2)",1000);
					}
					
				});
			},
			onClose: function() {
				vid.unload();
			}
		}
		
		);
	}
});