var delay=6000
var curindex=0
var totalcontent=0
function get_total(){
while (document.getElementById("newsticker_div"+totalcontent))
totalcontent++
}
function contract_all(){
for (y=0;y<totalcontent;y++){
document.getElementById("newsticker_div"+y).style.display="none"
}
}
function expand_one(which){
contract_all()
document.getElementById("newsticker_div"+which).style.display=""
}
function rotate_content(){
get_total()
contract_all()
expand_one(curindex)
curindex=(curindex<totalcontent-1)? curindex+1: 0
setTimeout("rotate_content()",delay)
}
window.onload=rotate_content
