	var delta=0.08
	var collection;
	function floaters() {
		this.items	= [];
		this.addItem	= function(id,x,y,content)
				  {
					document.write('<DIV 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)+'">'+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 floatersnew() 
	{
	this.items	= [];
	this.addItem	= function(id,x,y,content,width)
			  {
				var tabId = id + "tab";
				document.write('<DIV id='+id+' onmousemove="showTab('+ tabId +')" onmouseout="noneTab('+ tabId +')" style="Z-INDEX: 10; POSITION: absolute; width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+
								'<table border=\'0\' width='+ width +' cellpadding=\'0\' cellspacing=\'0\'>' +
									'<tr>' +
										'<td align=\'left\'>' +
											'<div id='+tabId+' style=\'display=none;\' class=\'red\'>' +
												'<a href=\'javascript:closeDiv('+ id +')\'>' +
													'<b><font color=\'#FF0000\'>关闭</font></b>' +
												'</a>' +
											'</div>' +
										'</td>' +
										'<td width=\'10\'>&nbsp;</td>' +
									'</tr>' +
								'</table>' +
					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()
		{
			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();
		//鼠标移到对象上去的时候，显示关闭按钮
		function showTab(tabId)
		{
			tabId.style.display='';
		}
		
		//鼠标移开的时候，隐藏关闭按钮
		function noneTab(tabObj)
		{
			tabObj.style.display='none';
		}
		
		//将广告层删除掉
		function closeDiv(divObj)
		{
			if (docEle(divObj.id))
			{
				document.body.removeChild(docEle(divObj.id));
			}
		}
		
		//判断对象是否存在
		var docEle = function() 
		{
			return document.getElementById(arguments[0]) || false;
		}
		var theFloatersnew		= new floatersnew();
	//第三行左面
	//theFloaters.addItem('followDiv1',6,70,'<a href="http://campus.chinahr.com/2008/pages/cjzq/" target="_blank"><img border="0" src="images/xyzp.gif" width=100 height=150 /></a>');
	//第一行右面 长超2号
	//theFloaters.addItem('followDiv2','document.body.clientWidth-106',190,'<a href="http://www.95579.com/cgi-bin/product/Product?function=linkFinancing&catalog_id1=1447&catalog_id2=1456" target="_blank"><img border="0" src="images/cc2.gif" width="100" height="150" /></a>');
	//第一行左面 长超2号
	//theFloaters.addItem('followDiv3',6,190,'<a href="http://www.95579.com/cgi-bin/product/Product?function=linkFinancing&catalog_id1=1447&catalog_id2=1456" target="_blank"><img border="0" src="images/cc2.gif" width="100" height="150" /></a>');
	//第二行右面  缤纷夏日三重礼 
	//theFloatersnew.addItem('followDiv4','document.body.clientWidth-106',190,'<a href="http://www.cjfco.com.cn/cgi-bin/jfjhj/JiFenHua?function=JFJHMain&catalog_id=696&type=gzqhds" target="_blank"><img border="0" style="" src="images/gzqhfz.GIF" width="120" height="220" /></a>');
	//第二行左面 帐户规范
	//theFloaters.addItem('followDiv5',6,380,'<a href="http://www.95579.com/cgi-bin/operation/Operation?function=forward&opera_id=1"><img border="0" style="FILTER: gray" src="<%=request.getContextPath()%>/images/gzqhfz.GIF" WIDTH=120 HEIGHT=220 /></a>');
	//第三行右面
	//theFloaters.addItem('followDiv6','document.body.clientWidth-106',390,'<a href="http://www.95579.com/cgi-bin/research/Research?function=openArticle&type=1&article_id=5389839&second_catalog_id=1356" target="_blank"><img border="0" src="images/xb2.gif" width="100" height="200" /></a>');
	theFloaters.play();
	//theFloatersnew.play();
	
	
	
	
	 function loadAd_Lr(index, width, height, picture, url, state, fileType, id)
	    {
	        if(fileType != "WMV" || fileType != "flv")
	        {
	            if(index == "0")
	            {
	                var id = "followDiv5";
	                var x = 6;
	                var y = 380;
	                var tag = "";
	                //当文件存储位置不为空的时候进入，否则就给它一个默认的地址
	                if(!isEmpty(picture))
	                {
	                    if(fileType == "swf")
	                    {
	                        tag = swfFileTag(width, height, picture);
	                    }
	                    else
	                    {
	                        tag = jpgAndGifFileTag(state, url, width, height, picture);
	                    }
	                }
	                else
	                {
	                   tag = "<a href='http://www.95579.com/cgi-bin/operation/Operation?function=forward&opera_id=1' target='_blank'>" +
	                            "<img border='0' src='images/zhgfxx.GIF' WIDTH='100' HEIGHT='150'/>" +
	                         "</a>";
	                }
	                theFloatersnew.addItem(id, x, y, tag, width);
	            }
	            else if(index == "1")
	            {
	                var id = "followDiv4";
	                var x = 'document.body.clientWidth-106';
	                var y = 380;
	                var tag = "";
	                if(!isEmpty(picture))
	                {
	                     /*tag = "<a href='" + url + "' target='_blank'>" +
	                               "<img border='0' src='" + picture + "' WIDTH='" + width + "' HEIGHT='" + height + "' />" +
	                          "</a>";*/
	                    if(fileType == "swf")
	                    {
	                        tag = swfFileTag(width, height, picture);
	                    }
	                    else
	                    {
	                        tag = jpgAndGifFileTag(state, url, width, height, picture);
	                    }
	                }
	                else
	                {
	                    tag = "<a href='http://www.95579.com/cgi-bin/aboutcz/AboutCZ?function=operation&catalog_id=1507' target='_blank'>" +
	                            "<img border='0' src='images/zbgg.png' width='100' height='150'/>" +
	                          "</a>";
	                }
	                theFloatersnew.addItem(id, x, y, tag, width);
	            }
	            else if(index == "2")
	            {
	                var id = "followDiv3";
	                var x = 6;
	                var y = 190;
	                var tag = "";
	                if(!isEmpty(picture))
	                {
	                     /*tag = "<a href='" + url + "' target='_blank'>" +
	                               "<img border='0' src='" + picture + "' WIDTH='" + width + "' HEIGHT='" + height + "' />" +
	                           "</a>";*/
	                    if(fileType == "swf")
	                    {
	                        tag = swfFileTag(width, height, picture);
	                    }
	                    else
	                    {
	                        tag = jpgAndGifFileTag(state, url, width, height, picture);
	                    }
	                }
	                else
	                {
	                    tag = "<a href='http://www.95579.com/cgi-bin/product/Product?function=linkFinancing&catalog_id1=1447&catalog_id2=1456' target='_blank'>" +
	                            "<img border='0' src='images/cc2.gif' width='100' height='150'/>" +
	                          "</a>";
	                }
	                theFloatersnew.addItem(id, x, y, tag, width);
	            }
	            else if(index == "3")
	            {
	                var id = "followDiv2";
	                var x = 'document.body.clientWidth-106';
	                var y = 190;
	                var tag = "";
	                if(!isEmpty(picture))
	                {
	                    /*tag = "<a href='" + url + "' target='_blank'>" +
	                               "<img border='0' src='" + picture + "' WIDTH='" + width + "' HEIGHT='" + height + "' />" +
	                           "</a>";*/
	                    if(fileType == "swf")
	                    {
	                        tag = swfFileTag(width, height, picture);
	                    }
	                    else
	                    {
	                        tag = jpgAndGifFileTag(state, url, width, height, picture);
	                    }
	                }
	                else
	                {
	                    tag = "<a href='http://www.95579.com/cgi-bin/product/Product?function=linkFinancing&catalog_id1=1447&catalog_id2=1456' target='_blank'>" +
	                            "<img border='0' src='images/cc2.gif' width='100' height='150'/>" +
	                          "</a>";
	                }
	                theFloatersnew.addItem(id, x, y, tag, width);
	            }
	            else if(index == "4")
	            {
	                var id = "followDiv1";
	                var x = 6;
	                var y = 30;
	                var tag = "";
	                if(!isEmpty(picture))
	                {
	                    /*tag = "<a href='" + url + "' target='_blank'>" +
	                               "<img border='0' src='" + picture + "' WIDTH='" + width + "' HEIGHT='" + height + "' />" +
	                           "</a>";*/
	                    if(fileType == "swf")
	                    {
	                        tag = swfFileTag(width, height, picture);
	                    }
	                    else
	                    {
	                        tag = jpgAndGifFileTag(state, url, width, height, picture);
	                    }
	                }
	                else
	                {
	                    tag = "<a href='http://campus.chinahr.com/2008/pages/cjzq/' target='_blank'>" +
	                            "<img border='0' src='images/xyzp.gif' width='100' height='150'/>" +
	                          "</a>";
	                }
	                theFloatersnew.addItem(id, x, y, tag, width);
	            }
	            else if(index == "5")
	            {
	                var id = "followDiv0";
	                var x = "document.body.clientWidth-106";
	                var y = 30;
	                var tag = "";
	                if(!isEmpty(picture))
	                {
	                    /*tag = "<a href='" + url + "' target='_blank'>" +
	                               "<img border='0' src='" + picture + "' WIDTH='" + width + "' HEIGHT='" + height + "' />" +
	                           "</a>";*/
	                    if(fileType == "swf")
	                    {
	                        tag = swfFileTag(width, height, picture);
	                    }
	                    else
	                    {
	                        tag = jpgAndGifFileTag(state, url, width, height, picture);
	                    }
	                }
	                else
	                {
	                    tag = "<a href='http://www.95579.com/cgi-bin/research/Research?function=openArticle&type=1&article_id=5389839&second_catalog_id=1356' target='_blank'>" +
	                            "<img border='0' src='images/xb2.gif' width='100' height='150'/>" +
	                          "</a>";
	                }
	                theFloatersnew.addItem(id, x, y, tag, width);
	            }
	            else
	            {
	                    //第三行左面
	                    //theFloaters.addItem('followDiv1',6,30,'<a href="http://campus.chinahr.com/2008/pages/cjzq/" target="_blank"><img border="0" src="images/xyzp.gif" width=100 height=150 /></a>');
	                    //第一行右面 长超2号
	                    //theFloaters.addItem('followDiv2','document.body.clientWidth-106',190,'<a href="http://www.95579.com/cgi-bin/product/Product?function=linkFinancing&catalog_id1=1447&catalog_id2=1456" target="_blank"><img border="0" src="images/cc2.gif" width="100" height="150" /></a>');
	                    //第一行左面 长超2号
	                    //theFloaters.addItem('followDiv3',6,190,'<a href="http://www.95579.com/cgi-bin/product/Product?function=linkFinancing&catalog_id1=1447&catalog_id2=1456" target="_blank"><img border="0" src="images/cc2.gif" width="100" height="150" /></a>');
	                    //第二行右面 招标公告
	                    theFloaters.addItem('followDiv4','document.body.clientWidth-106',380,'<a href="http://www.95579.com/cgi-bin/aboutcz/AboutCZ?function=operation&catalog_id=1507" target="_blank"><img border="0" src="images/zbgg.png" width="100" height="150" /></a>');
	                    //第二行左面 帐户规范
	                    theFloaters.addItem('followDiv5',6,380,'<a href="http://www.95579.com/cgi-bin/operation/Operation?function=forward&opera_id=1"><img border="0" src="images/zhgfxx.GIF" WIDTH=100 HEIGHT=150 /></a>');
	                    //第三行右面
	                    //theFloaters.addItem('followDiv6','document.body.clientWidth-106',30,'<a href="http://www.95579.com/cgi-bin/research/Research?function=openArticle&type=1&article_id=5389839&second_catalog_id=1356" target="_blank"><img border="0" src="images/xb2.gif" width="100" height="150" /></a>');
	            }
	            return theFloatersnew;
	        }
	        else
	        {
	            window.open ("video.jsp?id=" + id ,'_blank',"height=" + height + ",width=" + width + ",top=358,left=790,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");
	        }
	    }

	 function swfFileTag(width, height, picture)
	    {
	        var tag = "";
	        if(width == "0" || height == "0")
	        {
	            tag = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='100' height='150'>" +
	                    "<param name='movie' value='" + picture + "'>" +
	                    "<param name='quality' value='high'" +
	                    "<embed src='" + picture + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='100' height='150'></embed>" +
	                    "</object>";
	        }
	        else
	        {
	            tag = "<object id='pcplayer' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115' height='" + height + "' width='" + width + "'>" +
	                                "<param name='movie' value='" + picture + "'/>" +
	                                "<param name='allowScriptAccess' value='always'/>" +
	                                "<param name='menu' value='false'/>" +
	                                "<param name='flashvars' value='domain=pconline&flv=200810/10/5/9780777r8umf.flv&id=825'/>" +
	                                "<embed name='pcplayer' src='" + picture + "' flashvars='domain=pconline&flv=200810/10/5/9780777r8umf.flv&id=825' type='application/x-shockwave-flash' height='" + height + "' width='" + width + "' allowScriptAccess='always' allowFullScreen='true' menu='false' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>" +
	                                "</object>";
	        }
	        return tag;
	    }

	    function jpgAndGifFileTag(state, url, width, height, picture)
	    {
	        var tag = "";
	        if(state == "0")
	        {
	            if(width != "0" || height != "0")
	            {
	                tag = "<img border='0' src='" + picture + "' WIDTH='" + width + "' HEIGHT='" + height + "' />";
	            }
	            else
	            {
	                tag = "<img border='0' src='" + picture + "' WIDTH='100' HEIGHT='150' />";
	            }
	        }
	        else
	        {
	            if(width != "0" || height != "0")
	            {
	                if(!isEmpty(url))
	                {
	                    tag = "<a href='" + url + "' target='_blank'>" +
	                               "<img border='0' src='" + picture + "' WIDTH='" + width + "' HEIGHT='" + height + "' />" +
	                          "</a>";
	                }
	                else
	                {
	                    tag = "<img border='0' src='" + picture + "' WIDTH='" + width + "' HEIGHT='" + height + "' />";
	                }
	            }
	            else
	            {
	                if(!isEmpty(url))
	                {
	                    tag = "<a href='" + url + "' target='_blank'>" +
	                               "<img border='0' src='" + picture + "' WIDTH='100' HEIGHT='150' />" +
	                          "</a>";
	                }
	                else
	                {
	                    tag = "<img border='0' src='" + picture + "' WIDTH='100' HEIGHT='150' />";
	                }
	            }
	        }
	        return tag;
	    }
	 