var mouseOverLayer=0;
var layersmax=14;
function hideLayer(layer) {
	if (mouseOverLayer==0) {
		if (document.layers)
			eval('document.layers.homer'+layer+'.visibility="hide";');	
		else if(document.getElementById)
			eval('document.getElementById("homer'+layer+'").style.visibility="hidden";');
		else if(document.all) {
		    eval('document.all.homer'+layer+'.style.visibility="hidden";');	
		}	
		showDefaultLayer();
	}
}		

var timerID;
var last;
last='img01';

//first value tells to turn the layer on or off, second value is the number of the layer
function showLayer(show,layer) {
	if (show) {
		if (document.layers) {
			//for (m=0; m<=layersmax; m++)
				//eval('document.layers.homer'+m+'.visibility="hide";');
			eval('document.layers.homer'+layer+'.visibility="show";');	
		}
		
		else if(document.getElementById && !document.all){
			for (m=0; m<=layersmax; m++)
				eval('document.getElementById("homer'+m+'").style.visibility="hidden";');
			eval('document.getElementById("homer'+layer+'").style.visibility="visible";');	
		}		
		else if(document.all){
			for (m=0; m<=layersmax; m++)
				eval('document.all.homer'+m+'.style.visibility="hidden";');
			eval('document.all.homer'+layer+'.style.visibility="visible";');	
		}	
	}
	clearTimeout(timerID);	
	timerID = setTimeout("hideLayer("+layer+");", 10000);		
}		

function showDefaultLayer() {
	alloff();
	mouseOverLayer = 0;
	if(document.layers) {
		for (m=1; m<=layersmax; m++)
			eval('document.layers.homer'+m+'.visibility="hide";');
        //document.layers.homer0.visibility='show';
	}	
	else if(document.getElementById && !document.all){	
		for (m=1; m<=layersmax; m++)
				eval('document.getElementById("homer'+m+'").style.visibility="hidden";');
		document.getElementById("homer0").style.visibility='visible';
	}
	else if(document.all) { 
			for (m=1; m<=layersmax; m++)
				eval('document.all.homer'+m+'.style.visibility="hidden";');
			document.all.homer0.style.visibility='visible';
	}
}


function stayVis()
{document.all.homer1.style.visibility='visible';}

if (document.all) {
	//alert("IE"); 
 	openHomer0 = '<table id="homer0" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: visible">';
	openHomer1 = '<table id="homer1" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(1)'"+',1)">';
	openHomer2 = '<table id="homer2" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(2)'"+',1)">';
	openHomer3 = '<table id="homer3" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(3)'"+',1)">';
	openHomer4 = '<table id="homer4" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(4)'"+',1)">';
	openHomer5 = '<table id="homer5" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(5)'"+',1)">';
	openHomer6 = '<table id="homer6" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(6)'"+',1)">';
	openHomer7 = '<table id="homer7" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(7)'"+',1)">';
	openHomer8 = '<table id="homer8" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(8)'"+',1)">';
	openHomer9 = '<table id="homer9" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(9)'"+',1)">';
	openHomer10 = '<table id="homer10" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(10)'"+',1)">';
	openHomer11 = '<table id="homer11" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(11)'"+',1)">';
	openHomer12 = '<table id="homer12" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(12)'"+',1)">';
	openHomer13 = '<table id="homer13" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(13)'"+',1)">';
	openHomer14 = '<table id="homer14" style="position:absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(14)'"+',1)">';
	closeHomer = '</table>' 
} else if (document.getElementById && !document.all) {
	//alert("Netscape 6");
	openHomer0 = '<table id="homer0" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: visible">';
	openHomer1 = '<table id="homer1" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(1)'"+',500)">';
	openHomer2 = '<table id="homer2" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(2)'"+',500)">';
	openHomer3 = '<table id="homer3" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(3)'"+',500)">';
	openHomer4 = '<table id="homer4" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(4)'"+',500)">';
	openHomer5 = '<table id="homer5" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(5)'"+',500)">';
	openHomer6 = '<table id="homer6" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(6)'"+',500)">';
	openHomer7 = '<table id="homer7" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(7)'"+',500)">';
	openHomer8 = '<table id="homer8" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(8)'"+',500)">';
	openHomer9 = '<table id="homer9" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(9)'"+',500)">';
	openHomer10 = '<table id="homer10" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(10)'"+',500)">';
	openHomer11 = '<table id="homer11" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(11)'"+',500)">';
	openHomer12 = '<table id="homer12" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(12)'"+',500)">';
	openHomer13 = '<table id="homer13" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(13)'"+',500)">';
	openHomer14 = '<table id="homer14" style="position: absolute; left:0px; top:0px; width:168px; height:319px; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(14)'"+',500)">';
	closeHomer = '</table>'
} else if (document.layers) {
	//alert("Netscape 4 or 5");
	openHomer0 = '';
	openHomer1 = '';
	openHomer2 = '';
	openHomer3 = '';
	openHomer4 = '';
	openHomer5 = '';
	openHomer6 = '';
	openHomer7 = '';
	openHomer8 = '';
	openHomer9 = '';
	openHomer10 = '';
	openHomer11 = '';
	openHomer12 = '';
	openHomer13 = '';
	openHomer14 = '';
	closeHomer = '</table></table></layer>'
} else {
	//alert("Other");
	openHomer0 = '<div id="homer0" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: visible">';
	openHomer1 = '<div id="homer1" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(1)'"+',500)">';
	openHomer2 = '<div id="homer2" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(2)'"+',500)">';
	openHomer3 = '<div id="homer3" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(3)'"+',500)">';
	openHomer4 = '<div id="homer4" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(4)'"+',500)">';
	openHomer5 = '<div id="homer5" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(5)'"+',500)">';
	openHomer6 = '<div id="homer6" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(6)'"+',500)">';
	openHomer7 = '<div id="homer7" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(7)'"+',500)">';
	openHomer8 = '<div id="homer8" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(8)'"+',500)">';
	openHomer9 = '<div id="homer9" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(9)'"+',500)">';
	openHomer10 = '<div id="homer10" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(10)'"+',500)">';
	openHomer11 = '<div id="homer11" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(11)'"+',500)">';
	openHomer12 = '<div id="homer12" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(12)'"+',500)">';
	openHomer13 = '<div id="homer13" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(13)'"+',500)">';
	openHomer14 = '<div id="homer14" style="position: absolute; left:0px; top:0px; width:168; height:319; visibility: hidden" onMouseOver="mouseOverLayer=1;" onMouseOut="mouseOverLayer=0;timerID=setTimeout('+"'hideLayer(14)'"+',500)">';
	closeHomer = '</div>'
}