var newWindow = null

function popup(pic)  {
        if (!newWindow || newWindow.closed) {
            newWindow = window.open(pic,"","top=0,left=28,height=400,width=640, scrollbars=YES, resize=YES")
        }else { // window's already open; bring to front
        	newWindow.focus()
        	newWindow.location = pic;
        }
}

function popupDownload()  {
        if (!newWindow || newWindow.closed) {
            newWindow = window.open("download_pop.html","","top=0,left=28,height=400,width=500, scrollbars=YES")
        }else { // window's already open; bring to front
        	newWindow.focus()
        	newWindow.location = "download_pop.html";
        }
}

if ((navigator.userAgent.substring(0,9) == "Mozilla/3") ||
    (navigator.userAgent.substring(0,9) == "Mozilla/4"))

        {
		home_off = new Image();
		home_off.src = "images/home_off.gif";
        home_on = new Image();
	    home_on.src = "images/home_on.gif";	
		
		view_credits_off = new Image();
		view_credits_off.src = "images/view_credits_off.gif";
        view_credits_on = new Image();
	    view_credits_on.src = "images/view_credits_on.gif";	
		
		about_off = new Image();
		about_off.src = "images/about_off.gif";
        about_on = new Image();
	    about_on.src = "images/about_on.gif";	
		
		contact_off = new Image();
		contact_off.src = "images/contact_off.gif";
        contact_on = new Image();
	    contact_on.src = "images/contact_on.gif";	
	    }
       
function mouseOn(imgName)
        {
        if ((navigator.userAgent.substring(0,9) == "Mozilla/3") ||
            (navigator.userAgent.substring(0,9) == "Mozilla/4"))
                {
		document[imgName].src = eval(imgName + "_on.src");
	        }
        }
          
function mouseOff(imgName)
        {
        if ((navigator.userAgent.substring(0,9) == "Mozilla/3") ||
            (navigator.userAgent.substring(0,9) == "Mozilla/4"))
                {   
		document[imgName].src = eval(imgName + "_off.src");
       		}
        }