function Capa(id,p) {
	this.id=id
	if (oInf.bNN4) this.obj=eval((typeof p!='undefined'?'document.'+p+'.':'')+'document.'+id)
	else this.obj=oInf.bIE4?document.all[id]:document.getElementById(id)
	this.css=(oInf.bNN4?this.obj:this.obj.style)	
	this.x=parseInt(this.css.left)
	this.y=parseInt(this.css.top)
	this.an=(oInf.bIE4?this.obj.scrollWidth:(oInf.bNN4?this.obj.clip.width:this.obj.offsetWidth))
	this.al=(oInf.bIE4?this.obj.scrollHeight:(oInf.bNN4?this.obj.clip.bottom:this.obj.offsetHeight))
	this.cf=(oInf.bIE4?this.css.bgColor:(oInf.bNN4?this.cf=this.css.backgroundColor:this.cf=this.css.backgroundColor))	
}

Capa.prototype.mostrar=function() {
	this.css.visibility=oInf.bNS4?'show':'visible'
}

Capa.prototype.ocultar=function() {
	this.css.visibility=oInf.bNS4?'hide':'hidden'
}

Capa.prototype.pnX=function(x) {
	this.css.left=this.x=x
}

Capa.prototype.pnY=function(y) {
	this.css.top=this.y=y
}

Capa.prototype.mvX=function(x) {
	this.css.left=this.x=x
}

Capa.prototype.mvY=function(y) {
	this.css.top=this.y=y
}

Capa.prototype.mvH=function(x) {
	this.css.left=this.x+=x
}

Capa.prototype.mvV=function(y) {
	this.css.top=this.y+=y
}

Capa.prototype.escCnt=function(c) {
	if (oInf.bIE) this.obj.innerHTML=c
	else if (oInf.bNN4) {
		var d=this.obj.document
		d.open()
		d.write(c)
		d.close()
	}
	else {
		var r=document.createRange()
		r.setStartBefore(this.obj)
		var cf=r.createContextualFragment(c)
		while (this.obj.hasChildNodes()) this.obj.removeChild(this.obj.lastChild)
		this.obj.appendChild(cf)
	}
}

Capa.prototype.escTxt=function(c,t) {
	this.escCnt('<span class="'+c+'">'+t+'</span>')
}

Capa.prototype.pnCF=function(c) {
	this.cf=oInf.bNN4 ? this.css.bgColor=c : this.css.backgroundColor=c
}

Capa.prototype.getCF=function(c) {
	if (oInf.bNN4)
		return (this.css.bgColor)
	else
		return (this.css.backgroundColor)
}