var urlAbsoluto= "";
	
var simagen_blank = "images/trans.gif";

var msLastMenu_nivel_2="";
	var msLastMenu_nivel_3="";
 	var msLastOver_nivel_1="";
	var msLastOver_nivel_2="";
	var msLastOver_nivel_3="";
	var ns4 = (document.layers)? true:false;
 var ie4 = (document.all)? true:false;
if (ns4){
var widthsize = window.innerWidth;
var heigthsize = window.innerHeight;
windowHeight = window.outerHeight;
window.onresize=recargar;
}

function recargar(){
	if (ns4){
		if ((window.innerWidth != widthsize) || (window.innerHeight != heigthsize)){
		window.location.href=window.location.href;
		}
	}
}

function MenuNivel1(titulo, existe){
	this.titulo = titulo;
	this.existeNivel2 = existe;
	this.subMenu = new MenuNivel2();
	return this;
}

function MenuNivel2(){
	this.items = new Array();
	this.setItem = setItem;
	this.getTitulo = getTitulo;
	this.getHref = getHref;
	return this;
}

function item(titulo, href, existe){
	this.titulo = titulo;
	this.href = href;
	this.existe = existe;
	if (existe){
	this.subMenu = new MenuNivel2();
	}
}

function setItem(titulo,href, existe){
	var auxhref = urlAbsoluto + href;
	var index = this.items.length;
	this.items[index] = new item(titulo,auxhref, existe);
	return this.items[index];
}

function getTitulo(i){
	return this.items[i].titulo;
}

function getHref(i){
	return this.items[i].href;
}

function getwindowHeigth() {
	var sSize;
	if (navigator.userAgent.indexOf("MSIE") > 0) {
		sSize = (document.body.clientHeight);
		return sSize;
		}else {
		sSize = (window.outerWidth * window.outerHeight);
		return sSize;
	}	
	return;
}

function MM_findObj(n, d){
	var p,i,x;
	 if(!d) d=document;
	 if((p=n.indexOf("?"))>0&&parent.frames.length){
	 d=parent.frames[n.substring(p+1)].document;
	 n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all) x=d.all[n];
	 for (i=0;!x&&i<d.forms.length;	i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n);
	 return x;
}

function MM_showHideLayers(){


var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) {
	 v=args[i+2];
	if (obj.style) {
		obj=obj.style;
		v=(v=='show')?'visible':(v='hide')?'hidden':v;
 	}
	obj.visibility=v;
 }
}


var VaresNN=navigator.appName=="Netscape";
var Capa;
function JB_mCapa(Capa){

   JBlo('apoyoalconsumidor').visibility = "hidden";
   JBlo('informacionydocumentacion').visibility = "hidden";
   JBlo('informacionutil').visibility = "hidden";
   JBlo('patentes').visibility = "hidden";
   JBlo('soluciondeconflictos').visibility = "hidden";
   JBlo('serviciosdeacreditacion').visibility = "hidden";
   JBlo('reestructuracion').visibility = "hidden";
   JBlo('serviciosinternet').visibility = "hidden";
   JBlo(Capa).visibility = "visible";

var i,p,v,obj,args=JB_mCapa.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) {
	 v=args[i+2];
	if (obj.style) {
		obj=obj.style;
		v=(v=='show')?'visible':(v='hide')?'hidden':v;
 	}
	// obj.visibility=v;

 }
}

function JBlo(lname,lcontainer)
 {var foo;if(arguments.length==1)
 {foo=VaresNN?'document.'+lname:lname+'.style'}
  else
 {foo=VaresNN?lcontainer+'.document.'+lname:lcontainer+'.'+lname+'.style'}
 return(eval(foo))}



function PosicionCapa(id,x,y){

x=x+0;


	if (ns4){
	if (x != null) document.layers[id].left = x;
	if (y != null) document.layers[id].top = y;
	}
	else if(ie4){
	if (x != null) document.all[id].style.posLeft = x;
	if (y != null) document.all[id].style.posTop = y;
	}
}

function crearCapa(nombre,x,y,celda_ancho,celda_alto,z,visible,celda_color,contenido,ext){
    
    var aux = "";
	if (ns4) {
	visible == 1 ? visible='show' : visible='hide';
	aux = '<layer width='+celda_ancho+' height='+celda_alto+' left='+x+' top='+y+' name="'+nombre+'" z-index='+z+' visibility="'+visible+'" bgcolor="'+celda_color+'" ' + ext +'>'+contenido+'</layer>';
	}else if (ie4){
	visible == 1 ? visible='visible' : visible='hidden';
	aux = ('<div id="'+nombre+'" style="position:absolute; width:'+celda_ancho+'px; height:'+celda_alto+'px; left:'+x+'px; top:'+y+'px;  z-index:'+z+';  visibility:'+visible+';  background-color:' + celda_color + ';  layer-background-color: ' + celda_color + ';  border: 1px none #000000" ' + ext + '>'+contenido+'</div>');
	}
	return aux;
}

function crearArea(x,y,x1,y1, href, txtMouseOver, txtMouseOut){
	var aux_crearArea="";
	aux_crearArea = "<area shape='rect' coords='"+x+","+y+","+x1+","+y1+"' href="+href+" onMouseOver=\""+ txtMouseOver + ";  \" onMouseOut=\""+ txtMouseOut +";\" onfocus=\"blur()\">";
	return aux_crearArea;
}

function cambiar_menu_nivel_1(menu, x, y, h){
	if (msLastOver_nivel_1!="") MM_showHideLayers(msLastOver_nivel_1,'','hide');
	if (msLastMenu_nivel_2 != ""){
		MM_showHideLayers(msLastOver_nivel_2,'','hide',msLastMenu_nivel_2,'','hide',msLastMenu_nivel_2 + "_trans",'','hide',msLastMenu_nivel_2 + "_bg",'','hide',msLastMenu_nivel_2 + "_color",'','hide');
	}
	if (msLastMenu_nivel_3 != ""){
		MM_showHideLayers(msLastMenu_nivel_3,'','hide',msLastMenu_nivel_3 + "_trans",'','hide',msLastMenu_nivel_3 + "_bg",'','hide',msLastMenu_nivel_3 + "_color",'','hide');
	}

	MM_showHideLayers(menu,'','show',menu + "_trans",'','show',menu + "_bg",'','show',menu + "_color",'','show','nivel_blank','','show','nivel_1_mouseover_'+h,'','show');
	PosicionCapa('nivel_1_mouseover_'+h,x,y);
	msLastMenu_nivel_2 = menu;
	msLastOver_nivel_1 = 'nivel_1_mouseover_'+h;
}

function cambiar_menu_nivel_2(menu,x,y,h){
	if (msLastOver_nivel_2!="")MM_showHideLayers(msLastOver_nivel_2,'','hide');
	
	PosicionCapa('nivel_2_mouseover_'+h,x,y);
	MM_showHideLayers('nivel_2_mouseover_'+h,'','show','nivel_2_mouseover_'+h,'','show',menu,'','show',menu + "_trans",'','show',menu + "_bg",'','show',menu + "_color",'','show','nivel_blank','','show');
	if (msLastMenu_nivel_3 != "")MM_showHideLayers(msLastOver_nivel_3,'','hide',msLastMenu_nivel_3,'','hide',msLastMenu_nivel_3 + "_trans",'','hide',msLastMenu_nivel_3 + "_bg",'','hide',msLastMenu_nivel_3 + "_color",'','hide')
	
	msLastMenu_nivel_3 = menu;
	msLastOver_nivel_2 = 'nivel_2_mouseover_'+h;
}

function cambiar_menu_nivel_3(x,y,h){
	if (msLastOver_nivel_3!="") MM_showHideLayers(msLastOver_nivel_3,'','hide');
	PosicionCapa('nivel_3_mouseover_'+h,x,y);
	MM_showHideLayers('nivel_3_mouseover_'+h,'','show');
	msLastOver_nivel_3 = 'nivel_3_mouseover_'+h;
}

function cerrar_menu(){
	MM_showHideLayers('nivel_blank','','hide',msLastOver_nivel_1,'','hide',msLastOver_nivel_2,'','hide',msLastOver_nivel_3,'','hide');
	
	if (msLastMenu_nivel_2 != ""){
	MM_showHideLayers(msLastMenu_nivel_2,'','hide',msLastMenu_nivel_2 + "_trans",'','hide',msLastMenu_nivel_2 + "_bg",'','hide',msLastMenu_nivel_2 + "_color",'','hide');
	}
	if (msLastMenu_nivel_3 != ""){
	MM_showHideLayers(msLastMenu_nivel_3,'','hide',msLastMenu_nivel_3 + "_trans",'','hide',msLastMenu_nivel_3 + "_bg",'','hide',msLastMenu_nivel_3 + "_color",'','hide');
	}
	msLastMenu_nivel_3 = "";
	msLastMenu_nivel_2 = "";
	msLastMenu_nivel_1 = "";
}

function menu(arreglo,pos_x,pos_y,celda_ancho,celda_alto, celda_color,celda_bgcolor_over,celda_bgcolor){
	//Modificaciones para no cambiar prototipo de función
	//simagen = '/images/home/foto_izq.jpg';
	clsFont = 'clsMenuNivel1';

    pos_x++;
	pos_y--;
	//fin de moficaciones para protipo de función
	var iaux, iaux2, iaux3;
	var saux ="";
	var saux2="";
	var itab=2;
	var ipos_x=0;
	var ipos_y=0;
	var ialtolinea = 0;
	var snivel_1="";
	var snivel_map_1;
	var sOnMouseOver,sOnMouseOut;
	var h1, h2, h3;
	var iy, ih;
	var windowHeight = getwindowHeigth();
	snivel_1 = "<table border=0 cellpadding=0 cellspacing=0 width='"+ celda_ancho + "'><tr><td align=center><table border=0 cellpadding=0 cellspacing=0 width='"+ eval(celda_ancho - 2) +"' align=center>";
	snivel_map_1 = "<map name=nivel_map_1>";
	iaux="";
	for (i=0; i<arreglo.length; i++){
		if (arreglo[i].titulo.length> 25){
		aux_celda_alto = (celda_alto -ialtolinea)*2;
		h1 = 2;
		}else{
		aux_celda_alto = celda_alto;
		 h1 = 1;
	}

	if (arreglo[i].existeNivel2==true){
		sOnMouseOver = "";
		sOnMouseOut = "";
		var ipos_y_2=0;
		var ipos_nivel_2_x;
		var ipos_nivel_2_y;
		var aux_celda_alto2;
		var snivel_2;
		var snivel_map_2;
		ipos_nivel_2_x=celda_ancho + pos_x;
		ipos_nivel_2_y=0;
		snivel_2 = "<table border=0 cellpadding=0 cellspacing=0 width='"+ eval(celda_ancho - 1) +"' align=center>\n";
		snivel_map_2 = "<map name=nivel_2_" + i + "_map>";
		for(var j=0; j< arreglo[i].subMenu.items.length; j++){
			if(arreglo[i].subMenu.getTitulo(j).length <= 25){
			aux_celda_alto2 = celda_alto;
			h2 = 1;
		}

		if ((arreglo[i].subMenu.getTitulo(j).length > 25) && (arreglo[i].subMenu.getTitulo(j).length <= 50)){
			aux_celda_alto2 = (celda_alto-ialtolinea)*1 + 1;// *2
			h2 = 1;//1
		}

		if ( arreglo[i].subMenu.getTitulo(j).length > 50){
			aux_celda_alto2 = (celda_alto-ialtolinea)*3 + 1;
			h2 = 3;
		}

		iaux2 = pos_y + ipos_y + ipos_y_2;
		if (arreglo[i].subMenu.items[j].existe==true){
			var aux_celda_alto3;
			var snivel_3="";
			var snivel_map_3;
			ipos_nivel_3_x=celda_ancho + celda_ancho + pos_x;
			ipos_nivel_3_y=0;
			sOnMouseOver="";
			sOnMouseOut ="";
			snivel_map_3 = "<map name=nivel_3_" + i + "_" + j + "_map>";
			snivel_3 = "<table border=0 cellpadding=0 cellspacing=0 width='"+ eval(celda_ancho - 2) +"' align=center>";
			for(var k=0; k< arreglo[i].subMenu.items[j].subMenu.items.length; k++){
				if(arreglo[i].subMenu.items[j].subMenu.getTitulo(k).length <= 25){
				aux_celda_alto3 = celda_alto;
				h3 = 1;
			}

			if ((arreglo[i].subMenu.items[j].subMenu.getTitulo(k).length > 25) && (arreglo[i].subMenu.items[j].subMenu.getTitulo(k).length < 45)){
			aux_celda_alto3 = (celda_alto-ialtolinea)*2;
			h3 = 2;
		}

		if (arreglo[i].subMenu.items[j].subMenu.getTitulo(k).length >= 45){
		aux_celda_alto3 = (celda_alto-ialtolinea)*3;
		h3 = 3;
		}

		snivel_3 += "<tr><td colspan=2 height=1 bgcolor="+celda_bgcolor+"><img src="+simagen_blank+" height=1></td></tr>";
		snivel_3 += "<tr><td width="+itab+" height="+aux_celda_alto3+"><img src="+simagen_blank+" height=1></td><td width="+iaux+" bgcolor="+celda_color+" height="+aux_celda_alto3+" class="+clsFont+"><font class="+ clsFont +">"+arreglo[i].subMenu.items[j].subMenu.getTitulo(k)+"</font></td></tr>\n";
		sOnMouseOver = "cambiar_menu_nivel_3(" + eval(pos_x + celda_ancho + celda_ancho) + ","+eval(iaux2 + ipos_nivel_3_y  + 1)+","+h3+")";
		snivel_map_3 += crearArea(0,ipos_nivel_3_y, celda_ancho,eval(ipos_nivel_3_y + aux_celda_alto3 + 1), arreglo[i].subMenu.items[j].subMenu.getHref(k), sOnMouseOver, sOnMouseOut);
		ipos_nivel_3_y +=  aux_celda_alto3 + 1;
	}

	snivel_3 += "<tr><td colspan=2 height=1 bgcolor="+celda_bgcolor+"><img src="+simagen_blank+" height=1></td></tr></table>";
	snivel_map_3 += "</map>";
	document.write (snivel_map_3 );
	saux2 = "<img src="+simagen_blank+" width="+eval(celda_ancho-1)+" height="+ipos_nivel_3_y+" usemap=#nivel_3_" + i + "_" + j + "_map border=0>";
	saux = crearCapa("nivel_3_" + i + "_" + j + "_trans",eval(pos_x + celda_ancho + celda_ancho),iaux2,celda_ancho,ipos_nivel_3_y,8,0,'',saux2,'');
	saux += crearCapa("nivel_3_" + i + "_" + j,eval(pos_x + celda_ancho + celda_ancho),iaux2,celda_ancho,ipos_nivel_3_y,6,0,'',snivel_3,'');
	saux += crearCapa("nivel_3_" + i + "_" + j + "_color",eval(pos_x + celda_ancho + celda_ancho),iaux2,celda_ancho,ipos_nivel_3_y,4,0,celda_color,'','');
	saux += crearCapa("nivel_3_" + i + "_" + j + "_bg",eval(pos_x + celda_ancho + celda_ancho-1),iaux2,eval(celda_ancho+2),eval(ipos_nivel_3_y + 1),3,0,celda_bgcolor,'','');
	document.write (saux);
	}

	snivel_2 += "<tr><td colspan=2 height=1 bgcolor="+celda_bgcolor+"><img src="+simagen_blank+" height=1></td></tr>";
	snivel_2 += "<tr><td width="+itab+" height="+aux_celda_alto2+"><img src="+simagen_blank+" height=1></td><td width="+iaux+" height="+aux_celda_alto2+" class="+clsFont+"><font class="+ clsFont +">"+arreglo[i].subMenu.getTitulo(j)+"</font></td></tr>";
	sOnMouseOver = "cambiar_menu_nivel_2('nivel_3_" + i + "_" + j + "',"+eval(celda_ancho +1)+","+eval(ipos_y + pos_y + ipos_nivel_2_y + 1)+","+h2+")";
	snivel_map_2 += crearArea(0,ipos_nivel_2_y, celda_ancho,eval(ipos_nivel_2_y + aux_celda_alto2 + 1), arreglo[i].subMenu.getHref(j), sOnMouseOver, sOnMouseOut);
	ipos_nivel_2_y += aux_celda_alto2 + 1;
	ipos_y_2 = ipos_y_2 + aux_celda_alto2 + 1;
	}

	snivel_2 += "<tr><td colspan=2 height=1 bgcolor="+celda_bgcolor+"><img src="+simagen_blank+" height=1></td></tr></table>";
	snivel_map_2 += "</map>";
	iaux2 = pos_y+ipos_y;
	saux2 = "<img src="+simagen_blank+" width="+celda_ancho+" height="+ipos_nivel_2_y+" usemap=#nivel_2_" + i + "_map border=0>";
	saux = crearCapa("nivel_2_" + i + "_trans",eval(pos_x + celda_ancho),iaux2,celda_ancho,ipos_nivel_2_y,8,0,'',saux2,'');
	document.write (saux);
	saux2 = "<img src="+simagen_blank+" width="+eval(celda_ancho-1)+" height=15 border=0>";
	saux = crearCapa("nivel_2_" + i + "_color",eval(pos_x + celda_ancho),iaux2,eval(celda_ancho-1),ipos_nivel_2_y,4,0,celda_color,saux2,'');
	saux += crearCapa("nivel_2_" + i + "_bg",eval(pos_x + celda_ancho),iaux2,eval(celda_ancho),eval(ipos_nivel_2_y + 1),3,0,celda_bgcolor,saux2,'');
	saux += crearCapa("nivel_2_" + i,eval(pos_x + celda_ancho),iaux2,celda_ancho,ipos_nivel_2_y,6,0,'',snivel_2,'');
	document.write (saux+snivel_map_2);
	}

	snivel_1 += "<tr><td colspan=2 height=1 bgcolor="+celda_bgcolor+"><img src="+simagen_blank+" height=1></td></tr><tr><td width="+itab+" height="+aux_celda_alto+"><img src="+simagen_blank+" height=1></td><td width="+iaux+" height="+aux_celda_alto+" class="+clsFont+"><font class="+ clsFont +">"+arreglo[i].titulo+"</font></td></tr>";
	saux = "nivel_2_" + i;
	sOnMouseOver = "cambiar_menu_nivel_1('"+saux+"',"+ipos_x+","+eval(ipos_y + pos_y)+","+h1+")";
	sOnMouseOut = "";
	snivel_map_1 += crearArea(ipos_x,ipos_y,eval(ipos_x + celda_ancho),eval(ipos_y + aux_celda_alto + 1),'#', sOnMouseOver, sOnMouseOut);
	ipos_y = ipos_y + aux_celda_alto + 1;
	}

snivel_1 += "<tr><td colspan=2 height=1 bgcolor="+celda_bgcolor+"><img src="+simagen_blank+" height=1></td></tr></table></td></tr>";
	snivel_1 += "<tr><td align=center bgcolor="+celda_bgcolor+"><br><br></td></tr></table>";
	saux = crearArea(0,eval(ipos_y),eval(ipos_x + celda_ancho),eval(aux_celda_alto + ipos_y), '#', 'cerrar_menu()', sOnMouseOut);
	snivel_map_1 += saux;
	ipos_y = ipos_y + aux_celda_alto + 1;
	snivel_map_1 += "</map>";
	saux =  crearCapa('nivel_1',pos_x,pos_y,celda_ancho,'100',6,1,'',snivel_1,'');
	document.write (saux+snivel_map_1);
	saux2 = "<img src="+simagen_blank+ " height=" + ipos_y + "  width=" + celda_ancho + " usemap=#nivel_map_1 border=0>";
	saux =  crearCapa('nivel_1_map',pos_x,pos_y,celda_ancho,'',8,1,'',saux2,'') + crearCapa('nivel_1_color',pos_x,pos_y,eval(celda_ancho-1),eval(ipos_y -aux_celda_alto),4,1,celda_color,'','') + crearCapa('nivel_1_bg',pos_x,pos_y,celda_ancho,eval(ipos_y -aux_celda_alto),3,1,celda_bgcolor,'','');
	document.write (saux);
	saux2 ="<a href='#' onmouseover='cerrar_menu()'><img src="+simagen_blank+" width=600 height=800 border=0></a>";
	saux =  crearCapa('nivel_blank',0,0,600,800,1,0,'',saux2,'');
	document.write (saux);
	saux2 = "<img src="+simagen_blank+" width="+eval(celda_ancho-1)+" height=15 border=0>";
	saux =  crearCapa('nivel_1_mouseover_1',pos_x,pos_y,eval(celda_ancho-1),eval(celda_alto + 1),5,0,celda_bgcolor_over,saux2,'') +  crearCapa('nivel_1_mouseover_2',pos_x,pos_y,eval(celda_ancho-1),eval(celda_alto+ celda_alto + 1),5,0,celda_bgcolor_over,saux2,'')+ crearCapa('nivel_2_mouseover_1',eval(pos_x + celda_ancho),pos_y,eval(celda_ancho-1),eval(celda_alto+1),5,0,celda_bgcolor_over,saux2,'')+ crearCapa('nivel_2_mouseover_2',eval(pos_x + celda_ancho),pos_y,eval(celda_ancho-1),eval(celda_alto + celda_alto+1),5,0,celda_bgcolor_over,saux2,'')+ crearCapa('nivel_2_mouseover_3',eval(pos_x + celda_ancho),pos_y,eval(celda_ancho-1),eval(celda_alto + celda_alto+ celda_alto+1),5,0,celda_bgcolor_over,saux2,'') + crearCapa('nivel_3_mouseover_1',eval(pos_x + celda_ancho + celda_ancho),pos_y,eval(celda_ancho-1),eval(celda_alto+1),5,0,celda_bgcolor_over,saux2,'')+ crearCapa('nivel_3_mouseover_2',eval(pos_x + celda_ancho + celda_ancho),pos_y,eval(celda_ancho-1),eval(celda_alto+celda_alto+1),5,0,celda_bgcolor_over,saux2,'') + crearCapa('nivel_3_mouseover_3',eval(pos_x + celda_ancho + celda_ancho),pos_y,eval(celda_ancho-1),eval(celda_alto+celda_alto+celda_alto+1),5,0,celda_bgcolor_over,saux2,'');
document.write (saux);
cerrar_menu();
}

function crearItem(nombre,x,y,celda_ancho,celda_alto,z,visible,celda_color,contenido,ext){
	var aux = "";
	if (ns4) {
		aux = '<layer width='+celda_ancho+' height='+celda_alto+' left='+x+' top='+y+' name="'+nombre+'" z-index='+z+' bgcolor="'+celda_color+'" ' + ext +'>'+contenido+'</layer>';
	}else if (ie4) {
		aux = ('<div id="'+nombre+'" style="position:absolute;width:'+celda_ancho+'px;height:'+celda_alto+'px;left:'+x+'px;top:'+y+'px;z-index:'+z+';background-color:' + celda_color + ';layer-background-color: ' + celda_color + ';border: 1px none #000000" ' + ext + '><font ' + ext + '>'+ contenido + '</div>');
	}
	return aux;
}

function setBGColor(id, nestref, color) {
	if (ns4){
		var lyr = (nestref)? eval('document.'+nestref+'.document.'+id):document.layers[id];
		lyr.document.bgColor = color}
	else if (ie4){
		document.all[id].style.backgroundColor = color}
}

function itemSuperior(titulo, href, ancho){
	this.titulo = titulo;
	this.href = href ;
	this.ancho = ancho;
	this.getTitulo = getItemSuperiorTitulo;
	this.getHref = getItemSuperiorHref;
	this.getAncho = getItemSuperiorAncho;
}

function getItemSuperiorTitulo(){return this.titulo;}

function getItemSuperiorHref(){return this.href;}

function getItemSuperiorAncho(){return this.ancho;}

function menuSuperior(arreglo,x,y, celda_alto,celda_color, celda_color_on, celda_fondo, ext){

	var cadena;
	var aux_area="";
	var aux_x=1;
	var aux_nombre;
	var txtOnMouseOver;
	var txtOnMouseOut;
	for(var i=0; i< arreglo.length; i++){
		aux_nombre = "menuSuperior_" + i;
		cadena +=crearItem(aux_nombre, aux_x, 1, arreglo[i].getAncho(), celda_alto, 2, 0,celda_color, arreglo[i].getTitulo(), ext);
		txtOnMouseOver = "setBGColor('" + aux_nombre + "', 'menuSuperior', '" + celda_color_on +"')";
		txtOnMouseOut = "setBGColor('" + aux_nombre + "', 'menuSuperior', '" + celda_color +"')";
		aux_area += crearArea(aux_x,0,eval(aux_x + arreglo[i].getAncho()),celda_alto, urlAbsoluto + arreglo[i].getHref(), txtOnMouseOver, txtOnMouseOut);
		aux_x += arreglo[i].getAncho();
	}
	var aux_imagen;
	aux_imagen = "<img src="+simagen_blank+" height="+ celda_alto + " width=650 usemap=#menuSuperior border=0>";
	cadena += crearItem('menuSuperiorImagen',0,0,650,celda_alto,3,1,'',aux_imagen,'');
	document.write(crearCapa('menuSuperior',x,y,650,eval(celda_alto+2),1,1,celda_fondo,cadena,ext));
	document.write("<Map name=menuSuperior>" +aux_area+ "</map>");
}

	
