
var associateseffects=["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 associateseffects=["Iris"] //Uncomment this line and input one of the effects above (ie: "Iris") for single effect.

var tickspeed=2000 
var effectduration=500 
var hidecontent_from_legacy=1 

var filterid=Math.floor(Math.random()*associateseffects.length)

document.write('<style type="text/css">\n')
if (document.getElementById)
document.write('.billcontent{display:none;\n'+'filter:progid:DXImageTransform.Microsoft.'+associateseffects[filterid]+'}\n')
else if (hidecontent_from_legacy)
document.write('#contentwrapper{display:none;}')
document.write('</style>\n')

var selectedDiv=0
var totalDivs=0

function contractboard1(){
var inc=0
while (document.getElementById("associates"+inc)){
document.getElementById("associates"+inc).style.display="none"
inc++
}
}

function expandboard1(){
var selectedDivObj=document.getElementById("associates"+selectedDiv)
contractboard1()
if (selectedDivObj.filters){
if (associateseffects.length>1){
filterid=Math.floor(Math.random()*associateseffects.length)
selectedDivObj.style.filter="progid:DXImageTransform.Microsoft."+associateseffects[filterid]
}
selectedDivObj.filters[0].duration=effectduration/1000
selectedDivObj.filters[0].Apply()
}
selectedDivObj.style.display="block"
if (selectedDivObj.filters)
selectedDivObj.filters[0].Play()
selectedDiv=(selectedDiv<totalDivs-1)? selectedDiv+1 : 0
setTimeout("expandboard1()",tickspeed)
}

function startbill1(){
while (document.getElementById("associates"+totalDivs)!=null)
totalDivs++
if (document.getElementById("associates0").filters)
tickspeed+=effectduration
expandboard1()
}

if (window.addEventListener)
window.addEventListener("load", startbill1, false)
else if (window.attachEvent)
window.attachEvent("onload", startbill1)
else if (document.getElementById)
window.onload=startbill1
