// JavaScript Document
<!--
	var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6"; 
	function ext() //在关闭IE窗口的时候弹出 
	{ 
		if(window.event.clientY<132 || altKey) iie.launchURL(popURL); 
	} 
	function brs() //插入Object 
	{ 
		document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>"; 
	}	
	var popURL = 'http://www.cailele.com/tiyan/luck.shtml?s_id=207059'; //这里修改成你的退弹网址 



	function SetCookie(name,value)
	{
	    document.cookie = name + "="+ escape (value) + ";path=/;expires=" + exp.toGMTString();
	}
	function getCookie(name)
	{
	    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
	     if(arr != null) return unescape(arr[2]); return "";
	
	}
	
	function CheckPlays(){
		var out_of_play=getCookie("out_of_play");
		if(out_of_play==""){
			QPlays();
		}
		else{
			//document.write("Not Play Time");
		}
	}
	function QPlays()
	{
		exp=new Date();
		exp.setTime(exp.getTime() + 30*60*1000);
		SetCookie("out_of_play","Players");
		//执行退弹
		eval("window.attachEvent('onload',brs);"); 
		eval("window.attachEvent('onunload',ext);"); 
		
	}
	 CheckPlays();

//--!>