var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,controlflag,moneyflag,i = 0,Question,Draw,Wallet,totalcontrol=0;



function resizeDiv()
	{	
	i+=1;
	if(i>100)
	{
		closeDiv();
	}
		
}
//移动层
function moveDiv()
{
	try
	{
	if(parseInt(document.getElementById("epop").style.top,10) <= (docHeight - divHeight + parseInt(document.body.scrollTop,10)))
	{
	window.clearInterval(objTimer);
	objTimer = window.setInterval("resizeDiv()",1);
	}
	divTop = parseInt(document.getElementById("epop").style.top,10);
	document.getElementById("epop").style.top = divTop - 5;
	}
	catch(e){}
}

CollectGarbage();

//关闭层
function closeDiv()
{
   setInterval("setalpha();",1); 
   
   setTimeout("CollectGarbage();", 1);
   window.clearInterval(objTimer);
  
} 
//直接关闭层
function closenow()
{
	 setTimeout("CollectGarbage();", 1);
	 document.getElementById("epop").style.visibility="hidden";
}
//层渐渐消失
 function   setalpha()   
 {   
    if(document.getElementById("epop").filters.alpha.opacity>0)
	{
        document.getElementById("epop").filters.alpha.opacity   =  document.getElementById("epop").filters.alpha.opacity-1;   
	}
	else
	{
		document.getElementById("epop").style.visibility="hidden";
	}
 }   
	//window.onload = getMsg;
	window.onresize = resizeDiv;
	window.onerror = function(){};
	
