﻿          function killErrors() {
           return true;
           }
          window.onerror = killErrors;
/*
右边快速导航
*/
	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="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 play()
		{
			if(screen.width<=648 || closeB)
			{
				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	= '';
			}
		}	
				function closeBanner()
		{
			closeB=true;
			return;
		}
		//加载右边快速导航
        function floaterLink(Num) 
        {
		var screenwidth = eval("window.screen.width");
		var MyWidth=0;
		if(screenwidth<=1024)
		{
			MyWidth=865;
		}
		
	        var theFloaters		= new floaters();
	        switch(Num)
	        {
	            case 1:
	                theFloaters.addItem('followDiv1',MyWidth,130,'<table width="124" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td height="5"><img src="ydwd-image/QLTopBg.gif" width="124" height="5"></td></tr><tr><td style="background:url(ydwd-image/QLBg.gif) repeat-y;"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><img src="ydwd-image/QLinkTop.gif" width="118" height="83"></td></tr><tr><td height="92"><table width="118" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td background="ydwd-image/QLinkBottomBg.gif" height="92" style="padding-top:7px;"><table width="118" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td height="20" align="center"><a href="/Down.aspx?CateID=155">软件升级</a></td></tr><tr><td height="20" align="center"><a href="/SafeProducts.aspx">安全产品</a></td></tr><tr><td height="20" align="center"><a href="/About.aspx">关于我们</a></td></tr><tr><td height="20" align="center"><a href="/Service.aspx">服务中心</a></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td height="3"><img src="ydwd-image/QLBottomBg.gif" width="124" height="3"></td></tr></table>');
	                break;
	            case 2:
	                theFloaters.addItem('followDiv1',MyWidth,130,'<table width="124" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td height="5"><img src="ydwd-image/QLTopBg.gif" width="124" height="5"></td></tr><tr><td style="background:url(ydwd-image/QLBg.gif) repeat-y;"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><img src="ydwd-image/QLinkTop_.gif" width="118" height="83"></td></tr><tr><td height="92"><table width="118" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td background="ydwd-image/QLinkBottomBg.gif" height="92" style="padding-top:7px;"><table width="118" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td height="20" align="center"><a href="/SafeProducts.aspx">安全产品</a></td></tr><tr><td height="20" align="center"><a href="/NewsList.aspx">新闻中心</a></td></tr><tr><td height="20" align="center"><a href="/About.aspx">关于我们</a></td></tr><tr><td height="20" align="center"><a href="/Case.aspx">解决方案与案例</a></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td height="3"><img src="ydwd-image/QLBottomBg.gif" width="124" height="3"></td></tr></table>');
	                break;
	            case 3:
	                theFloaters.addItem('followDiv1',MyWidth,130,'<table width="124" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td height="5"><img src="ydwd-image/QLTopBg.gif" width="124" height="5"></td></tr><tr><td style="background:url(ydwd-image/QLBg.gif) repeat-y;"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><img src="ydwd-image/QLinkTop_3.gif" width="118" height="83"></td></tr><tr><td height="92"><table width="118" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td background="ydwd-image/QLinkBottomBg.gif" height="92" style="padding-top:7px;"><table width="118" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td height="20" align="center"><a href="/AboutItem.aspx?CateID=6">公司简介</a></td></tr><tr><td height="20" align="center"><a href="/SafeProducts.aspx">安全产品</a></td></tr><tr><td height="20" align="center"><a href="/Safe.aspx">安全研究</a></td></tr><tr><td height="20" align="center"><a href="/NewsList.aspx">新闻中心</a></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td height="3"><img src="ydwd-image/QLBottomBg.gif" width="124" height="3"></td></tr></table>');
	                break;
	            default:
	                theFloaters.addItem('followDiv1',MyWidth,130,'<table width="124" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td height="5"><img src="ydwd-image/QLTopBg.gif" width="124" height="5"></td></tr><tr><td style="background:url(ydwd-image/QLBg.gif) repeat-y;"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><img src="ydwd-image/QLinkTop_3.gif" width="118" height="83"></td></tr><tr><td height="92"><table width="118" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td background="ydwd-image/QLinkBottomBg.gif" height="92" style="padding-top:7px;"><table width="118" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td height="20" align="center"><a href="/Login.aspx">会员登录</a></td></tr><tr><td height="20" align="center"><a href="/Reg.aspx">用户注册</a></td></tr><tr><td height="20" align="center"><a href="/Safe.aspx">安全研究</a></td></tr><tr><td height="20" align="center"><a href="/NewsList.aspx">新闻中心</a></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td height="3"><img src="ydwd-image/QLBottomBg.gif" width="124" height="3"></td></tr></table>');
	                break;   
	        }
	        theFloaters.play();
        }



