<!--
/* DHTML Imag Swap by Fr. Simon Rundell, November 2006

*/

var pictotal=75;
var change_delay=1; //seconds
var img_height=75;
var img_width=75;



function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function replace_img() {

do_change=1 + (Math.floor(Math.random()*3));

new_img= 1 + (Math.floor(Math.random()* pictotal));

new_img2= 1 + (Math.floor(Math.random()* pictotal));

new_src="/uploads/media/menu" + new_img + ".gif";

new_src2="/uploads/media/menu" + new_img2 + ".gif";

// disable
do_change=3;

if (do_change==1) {

			document.images.poster.src=new_src;
			document.images.poster.height=img_height;
			document.images.poster.width=img_width;
		};


if (do_change==2) {
			document.images.poster2.src=new_src2;
			document.images.poster2.height=img_height;
			document.images.poster2.width=img_width;
}

if (do_change==3) {
			// do nothing
}
// alert("Now changing to image " + new_src);

// myTimer=window.setTimeout('replace_img()', 1000 * change_delay); 


}



//-->
