<!--

var w= 0, h = 0;

function getSize(){
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
  	}	
    y=	yWithScroll;
	w=xWithScroll;
}

function hideVideo(){
	document.getElementById('cover').style.visibility='hidden';
	document.getElementById('video').style.visibility='hidden';
	document.getElementById('close').style.visibility='hidden';
	document.getElementById('vidholder').innerHTML='';
}
function showVideo(vidId){
	insertVideo(vidId);

	off=offset();
	document.getElementById('video').style.top=off+20+'px';
	document.getElementById('close').style.top=off+10+280+30+'px';
	
	getSize();
	document.getElementById('cover').style.height=y +200+ 'px';
	document.getElementById('cover').style.width=w + 'px';
	
	
	document.getElementById('cover').style.visibility='visible';
	document.getElementById('video').style.visibility='visible';
	document.getElementById('close').style.visibility='visible';
	
}

function insertVideo(vidId){
	vh='<OBJECT id="mediaPlayer" width="320" height="285"       classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"       codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"      standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">      <param name="fileName" value="' + vidId + '">      <param name="animationatStart" value="true">      <param name="transparentatStart" value="true">      <param name="autoStart" value="true">      <param name="showControls" value="true">      <param name="loop" value="true">      <EMBED type="application/x-mplayer2"        pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"        id="mediaPlayer" name="mediaPlayer" displaysize="4" autosize="-1"         bgcolor="darkblue" showcontrols="true" showtracker="-1"         showdisplay="0" showstatusbar="-1" videoborder3d="-1" width="320" height="285"        src="' + vidId + '" autostart="true" designtimesp="5311" loop="true">      </EMBED>      </OBJECT>';
	
	document.getElementById('vidholder').innerHTML='<span></span>'	+ vh;
	
}

function offset(){
	var ScrollTop;
	ScrollTop= document.body.scrollTop;		
	if (ScrollTop == 0)	
	{	
		if (window.pageYOffset)	
			ScrollTop = window.pageYOffset;	
		else	
			ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;	
	}
	return ScrollTop;
}


//-->