/**************************** variables *************************************/
//These are the global variables.

var layerRef="";
var styleSwitch="";
var isNav, isIE;


/**************************** init() *************************************/
//This function tells the browser how to write parts of other functions (on account of how they say it differently - hurrah).

function init()
{	
       if (navigator.appName == 			"Netscape"){layerStyleRef="layer.";layerRef="document.layers";styleSwitch="";isNav = true}
	else{layerStyleRef="layer.style.";layerRef="document.all";styleSwitch=".style";isIE = true}	
}


/**************************** show_layers() *************************************/
//This function shows the layer whose name is passed to it.

function show_layers(layerName)
{		
	document.getElementById(layerName).style.visibility = "visible";
}


/**************************** hide_layers() *************************************/
//This function hides the layer whose name is passed to it.

function hide_layers(layerName)
{	
	document.getElementById(layerName).style.visibility = "hidden";
}


/**************************** immix(pic) *************************************/
//This calls the hide and show layer functions (below) in each menu rollover instance.

function immix(pic)
	{
		show_layers('image'+pic);
		for (var i=1;i<=9;i++){
			if (i!=pic) hide_layers('image'+i)}
	}
	

/**************************** immiy(pic) *************************************/
//This calls the hide and show layer functions (below) in each menu rollover instance.

function immiy(pic)
	{
		show_layers('image'+pic);
		for (var i=1;i<=5;i++){
			if (i!=pic) hide_layers('image'+i)}
	}
	

/*********************************************************/
/* Open Window */

function openWin(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


/*********************************************************/
/* Close Window */
function closeWin() { //v2.0
  window.close();
}