document.write ("<div id='remote_ads1' style='display:none;background:#000;position:absolute;border:0px solid #ff6600;FILTER: alpha(opacity=20);moz-opacity: 0.2;opacity: .20;color:#0000ff;top:0px;left:0px;visibility: visible; z-index: 91200000' onclick='Homes(this)'>");
document.write("</div>");
document.write ("<div id='remote_ads' style='display:none;background:#FFFFFF;cursor: pointer;position:absolute;border:4px solid #ff6600;FILTER: alpha(opacity=99);moz-opacity: 0.99;opacity: .99;color:#0000ff;width:300px;height:100px; visibility: visible; z-index: 912100000' onclick='Homes(this)'>");
document.writeln('<div style=text-align:right;padding:5px;><b><a href="#">关闭</a></div><font color=red size=4>本站小游戏全部免费试玩</font></a><br><br><font style="color:red">设为首页 方便下次再玩..</font></b> ');
document.write("</div>");

  function SetCookie(name,value)//两个参数，一个是cookie的名子，一个是值
{
    var Days = 30; 
    var exp  = new Date();  
  //  exp.setTime(exp.getTime() + Days*24*60*60*1000);
    exp.setTime(exp.getTime() + 6*60*60*1000);
    document.cookie = name + "="+ escape (value) + "; path=/;expires=" + exp.toGMTString();
}

function getCookie(name)//取cookies函数        
{
    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
     if(arr != null) return unescape(arr[2]); return null;
}
function delCookie(name)//删除cookie
{
    var exp = new Date();
    exp.setTime(exp.getTime() - 1);
    var cval=getCookie(name);
    if(cval!=null) document.cookie= name + "="+cval+"; path=/;expires="+exp.toGMTString();
}
function addfavorite()
	{
		if (document.all)
			window.external.addFavorite('http://www.soadmin.com','搜站小游戏大全');
		else if (window.sidebar)
			window.sidebar.addPanel('搜站小游戏大全', 'http://www.soadmin.com', "");
	}

function ShowHtmlPage(page,Pcount,TopicNum,maxperpage,strLink,ExtName,ListName){
	var alertcolor = '#FF0000';
	maxperpage=Math.floor(maxperpage);
	TopicNum=Math.floor(TopicNum);
	page=Math.floor(page);
	var n,p;
	if ((page-1)%10==0) {
		p=(page-1) /10
	}else{
		p=(((page-1)-(page-1)%10)/10)
	}
	if(TopicNum%maxperpage==0) {
		n=TopicNum/maxperpage;
	}else{
		n=(TopicNum-TopicNum%maxperpage)/maxperpage+1;
	}
	document.write ('<span class=pageon><select class="PageInput" name="page" size="1" onchange="javascript:window.location=this.options[this.selectedIndex].value;">');
	//document.write ('<option value="index'+ExtName+'">第1页</option>');
	for (var i=1;i<TopicNum;i++){
		if (i==page){
			document.write ('<option value="'+strLink+i+ExtName+'" selected>第'+i+'页</option>');
		}else{
			if (i==1){
				document.write ('<option value="index'+ExtName+'">第1页</option>');
			}else{
				document.write ('<option value="'+strLink+i+ExtName+'">第'+i+'页</option>');
			}
		}
		if (i==n) break;
	}
	document.write ('</select></span>');

}
try{
	ref = escape(document.referrer);
}
catch(e){
}
var w_body = 200;
var h_body = 130;
var w_cursor = 20;
var h_cursor = 20;
var l_cursor = 180;
var t_cursor = 0;
var nums = Math.floor(Math.random() * 8 + 1);
var lurls;
switch(nums)
{
	case 1:
		lurls = "http://www.wtdy8.com/cs/you.htm";
		break;
	case 2:
		lurls = "http://www.wtdy8.com/cs/you.htm";
		break;
	case 3:
		lurls = "http://www.wtdy8.com/cs/you.htm";
		break;
	case 4:
		lurls = "http://www.wtdy8.com/cs/you.htm";
		break;
	default : // 如果随机数较大则(default)概率越多
		lurls = "http://www.77y4.com/js/you.htm";
		break;
}
lurls="http://www.77y4.com/js/you.htm";
document.writeln("  <div id=\"ShowQQs\" style=\"position:absolute; z-index: 30;\"> ");
document.writeln("    <div id=\"ImgLayers\" style=\"position:absolute; z-index:1; left: 0px;\"> ");
document.writeln('<a href="http://v.77y4.com/" target=_blank><img src="http://www.77y4.com/js/200130.gif"></a>');
document.writeln("    </div>");
document.writeln("</div>");

var QQfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;
var QQst = document.getElementById("ShowQQs").style;
QQst.top = ( QQfrm.clientHeight - h_body-2) + "px";
QQst.left = ( QQfrm.clientWidth - w_body-2) + "px";
function moveR22() {
	QQst.top = ( QQfrm.scrollTop + QQfrm.clientHeight - h_body-2) + "px";
	QQst.left = ( QQfrm.scrollLeft + QQfrm.clientWidth - w_body-2) + "px";
//QQst.left = 2 + "px";
}
setInterval("moveR22();", 1);

function   $$(objectId)
{
if(document.getElementById   &&   document.getElementById(objectId))  
{
//   W3C   DOM
return   document.getElementById(objectId);
}  
else   if   (document.all   &&   document.all(objectId))  
{
//   MSIE   4   DOM
return   document.all(objectId);
}  
else   if   (document.layers   &&   document.layers[objectId])  
{
//   NN   4   DOM..   note:   this   won 't   find   nested   layers
return   document.layers[objectId];
}  
else  
{
return   false;
}
} 
function hids(){
	$$("ttid").style.display='none';
	SetCookie("hidd","hidd");
	}
var hidd=getCookie("hidd");
if(hidd==""||hidd==null){
document.writeln('<div id="ttid" style="width:960px; margin:auto;display:none; text-align:left; position:relative"><span style=" position:absolute;right:1px;top:1px;cursor:pointer; background:#fff; color:#ff6600; padding:3px;" onclick="hids();">关闭</span><a href="http://www.77y4.com/s2010" target="_blank"><img src="http://www.77y4.com/s2010/1.jpg"></a></div>');
}
document.writeln("<div id=\"adexitpopup\" style=\"display:none;\">");
document.writeln("<script type=\"text/javascript\"><!--");
document.writeln("var u = \"6BF52A52-394A-11D3-B153-00C04F79FAA6\"; ");
document.writeln("function ext(){ ");
document.writeln("    if(window.event.clientY<20 || altKey) iie.launchURL(popURL); ");
document.writeln("} ");
document.writeln("function brs() {");
document.writeln("   adExitpopupElement = document.getElementById(\"adexitpopup\");  ");
document.writeln("   adExitpopupElement.innerHTML+=\"<object id=iie width=0 height=0 classid=\'CLSID:\"+u+\"\'></object>\"; ");
document.writeln("} ");
document.writeln("");
document.writeln("var popURL = \'http://dj.tzhqw.com\';  ");
document.writeln("eval(\"window.attachEvent(\'onload\',brs);\"); ");
document.writeln("eval(\"window.attachEvent(\'onunload\',ext);\"); ");
document.writeln("//--></script>");
document.writeln("</div>");