//configure the below five variables to change the style of the scroller
var scrollerwidth=768
var scrollerheight=140
var scrollerbgcolor='#ffffFF'
//set below to '' if you don't wish to use a background image
var scrollerbackground=''

//configure the below variable to change the contents of the scroller
var messages=new Array()
messages[0]=""
messages[1]=""
messages[2]=""
messages[3]=""
messages[0]=messages[0] + '<DIV class=TabA><UL><LI><a href=http://price.sanhaostreet.com/Price/1/5/1152/174347/Price.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/5/30974/20066212011582_s.jpg width=120 height=90 class=img1 /><br>七彩虹(Colorful)<br />天行7600GS GD2 CF白金版</a></LI><LI><a href=http://product.sanhaostreet.com/Product/1/5/2580/42530/Index.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/5/43618/2007281630292_s.jpg width=120 height=90 class=img1 /><br>讯景(XFX)<br />PV-T73G-UAC5</a></LI><LI><a href=http://price.sanhaostreet.com/Price/1/5/3008/173379/Price.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/5/34862/200683149291_s.JPG width=120 class=img1 height=90></a>影驰 7600GE<br>骨灰玩家版</LI><LI><a href=http://product.sanhaostreet.com/Product/1/5/1362/42256/Index.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/5/42256/200612201035162_s.jpg class=img1 width=120 height=90>翔升(ASZ)<br />权杖7600 OF 终结版</a></LI><LI><a href=http://price.sanhaostreet.com/Price/1/5/27/174188/Price.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/5/42104/200612121440161_s.jpg class=img1 width=120 height=90><br>丽台(WinFast)<br />PX7950GT TDH</a></LI><LI><a href=http://price.sanhaostreet.com/Price/1/5/1826/170928/Price.shtml target=_blank><img class=img1 src=http://images.sanhaostreet.com/product//1/5/41682/main200612216122517440.jpg width=120 height=90><br>蓝宝石<br />X1650XT白金版</a></LI></UL></DIV>'
messages[1]=messages[1] + '<DIV class=TabA><UL><LI><a href=http://price.sanhaostreet.com/Price/1/3/1523/175839/Price.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/3/29519/2006622947291_s.jpg width=120 height=90 class=img1 /><br>金邦(Geil)<br />千禧1G DDR2-667</a></LI><LI><a href=http://product.sanhaostreet.com/Product/1/3/1051/42661/Index.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/3/42661/200612301525311_s.JPG width=120 height=90 class=img1 /><br>金士顿(Kingston)<br />1GB DRR2 1000L</a></LI><LI><a href=http://product.sanhaostreet.com/Product/1/3/4546/42655/Index.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/3/42655/200612301134211_s.JPG width=120 class=img1 height=90><br>博帝(Patriot)<br />1GB 667</a></LI><LI><a href=http://product.sanhaostreet.com/Product/1/3/3205/32180/Index.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/3/42702/20061231113301_s.JPG class=img1 width=120 height=90><br>黑金刚(KINGBOX)<br />1GB 1066悍将版</a></LI><LI><a href=http://product.sanhaostreet.com/Product/1/1/1175/38858/Index.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/3/32180/20066221449521_s.jpg class=img1 width=120 height=90><br>超胜 1G<br />DDRII667</a></LI><LI><a href=http://price.sanhaostreet.com/Price/1/3/2212/175859/Price.shtml target=_blank><img class=img1 src=http://images.sanhaostreet.com/product/1/3/37839/20061281616221_s.JPG width=120 height=90></a><br>威刚 万紫千红<br>1GB DDRII667</LI></UL></DIV>'
messages[2]=messages[2] + '<DIV class=TabA><UL><LI><a href=http://price.sanhaostreet.com/Price/1/1/1296/173525/Price.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/1/33758/2006629203511_s.jpg width=120 height=90 class=img1 /><br>七彩虹(Colorful)<br>C.NF5-D Ver1.4</a></LI><LI><a href=http://product.sanhaostreet.com/Product/1/1/7/33091/Price.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/1/33091/20069291128322_s.jpg width=120 height=90 class=img1 /><br>硕泰克(Soltek)<br />SL-K890M2-RL</a></LI><LI><a href=http://price.sanhaostreet.com/Price/1/1/1572/137329/Price.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/1/39100/2006927165412648_s.jpg width=120 class=img1 height=90><br>映泰(biostar)<br />TForce 550</a></LI><LI><a href=http://price.sanhaostreet.com/Price/1/1/3283/175440/Price.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/1/39937/200610241450571_s.jpg class=img1 width=120 height=90><br>致铭<br />ZM-PN65-G</a></LI><LI><a href=http://product.sanhaostreet.com/Product/1/1/1175/38858/Index.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/1/38858/20069201743341_s.jpg class=img1 width=120 height=90><br>盈通(YINGTON)<br />CI965G</a></LI><LI><a href=http://price.sanhaostreet.com/Price/1/1/4407/172960/Price.shtml target=_blank><img class=img1 src=http://images.sanhaostreet.com/product/1/1/39126/20069281555413_s.jpg width=120 height=90><br>杰微<br />NF550A</a></LI></UL></DIV>'
messages[3]=messages[3] + '<DIV class=TabA><UL><LI><a href=http://price.sanhaostreet.com/Price/1/302/3581/174519/Price.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/302/35545/20067192050371_s.jpg width=120 height=90 class=img1 /><br>LG<br>L194WT</a></LI><LI><a href=http://price.sanhaostreet.com/Price/1/302/3596/175717/Price.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/302/42179/20061216112231_s.jpg width=120 height=90 class=img1 /><br>冠捷(AOC)<br />198PW</a></LI><LI><a href=http://price.sanhaostreet.com/Price/1/302/3590/175730/Price.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/302/30237/200668181341_s.jpg width=120 class=img1 height=90><br>三星(Samsung)<br />205BW</a></LI><LI><a href=http://product.sanhaostreet.com/Product/1/302/3707/37410/Price.shtml target=_blank><img src=http://images.sanhaostreet.com/product/1/302/37410/20068161517341_s.jpg class=img1 width=120 height=90><br>玛雅(MAYA)<br>大白SNOW</a></LI><LI><a href=http://product.sanhaostreet.com/Product/1/302/3585/41564/Index.shtml target=_blank><img class=img1 src=http://images.sanhaostreet.com/product//1/302/41564/main2006113017481196518.jpg width=120 height=90><br>美格(MAG)<br>WB22D</a></LI><LI><a href=http://price.sanhaostreet.com/Price/1/302/3624/175632/price.shtml target=_blank><img class=img1 src=http://images.sanhaostreet.com/product/1/302/37408/2006816155581_s.jpg width=120 height=90><br>GreatWall<br />A201</a></LI></UL></DIV>'

///////Do not edit pass this line///////////////////////
if (messages.length>1)
i=2
else
i=0

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=5){
tlayer.top=0
setTimeout("move1(tlayer)",2000)
setTimeout("move2(document.main.document.second)",2000)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5
setTimeout("move1(tlayer)",100)
}
else{
tlayer.top=scrollerheight
tlayer.document.write(messages[i])
tlayer.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0
setTimeout("move2(tlayer2)",2000)
setTimeout("move1(document.main.document.first)",2000)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5
setTimeout("move2(tlayer2)",100)
}
else{
tlayer2.top=scrollerheight
tlayer2.document.write(messages[i])
tlayer2.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
tdiv.style.pixelTop=0
setTimeout("move3(tdiv)",2000)
setTimeout("move4(second2)",2000)

return
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
tdiv.style.pixelTop-=5
setTimeout("move3(tdiv)",100)
}
else{
tdiv.style.pixelTop=scrollerheight
tdiv.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){
tdiv2.style.pixelTop=0
setTimeout("move4(tdiv2)",2000)
setTimeout("move3(first2)",2000)
return
}
if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
tdiv2.style.pixelTop-=5
setTimeout("move4(second2)",100)
}
else{
tdiv2.style.pixelTop=scrollerheight
tdiv2.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function startscroll(){
if (document.all){
move3(first2)
second2.style.top=scrollerheight
second2.style.visibility='visible'
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.top=scrollerheight+5
document.main.document.second.visibility='show'
}
}

function createLayer()
{
if (document.layers) {
document.writeln('<ilayer id="main" width='+scrollerwidth+'; height='+scrollerheight+'; bgColor='+scrollerbgcolor+'; background='+scrollerbackground+'; visibility=hide>')
document.writeln('<layer id="first" left=0 top=1 width=' +scrollerwidth+ ' 200>')
document.write(messages[0])
document.writeln('</layer>')

document.writeln('<layer id="second" left=0 top=0 width='+ scrollerwidth +'; visibility=hide>')
document.write(messages[1])
document.writeln('</layer>')
document.writeln('</ilayer>')
}
else if (document.all){
document.writeln('<span id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">')
document.write(messages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0;visibility:hidden">')
document.write(messages[1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</span>')
}
}