<!--//
/*
	@ class Layers
	@ description This class is responsible for showing and hiding layers
*/

/*
	@function Layer Default constructor. This will just get the id of the layer
	@param id The id of the layer
	@return void
*/
function Layer(id,debug){
	this.id = id;
	this.layerObject =  (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;	
	this.css		= (this.layerObject.style)? this.layerObject.style : this.layerObject;
	this.show =Layer_show;
	this.hide =Layer_hide;
	this.invert = Layer_invert;
}

/*
	@function Layer_show Shows the layer by setting its visibility to visible
	@return void
*/
function Layer_show() {
	this.css.display = "";
}

/*
	@function Layer_hide Hides the layer by setting its visibility to hidden
	@return void
*/
function Layer_hide() {
	this.css.display = "none";
}

/*
	@function Layer_invert Inverts the current status of the layers, so if it is shown, then hide it, otherwise show it (very useful)
	@return void
*/
function Layer_invert(){
	if (this.css.display == "")
		this.hide();
	else
		this.show();
}
//-->
