
//Test Scoller Script

//scroller width
var swidth=125

//scroller height
var sheight=100


//scroller's speed;
var sspeed=1

var wholemessage=''

//text: change to your own

wholemessage='<div align="center"><font face="comic sans ms" size="1" color="#ffffff"><b>Perfection PC</b><BR>Hot Deals!<BR><BR>AMD 2400MHz Complete System:<BR>2400MHz CPU<BR>256MB PC2700 DDR RAM<BR>80GB Hard Drive<BR>64MB GeForce Video<BR>56x CDROM<BR>17" AOpen Monitor<BR>Keyboard, Mouse, Windows XP Home<BR>One Year PPC Warranty<BR>Only <font color="red" size=2>$825.00</font><BR><BR> Samsung 80GB Hard Drive<BR>3 Year Warranty<BR>Only <font color=red size=2>$95.00</font></div></font>'

function start(){
if (document.all) return
if (document.getElementById){
document.getElementById("slider").style.visibility="show"
ns6marquee(document.getElementById('slider'))
}
else if(document.layers){
document.slider1.visibility="show"
ns4marquee(document.slider1.document.slider2)
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
ns4layer.document.write(wholemessage)
ns4layer.document.close()
sizeup=ns4layer.document.height
ns4layer.top-=sizeup
ns4slide()
}
function ns4slide(){
if (ns4layer.top>=sizeup*(-1)){
ns4layer.top-=sspeed
setTimeout("ns4slide()",100)
}
else{
ns4layer.top=sheight
ns4slide()
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
ns6div.innerHTML=wholemessage
ns6div.style.top=sheight
sizeup=sheight
ns6slide()
}
function ns6slide(){
if (parseInt(ns6div.style.top)>=sizeup*(-1)){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6slide()",100)
}
else{
ns6div.style.top=sheight
ns6slide()
}
}