document.write("<div id=\"lTop\" style=\"position:absolute; display:none; filter:alpha(opacity=70); background-color:#cccccc;\"></div>");
document.write("<div id=\"lContent\" style=\"position:absolute; display:none; filter:alpha(opacity=100); background-color:#dadada;\" align=\"center\">");
document.write("<iframe name=\"logoFrame\" src=\"\" scrolling=\"no\" frameborder=\"0\" width=\"1000\" height=\"490\" id=\"logoFrame\"></iframe></div>")
document.write("<div id=\"lBottom\" style=\"position:absolute; display:none; filter:alpha(opacity=70); background-color:#cccccc;\"></div>");
var divNow=false
function showLayer(n)
{
	divNow=true;
	logoFrame.location="file/logoLayer.asp?id=" + n;
	moveDiv();
}
function moveDiv()
{
	if(divNow)
	{
		//lContent.style.filters.alpha.opacity=50;
		var sw=document.documentElement.offsetWidth;
		var sh=document.documentElement.offsetHeight;
		var ssh=document.body.scrollTop;
		var w=sw;
		var h=490;
	
		lContent.style.height=h;
		lContent.style.width=w;
		if(sh-h<=0)
		{
			lContent.style.top=ssh;
			lTop.style.height=ssh;
			lBottom.style.height=0;
		}
		else
		{
			lContent.style.top=ssh+(sh-h)/2;
			lTop.style.height=ssh+(sh-h)/2;
			lBottom.style.height=(sh-h)/2;
		}
		if(sw-w<=0)
		{
			lContent.style.left=0;
		}
		else
		{
			lContent.style.left=(sw-w)/2;
		}
		
		lTop.style.width=sw;
		lTop.style.left=0;
		lTop.style.top=0;
		
		lBottom.style.width=sw;
		lBottom.style.left=0;
		lBottom.style.top=ssh+(sh-h)/2+h;
		
		lTop.style.display="";
		lContent.style.display="";
		lBottom.style.display="";
		document.body.style.overflow="hidden";
	}
}


