//List of transitional effects to be randomly applied to billboardd:
//"GradientWipe(GradientSize=1.0 Duration=0.7)", "Inset", "Iris", "Pixelate(MaxSquare=5 enabled=false)", "RadialWipe", "RandomBars", "Slide(slideStyle='push'", "Spiral", "Stretch", "Strips", "Wheel", "ZigZag"
var billboarddeffects=["Strips"]

//var billboarddeffects=["Iris"] //Uncomment this line and input one of the effects above (ie: "Iris") for single effect.

var tickspeedd=10000 //ticker speed in miliseconds (2000=2 seconds)
var effectdurationn=500 //Transitional effect duration in miliseconds
var hidecontent_from_legacyy=1 //Should content be hidden in legacy browsers- IE4/NS4 (0=no, 1=yes).

var filteridd=Math.floor(Math.random()*billboarddeffects.length)

document.write('<style type="text/css">\n')
if (document.getElementById)
document.write('.billcontentt{display:none;\n'+'filter:progid:DXImageTransform.Microsoft.'+billboarddeffects[filteridd]+'}\n')
else if (hidecontent_from_legacyy)
document.write('#contentwrapperr{display:none;}')
document.write('</style>\n')

var selectedDivv=0
var totalDivss=0

function contractboardd(){
var incc=0
while (document.getElementById("billboardd"+incc)){
document.getElementById("billboardd"+incc).style.display="none"
incc++
}
}

function expandboardd(){
var selectedDivvObj=document.getElementById("billboardd"+selectedDivv)
contractboardd()
if (selectedDivvObj.filters){
if (billboarddeffects.length>1){
filteridd=Math.floor(Math.random()*billboarddeffects.length)
selectedDivvObj.style.filter="progid:DXImageTransform.Microsoft."+billboarddeffects[filteridd]
}
selectedDivvObj.filters[0].duration=effectdurationn/1000
selectedDivvObj.filters[0].Apply()
}
selectedDivvObj.style.display="block"
if (selectedDivvObj.filters)
selectedDivvObj.filters[0].Play()
selectedDivv=(selectedDivv<totalDivss-1)? selectedDivv+1 : 0
setTimeout("expandboardd()",tickspeedd)
}

function startbilll(){
while (document.getElementById("billboardd"+totalDivss)!=null)
totalDivss++
if (document.getElementById("billboardd0").filters)
tickspeedd+=effectdurationn
expandboardd()
}

if (window.addEventListener)
window.addEventListener("load", startbilll, false)
else if (window.attachEvent)
window.attachEvent("onload", startbilll)
else if (document.getElementById)
window.onload=startbilll
