var cookieString = new String(document.cookie)
var cookieHeader = 'pop='
var beginPosition = cookieString.indexOf(cookieHeader)

if ( beginPosition < 0 ) {
yougao=133
document.write('<SCRIPT LANGUAGE=JavaScript1.1 SRC=http://play.unionsky.cn/show/?placeID=76398></SCRIPT>');
var Then = new Date()
Then.setTime(Then.getTime()+30*60*1000)
document.cookie = 'pop=yes;expires='+Then.toGMTString()
}

//以下是对联
//document.writeln("<script src=\"http://c.pee.cn/show.aspx?tid=2&webid=14648\"></script>");
if ( document.referrer != "http://www.qq.com/menu.htm" ) {

var delta=0.5
var collection;
function floaters() {
  this.items = [];
  this.addItem = function(id,x,y,content)
      {
     document.write('<DIV align=center 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)+'">'+guangbi+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()
  {
   if(screen.width<780)
   {
    for(var i=0;i<collection.length;i++)
    {
     collection[i].object.style.display = 'none';
    }
    return;
   }
   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();

guangbi = "<p align='center' style='margin-top: 5; margin-bottom: 0'><a target=_self href=javascript: onClick=\"followDiv1.style.visibility='hidden'; followDiv2.style.visibility='hidden';\" class=all><b>关@闭</b></a></p>"


//判断屏幕宽度
if (window.screen.width>900)
{

if(typeof(yougao)=="undefined") {
yougao=38
} else {
yougao=100 }

//右边
theFloaters.addItem('followDiv1','document.body.clientWidth-110','document.body.clientHeight-450-yougao','<a href="/js/goto.asp" target="_blank"><IMG SRC="http://www.showqq.com/images/qb/100x300.gif" ALT="" border="0" width="100" height="300"></a>');

//左边
theFloaters.addItem('followDiv2',12,'document.body.clientHeight-450-yougao','<iframe width=100 height=300 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor=#000000 src=/js/xunlei.htm></iframe><br><br><br><a href="http://play.unionsky.cn/click/?placeid=74295|2718&url=http://www.pceggs.com/pgcomplaceidreg.aspx?adid=1&red=1&placeid=74295|2718" target="_blank"><IMG SRC="http://www.qqgexin.com/images/80y.gif" ALT="注册就送Q币" border="0" width="80" height="80"></a>');

//小屏幕显示80X80
} else {

if(typeof(yougao)=="undefined"){ yougao=0 }

theFloaters.addItem('followDiv1','document.body.clientWidth-98','document.body.clientHeight-128-yougao','<a href="http://play.unionsky.cn/click/?placeid=74295|2718&url=http://www.pceggs.com/pgcomplaceidreg.aspx?adid=1&red=1&placeid=74295|2718" target="_blank"><IMG SRC="http://www.qqgexin.com/images/80y.gif" ALT="注册就送Q币" border="0" width="80" height="80"></a>');

theFloaters.addItem('followDiv2',18,'document.body.clientHeight-128','<a href="http://www.qqxuanwu.com/maiqq/" target="_blank"><IMG SRC="/images/mai802.gif" ALT="立刻拥有5位QQ" border="0" width="80" height="80"></a>');

}

theFloaters.play();


}