
var delay=3000

var ie4=document.all

var curindex_latest=0
var totallatest=0

function get_total_latest(){
if (ie4){
while (eval("document.all.latestcontent"+totallatest))
totallatest++
}
else{
while (document.getElementById("latestcontent"+totallatest))
totallatest++
}
}

function contract_all_latest(){
for (y=0;y<totallatest;y++){
if (ie4)
eval("document.all.latestcontent"+y).style.display="none"
else
document.getElementById("latestcontent"+y).style.display="none"
}
}

function expand_one_latest(which){
contract_all_latest()
if (ie4)
eval("document.all.latestcontent"+which).style.display=""
else
document.getElementById("latestcontent"+which).style.display=""
}

function rotate_content_latest(){
get_total_latest()
contract_all_latest()
expand_one_latest(curindex_latest)
curindex_latest=(curindex_latest<totallatest-1)? curindex_latest+1: 0
setTimeout("rotate_content_latest()",delay)
}



