var no1
var chip

var mvtWidth=148
var mvtHeight=128

window.onload=no1;
var brOK=false;
var mie=false;
var aver=parseInt(navigator.appVersion.substring(0,1));
var aname=navigator.appName;
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();}
}
var vmin=2;
var vmax=5;
var vr=2;
var timer1;
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=0;
this.yy=0;
this.timer1=null;
}
function movechip()
{
if(brOK)
{eval("chip="+"no1");
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-8;
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+"')",80);
}
}
function stopme()
{if(brOK)
{//alert(chipname)
eval("chip="+"no1");
if(chip.timer1!=null)
{clearTimeout(chip.timer1)}
}
}

function no1()
{checkbrOK();
no1=new Chip("no1",148,128);
if(brOK)
{ movechip("no1");
}
}
document.write('<div id=no1 style="position:absolute; filter: Alpha(Opacity=100)"><a href='+mvtLink+' target=_blank><img src='+mvtLight+' alt='+alt+' onmouseover="parent.stopme();" onmouseout="parent.movechip();" border=0 width='+mvtWidth+' height='+mvtHeight+'></a></div>');
//document.write('<div id=no1 style="position:absolute; filter: Alpha(Opacity=80)"><OBJECT classid="clsid:3A2B370C-BA0A-11D1-B137-0000F8753F5D" height=492 id=MSChart1 style=" HEIGHT: '+mvtWidth+'; WIDTH: '+mvtHeight+'" width=950></OBJECT> </div>');
//Composition.document.open()
//Composition.document.write('<head><style type="text/css">body {font-size: 10.8pt}</style><meta http-equiv=Content-Type content="text/html; charset=gb2312"></head><BODY   leftmargin=0 topmargin=0 marginwidth=0 marginheight=0  scroll=no ><a href='+mvtLink+' target=_blank><img src='+mvtLight+' alt='+alt+' onmouseover="parent.stopme();" onmouseout="parent.movechip();" border=0 width='+mvtWidth+' height='+mvtHeight+'></a></body>');
//Composition.document.close();
//MSChart1.Data ='<a href='+mvtLink+' target=_blank><img src='+mvtLight+' alt='+alt+' onmouseover="parent.stopme();" onmouseout="parent.movechip();" border=0 width='+mvtWidth+' height='+mvtHeight+'>';


