

img = new Array();
img[0] = "top_image_day.jpg";
img[1] = "top_image_night.jpg";

n = Math.floor(Math.random()*img.length);
m=n
function drawImg(){
	document.write("<a href='javascript:void(0)' onClick='changeImg();'><img src='images/"+img[n]+"' border='0' width=888 height=240 name='top' id='top' alt=''></a>");
}
function changeImg(){
	if(m<img.length-1){
		m++
	}else{
	m=0
	}
	document.getElementById("top").src ="images/"+img[m]
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
