function download() {
	question = confirm('免费注册会员，送200积分，10秒即可完成！');
	if (question != '0'){
		window.location='login.php';
	}
	return false;
}
/*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 left_img='<a href="javascript:bookmarkit()" title="幽灵小游戏"><img src="http://www.10flash.net/images/link/favourite.gif" border="0" width="82" height="120"></a>';
/*var left_img='<a href="http://www.youdaylove.cn?webownerId=17001&childid=101" target=_blank><img src="http://stat.wauee.com/sm/images/love/sm_120_160.gif" width="120" height="160" border=0></a>';
//var left_img='<a href="http://www.10flash.net" target=_blank><img src="http://files1.10flash.net/images/ourad/100flash.gif" width="100" height="100" border=0></a>';


//右边
var right_img='<a href=http://c.wauee.com/click?pid=15&mid=18722&channel=1&pt=hcb target=_blank><IMG SRC=http://kkncache.wauee.com/kaokaoni/images/hcb/hcb_kkn_120_150.gif border=0></a>';
//var right_img='<a href=http://c.wauee.com/click?pid=7&mid=18722&channel=1&pt=df target=_blank><IMG SRC=http://qmcache.wauee.com/qm/images/20080916/gxqm120-120.gif border=0></a>';
//var right_img='<a href="http://www.10flash.net" target=_blank><img src="http://files1.10flash.net/images/ourad/100flash.gif" width="100" height="100" border=0></a>';
//var right_img='<EMBED src=1.swf quality=high  WIDTH=80 HEIGHT=170 TYPE="application/x-shockwave-flash"></EMBED>';
 var delta=0.05
 var collection;
 function floaters() {
  this.items = [];
  this.addItem = function(id,x,y,content)
      {
	  
     document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
     
     var newItem    = {};
     newItem.object   = document.getElementById(id);
     newItem.x    = x;
     newItem.y    = y;

     this.items[this.items.length]  = newItem;
      }
  this.play = function()
      {
     collection    = this.items
     setInterval('play()',10);
      }
  }
  function play()
  {

   for(var i=0;i<collection.length;i++)
   {
    var followObj  = collection[i].object;
    var followObj_x  = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
    var followObj_y  = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

    if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
     var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
     dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
     followObj.style.left=followObj.offsetLeft+dx;
     }

    if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
     var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
     dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
     followObj.style.top=followObj.offsetTop+dy;
     }
    followObj.style.display = '';
   }
  } 
 var theFloaters  = new floaters();
 theFloaters.addItem('followDiv123','document.documentElement.offsetWidth-150',180,''+right_img+'');
 theFloaters.addItem('followDiv456',10,180,''+left_img+'');
 theFloaters.play();*/



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;
