var innerDocWidth = 0, innerDocHeight = 0;
docId=0;
var tmpHeight_tmptime=50;
function serSetBannerPanel()
{
	if( typeof( window.innerWidth ) == 'number' )
 	{
   	//Non-IE
   		innerDocWidth = window.innerWidth;
   		innerDocHeight = window.innerHeight;
 	}
 	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
 	{
   		//IE 6+ in 'standards compliant mode'
   		innerDocWidth = document.documentElement.clientWidth;
   		innerDocHeight = document.documentElement.clientHeight;
 	}
 	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
 	{
   		//IE 4 compatible
   		innerDocWidth = document.body.clientWidth;
   		innerDocHeight = document.body.clientHeight;
 	}
 	var winl =  innerDocWidth/2 - 50 +"px";
   	var wint = innerDocHeight/2 -50 +"px";
   	 
    	
	document.getElementById("infoBox_Loading").style.top=wint+"px";
	document.getElementById("infoBox_Loading").style.left=winl+"px";
	
}
function showLoadingPanel()
{
		document.getElementById("infoBox_Loading").style.display='block';
	document.getElementById("infoBox_Loading").style.visibility='visible';
	document.getElementById("infoBox_Loading").style.top="250px";
	document.getElementById("infoBox_Loading").style.left="450px";
	
	//mainId_Loading
	//document.getElementById("mainId_Loading").className='mainBoxclass1';
	document.getElementById("firstmain").style.visibility='visible';
	document.getElementById("firstmain").style.display='block';
	document.getElementById("firstmain").style.height=document.getElementById("Master").scrollHeight+ "px";
	
	if (document.getElementById("Master").scrollHeight <= 195)
	{
		document.getElementById("firstmain").style.height = "600px";
		//alert("300");
	}
	
	if (document.all) 
	{
		//document.getElementById("firstmain").style.height = (document.body.offsetHeight + tmpHeight_tmptime)+ "px";
		document.getElementById("firstmain").style.width = document.body.offsetWidth + "px";
	}
	else if (document.layers)
	{
		//document.getElementById("firstmain").style.height = (document.body.document.height+ tmpHeight_tmptime)+ "px";
		document.getElementById("firstmain").style.width = document.body.document.width + "px";
	}
	else
	{
		//document.getElementById("firstmain").style.height = (document.height+ tmpHeight_tmptime) + "px";
		document.getElementById("firstmain").style.width = document.width + "px";
	}	
	
}
function hideLoadingPanel()
{
	document.getElementById("infoBox_Loading").style.display='none';
	document.getElementById("infoBox_Loading").style.visibility='hidden';
	document.getElementById("firstmain").style.visibility='hidden';
	document.getElementById("firstmain").style.display='none';//id=
	//document.getElementById("mainId_Loading").className='mainBoxclass';	
	
}
