function CreaCapa (nombre,izquierda,arriba,ancho,alto,zeta,boolClip,tablaContenido,numero,vectorElementos,clipxx) {

	this.nombre=nombre;		
	this.izquierda=izquierda;		
	this.arriba=arriba;		
	this.ancho=ancho;		
	this.alto=alto;		
	this.tablaContenido=tablaContenido;		
	this.zeta=zeta;		
	this.numero=numero;		
	this.vectorElementos=vectorElementos;		
	this.boolClip=boolClip;		

	if (clipxx) {
		this.clipxx=clipxx;
	} else {
		this.clipxx="";
	};	

};	

CreaCapa.prototype.IniCapa=function () {								
	if (Isie4 || Isie5) {			
		if (this.boolClip==1) {
			clipzzXd=";CLIP:rect("+"0 "+(this.ancho)+" "+(this.alto)+" 0)";
		} else {
			clipzzXd="";
		};
				
			document.write("<div id=\""+this.nombre+"\" STYLE=\"position:absolute;left:"+this.izquierda+"px;top:"+this.arriba+"px;width:"+this.ancho+";height:"+this.alto+this.clipxx+";z-index:"+this.zeta+clipzzXd+"\">"+this.tablaContenido);
			if (this.numero>0) {						
				for (i=0;i<this.numero;i++) {									
					if (this.nombre=="CapaBase") {a=i;};								
					this.vectorElementos[i].IniCapa();
					if (this.nombre=="CapaBase") {i=a;}
				};
			};
			document.write("</div>");
		
	};

	if (Isns4) {	
		if (this.boolClip==1) {
		clipzzXd="CLIP=\""+0+","+0+","+(this.ancho)+","+(this.alto)+"\"";
		//	clipzzXd=";CLIP:rect("+"0 "+(this.ancho)+" "+(this.alto)+" 0)";
		} else {
			clipzzXd="";
		};
		
			document.write("<LAYER NAME=\""+this.nombre+"\"  LEFT=\""+this.izquierda+"\" TOP=\""+this.arriba+"\" WIDTH=\""+this.ancho+"\" HEIGHT=\""+this.alto+"\" z-index=\""+this.zeta+"\" "+clipzzXd+this.clipxx+">"+this.tablaContenido);
			if (this.numero>0) {
				for (j=0;j<this.numero;j++) {
					this.vectorElementos[j].IniCapa();
				} ;			
			};		
			document.write("</LAYER>");
				
	};
	if (Isdom1  & !Isie5 ) {
		if (this.boolClip==1) {
		clipzzXd=";CLIP:rect("+"0 "+(this.ancho)+" "+(this.alto)+" 0)";
		//	clipzzXd=";CLIP:rect("+"0 "+(this.ancho)+" "+(this.alto)+" 0)";
		} else {
			clipzzXd="";
		};
	    
			document.write("<LAYER NAME=\""+this.nombre+"\" ID=\""+this.nombre+"\" style=\""+"position:absolute; LEFT:"+this.izquierda +";TOP:"+this.arriba+"; WIDTH:"+this.ancho +";HEIGHT:"+this.alto +"; z-index:"+ this.zeta+ clipzzXd+this.clipxx+"\">"+this.tablaContenido);
			if (this.numero>0) {
				for (j=0;j<this.numero;j++) {
					this.vectorElementos[j].IniCapa();
				} ;			
			};		
			document.write("</LAYER>");		
		};
			
};
