
//List of transitional effects to be randomly applied to billboardacro:
var billboardacroeffectsacro=["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 billboardacroeffectsacro=["Iris"] //Uncomment this line and input one of the effects above (ie: "Iris") for single effect.

var tickspeedacro=2000 //ticker speed in miliseconds (2000=2 seconds)
var effectdurationacro=500 //Transitional effect duration in miliseconds
var hidecontent_from_legacyacro=1 //Should content be hidden in legacy browsers- IE4/NS4 (0=no, 1=yes).

var filteridacro=Math.floor(Math.random()*billboardacroeffectsacro.length)

document.write('<style type="text/css">\n')
if (document.getElementById)
document.write('.billcontentacro{display:none;\n'+'filter:progid:DXImageTransform.Microsoft.'+billboardacroeffectsacro[filteridacro]+'}\n')
else if (hidecontent_from_legacyacro)
document.write('#contentwrapperacro{display:none;}')
document.write('</style>\n')

var selectedDivAcro=0
var totalDivsAcro=0

function contractboardAcro(){
var inc=0
while (document.getElementById("billboardacro"+inc)){
document.getElementById("billboardacro"+inc).style.display="none"
inc++
}
}

function expandboardAcro(){
var selectedDivAcroObj=document.getElementById("billboardacro"+selectedDivAcro)
contractboardAcro()
if (selectedDivAcroObj.filters){
if (billboardacroeffectsacro.length>1){
filteridacro=Math.floor(Math.random()*billboardacroeffectsacro.length)
selectedDivAcroObj.style.filter="progid:DXImageTransform.Microsoft."+billboardacroeffectsacro[filteridacro]
}
selectedDivAcroObj.filters[0].duration=effectdurationacro/1000
selectedDivAcroObj.filters[0].Apply()
}
selectedDivAcroObj.style.display="block"
if (selectedDivAcroObj.filters)
selectedDivAcroObj.filters[0].Play()
selectedDivAcro=(selectedDivAcro<totalDivsAcro-1)? selectedDivAcro+1 : 0
setTimeout("expandboardAcro()",tickspeedacro)
}

function startbillAcro(){
while (document.getElementById("billboardacro"+totalDivsAcro)!=null)
totalDivsAcro++
if (document.getElementById("billboardacro0").filters)
tickspeedacro+=effectdurationacro
expandboardAcro()
}

if (window.addEventListener)
window.addEventListener("load", startbillAcro, false)
else if (window.attachEvent)
window.attachEvent("onload", startbillAcro)
else if (document.getElementById)
window.onload=startbillAcro
