function popWindow(winUrl) {
	window.open(winUrl, '', 'toolbar=no, menubar=no, scrollbars=no, resizable=yes, location=no, status=no, width=800, height=600');
	return false;
}

function bookmarkit()
{
	window.external.addFavorite('http://www.10flash.net','◣幽灵小游戏◢ — 小游戏,休闲小游戏,flash小游戏！')
}
	// /*10flash_liangce*/ var cpro_id = 'u72589';
//document.writeln('<script type="text/javascript" src="http://cpro.baidu.com/cpro/ui/f.js"></script>');
/*function youxia() {
dd='document.documentElement';
dd=eval(dd+'.clientWidth')>0?dd:'document.body';
ddw=dd+'.clientWidth';ddl=dd+'.scrollLeft';
ddt=dd+'.scrollTop';ddh=dd+'.clientHeight';
followDiv.style.left=eval(ddl)+eval(ddw)-followDiv.width;
followDiv.style.top=eval(ddt)+eval(ddh)-followDiv.height;
setTimeout("youxia()",10);
}
document.write('<div id="followDiv" style="POSITION: absolute;" height="150" width="200"><iframe src="http://www.10flash.net/images/200_130.htm" marginwidth=0 framespacing=0 scrolling=no height=150 width=200 frameborder=0></iframe></div>');
youxia();*/

document.writeln("  <script type=\"text\/javascript\">");
document.writeln("  <!--");
document.writeln("document.writeln(\"  <div id=\\\"ShowAD\\\" style=\\\"position:absolute; z-index: 100;\\\"> \");");
document.writeln("document.writeln(\"    <div id=\\\"ImgLayer\\\" style=\\\"position:absolute; z-index:1; left: 0px;\\\"> \");");
document.writeln("document.writeln(\"      <img src=\\\"http:\/\/img.ok8848.com/292.gif\\\" width=\\\"200\\\" height=\\\"150\\\" border=\\\"0\\\" usemap=\\\"#ivrinMap\\\">\");");
document.writeln("document.writeln(\"<map name=\\\"ivrinMap\\\"><area shape=\\\"rect\\\" coords=\\\"178,0,220,0\\\" href=\\\"#\\\" onclick=\\\"CloseIVR();return false;\\\" target=\\\"_self\\\"><area shape=\\\"rect\\\" coords=\\\"0,1,220,178\\\" href=\\\"http://js.ok8848.com/?formType=3953\\\" target=\\\"_blank\\\"><\/map>\");");
document.writeln("document.writeln(\"    <\/div>\");");
document.writeln("document.writeln(\"<\/div>\");");
document.writeln("");
document.writeln("var bodyfrm = ( document.compatMode.toLowerCase()==\"css1compat\" ) ? document.documentElement : document.body;");
document.writeln("var adst = document.getElementById(\"ShowAD\").style;");
document.writeln("adst.top = ( bodyfrm.clientHeight - 150 ) + \"px\";");
document.writeln("adst.left = ( bodyfrm.clientWidth - 200 ) + \"px\";");
document.writeln("function moveR() {");
document.writeln("    adst.top = ( bodyfrm.scrollTop + bodyfrm.clientHeight - 150 ) + \"px\";");
document.writeln("    adst.left = ( bodyfrm.scrollLeft + bodyfrm.clientWidth - 200 ) + \"px\";");
document.writeln("}");
document.writeln("setInterval(\"moveR();\", 80);");
document.writeln("function CloseIVR(){");
document.writeln("    adst.display=\'none\';");
document.writeln("}");
document.writeln("  \/\/-->");
document.writeln("  <\/script>");
document.writeln("");


var showad = true;
var Toppx = 640;   //上端位置
var AdDivW = 100;  //宽度
var AdDivH = 300;  //高度
var PageWidth = 800; //页面多少宽度象素下正好不出现左右滚动条
var MinScreenW = 1024; //显示广告的最小屏幕宽度象素 

var Closebuttonleft = '<div align="right" style="top:90px;right:0px;padding:4px;z-index:2000;width:100px;text-align:center;background-color:#f6f6f6"><a href="javascript:hideadleft();" style="color:#fff;background:#000;text-decoration:none;font-size:12px;">关闭广告</a></div>';
var AdLeftHtml = '<iframe src="/images/ads/100_300_l.htm" height=300 width=100 marginheight=0 marginwidth=0 frameborder=0 scrolling=no></iframe>';
document.write ('<div id="Javascript.LeftDiv" style="position: absolute;background-color:#cccccc;z-index:1000;width:'+AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break-all;display:none;">'+AdLeftHtml+'<div>'+Closebuttonleft+'</div></div>');
function scall(){
 if(!showad){return;}
 
 if (window.screen.width<MinScreenW){
  //alert("临时提示：\n\n显示器分辨率宽度小于"+MinScreenW+",不显示广告");
  showad = false;
  document.getElementById("Javascript.LeftDiv").style.display="none";
  return;
 }
 var Borderpx = ((window.screen.width-PageWidth)/2-AdDivW)/2;

 document.getElementById("Javascript.LeftDiv").style.display="";
 document.getElementById("Javascript.LeftDiv").style.top=Toppx;
 document.getElementById("Javascript.LeftDiv").style.left=Borderpx;
}

function hideadleft()
{
 showad = false;
 document.getElementById("Javascript.LeftDiv").style.display="none";
}
window.onscroll=scall;
window.onresize=scall;
window.onload=scall;
