	<!-- 首页页面悬浮广告141*54 -->
    var randomnum= Math.floor(Math.random()*9+1);
	var delta=0.30
	var collection;
	function hidead()
					{ 
 					document.getElementById("followDiv1n").style.display="none";
					document.getElementById("followDiv2n").style.display="none";
					document.getElementById("followDiv3n").style.display="none";
					document.getElementById("followDiv4n").style.display="none";
					//document.getElementById("followDiv5n").style.display="none";
					
					}
	function floaters() {
		this.items	= [];
		this.addItem	= function(id,x,y,content)
				  {
					if (id=="followDiv1" || id=="followDiv2" || id=="followDiv5")
					{
					document.write('<DIV id='+id+' name='+id+' style="Z-INDEX: 10; POSITION: absolute; left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'" ><DIV id='+id+'n name='+id+'n style="POSITION: absolute; " >'+content+'</DIV></DIV>');
					}
					else
					{
					document.write('<DIV align="right" id='+id+' name='+id+' style="Z-INDEX: 10; POSITION: absolute; left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'" ><DIV id='+id+'n name='+id+'n style="POSITION: absolute; " >'+content+'</DIV></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	= '';
			}
		}	
	

//左上广告

	if (randomnum==1 || randomnum==2 || randomnum==10  )
	{
leftup="<a href='http://www.nbxiaoshi.net:8090/xiaoqing/message.asp' target='_blank'><img src=http://www.nbxiaoshi.net/js/100xiaoqing.JPG width=200 height=120  border=0></a><br><a href=javascript: onclick=hidead() style=color:red;text-decoration:blink;font-size:12px;>Close</a>";
	}
	else
	{
	leftup="<img src=/ad/images/spacer.gif width=1 height=1 border=0>";
	}
//左下广告

	if (randomnum==3 || randomnum==4   )
	{
	
  leftdown="<a href='http://www.nbxiaoshi.net:8090/xiaoqing/xiaoyoudengji_index.aspx?gradeid=96' target='_blank'><img src=http://www.nbxiaoshi.net/js/100xiaoqing.xiaoyoudengji.JPG width=200 height=120  border=0></a><br><a href=javascript: onclick=hidead() style=color:red;text-decoration:blink;font-size:12px;>Close</a>";
		
	}
	else
	{
  leftdown="<img src=/ad/images/spacer.gif width=1 height=1 border=0>";
	}
//右上广告

	if (randomnum==5 || randomnum==6  )
	{
	
	rightup="<a href='http://www.nbxiaoshi.net:8090/xiaoqing/qqqun.asp' target='_blank'><img src=http://www.nbxiaoshi.net/js/100xiaoqing.qq.JPG width=200 height=120  border=0></a><br><a href=javascript: onclick=hidead() style=color:red;text-decoration:blink;font-size:12px;>Close</a>";


//rightup="";

	}
	else
	{
	rightup="<img src=/ad/images/spacer.gif width=1 height=1 border=0>";
	}
//右下广告
	
	if (randomnum==7 || randomnum==8 || randomnum==9 )
	{
	
 rightdown="<a href='http://www.nbxiaoshi.net:8090/xiaoqing/contact.asp' target='_blank'><img src=http://www.nbxiaoshi.net/js/100xiaoqing.lianxi.JPG width=200 height=120  border=0></a><br><a href=javascript: onclick=hidead() style=color:red;text-decoration:blink;font-size:12px;>Close</a>";
	}
	else
	{
	rightdown="<img src=/ad/images/spacer.gif width=1 height=1 border=0>";
	}
 temphtml="<a href='http://www.nbxiaoshi.net/wsbm_index.asp' target='_blank'><img src=http://www.nbxiaoshi.net/js/zhaosheng.logo.gif width=260 height=137  border=0></a><br><a href=javascript: onclick=hidead() style=color:red;text-decoration:blink;font-size:12px;>Close</a>";
	var theFloaters		= new floaters();
	theFloaters.addItem('followDiv1',10,400,''+leftup+'');
	theFloaters.addItem('followDiv2',10,'document.body.clientHeight-200',''+leftdown+'');
	theFloaters.addItem('followDiv3','document.body.clientWidth-205','document.body.clientHeight-350',''+rightup+'');
	theFloaters.addItem('followDiv4','document.body.clientWidth-205','document.body.clientHeight-200',''+rightdown+'');
	//theFloaters.addItem('followDiv5',3,10,''+temphtml+'');
	theFloaters.play();
	
	
