//Scrolling news that appears on home page only
var swidth=220
var sheight=150
var maxheight = 220
var sspeed=3
function start(){
maxheight+=(linum*20)
if (document.all){
ieslider1.style.top=sheight
iemarquee(ieslider1)
}
else if (document.layers){
document.ns4slider.document.ns4slider1.top=sheight
document.ns4slider.document.ns4slider1.visibility='show'
ns4marquee(document.ns4slider.document.ns4slider1)
}
else if (document.getElementById&&!document.all){
document.getElementById('ns6slider1').style.top=sheight
ns6marquee(document.getElementById('ns6slider1'))
}
}
function iemarquee(whichdiv){
  iediv=eval(whichdiv)
  
  //if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
  //  iediv.style.pixelTop=0
  //  setTimeout("iemarquee(iediv)",100)
 // }
  if (iediv.style.pixelTop>=maxheight*-1){
    iediv.style.pixelTop-=sspeed
    setTimeout("iemarquee(iediv)",100)
  }
  else{
    iediv.style.pixelTop=sheight
    setTimeout("iemarquee(iediv)",100)
    //iediv.innerHTML=singletext[ilength]
    //if (ilength==singletext.length-1)
    //ilength=0
    //else
    //ilength++
  }
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
if (ns4layer.top>0&&ns4layer.top<=sspeed){
ns4layer.top=0
setTimeout("ns4marquee(ns4layer)",100)
}
if (ns4layer.top>=sheight*-1){
ns4layer.top-=sspeed
setTimeout("ns4marquee(ns4layer)",100)
}
else{
ns4layer.top=sheight
//ns4layer.document.write(singletext[ilength])
//ns4layer.document.close()
//if (ilength==singletext.length-1)
//ilength=0
//else
//ilength++
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
ns6div.style.top=0
setTimeout("ns6marquee(ns6div)",100)
}
if (parseInt(ns6div.style.top)>=sheight*-1){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6marquee(ns6div)",100)
}
else{
ns6div.style.top=sheight
//ns6div.innerHTML=singletext[ilength]
//if (ilength==singletext.length-1)
//ilength=0
//else
//ilength++
}
}