/*objeto contenido*/
function contenido(id,name,estado){
	this.idecap=id;
	this.noncap=name;
	this.estado='';
	this.On=function(){
		document.getElementById(this.idecap).style.display="block";
	}
	this.Off=function(){
		//alert('Y');
		document.getElementById(this.idecap).style.display="none";
	}
}
/*Objeto boton*/
function boton(Id,Name,Over,Out,Active,Off,On,fOnClick){
	this.ImgId=Id;
	this.ImgName=Name;
	this.Over=Over;
	this.Out=Out;
	this.Active=''+Active;
	this.Off=Off;
	this.On=On;
	this.addOnClick=''+fOnClick;
	this.onClick = function(){
		document.getElementById(this.ImgId).src=this.On;
		this.Active='S';
		eval(this.addOnClick);	
	}
	this.onClickOut=function(){
		this.Active='N';
		document.getElementById(this.ImgId).src=this.Out;
	}
	this.mOut = function(){
		document.getElementById(this.ImgId).src=(this.Active=='S' ? this.On:this.Out);		
	}
	this.mOn = function(){
		document.getElementById(this.ImgId).src=(this.Active=='S' ? this.On:this.Over);
	}
	if(this.Active=='S'){
		document.getElementById(this.ImgId).src=this.On;	
	}else{
		document.getElementById(this.ImgId).src=this.Off;
	}
	
}
/*Objeto coleccion de botones*/
function swiBotones(arrBtn){
	this.arr=arrBtn;
	this.onClick=function(btn){
		for (n=0;n < this.arr.length;n++){
			this.arr[n].onClickOut();
		}
		btn.onClick();
	}
}

/*objeto control coleccion de contenido*/
function swiCont(cont){
	this.arrCont=cont;
	this.OnClick=function(capa){
		for (i = 0; i < this.arrCont.length; i++) {
			this.arrCont[i].Off();
		}
		capa.On();
	}
}
