// JavaScript Document

var ie5= (document.getElementById && document.all);
var ns6= (document.getElementById && !document.all);
var fullpic = null;
var menuShown = false;

function changeBG(obj, bgColor) {
   	if(ie5 || ns6){
	    	obj.style.backgroundColor = bgColor;
			obj.style.cursor = "hand";
	}
}
function showMenu()
{
	if(!menuShown) {
		document.getElementById('menu').style.display = "block";
		//document.getElementById('menu').style.left = parseInt(document.getElementById('menu').style.left) - 100 + "px";
		menuShown = true;
	} else {
		document.getElementById('menu').style.display = "none";
		//document.getElementById('menu').style.left = parseInt(document.getElementById('menu').style.left) + 100 + "px";
		menuShown = false;
	}
}
function swapVisible(id1, id2)
{
	document.getElementById(id2).style.visibility = "hidden";
	document.getElementById(id1).style.visibility = "visible";
}
function openWin(url, title, x, y)
{
	 closewin();
	 if (fullpic == null || fullpic.closed)
	 { 
	     fullpic = window.open(url,title, 
	        "toolbar=no,location=no,directories=no,status=no,"  
	    	 + "menubar=no,scrollbars=no,resizable=yes,"  
				 + "width=" + x + ",height=" + y + ""); 
     } 
} 
 
function closewin()
{ 
	   if (fullpic != null && !fullpic.closed) 
		     fullpic.close(); 
}
 