<div align="center">
<a target="_blank" href="news.php" id="links">
<img name="banners" src="image/img_1.png">
</a>
</div>
<script type="text/javascript">
var URL=new Array("news.php","script.php","useful_site.php","statistics.php")
var image_ID=new Array("image/img_1.png","image/img_2.png","image/img_3.png",
"image/img_4.png")
var banner=3;
var last_banner=URL.length-1;
var pause=2000;
var flag=0;
function Rotate(image_num) {
if (banner==last_banner) banner=0;
else banner++;
document.images[image_num].src=image_ID[banner];
document.getElementById("links").href=URL[banner];
}
function Start_Rotate() {
if (flag==0) {Timeout=window.setInterval('Rotate("banners")',pause); flag=1;}
}
window.onfocus = function(){ Start_Rotate(); }
window.onblur = function(){ window.clearInterval(Timeout); flag=0; }
if (flag==0) { Start_Rotate(); }
</script>