// 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);

///// Abre ventana con html dentro

var Ventana
function carolina(url,ancho,alto,resi,scroll) {
	if (Ventana!= null && !Ventana.closed) {
		VentanaVieja=Ventana;
		VentanaVieja.name="VentanaVieja";
		Ventana.close();
	 }
	Ventana=window.open(url,"VentanaNueva","toolbar=no,location=no, status=no,menubar=no,left=0,top=0,resizable="+resi+",scrollbars="+scroll+",width="+ancho+",height="+alto);
	Ventana.focus();
}


