var countDownInterval=300;
var c_reloadwidth=200;
var countDownTime=countDownInterval+1;

function countDown(){
	countDownTime--;
	if (countDownTime<=0){
		countDownTime=countDownInterval;
		clearTimeout(counter);
		window.location.reload();
		return;
	}
	
	if (document.all) document.all.countDownText.innerText = countDownTime+" "; else if (document.getElementById) document.getElementById("countDownText").innerHTML=countDownTime+" "; else if (document.layers) {
		document.c_reload.document.c_reload2.document.write('<div align="center">Next <a class="link2" href="javascript:window.location.reload()">refresh</a> in <b id="countDownText">'+countDownTime+' </b> seconds</div>');
		document.c_reload.document.c_reload2.document.close();
	}
	counter=setTimeout("countDown()", 1000);
}

function startit(){
	if (document.all||document.getElementById)
	document.write('<div align="center">Next <a class="link2" href="javascript:window.location.reload()">refresh</a> in <b id="countDownText">'+countDownTime+' </b> seconds</div>');
	countDown();
}

if (document.all||document.getElementById) startit(); else window.onload=startit;