var delta=0.15
var collection;
var closeB=false;
function floaters(){
this.items=[];
this.addItem=function (id,x,y,content)
{
   document.write('<DIV id='+id+' style="text-align:left;Z-INDEX: 10; POSITION: absolute; width:240px; height:160px;left:'+(typeof (x)=='string'?eval(x):x)+'px;top:'+(typeof (y)=='string'?eval(y):y)+'px">'+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<=648||closeB)
	{
		for(var i=0;i<collection.length;i++)
		{
			collection[i].object.style.display='none';
		}
		return ;
	}
	var cLen = collection.length

	for(var i=0;i<cLen;i++)
	{
		var followObj=collection[i].object;
		var followObj_x=(typeof (collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
			followObj_x = followObj_x<0 ? document.body.clientWidth + followObj_x : followObj_x
		var followObj_y=(typeof (collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

		if(followObj.offsetLeft!=(document.documentElement.scrollLeft+followObj_x))
		{
			var dx=(document.documentElement.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.documentElement.scrollTop+followObj_y))
		{
			var dy=(document.documentElement.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='';
		//alert();
	}

}
window.status = "happy "
function closeBanner()
{
closeB=true;
return ;
}
var theFloaters=new floaters();
qqShow = ""
//qqShow += ' <a href="http://sighttp.qq.com/cgi-bin/check?sigkey=7c47483545e48a1439abd33870debe8c1b565e76ca0b42f440358de94b3a00b8"; target=_blank;  ><img border="0" SRC="images/on_3.png" alt="在线咨询"></a><br><br>'
//qqShow += ' <img  style="CURSOR: pointer" SRC="../images/on_3.png" onclick=\'javascript:window.open("http://bizapp.qq.com/webc.htm?new=0&sid=706286360&o=b.qq.com&q=7", "_blank", "toolbar=no,scrollbars=no,menubar=no,status=no")\';  border="0" ><br><br>'
qqShow += '<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=923597100&site=qq&menu=yes"><img border="0" src="../images/on_3.png" alt="青鸟QQ老师" title="青鸟QQ老师"></a><br><br>'
qqShow += '<a href="http://qtt.tq.cn/leavemsg.do?uin=8137038&page=http%3A//www.cd-accp.net/zxjj_ml.htm&localurl=http://www.cd-accp.net/zxjj_ml.htm&ltype=0" target="_blank"><img src="../images/on_2.png" border=0></a>'




syShow = ''
syShow += '<TABLE cellspacing="0" cellpadding="0"  width=268 style="">'

syShow += ''
syShow += '<TR><Td><img src="../images/cjwd_1.png" width=268 height=54></td></TR>'
syShow += '<TR><Td><a href="http://lg14.looyu.com/chat/chat/p.do?g=6426&md=2&c=18630&ques=course" target=_blank><img src="../images/cjwd_2.png" width=268 height=42 border=0></a></td></TR>'
syShow += '<TR><Td><a href="http://lg14.looyu.com/chat/chat/p.do?g=6426&md=2&c=18630&ques=fee" target=_blank><img src="../images/cjwd_3.png" width=268 height=38 border=0></a></td></TR>'
syShow += '<TR><Td><a href="http://lg14.looyu.com/chat/chat/p.do?g=6426&md=2&c=18630&ques=job" target=_blank><img src="../images/cjwd_4.png" width=268 height=42 border=0></a></td></TR>'
syShow += '</TABLE>'


theFloaters.addItem('followDiv2',5,320,qqShow);
leftP = -270
theFloaters.addItem('followDiv1',leftP,340,syShow);
theFloaters.play();


function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. 
{ 
    var arVersion = navigator.appVersion.split("MSIE") 
    var version = parseFloat(arVersion[1]) 
    if ((version >= 5.5) && (document.body.filters)) 
    { 
       for(var j=0; j<document.images.length; j++) 
       { 
          var img = document.images[j] 
          var imgName = img.src.toUpperCase() 
          if (imgName.substring(imgName.length-3, imgName.length) == "PNG") 
          { 
             var imgID = (img.id) ? "id='" + img.id + "' " : "" 
             var imgClass = (img.className) ? "class='" + img.className + "' " : "" 
             var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " 
             var imgStyle = "display:inline-block;" + img.style.cssText 
             if (img.align == "left") imgStyle = "float:left;" + imgStyle 
             if (img.align == "right") imgStyle = "float:right;" + imgStyle 
             if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle 
             var strNewHTML = "<span " + imgID + imgClass + imgTitle 
             + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 
             + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" 
             + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
             img.outerHTML = strNewHTML 
             j = j-1 
          } 
       } 
    }     
} 
window.attachEvent("onload", correctPNG); 

