function mostrarOcultar(ly) { //v6.0
	var elLayer = document.getElementById(ly);
		if( elLayer.style.display=='block' ){
		elLayer.style.display='none';
	} else {
		elLayer.style.display='block';
	}
}

///// Ventanita fotos anula botón derecho del mouse
var MuestraVentana

function cerrarMarcos(){
	if (MuestraVentana != null && !MuestraVentana.closed) {
		CuadroViejo = MuestraVentana;
		CuadroViejo.name = "CuadroViejo";
		CuadroViejo.close();
	 }
}

function marcos(imagen,ancho,alto,titulo) 
{
  cerrarMarcos();
  var left = (screen.width - ancho) / 2;
  var top = (screen.height - alto) / 2;
	MuestraVentana=window.open("","CuadroNuevo","toolbar=no,location=no, status=no,menubar=no,left="+left+",top="+top+",resizable=no,scrollbars=no,width="+ancho+",height="+alto);
	MuestraVentana.document.write("<html><head><title>"+titulo+"</title>");
	MuestraVentana.document.write("<script language=\"JavaScript\">");
	MuestraVentana.document.write("var mensaje=\"Derechos reservados por los autores. Prohibida su reproducción.\";");
	MuestraVentana.document.write("function nosepuede(A){if (document.all){if (event.button == 2) {alert(mensaje);	return false;	}}");
	MuestraVentana.document.write("if(document.layers){if(A.which == 3){alert(mensaje);return false;}	}}");
	MuestraVentana.document.write("if(document.layers){document.captureEvents(Event.MOUSEDOWN);}document.onmousedown=nosepuede;");
	MuestraVentana.document.write("</script>");
	MuestraVentana.document.write("</head><body>");
	MuestraVentana.document.write('<div style="position:absolute;width:'+ancho+'px;height:'+alto+'px;left:0px;top:0px">');
	MuestraVentana.document.write("<img src="+imagen+" alt=\""+titulo+"\"></div></body></html>");
	MuestraVentana.document.close();
	if (MuestraVentana.opener == null)	{
		MuestraVentana.opener = carolina;
	}
		MuestraVentana.opener.name = "VentanaOriginal";
        MuestraVentana.focus();
}

// Funcion mostrar y ocultar menu de ciudad y botcomun con ul y li
navHover = function() {
  var existe_div_1 = document.getElementById("menu_vertical");
  if (existe_div_1 != null){

	  var lis = document.getElementById("menu_vertical").getElementsByTagName("LI");
	  for (var i=0; i<lis.length; i++) {
		  lis[i].onmouseover=function() {
			  this.className+=" iehover";
		  }
		  lis[i].onmouseout=function() {
			  this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		  }
	  }
  }
	
	// mostrar y ocultar botcomun
  var existe_div_2 = document.getElementById("botcomun");
  if (existe_div_2 != null){

	  var lis_1 = document.getElementById("botcomun").getElementsByTagName("LI");
	  for (var i=0; i<lis_1.length; i++) {
		  lis_1[i].onmouseover=function() {
			  this.className+=" iehover";
		  }
		  lis_1[i].onmouseout=function() {
			  this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		  }
	  }
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);
