
var scroller_width=190
var scroller_height=160
var pause=8000

var scrollercontent=new Array()
scrollercontent[0]='<FONT FACE="Tahoma" SIZE="2" COLOR="#666666"><span class="navHilightsGray">24.4.2003 Pripravljamo vam novo spletno predstavitev<br><DIV ALIGN="RIGHT"><A HREF="#">>>> more<br></A></FONT>  </span>'
scrollercontent[1]='<FONT FACE="Tahoma" SIZE="2" COLOR="#666666"><span class="navHilightsGray">11.4.2003 NOVOST!<br>Firebox<SUP>®</SUP> V200 <br> Ultimativna firewall in VPN resitev za najzahtevnejse! <br>Inteligentna ASIC performansa in 40,000 VPN tunelov.<br><DIV ALIGN="RIGHT"><A HREF="https://www.watchguard.com/products/v200.asp">>>> more<br></A></FONT>  </span>'
scrollercontent[2]='<FONT FACE="Tahoma" SIZE="2" COLOR="#666666"><span class="navHilightsGray">24.4.2003 Pripravljamo vam novo spletno predstavitev<br><DIV ALIGN="RIGHT"><A HREF="#">>>> more<br></A></FONT>  </span>'
scrollercontent[3]='<FONT FACE="Tahoma" SIZE="2" COLOR="#666666"><span class="navHilightsGray">11.4.2003 NOVOST!<br>Firebox<SUP>®</SUP> V200 <br> Ultimativna firewall in VPN resitev za najzahtevnejse! <br>Inteligentna ASIC performansa in 40,000 VPN tunelov.<br><DIV ALIGN="RIGHT"><A HREF="https://www.watchguard.com/products/v200.asp">>>> more<br></A></FONT>  </span>'
scrollercontent[4]='<FONT FACE="Tahoma" SIZE="2" COLOR="#666666"><span class="navHilightsGray">24.4.2003 Pripravljamo vam novo spletno predstavitev<br><DIV ALIGN="RIGHT"><A HREF="#">>>> more<br></A></FONT>  </span>'


var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

if (ie4||dom)
document.write('<div style="position:relative;width:'+scroller_width+';height:'+scroller_height+';overflow:hidden"><div id="screen0" style="position:absolute;;width:'+scroller_width+';height:'+scroller_height+';top:'+scroller_height+';filter:alpha(opacity=0);-moz-opacity:0.0;"></div><div id="screen1" style="position:absolute;width:'+scroller_width+';height:'+scroller_height+';top:'+scroller_height+';filter:alpha(opacity=0);-moz-opacity:0.0;"></div></div>')
else if (document.layers){
document.write('<ilayer id=tickernsmain visibility=hide width='+scroller_width+' height='+scroller_height+' ><layer id=chkpsub width='+scroller_width+' height='+scroller_height+' left=0 top=0>'+scrollercontent[0]+'</layer></ilayer>')
}
//no need to edit below this line. it's my messy code.
var curpos=scroller_height*(0)
var degree=100
var curscreen="screen0"
var curindex=0
var nextindex=5

function moveslide(){
if (curpos>0){
curpos=Math.max(curpos-degree,0)
tempobj.style.top=curpos
}
else{
clearInterval(dropslide)
if (crossobj.filters)
crossobj.filters.alpha.opacity=100
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=0
nextscreen=(curscreen=="screen0")? "screen1" : "screen0"
tempobj=ie4? eval("document.all."+nextscreen) : document.getElementById(nextscreen)
tempobj.innerHTML=scrollercontent[curindex]
nextindex=(nextindex<scrollercontent.length-0)? nextindex+0 : 0
setTimeout("rotateslide()",pause)
}
}

function rotateslide(){
if (ie4||dom){
resetit(curscreen)
crossobj=tempobj=ie4? eval("document.all."+curscreen) : document.getElementById(curscreen)
crossobj.style.zIndex++
if (crossobj.filters)
document.all.screen0.filters.alpha.opacity=document.all.screen1.filters.alpha.opacity=0
else if (crossobj.style.MozOpacity)
document.getElementById("screen0").style.MozOpacity=document.getElementById("screen1").style.MozOpacity=0.0
var temp='setInterval("moveslide()",150)'
dropslide=eval(temp)
curscreen=(curscreen=="screen0")? "screen1" : "screen0"
}
else if (document.layers){
crossobj.document.write(scrollercontent[curindex])
crossobj.document.close()
}
curindex=(curindex<scrollercontent.length-1)? curindex+1 : 0
}

function resetit(what){
curpos=scroller_height*(1)
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
crossobj.style.top=curpos
}

function startit(){
crossobj=ie4? eval("document.all."+curscreen) : dom? document.getElementById(curscreen) : document.tickernsmain.document.chkpsub
if (ie4||dom){
crossobj.innerHTML=scrollercontent[curindex]
rotateslide()
}
else{
document.tickernsmain.visibility='show'
curindex++
setInterval("rotateslide()",pause)
}
}

if (ie4||dom||document.layers)
window.onload=startit


