// menu tercer nivel
function menuTerc(id,conf){
	this.id = id;
	this.c = conf;
	this.sto = 0;
	this.pos = this.c.y;
}

menuTerc.prototype.set = function(){
	var tabla = "<table border=0 cellpadding=0 cellspacing=0 width=144><tr><td width=7><img src=img/sp.gif width=7 height=1></td><td width=130><img src=img/sp.gif width=130 height=1></td><td width=7><img src=img/sp.gif width=7 height=1></td></tr>";
	tabla += (this.c.titular!=null)? "<tr><td width=7><img src="+this.c.imgLat[0]+" width=7 height=19></td><td width=130 bgcolor="+this.c.colorPest+" class="+this.c.class_on+"><img src=img/ptos_nar.gif width=3 height=8>&nbsp;"+this.c.titular+"</td><td width=7><img src="+this.c.imgLat[1]+" width=7 height=19></td></tr></table>" : "</table>";
	tabla += "<table border=0 cellpadding=0 cellspacing=0 width=154><tr><td width=1 bgcolor="+this.c.colorLat+"><img src=img/sp.gif width=1 height=1></td><td width=20 bgcolor="+this.c.colorLat+"><img src=img/sp.gif width=20 height=1></td><td width=132 bgcolor="+this.c.colorLat+"><img src=img/sp.gif width=132 height=1></td><td width=1 bgcolor="+this.c.colorLat+"><img src=img/sp.gif width=1 height=1></td></tr><tr><td width=1 bgcolor="+this.c.colorLat+"><img src=img/sp.gif width=1 height=1></td><td colspan=2 bgcolor="+this.c.colorInt+" class=sp5>&nbsp;</td><td width=1 bgcolor="+this.c.colorLat+"><img src=img/sp.gif width=1 height=1></td></tr>";
	for (var i=1; i<this.c.txts.length; i++){
		tabla += (i==this.c.selected)? "<tr><td width=1 bgcolor="+this.c.colorLat+"><img src=img/sp.gif width=1 height=1></td><td bgcolor="+this.c.colorIntSel+" align=right><img src=img/fle_ptos_ne.gif width=9 height=7></td><td bgcolor="+this.c.colorIntSel+" class="+this.c.class_on+">&nbsp;&nbsp;"+this.c.txts[i]+"</td><td width=1 bgcolor="+this.c.colorLat+"><img src=img/sp.gif width=1 height=1></td></tr>" : "<tr><td width=1 bgcolor="+this.c.colorLat+"><img src=img/sp.gif width=1 height=1></td><td bgcolor="+this.c.colorInt+" align=right><img src=img/fle_ptos_ne.gif width=9 height=7></td><td bgcolor="+this.c.colorInt+" class="+this.c.class_off+">&nbsp;&nbsp;<a href="+this.c.lnks[i]+" class=tne11b>"+this.c.txts[i]+"</a></td><td width=1 bgcolor="+this.c.colorLat+"><img src=img/sp.gif width=1 height=1></td></tr>";
	}
	tabla += "<tr><td width=1 bgcolor="+this.c.colorLat+"><img src=img/sp.gif width=1 height=1></td><td colspan=2 bgcolor="+this.c.colorInt+" class=sp5>&nbsp;</td><td width=1 bgcolor="+this.c.colorLat+"><img src=img/sp.gif width=1 height=1></td></tr><tr><td colspan=4 bgcolor="+this.c.colorInt+"><img src="+this.c.imgFin+" width=154 height=11></td></tr></table>";
	this.capa = arena(this.id+".capa",null,this.c.x,this.c.y,154,200,"hid",100,null,tabla);
	this.sto = setTimeout(this.id+".coloca()",2000);
}

menuTerc.prototype.coloca = function(){
	posY = (document.layers)? window.pageYOffset : document.body.scrollTop;
	alturaFin = (posY < this.c.y)? this.c.y : posY + 10;
	if (this.capa.y != (posY+this.c.y)) this.capa.wTMSlide(this.c.x,alturaFin,20,20,8,this.id+".sto = setTimeout('"+this.id+".coloca()',2000)")
	else this.sto = setTimeout(this.id+".coloca()",2000);
}
