var currentClip;
window.onload = function () {
  n = document.f["f[count_logo]"].value;
	n = Math.ceil(Math.random( ) * (n));
	document.getElementById("cont_right_"+n).style.display = "block"; 
	currentClip = document.getElementById("cont_right_"+n);
	intervalID = window.setInterval(showBox, 5000);
}
function showBox() {
	currentClip.style.display = "none";
	var n=25;
	n = Math.ceil(Math.random( ) * (n));
	document.getElementById("cont_right_"+n).style.display = "block";
	currentClip = document.getElementById("cont_right_"+n);
}
