// Funciones a ejecutar en el onload
var funciones_someter_onload = new Array();
function someter_onload() {
    var len = funciones_someter_onload.length;
	for (someter_onload_i=0; someter_onload_i<len; someter_onload_i++) {
	    eval(funciones_someter_onload[someter_onload_i] + "()");
	}

    var col1 = document.getElementById("home-col-1");	//Determinar el tamaño de las columnas de menus de la portada
    var col2 = document.getElementById("home-col-2");
    var col3 = document.getElementById("home-col-3");
    var max = 0.0;

    if (col1.offsetHeight > max) {
	max = col1.offsetHeight;
    }
    if (col2.offsetHeight > max) {
	max = col2.offsetHeight;
    }
    if (col3.offsetHeight > max) {
	max = col3.offsetHeight;
    }

    col1.style.height = max + "px";
    col2.style.height = max + "px";
    col3.style.height = max + "px";

    var not1 = document.getElementById("home-col-5");	//Determinar el tamaño de las columnas de noticias de la portada
    var not2 = document.getElementById("home-col-6");
    var not3 = document.getElementById("home-col-7");
    var max = 0.0;

    if (not1.offsetHeight > max) {
	max = not1.offsetHeight;
    }
    if (not2.offsetHeight > max) {
	max = not2.offsetHeight;
    }
    if (not2.offsetHeight > max) {
	max = not3.offsetHeight;
    }

    not1.style.height = max + "px";
    not2.style.height = max + "px";
    not3.style.height = max + "px";

    var cont_izq = document.getElementById("home-contenido-izquierda");
    //var cont_der = document.getElementById("home-contenido-derecha");
    //cont_der.style.height = cont_izq.offsetHeight - 5 + "px";

	 var col4 = document.getElementById("home-col-4");
	 var verayto = document.getElementById("Ver-mas-ayuntamiento");

	 col4.style.height = col1.offsetHeight + not1.offsetHeight + verayto.offsetHeight + 18 + "px";
	 

}
 function imprimir(){
        window.print;                
    }
function volver(){
  window.history.go(-1);
}
