
var over = 'no';
var whichOne = ' ';

//DHTML menu activator
// turns previous layer off if any and then turns current layer on (visible)
function on(pic)
{		
	over = 'yes';
	
		if (whichOne != ' ')  
		{			
			eval('document.getElementById("' + whichOne + 'Layer").style.visibility = "hidden"');
			eval('document.getElementById("' + whichOne + 'Link").style.backgroundPosition = "0 0"');
		}		
		eval('document.getElementById("' + pic + 'Layer").style.visibility = "visible"');		
		eval('document.getElementById("' + pic + 'Link").style.backgroundPosition = "-486px 0px"');
	
	whichOne = pic;
}

function overChecker(pic)
{	
	whichOne = pic;
	over = 'no';
	setTimeout('off();',100);
}

function off()
{
	if (over == 'no')  
	{		
			eval('document.getElementById("' + whichOne + 'Layer").style.visibility = "hidden"');
			eval('document.getElementById("' + whichOne + 'Link").style.backgroundPosition = "0 0"');
	}
}

