//#################################################################################	
//hide layer
//#################################################################################	
function hideLayer(layer) 
{
  		layer.visibility = "hidden";
}
//#################################################################################	


//#################################################################################	
//make layer visible
//#################################################################################	
function showLayer(layer) 
{
	layer.visibility = "visible";
}
//#################################################################################	



/*
#################################################################################
function gLayer(layerName)
#################################################################################
	all layer objects are going to be called the same, regardless of browser
	this function takes care of that
	returns the globally usable layer object
	author: ovidiu roatis
	date: 01/17/2002
#################################################################################	
*/
function gLayer(layerName)
{
	
	var globalLayer;
	
	globalLayer = document.getElementById(layerName).style;
		
	return(globalLayer);
}
//#################################################################################	



//positions layer "layerObject" at coordinates "coordX" and "coordY"
function positionLayer(layerObject,direction,coord)
{
	if (detect_obj.is_ie4up||detect_obj.is_opera)
	{
    	if(direction=="x")	
			layerObject.pixelLeft = coord;
		else	
			layerObject.pixelTop = coord;
	}	

  	
  	if (detect_obj.is_nav6up)
	{
      	if(direction=="x")	
			layerObject.left = coord + 'px';
		else	
			layerObject.top = coord + 'px';
  	}
}


//##########################################################################################################################
//changes background of button cell when rolled over
//what - cell object
//##########################################################################################################################
function on(what,background_color_on)
{
	what.style.backgroundColor = background_color_on;
	
	if(detect_obj.is_ie6up||detect_obj.is_opera||detect_obj.is_nav6up)
		what.style.cursor='pointer';
}

//##########################################################################################################################
//changes background of button cell when rolled out
//what - cell object
//##########################################################################################################################
function off(what,background_color)
{
	what.style.backgroundColor= background_color;
	
	if(detect_obj.is_ie6up||detect_obj.is_opera||detect_obj.is_nav6up)
		what.style.cursor='auto';
}
//##########################################################################################################################
