
swappool.counter = 1;

function swappool(target) 
{ 
swappool.counter++;
if (swappool.counter > 30) swappool.counter=1;
el=document.getElementById(target);
el.src='poolimage.php?'+swappool.counter;

setTimeout("swappool('"+target+"')",8000) ;
}


(function() {
 

 	if (window.addEventListener) window.addEventListener("load", init, false);
    else if (window.attachEvent) window.attachEvent("onload", init);

    // Define event handlers for any forms and form elements that need them.
    function init() {
		pool=document.getElementById("PoolImage");
		if (pool != null){

			t=setTimeout("swappool('PoolImage')",8000) ;
		}		
	}
})();

