function LoadBigImage(ImagePath)
{
	if (document.images)
	{
		with (document.images)
		{
			for (i = 0; i < length; i++)
			{
				if (document.images[i].name == "imagegroot")
					document.images[i].src = ImagePath;			            
			}         
		}	
	}
}

function ShowLayer(id, action){
	if (navigator.userAgent.indexOf("Opera")!=-1
    && document.getElementById) type="OP"; 
	if (document.all) type="IE"; 
	if (document.layers) type="NN"; 
	if (!document.all && document.getElementById) type="MO"; 

	if (type=="IE")
	{
		 eval("document.all." + id + ".style.visibility='" + action + "'");
	}		 
	if (type=="NN")
	{
		 eval("document." + id + ".visibility='" + action + "'");
	}	 
	if (type=="MO" || type=="OP")
	{
	} 
	
	if (action == 'visible')
    {
		var photowidth = 795;
		var browsewidth = screen.width
		if (document.layers) browsewidth=window.outerWidth;
		if (document.all) browsewidth=document.body.clientWidth;
		var left = 0; // default
		if (browsewidth > photowidth)
		{	
			left = Math.round((browsewidth - photowidth)/2);
			left = left.toFixed(0);
			if (left > 50) left = left - 50;
			else left = 0;
				
		}
		eval("document.getElementById('" + id + "').style.left='" + left + "'");		
	}
    eval("document.getElementById('" + id + "').style.visibility='" + action + "'");
	if (action == 'hidden')
    {
		selectboxes('block'); 
	}	
	else	
	{
		selectboxes('none'); 
	}	
}	

function selectboxes(showmode) 
{
	controls = document.getElementsByTagName("select");
	for (var i = 0; i < controls.length; i++) 
	{
		var control = controls.item(i);
		control.style.display = showmode		
	} 
}	


