//Æ¯¸¡¹ã¸æ

document.writeln("<div id=\"ad\" style=\"position:absolute;left:0;top:0;z-index:1000000;cleat:both;\">");
/*document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"140\" height=\"140\">");
  document.write("<param name=\"movie\" value=\"images/piao.swf\">");
  document.write("<param name=\"quality\" value=\"high\">");
  document.write("<param name=\"wmode\" value=\"transparent\">");
  document.write("<param name=\"menu\" value=\"false\">");
  document.write("<embed src=\"images/piao.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"140\" height=\"140\"></embed>");
document.write("</object>");*/

//document.write("<a href=\"javascript:openwin2(222,614);\"><img src=\"../images/open.gif\" border=0></a>");
document.write('<a href="http://www.wangxin365.com/wx365.html" target="_blank"><img src="http://www.wangxin365.com/images/piao_new_year.jpg" border=0></a>');
document.write('</div>');
  var x = 50,y = 60
  var xin = true, yin = true
  var step = 1 
  var delay = 10
  var obj=document.getElementById("ad");
  //alert(obj);
  function floatAD() {
     var L=T=0
     var R= document.body.clientWidth-obj.offsetWidth-205
     var B = document.body.clientHeight-obj.offsetHeight-110
     obj.style.left = x + document.body.scrollLeft
     obj.style.top = y + document.body.scrollTop
     x = x + step*(xin?1:-1)  
     if (x < L) { xin = true; x = L} 
     if (x > R){ xin = false; x = R} 
     y = y + step*(yin?1:-1) 
     if (y < T) { yin = true; y = T } 
     if (y > B) { yin = false; y = B } 
  }
  var itl= setInterval("floatAD()", delay) 
 obj.onmouseover=function(){clearInterval(itl)} 
 obj.onmouseout=function(){itl=setInterval("floatAD()", delay)}
