var messages=new Array();
messages[0]="杭州埃菲思科技有限公司欢迎您的光临，本站提供各种款式的车库门供您挑选！";
messages[1]="车库门相关信息:车库门/遥控车库门/自动车库门/电动车库门/车库门图片/车库卷帘门等！";
messages[2]="杭州埃菲思科技有限公司还生产其他各种款式的门:防火门/自动门/伸缩门/商铺门/庭院门等";

var scrollerwidth1=750;
var scrollerheight1=25;
var scrollerbgcolor1='';
//下面的代码不要改动
if (messages.length-1>1)
	j=2
else
	j=0

function move11(whichlayer){
	tlayer_1=eval(whichlayer)
	if (tlayer_1.top>0&&tlayer_1.top<=3){
		tlayer_1.top=0
		setTimeout("move11(tlayer_1)",5000)
		setTimeout("move21(document.main_1.document.second_1)",5000)
		return
	}
	if (tlayer_1.top>=tlayer_1.document.height*-1){
		tlayer_1.top-=3
		setTimeout("move11(tlayer_1)",100)
	}
	else{
		tlayer_1.top=scrollerheight1
		tlayer_1.document.write(messages[j])
		tlayer_1.document.close()
		if (j==messages.length-1)
			j=0
		else
			j++
	}
}
function move21(whichlayer){
	tlayer2_1=eval(whichlayer)
	if (tlayer2_1.top>0&&tlayer2_1.top<=3){
		tlayer2_1.top=0
		setTimeout("move21(tlayer2_1)",5000)
		setTimeout("move11(document.main_1.document.first_1)",5000)
		return
	}
	if (tlayer2_1.top>=tlayer2_1.document.height*-1){
		tlayer2_1.top-=3
		setTimeout("move21(tlayer2_1)",100)
	}
	else{
		tlayer2_1.top=scrollerheight1
		tlayer2_1.document.write(messages[j])
		tlayer2_1.document.close()
		if (j==messages.length-1)
			j=0
		else
			j++
	}
}
function move31(whichdiv){
	tdiv_1=eval(whichdiv)
	if (tdiv_1.style.pixelTop>0&&tdiv_1.style.pixelTop<=3){
		tdiv_1.style.pixelTop=0
		setTimeout("move31(tdiv_1)",5000)
		setTimeout("move41(second2_1)",5000)
		return
	}
	if (tdiv_1.style.pixelTop>=tdiv_1.offsetHeight*-1){
		tdiv_1.style.pixelTop-=3
		setTimeout("move31(tdiv_1)",100)
	}
	else{
		tdiv_1.style.pixelTop=scrollerheight1
		tdiv_1.innerHTML=messages[j]
		if (j==messages.length-1)
			j=0
		else
			j++
	}
}
function move41(whichdiv){
	tdiv2_1=eval(whichdiv)
	if (tdiv2_1.style.pixelTop>0&&tdiv2_1.style.pixelTop<=3){
		tdiv2_1.style.pixelTop=0
		setTimeout("move41(tdiv2_1)",5000)
		setTimeout("move31(first2_1)",5000)
		return
	}
	if (tdiv2_1.style.pixelTop>=tdiv2_1.offsetHeight*-1){
		tdiv2_1.style.pixelTop-=3
		setTimeout("move41(second2_1)",100)}
	else{
		tdiv2_1.style.pixelTop=scrollerheight1
		tdiv2_1.innerHTML=messages[j]
		if (j==messages.length-1)
			j=0
		else
			j++
	}
}
function startscroll1(){
	
	if (document.all){
		move31(first2_1)
		second2_1.style.top=scrollerheight1
	}
	else 
		if (document.layers){
			move11(document.main_1.document.first_1)
			document.main_1.document.second_1.top=scrollerheight1+3
			document.main_1.document.second_1.visibility='show'}
		}



document.write("<ilayer id='main_1' width=&{scrollerwidth1}; height=&{scrollerheight1};>");
document.write("<layer id='first_1' left=0 top=1 width=&{scrollerwidth1};>");

if (document.layers)
	document.write(messages[0])

document.write("</layer>");
document.write("<layer id='second_1' left=0 top=0 width=&{scrollerwidth1}; visibility=hide>");

if (document.layers)
	document.write(messages[1])

document.write("</layer>");
document.write("</ilayer>");


if (document.all){
	document.writeln('<span id="main2_1" style="position:relative;width:'+scrollerwidth1+';height:'
	+scrollerheight1+';overflow:hiden">')
	document.writeln('<div style="position:absolute;width:'+scrollerwidth1+';height:'
	+scrollerheight1+';clip:rect(0 '+scrollerwidth1+' '
	+scrollerheight1+' 0);left:0;top:0">')
	document.writeln('<div id="first2_1" style="position:absolute;width:'+scrollerwidth1+';left:0;top:1;">')
	document.write(messages[0])
	document.writeln('</div>')
	document.writeln('<div id="second2_1" style="position:absolute;width:'+scrollerwidth1+';left:0;top:0">')
	document.write(messages[1])
	document.writeln('</div>')
	document.writeln('</div>')
	document.writeln('</span>')
}
startscroll1()