<!-- 页面悬浮广告80*240 -->

function UberSniff1(sUndefined) {
	var ua=navigator.userAgent.toLowerCase();
	this.ie = (parseFloat(ua.slice(ua.indexOf("msie")+5)));
	this.nn = (this.ie)?(-1):(parseFloat(ua.slice(ua.indexOf("mozilla/")+8)));
	this.mac = (ua.indexOf("mac")>-1);
	this.screenHeight = screen.height;
	this.screenWidth = screen.width;
}


function closeFloatCoupletLayer1()
{
	var oS=new UberSniff1();
	if (oS.ie||oS.nn>=5){

		followDiv1.style.visibility="hidden";
		
	}
}



function closeFloatCoupletLayer2()
{
	var oS=new UberSniff1();
	if (oS.ie||oS.nn>=5){

		followDiv2.style.visibility="hidden";
		
	}
}

function closeFloatCoupletLayer3()
{
	var oS=new UberSniff1();
	if (oS.ie||oS.nn>=5){

		followDiv3.style.visibility="hidden";
		
	}
}


function closeFloatCoupletLayer4()
{
	var oS=new UberSniff1();
	if (oS.ie||oS.nn>=5){

		followDiv4.style.visibility="hidden";
		
	}
}

function closeFloatCoupletLayer5()
{
	var oS=new UberSniff1();
	if (oS.ie||oS.nn>=5){

		followDiv5.style.visibility="hidden";
		
	}
}
function closeFloatCoupletLayer6()
{
	var oS=new UberSniff1();
	if (oS.ie||oS.nn>=5){

		followDiv6.style.visibility="hidden";
		
	}
}

function closeFloatCoupletLayer7()
{
	var oS=new UberSniff1();
	if (oS.ie||oS.nn>=5){

		followDiv7.style.visibility="hidden";
		
	}
}

	var delta=0.30
	var collection;
function floaters() {
		this.items	= [];
		this.addItem	= function(id,x,y,content)
				  {
					document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; 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()
		{
			if(screen.width < 800)
			{
				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 leftup,leftdown,rightup,rightdown,rightdown2,QQ1,QQ2;
	today = new Date();
	tYear = today.getYear();
	tMonth = today.getMonth()+1;
	tToday = today.getDate();
	thistime = tYear*10000+tMonth*100+tToday //当前时间转化的规格数字


//	QQ1
       //   rightuptimestar = 20100501//规定撤除广告的时间转化的规格数字
	//rightuptimeend = 20111219
	//if (thistime >= rightuptimestar && thistime <= rightuptimeend)
	//{
	//QQ1="<a target=blank href=tencent://message/?uin=1428015202&Site=招生在线&Menu=yes><img border=0 SRC=http://wpa.qq.com/pa?p=1:1428015202:10 alt=[招生办]></a><div style=font-size:12px; align=right><span onclick=closeFloatCoupletLayer6(); style=color:black;cursor:hand;>关闭</span></div>";
	
     //  }
	//else
	//{
	
	//QQ1="<img src=http://cj.zjgsu.edu.cn/zsxx/spacer.jpg  width=1 height=1 border=0>";
 //  }


//QQ2
         // rightuptimestar = 20100501//规定撤除广告的时间转化的规格数字
	//rightuptimeend = 20111219
	//if (thistime >= rightuptimestar && thistime <= rightuptimeend)
	//{
	//QQ2="<a target=blank href=tencent://message/?uin=871424247&Site=招生在线&Menu=yes><img border=0 SRC=http://wpa.qq.com/pa?p=1:871424247:10 alt=[招生办]></a><div style=font-size:12px; align=right><span onclick=closeFloatCoupletLayer7(); style=color:black;cursor:hand;><b>关闭</b></span></div>";
	
       // }
	//else
	//{
	
	//QQ2="<img src=http://cj.zjgsu.edu.cn/zsxx/spacer.jpg  width=1 height=1 border=0>";
 
      //  }









//左上广告
	leftuptimestar = 20090530//规定撤除广告的时间转化的规格数字
	leftuptimeend = 20111230
	if (thistime >= leftuptimestar && thistime <= leftuptimeend)
	{
	leftup="<a href=http://cj.zjgsu.edu.cn/zsxx/zkzs/zkzs.htm><img src=http://cj.zjgsu.edu.cn/zsxx/zkzs/zkf.gif width=200 height=61 border=0></a><div style=font-size:11px; align=left><span onclick=closeFloatCoupletLayer1(); style=color:black;cursor:hand;>关闭</span></div>";
	
	}
	else
	{
	leftup="<img src=http://cj.zjgsu.edu.cn/zsxx/spacer.jpg width=1 height=1 border=0>";
     
	}
//左下广告
	leftuptimestar = 20090530//规定撤除广告的时间转化的规格数字
	leftuptimeend = 20111230
	if (thistime >= leftuptimestar && thistime <= leftuptimeend)
	{
	leftdown="<a href=http://cj.zjgsu.edu.cn/zsxx/gjinenzs/gjn.htm><img src=http://cj.zjgsu.edu.cn/zsxx/gjinenzs/ginf.gif width=220 height=92 border=0></a><div style=font-size:11px; align=left><span onclick=closeFloatCoupletLayer2(); style=color:black;cursor:hand;>关闭</span></div>";
	
	}
	else
	{
	  leftdown="<img src=http://cj.zjgsu.edu.cn/zsxx/spacer.jpg width=1 height=1 border=0>";
	}

//左下广告2
	rightuptimestar = 20100501//规定撤除广告的时间转化的规格数字
	rightuptimeend = 20111219
	if (thistime >= rightuptimestar && thistime <= rightuptimeend)
	{
	rightdown="<a href=http://cj.zjgsu.edu.cn/zsxx/20091231155352436.cjmsg><img src=http://cj.zjgsu.edu.cn/zsxx/zkzs/zkzsb.gif  width=200 height=60  border=0></a><div style=font-size:11px; align=right><span onclick=closeFloatCoupletLayer4(); style=color:black;cursor:hand;>关闭</span></div>";
	
         }
	else
	{
	
	rightdown="<img src=http://cj.zjgsu.edu.cn/zsxx/spacer.jpg  width=1 height=1 border=0>";
 
        }


//右上广告
	rightuptimestar = 20100501//规定撤除广告的时间转化的规格数字
	rightuptimeend = 20111219
	if (thistime >= rightuptimestar && thistime <= rightuptimeend)
	{
	rightup="<a href=http://cj.zjgsu.edu.cn/zsxx/ckzs/cr.htm><img src=http://cj.zjgsu.edu.cn/zsxx/ckzs/ckf.gif  width=250 height=78   border=0></a><div style=font-size:11px; align=right><span onclick=closeFloatCoupletLayer3(); style=color:black;cursor:hand;>关闭</span></div>";
	//rightdown="<a href=http://cj.zjgsu.edu.cn/zsxx/ckzs/cr.htm><img src=http://cj.zjgsu.edu.cn/zsxx/ckzs/ckf.gif  width=200 height=60   border=0></a><div style=font-size:11px; align=right><span onclick=closeFloatCoupletLayer4(); style=color:black;cursor:hand;>关闭1</span></div>";
	

         }
	else
	{
	rightup="<img src=http://cj.zjgsu.edu.cn/zsxx/spacer.jpg  width=1 height=1 border=0>";
 
	//rightdown="<img src=http://cj.zjgsu.edu.cn/zsxx/spacer.jpg  width=1 height=1 border=0>";
 
        }

//右下广告
	//rightuptimestar = 20100501//规定撤除广告的时间转化的规格数字
	//rightuptimeend = 20111219
	//if (thistime >= rightuptimestar && thistime <= rightuptimeend)
	//{
	//rightdown="<a href=http://cj.zjgsu.edu.cn/zsxx/20091231155352436.cjmsg><img src=http://cj.zjgsu.edu.cn/zsxx/zkzs/zkzsb.gif  width=33 height=174   border=0></a><div style=font-size:11px; align=right><span onclick=closeFloatCoupletLayer4(); style=color:black;cursor:hand;>关闭</span></div>";
	
     //    }
	//else
	//{
	
	//rightdown="<img src=http://cj.zjgsu.edu.cn/zsxx/spacer.jpg  width=1 height=1 border=0>";
 
    //    }

//右下广告2
	rightuptimestar = 20100501//规定撤除广告的时间转化的规格数字
	rightuptimeend = 20111219
	if (thistime >= rightuptimestar && thistime <= rightuptimeend)
	{
	rightdown2="<a href=http://cj.zjgsu.edu.cn/zsxx/2010713163548465.cjmsg><img src=http://cj.zjgsu.edu.cn/zsxx/gjinenzs/pxgjnf.gif  width=200 height=61  border=0></a><div style=font-size:12px; align=right><span onclick=closeFloatCoupletLayer5(); style=color:black;cursor:hand;>关闭</span></div>";
	
         }
	else
	{
	
	rightdown2="<img src=http://cj.zjgsu.edu.cn/zsxx/spacer.jpg  width=1 height=1 border=0>";
 
        }

	var theFloaters		= new floaters();

//theFloaters.addItem('followDiv6','document.body.clientWidth-40',380,''+QQ1+'');
//theFloaters.addItem('followDiv7','document.body.clientWidth-40',420,''+QQ2+'');

	theFloaters.addItem('followDiv1',8,360,''+leftup+'');
	theFloaters.addItem('followDiv2',8,440,''+leftdown+'');
        //theFloaters.addItem('followDiv4',8,580,''+rightdown+'');

	theFloaters.addItem('followDiv3','document.body.clientWidth-235',300,''+rightup+'');
        theFloaters.addItem('followDiv4','document.body.clientWidth-215',400,''+rightdown+'');

        theFloaters.addItem('followDiv5','document.body.clientWidth-215',500,''+rightdown2+'');
	theFloaters.play();
	