

var top  =138; //调整上边距
var space=18; //调整与内容的距离
var width=917; //页面宽度
var basedir='';


document.write('<div id="f001" name="f001" style="position:absolute; width:30; height:0;top:'+top+';left:'+784+';"><object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 width=30 height=268><param name=movie value="'+basedir+'boxsin_img/online.swf"><param name=quality value=high><param name="wmode" value="transparent"><param name="menu" value="false"><embed src="'+basedir+'boxsin_img/un_online.swf" width=67 height=230 quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash wmode="transparent" menu="false"></embed></object><\/div>');


w=document.body.offsetWidth-38;
if(w<width) w=width;
x=w/2+width/2-6+space;
f001.style.left=x;
var y=top;
f001.style.top =y;

function speed(n1,n2)
{
	rnum=0;
	num=Math.abs(n1-n2);
	if(num==0) sp=0;
	else if(num>40) sp=15;
	else if(num>20) sp=8;
	else if(num>6) sp=3;
	else sp=1;

	if (n1>n2)
	{
		sp=0-sp;
	}
	return sp;
}

function play()
{
	w=document.body.offsetWidth-18;
	if(w<width) w=width;
	x=w/2+width/2-6+space;
	f001.style.left=x;

	var y2=document.body.scrollTop+top;
	y=y+speed(y,y2)
	f001.style.top =y;
}

setInterval('play()',10);
