// JavaScript Document
o = document.getElementsByTagName("object");  
for(i=0; i<o.length; i++) {  
    o[i].outerHTML = o[i].outerHTML;  
}




function getWindowHeight() {
var windowHeight=0;
	if (typeof(window.innerHeight)=='number')
		windowHeight=window.innerHeight;
	else
		if (document.documentElement&&document.documentElement.clientHeight)
			windowHeight=document.documentElement.clientHeight;
		else if (document.body&&document.body.clientHeight)
			windowHeight=document.body.clientHeight;
	return parseInt(windowHeight);
}
function getWindowWidth() {
var windowWidth=0;
	if (typeof(window.innerWidth)=='number')
		windowWidth=window.innerWidth;
	else
		if (document.documentElement&&document.documentElement.clientWidth)
			windowWidth=document.documentElement.clientWidth;
		else if (document.body&&document.body.clientWidth)
			windowWidth=document.body.clientWidth;
	return parseInt(windowWidth);
}


function showlayer(){
	var totalheight=getWindowHeight();
	var totalwidth=getWindowWidth();
	var videotop=(totalheight-400)/2;
	var videoleft=(totalwidth-550)/2;
	document.getElementById("fullscreen").style.display="inline";
	document.getElementById("fullscreen").style.width=totalwidth+"px";
	document.getElementById("fullscreen").style.height=totalheight+"px";
	
	document.getElementById("videopopup").style.display="inline";
	
	document.getElementById("videopopup").style.top=videotop+"px";
	document.getElementById("videopopup").style.left=videoleft+"px";
}
function hidelayer(){
	document.getElementById("fullscreen").style.display="none";
	document.getElementById("videopopup").style.display="none";
}

