var marqueewidth=990
//字幕高度（只对NC有效）
var marqueeheight=30
//字幕速度（数值越大越快）
var speed=5
//字幕内容
var marqueecontents='<h1>本公司专业经销铆钉枪</h1>,<h1>气动铆钉枪</h1>,<h1>气动拉钉枪</h1>,<h1>快速铆钉枪</h1>,<h1>气动铆螺母枪</h1>,<h1>气动拉铆枪</h1>,<h1>pop气动铆钉枪</h1>,<h1>avdel气动铆钉枪</h1>,<h1>gesipa气动铆钉枪</h1>,<h1>虾牌铆钉枪</h1>'

if (document.all)
document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+'</marquee>')

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}

function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.width
scrollit()
}

function scrollit(){
if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.left-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.left=marqueewidth
scrollit()
}
}window.onload=regenerate2


function Float()
{
	this.obj;
	this.name;
	this.l=0;
	this.t=0;
	this.send=10;
	this.time;
}
Float.prototype.load = function()
{
	this.obj.style.left=this.l+"px";
	this.obj.style.top=this.t+"px";
	this.move();
}
Float.prototype.move = function()
{
	var sLeft=document.body.scrollLeft;
	if (sLeft==0) sLeft=document.documentElement.scrollLeft;
	var sTop=document.body.scrollTop;
	if (sTop==0) sTop=document.documentElement.scrollTop;
	if (parseInt(this.obj.style.left)+this.send<this.l+sLeft)
	{
		this.obj.style.left=parseInt(this.obj.style.left)+this.send+"px";
	}
	else if (parseInt(this.obj.style.left)>this.l+sLeft+this.send)
	{
		this.obj.style.left=parseInt(this.obj.style.left)-this.send+"px";
	}
	if (parseInt(this.obj.style.top)+this.send<this.t+sTop)
	{
		this.obj.style.top=parseInt(this.obj.style.top)+this.send+"px";
	}
	else if (parseInt(this.obj.style.top)>this.t+sTop+this.send)
	{
		this.obj.style.top=parseInt(this.obj.style.top)-this.send+"px";
	}
	this.time=setTimeout(this.name+".move()",1);
}