document.writeln("      <div align=\"center\"><Iframe src=\"\" width=\"760\" height=\"0\" scrolling=\"no\" frameborder=\"0\"></Iframe></div>");
var pic="http://www.sxqlr.com.cn/images/pictur_xf.gif";
var alt="量具刃具";
var speed=78;
var light=0;
 
var stop=0;
var num=0;
 
var brOK=false;
var mie=false;
var aver=parseInt(navigator.appVersion.substring(0,1));
var aname=navigator.appName;
 
var vmin=2;
var vmax=5;
var vr=2;
var timer1;
 
var allyes;
 
var ns = (document.layers) ? 1 : 0;
var ie = (document.all) ? 1 : 0;
var bFade=false;
 
function checkbrOK(){
 if(aname.indexOf("Internet Explorer")!=-1){
  if(aver>=4) brOK=navigator.javaEnabled();
  mie=true;
 }
 if(aname.indexOf("Netscape")!=-1){
  if(aver>=4) brOK=navigator.javaEnabled();
 }
}

function Chip(chipname,width,height){
 this.named=chipname;
 this.vx=vmin+vmax*Math.random();
 this.vy=vmin+vmax*Math.random();
 this.w=width;
 this.h=height;
 this.xx=10;
 this.yy=10;
 this.timer1=null;
}
 
function movechip(chipname){
if (stop!=1){
if(brOK){
 eval("chip="+chipname);
 if(!mie){
  pageX=window.pageXOffset;
  pageW=window.innerWidth;
  pageY=window.pageYOffset;
  pageH=window.innerHeight;
 }
 else{
  pageX=window.document.body.scrollLeft;
  pageW=window.document.body.offsetWidth;
  pageY=window.document.body.scrollTop;
  pageH=window.document.body.offsetHeight;
 } 
 chip.xx=chip.xx+chip.vx;
 chip.yy=chip.yy+chip.vy;
 chip.vx+=vr*(Math.random()-0.5);
 chip.vy+=vr*(Math.random()-0.5);
 if(chip.vx>(vmax+vmin))  chip.vx=(vmax+vmin)*2-chip.vx;
 if(chip.vx<(-vmax-vmin)) chip.vx=(-vmax-vmin)*2-chip.vx;
 if(chip.vy>(vmax+vmin))  chip.vy=(vmax+vmin)*2-chip.vy;
 if(chip.vy<(-vmax-vmin)) chip.vy=(-vmax-vmin)*2-chip.vy;
 if(chip.xx<=pageX){
  chip.xx=pageX;
  chip.vx=vmin+vmax*Math.random();
 }
 if(chip.xx>=pageX+pageW-chip.w){
  chip.xx=pageX+pageW-chip.w;
  chip.vx=-vmin-vmax*Math.random();
 }
 if(chip.yy<=pageY){
  chip.yy=pageY;
  chip.vy=vmin+vmax*Math.random();
 }
 if(chip.yy>=pageY+pageH-chip.h){
  chip.yy=pageY+pageH-chip.h;
  chip.vy=-vmin-vmax*Math.random();
 }
 if(!mie){
  eval("document."+chip.named+".top ="+chip.yy);
  eval("document."+chip.named+".left="+chip.xx);
 } 
 else{
  eval("document.all."+chip.named+".style.pixelLeft="+chip.xx);
  eval("document.all."+chip.named+".style.pixelTop ="+chip.yy); 
 }
 chip.timer1=setTimeout("movechip('"+chip.named+"')",speed);
}
}
else {chip.timer1=setTimeout("movechip('"+chip.named+"')",speed);}
if (ie){
 if (light==1){
  var nOpacity=oImg.filters.alpha.opacity;
  if (nOpacity>=100) bFade=true;
  if (nOpacity<=0) bFade=false;
  if (bFade) oImg.filters.alpha.opacity--;
  if (!bFade) oImg.filters.alpha.opacity++;
 }
}
 
}
 
function stopme(chipname){
 if(brOK){
  eval("chip="+chipname);
  if(chip.timer1!=null){
   clearTimeout(chip.timer1)
  }
 }
}
function allyes1(){
if (num==0){
 checkbrOK(); 
 allyes=new Chip("allyes",100,80);
 if(brOK) {
  movechip("allyes");
 }
}
 num++;
}
 
if (ie){
	document.write("<div ID='allyes' STYLE='position:absolute;left: 10px; top: 10px;'>");
	document.write("<a HREF='http://www.sxqlr.com.cn/' target='_blank'>");
if (light==1){
	document.write("<dd><img SRC='" + pic + "' onload='allyes1()' ID='oImg' border='0' alt='" + alt + "' style='position:absolute;left:200px;top:200px;filter:alpha(opacity=50);' onMouseOver='stop=1;' onMouseOut='stop=0;'></dd></a>");
}
else if (light==0){
	document.write("<dd><img SRC='" + pic + "' onload='allyes1()' border='0' alt='" + alt + "' onMouseOver='stop=1;' onMouseOut='stop=0;'></dd>");
}
document.write("</div>");
}
else if (ns){
document.write("<layer name='allyes' visibility=\"show\" onMouseOver='stop=1;' onMouseOut='stop=0;'  onload='allyes1()' >");
document.write("<a HREF='http://www.cnsensor.net/' target='_blank'>");
document.write("<dd><img SRC='" + pic + "' border='0' alt='" + alt + "'></dd></a>");
document.write("</layer>");
}
	var delta=0.15
	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 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();
	theFloaters.addItem('followDiv1','document.body.clientWidth-110',110,'<a href=http://www.sxqlr.com.cn/ target=_blank><img src=http://www.sxqlr.com.cn/images/g2-100.jpg width=110 height=154 border=0 alt=量具刃具></a><br><br><a href=http://www.sxqlr.com.cn/ target=_blank><img src=http://www.sxqlr.com.cn/images/product2m3e5115433.jpg width=110 height=154 border=0 alt=量具刃具></a>');
	theFloaters.addItem('followDiv2',6,110,'<a href=http://www.sxqlr.com.cn/ target=_blank><img src=http://www.sxqlr.com.cn/images/0856122656.jpg width=110 height=154 border=0 alt=量具刃具></a><br><br><a href=http://www.sxqlr.com.cn/ target=_blank><img src=http://www.sxqlr.com.cn/images/213044573.gif width=110 height=154 border=0 alt=量具刃具></a>');
	theFloaters.play();




