var tamano = 0;

function changeFontSize(inc) {		

	tamano = tamano + inc;
		//Cuerpo
	var cuerpo = document.getElementById("global-cuerpo");
	cuerpo.style.width = cuerpo.offsetWidth + parseInt(inc * 0.05 * cuerpo.offsetWidth) + "px";

		//Cabecera
	var pestanias = document.getElementById("global-pestanias");
	//pestanias.style.width = cuerpo.scrollWidth + "px";

	var herramientas = document.getElementById("global-herramientas");
	//herramientas.style.width = herramientas.scrollWidth  + (inc * 35) + "px";
	if (herramientas.style.fontSize) {
		herramientas.style.fontSize = parseInt(herramientas.style.fontSize.replace("px", "")) + (inc * 1) + "px";
	} else {
		herramientas.style.fontSize = 10 + inc + "px";
	}
	
		//Portada

	var home_col_1 = document.getElementById("home-col-1");
	if (home_col_1) {	//Si estamos en la portada...

		//Contenido Izquierdo

			//Menus

			//var home_col_1 = document.getElementById("home-col-1");
	   home_col_1.style.width = home_col_1.offsetWidth + parseInt(inc * 0.05 * home_col_1.offsetWidth) + "px";
	   home_col_1.style.height = home_col_1.offsetHeight + (inc * 13) + "px";
		if (home_col_1.style.fontSize) {
			home_col_1.style.fontSize = parseInt(home_col_1.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			home_col_1.style.fontSize = 12 + inc + "px";
		}
	
		var home_col_2 = document.getElementById("home-col-2");
		home_col_2.style.width = home_col_2.offsetWidth + parseInt(inc * 0.05 * home_col_2.offsetWidth) + "px";
		home_col_2.style.height = home_col_2.offsetHeight + (inc * 13) + "px";
		if (home_col_2.style.fontSize) {
			home_col_2.style.fontSize = parseInt(home_col_2.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			home_col_2.style.fontSize = 12 + inc + "px";
		}
	
		var home_col_3 = document.getElementById("home-col-3");
		home_col_3.style.width = home_col_3.offsetWidth + parseInt(inc * 0.05 * home_col_3.offsetWidth) + "px";
		home_col_3.style.height = home_col_3.offsetHeight + (inc * 13) + "px";
		if (home_col_3.style.fontSize) {
			home_col_3.style.fontSize = parseInt(home_col_3.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			home_col_3.style.fontSize = 12 + inc + "px";
		}

		var menus = document.getElementById("menus-1");
		menus.style.width = 15 + home_col_1.offsetWidth + home_col_2.offsetWidth + home_col_3.offsetWidth + "px";

			//Ver mas...
	
		var ver_mas_ayuntamiento = document.getElementById("Ver-mas-ayuntamiento");
		ver_mas_ayuntamiento.style.width = ver_mas_ayuntamiento.offsetWidth + parseInt(inc * 0.05 * ver_mas_ayuntamiento.offsetWidth) + "px";
		if (ver_mas_ayuntamiento.style.fontSize) {
			ver_mas_ayuntamiento.style.fontSize = parseInt(ver_mas_ayuntamiento.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			ver_mas_ayuntamiento.style.fontSize = 12 + inc + "px";
		}

		var ver_mas_municipio = document.getElementById("Ver-mas-municipio");
		ver_mas_municipio.style.width = ver_mas_municipio.offsetWidth + parseInt(inc * 0.05 * ver_mas_municipio.offsetWidth) + "px";
		if (ver_mas_municipio.style.fontSize) {
			ver_mas_municipio.style.fontSize = parseInt(ver_mas_municipio.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			ver_mas_municipio.style.fontSize = 12 + inc + "px";
		}

		var ver_mas_servicios = document.getElementById("Ver-mas-servicios");
		ver_mas_servicios.style.width = ver_mas_servicios.offsetWidth + parseInt(inc * 0.05 * ver_mas_servicios.offsetWidth) + "px";
		if (ver_mas_servicios.style.fontSize) {
			ver_mas_servicios.style.fontSize = parseInt(ver_mas_servicios.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			ver_mas_servicios.style.fontSize = 12 + inc + "px";
		}

		var menus_2 = document.getElementById("menus-2");
		menus_2.style.width = 15 + ver_mas_ayuntamiento.offsetWidth + ver_mas_municipio.offsetWidth + 			ver_mas_servicios.offsetWidth + "px";

			//Seccion Destacamos

		var home_col_5 = document.getElementById("home-col-5");
		home_col_5.style.width = home_col_5.offsetWidth + parseInt(inc * 0.05 * home_col_5.offsetWidth) + "px";
		home_col_5.style.height = home_col_5.offsetHeight + (inc * 18) + "px";
		if (home_col_5.style.fontSize) {
			home_col_5.style.fontSize = parseInt(home_col_5.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			home_col_5.style.fontSize = 12 + inc + "px";
		}

		var home_col_6 = document.getElementById("home-col-6");
		home_col_6.style.width = home_col_6.offsetWidth + parseInt(inc * 0.05 * home_col_6.offsetWidth) + "px";
		home_col_6.style.height = home_col_6.offsetHeight + (inc * 18) + "px";
		if (home_col_6.style.fontSize) {
			home_col_6.style.fontSize = parseInt(home_col_6.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			home_col_6.style.fontSize = 12 + inc + "px";
		}

		var home_col_7 = document.getElementById("home-col-7");
		home_col_7.style.width = home_col_7.offsetWidth + parseInt(inc * 0.05 * home_col_7.offsetWidth) + "px";
		home_col_7.style.height = home_col_7.offsetHeight + (inc * 18) + "px";
		if (home_col_7.style.fontSize) {
			home_col_7.style.fontSize = parseInt(home_col_7.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			home_col_7.style.fontSize = 12 + inc + "px";
		}

		var menus_3 = document.getElementById("menus-3");
		menus_3.style.width = 15 + home_col_5.offsetWidth + home_col_6.offsetWidth + home_col_7.offsetWidth + "px";

			//Ir a noticias

		var leer_mas_ayuntamiento = document.getElementById("leer-mas-ayuntamiento");
		leer_mas_ayuntamiento.style.width = leer_mas_ayuntamiento.offsetWidth + parseInt(inc * 0.05 * 	leer_mas_ayuntamiento.offsetWidth) + "px";
		if (leer_mas_ayuntamiento.style.fontSize) {
			leer_mas_ayuntamiento.style.fontSize = parseInt(leer_mas_ayuntamiento.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			leer_mas_ayuntamiento.style.fontSize = 12 + inc + "px";
		}
	
		var leer_mas_municipio = document.getElementById("leer-mas-municipio");
		leer_mas_municipio.style.width = leer_mas_municipio.offsetWidth + parseInt(inc * 0.05 * leer_mas_municipio.offsetWidth) + "px";
		if (leer_mas_municipio.style.fontSize) {
			leer_mas_municipio.style.fontSize = parseInt(leer_mas_municipio.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			leer_mas_municipio.style.fontSize = 12 + inc + "px";
		}

		var leer_mas_servicios = document.getElementById("leer-mas-servicios");
		leer_mas_servicios.style.width = leer_mas_servicios.offsetWidth + parseInt(inc * 0.05 * leer_mas_servicios.offsetWidth) + "px";
		if (leer_mas_servicios.style.fontSize) {
			leer_mas_servicios.style.fontSize = parseInt(leer_mas_servicios.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			leer_mas_servicios.style.fontSize = 12 + inc + "px";
		}

		var menus_4 = document.getElementById("menus-4");
		menus_4.style.width = 15 + leer_mas_ayuntamiento.offsetWidth + leer_mas_municipio.offsetWidth + leer_mas_servicios.offsetWidth + "px";

		//Contenido Derecho
		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 home_col_4 = document.getElementById("home-col-4");
		home_col_4.style.height = home_col_1.offsetHeight + home_col_5.offsetHeight + ver_mas_ayuntamiento.offsetHeight + 18 + "px";

	   cont_der.style.width = cont_der.offsetWidth + parseInt(inc * 0.05 * cont_der.offsetWidth) + "px";

		var tiempo = document.getElementById("home-tiempo");
		var enlaces = tiempo.getElementsByTagName('a');
		if (enlaces[0].style.fontSize) {
			enlaces[0].style.fontSize = parseInt(enlaces[0].style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			enlaces[0].style.fontSize = 13 + inc + "px";
		}
		if (enlaces[1].style.fontSize) {
			enlaces[1].style.fontSize = parseInt(enlaces[1].style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			enlaces[1].style.fontSize = 13 + inc + "px";
		}
		if (enlaces[2].style.fontSize) {
			enlaces[2].style.fontSize = parseInt(enlaces[2].style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			enlaces[2].style.fontSize = 13 + inc + "px";
		}
		if (enlaces[3].style.fontSize) {
			enlaces[3].style.fontSize = parseInt(enlaces[3].style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			enlaces[3].style.fontSize = 13 + inc + "px";
		}

		var tiempo = document.getElementById("tiempo-online");
		var enlaces = tiempo.getElementsByTagName('a');
		if (enlaces[0].style.fontSize) {
			enlaces[0].style.fontSize = parseInt(enlaces[0].style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			enlaces[0].style.fontSize = 13 + inc + "px";
		}

		var agenda = document.getElementById("home-calendario");
		var caption = agenda.getElementsByTagName('caption');
		if (caption[0].style.fontSize) {
			caption[0].style.fontSize = parseInt(caption[0].style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			caption[0].style.fontSize = 13 + inc + "px";
		}
		var th = agenda.getElementsByTagName('th');
		for (i = 0; i < th.length; i++) {
			if (th[i].style.fontSize) {
				th[i].style.fontSize = parseInt(th[i].style.fontSize.replace("px", "")) + (inc * 1) + "px";
			} else {
				th[i].style.fontSize = 13 + inc + "px";
			}
		}
		var td = agenda.getElementsByTagName('td');
		for (i = 0; i < td.length; i++) {
			if (td[i].style.fontSize) {
				td[i].style.fontSize = parseInt(td[i].style.fontSize.replace("px", "")) + (inc * 1) + "px";
			} else {
				td[i].style.fontSize = 12 + inc + "px";
			}
		}
		var leyenda = document.getElementById("home-leyenda");
		if (leyenda.style.fontSize) {
			leyenda.style.fontSize = parseInt(leyenda.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			leyenda.style.fontSize = 11 + inc + "px";
		}
		//Cuerpo
		var cuerpo = document.getElementById("global-cuerpo");
		var cont_der = document.getElementById("home-contenido-derecha");
		var cont_izq = document.getElementById("home-contenido-izquierda");
		cont_izq.style.width = menus.style.width;
		cuerpo.style.width = 5 + cont_der.offsetWidth + cont_izq.offsetWidth + "px";

		//Cabecera
		var pestanias = document.getElementById("global-pestanias");
		pestanias.style.width = cuerpo.scrollWidth + "px";

	} //Fin de la portada

	//Pagina Interna
	
		//Migas de Pan
		var global_path_1 = document.getElementById('global-path-1');
		if (global_path_1) {
			if (global_path_1.style.fontSize) {
				global_path_1.style.fontSize = parseInt(global_path_1.style.fontSize.replace("px", "")) + (inc * 1) + "px";
			} else {
				global_path_1.style.fontSize = 12 + inc + "px";
			}
		}
		var global_path_2 = document.getElementById('global-path-2');
		if (global_path_2) {
			if (global_path_2.style.fontSize) {
				global_path_2.style.fontSize = parseInt(global_path_2.style.fontSize.replace("px", "")) + (inc * 1) + "px";
			} else {
				global_path_2.style.fontSize = 12 + inc + "px";
			}
		}
		var global_path_3 = document.getElementById('global-path-3');
		if (global_path_3) {
			if (global_path_3.style.fontSize) {
				global_path_3.style.fontSize = parseInt(global_path_3.style.fontSize.replace("px", "")) + (inc * 1) + "px";
			} else {
				global_path_3.style.fontSize = 12 + inc + "px";
			}
		}
		//Parte Izquierda
		//Aumentar layout izqierdo
	var layout_izq = document.getElementById("global-layout-izquierda");
	if (layout_izq) {
		layout_izq.style.width = layout_izq.offsetWidth + parseInt(inc * 0.05 * layout_izq.offsetWidth) + "px";
		//layout_izq.style.height = layout_izq.offsetHeight + (inc * 35) + "px";

		var global_nav_2_col_1 = document.getElementById("global-nav-2-col-1");
		if (global_nav_2_col_1) {
		
			if (global_nav_2_col_1.style.fontSize) {
				global_nav_2_col_1.style.fontSize = parseInt(global_nav_2_col_1.style.fontSize.replace("px", "")) + (inc * 1) + "px";
			} else {
				global_nav_2_col_1.style.fontSize = 12 + inc + "px";
			}
		}

		var global_nav_2_col_2 = document.getElementById("global-nav-2-col-2");
		if (global_nav_2_col_2) {
			//global_nav_2_col_2.style.height = global_nav_2_col_2.offsetHeight + (inc * 5) + "px";
			if (global_nav_2_col_2.style.fontSize) {
				global_nav_2_col_2.style.fontSize = parseInt(global_nav_2_col_2.style.fontSize.replace("px", "")) + (inc * 1) + "px";
			} else {
				global_nav_2_col_2.style.fontSize = 12 + inc + "px";
			}
		}

		var global_nav_2_col_3 = document.getElementById("global-nav-2-col-3");
		if (global_nav_2_col_3) {
			//global_nav_2_col_3.style.height = global_nav_2_col_3.offsetHeight + (inc * 5) + "px";
			if (global_nav_2_col_3.style.fontSize) {
				global_nav_2_col_3.style.fontSize = parseInt(global_nav_2_col_3.style.fontSize.replace("px", "")) + (inc * 1) + "px";
			} else {
				global_nav_2_col_3.style.fontSize = 12 + inc + "px";
			}
		}

		//Accesos rapidos
		var global_menu_selectores = document.getElementById("global-menu-selectores");
		if (global_menu_selectores.style.fontSize) {
			global_menu_selectores.style.fontSize = parseInt(global_menu_selectores.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			global_menu_selectores.style.fontSize = 11 + inc + "px";
		}
		
		//Parte Derecha
		var layout_der = document.getElementById("global-layout-derecha");
		if (inc > 0) {
			layout_der.style.width = layout_der.offsetWidth + parseInt(inc * 0.025 * layout_der.offsetWidth) + "px";
		} else {
			layout_der.style.width = layout_der.offsetWidth + parseInt(inc * 0.09 * layout_der.offsetWidth) + "px";
		}
		//layout_der.style.height = layout_der.offsetHeight + (inc * 25) + "px";

		if (layout_der.style.fontSize) {
			layout_der.style.fontSize = parseInt(layout_der.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			layout_der.style.fontSize = 12 + inc + "px";
		}

		var h3 = layout_der.getElementsByTagName('h3');
		for (i = 0; i < h3.length; i++) {
			if (h3[i].style.fontSize) {
				h3[i].style.fontSize = parseInt(h3[i].style.fontSize.replace("px", "")) + (inc * 1) + "px";
			} else {
				h3[i].style.fontSize = 13 + inc + "px";
			}
		}
	
		var eventos_fecha = document.getElementById("eventos-fecha");
		if (eventos_fecha.style.fontSize) {
			eventos_fecha.style.fontSize = parseInt(eventos_fecha.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			eventos_fecha.style.fontSize = 11 + inc + "px";
		}
		//Cuerpo
		var cuerpo = document.getElementById("global-cuerpo");
		var cont_der = document.getElementById("global-layout-derecha");
		var cont_izq = document.getElementById("global-layout-izquierda");
		cuerpo.style.width = 5 + cont_der.offsetWidth + cont_izq.offsetWidth + "px";

		//Cabecera
		var pestanias = document.getElementById("global-pestanias");
		pestanias.style.width = cuerpo.scrollWidth + "px";

	}			
		//Pie de pagina
		//Pie Izquierdo

		var direccion = document.getElementById("global-pie-direccion");
		if (direccion.style.fontSize) {
			direccion.style.fontSize = parseInt(direccion.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			direccion.style.fontSize = 12 + inc + "px";
		}

		//Pie Derecho

		var normas = document.getElementById("global-pie-in-der");
		//normas.style.width = normas.offsetWidth + parseInt(0.05 * normas.offsetWidth) + "px";
		if (normas.style.fontSize) {
			normas.style.fontSize = parseInt(normas.style.fontSize.replace("px", "")) + (inc * 1) + "px";
		} else {
			normas.style.fontSize = 12 + inc + "px";
		}

		//Aumentar todos los h2, select,...
		var select = document.getElementsByTagName('select');
		for(n = 0; n < select.length; n++) {
   			if(select[n].style.fontSize) {
   				select[n].style.fontSize = parseInt(select[n].style.fontSize.replace("px", "")) + (inc * 1) + "px";
   			} else {
   				select[n].style.fontSize = 11 + inc + "px";
   			}
		}

	if (layout_izq) {
		var h2 = layout_izq.getElementsByTagName('h2');
   		if(h2[0].style.fontSize) {
   			h2[0].style.fontSize = parseInt(h2[0].style.fontSize.replace("px", "")) + (inc * 1) + "px";
   		} else {
   			h2[0].style.fontSize = 11+ inc + "px";
   		}

		if(h2[1].style.fontSize) {
   			h2[1].style.fontSize = parseInt(h2[1].style.fontSize.replace("px", "")) + (inc * 1) + "px";
   		} else {
   			h2[1].style.fontSize = 11 + inc + "px";
   		}

		var h2 = layout_der.getElementsByTagName('h2');
   	if(h2[0].style.fontSize) {
   		h2[0].style.fontSize = parseInt(h2[0].style.fontSize.replace("px", "")) + (inc * 1) + "px";
   	} else {
   		h2[0].style.fontSize = 15 + inc + "px";
   	}
	}
	//aumentar 10 para las columnas de la pantalla inicial
	//aumentar 35 para el menu de accesibilidad
}

function resetFontSize() {

  if (tamano != 0) {
		//Cuerpo
	var cuerpo = document.getElementById("global-cuerpo");
	if (!cuerpo) { document.write("Error"); }
	cuerpo.style.width = "772px";
			
		//Cabecera
	//var pestanias = document.getElementById("global-pestanias");
	//pestanias.style.width = cuerpo.scrollWidth + "px";

	var herramientas = document.getElementById("global-herramientas");
	//herramientas.style.width = herramientas.scrollWidth  + (inc * 35) + "px";
	herramientas.style.fontSize = "10px";
	
		//Portada

	var home_col_1 = document.getElementById("home-col-1");
	if (home_col_1) {	//Si estamos en la portada...

		//Contenido Izquierdo

			//Menus

			//var home_col_1 = document.getElementById("home-col-1");
	   home_col_1.style.width = "188px";
	   home_col_1.style.height = home_col_1.offsetHeight + (tamano * -13) + "px";
		home_col_1.style.fontSize = "12px";
	
		var home_col_2 = document.getElementById("home-col-2");
		home_col_2.style.width = "188px";
		home_col_2.style.height = home_col_2.offsetHeight + (tamano * -13) + "px";
		home_col_2.style.fontSize = "12px";

	
		var home_col_3 = document.getElementById("home-col-3");
		home_col_3.style.width = "188px";
		home_col_3.style.height = home_col_3.offsetHeight + (tamano * -13) + "px";
		home_col_3.style.fontSize = "12px";

		var menus = document.getElementById("menus-1");
		menus.style.width = "575px";

			//Ver mas...
	
		var ver_mas_ayuntamiento = document.getElementById("Ver-mas-ayuntamiento");
		ver_mas_ayuntamiento.style.width = "188px";
		ver_mas_ayuntamiento.style.fontSize = "12px";

		var ver_mas_municipio = document.getElementById("Ver-mas-municipio");
		ver_mas_municipio.style.width = "188px";
		ver_mas_municipio.style.fontSize = "12px";

		var ver_mas_servicios = document.getElementById("Ver-mas-servicios");
		ver_mas_servicios.style.width = "188px";
		ver_mas_servicios.style.fontSize = "12px";

		var menus_2 = document.getElementById("menus-2");
		menus_2.style.width = "575px";

			//Seccion Destacamos

		var home_col_5 = document.getElementById("home-col-5");
		home_col_5.style.width = "188px";
		home_col_5.style.height = home_col_5.offsetHeight + (tamano * -18) + "px";
		home_col_5.style.fontSize = "12px";

		var home_col_6 = document.getElementById("home-col-6");
		home_col_6.style.width = "188px";
		home_col_6.style.height = home_col_6.offsetHeight + (tamano * -18) + "px";
		home_col_6.style.fontSize = "12px";

		var home_col_7 = document.getElementById("home-col-7");
		home_col_7.style.width = "188px";
		home_col_7.style.height = home_col_7.offsetHeight + (tamano * -18) + "px";
		home_col_7.style.fontSize = "12px";

		var menus_3 = document.getElementById("menus-3");
		menus_3.style.width = "575px";

			//Ir a noticias

		var leer_mas_ayuntamiento = document.getElementById("leer-mas-ayuntamiento");
		leer_mas_ayuntamiento.style.width = "188px";
		leer_mas_ayuntamiento.style.fontSize = "12px";
	
		var leer_mas_municipio = document.getElementById("leer-mas-municipio");
		leer_mas_municipio.style.width = "188px";
		leer_mas_municipio.style.fontSize = "12px";

		var leer_mas_servicios = document.getElementById("leer-mas-servicios");
		leer_mas_servicios.style.width = "188px";
		leer_mas_servicios.style.fontSize = "12px";

		var menus_4 = document.getElementById("menus-4");
		menus_4.style.width = "575px";

		var cont_izq = document.getElementById("home-contenido-izquierda");
		cont_izq.style.width = menus.style.width;

		//Contenido Derecho Agenda
		var cont_der = document.getElementById("home-contenido-derecha");
		//cont_der.style.height = cont_izq.offsetHeight - 5 + "px";
	   cont_der.style.width = "188px";

		var home_col_4 = document.getElementById("home-col-4");
		home_col_4.style.height = home_col_1.offsetHeight + home_col_5.offsetHeight + ver_mas_ayuntamiento.offsetHeight + 18 + "px";

		var tiempo = document.getElementById("home-tiempo");
		var enlaces = tiempo.getElementsByTagName('a');
		enlaces[0].style.fontSize = "13px";
		enlaces[1].style.fontSize = "13px";
		enlaces[2].style.fontSize = "13px";
		enlaces[3].style.fontSize = "13px";

		var tiempo = document.getElementById("tiempo-online");
		var enlaces = tiempo.getElementsByTagName('a');
		enlaces[0].style.fontSize = "13px";

		var agenda = document.getElementById("home-calendario");
		var caption = agenda.getElementsByTagName('caption');
		caption[0].style.fontSize = "13px";

		var th = agenda.getElementsByTagName('th');
		for (i = 0; i < th.length; i++) {
				th[i].style.fontSize = "12px";
		}
		var td = agenda.getElementsByTagName('td');
		for (i = 0; i < td.length; i++) {
				td[i].style.fontSize = "12px";
		}
		var leyenda = document.getElementById("home-leyenda");
			leyenda.style.fontSize = "11px";
	} //Fin de la portada

	//Pagina Interna
	
		//Migas de Pan
	var global_path_1 = document.getElementById('global-path-1');
	if (global_path_1) {
		global_path_1.style.fontSize = "12px";
	}
	var global_path_2 = document.getElementById('global-path-2');
	if (global_path_2) {
		global_path_2.style.fontSize = "12px";
	}
	var global_path_3 = document.getElementById('global-path-3');
	if (global_path_3) {
		global_path_3.style.fontSize = "12px";
	}
		//Parte Izquierda
		//Aumentar layout izqierdo
	var layout_izq = document.getElementById("global-layout-izquierda");
	if (layout_izq) {
		layout_izq.style.width = "188px";
		var global_nav_2_col_1 = document.getElementById("global-nav-2-col-1");
		if (global_nav_2_col_1) {
			//global_nav_2_col_1.style.height = global_nav_2_col_1.offsetHeight + (tamano * -5) + "px";
			global_nav_2_col_1.style.fontSize = "12px";
			//var opciones = global_nav_2_col_1.getElementsByTagName("li");
			//layout_izq.style.height = 374 + (opciones.length * 26) + "px";
		}
		
		var global_nav_2_col_2 = document.getElementById("global-nav-2-col-2");
		if (global_nav_2_col_2) {
			//global_nav_2_col_2.style.height = global_nav_2_col_2.offsetHeight + (tamano * -5) + "px";
			global_nav_2_col_2.style.fontSize = "12px";
			//var opciones = global_nav_2_col_2.getElementsByTagName("li");
			//layout_izq.style.height = 374 + (opciones.length * 26) + "px";
		}

		var global_nav_2_col_3 = document.getElementById("global-nav-2-col-3");
		if (global_nav_2_col_3) {
			//global_nav_2_col_3.style.height = global_nav_2_col_3.offsetHeight + (tamano * -5) + "px";
			global_nav_2_col_3.style.fontSize = "12px";
			//var opciones = global_nav_2_col_3.getElementsByTagName("li");
			//layout_izq.style.height = 374 + (opciones.length * 26) + "px";
		}

		//Accesos rapidos
		var global_menu_selectores = document.getElementById("global-menu-selectores");
		global_menu_selectores.style.fontSize = "12px";
		
		//Parte Derecha
		var layout_der = document.getElementById("global-layout-derecha");
		layout_der.style.width = "563px";
		//layout_der.style.height = layout_der.offsetHeight + (tamano * -25) + "px";
		layout_der.style.fontSize = "12px";

		var h3 = layout_der.getElementsByTagName('h3');
		for (i = 0; i < h3.length; i++) {
			h3[i].style.fontSize = "13px";
		}

		var eventos_fecha = document.getElementById("eventos-fecha");
			eventos_fecha.style.fontSize = "11px";

		//Cuerpo
		var cuerpo = document.getElementById("global-cuerpo");
		var cont_der = document.getElementById("global-layout-derecha");
		var cont_izq = document.getElementById("global-layout-izquierda");
		cuerpo.style.width = 5 + cont_der.offsetWidth + cont_izq.offsetWidth + "px";

		//Cabecera
		var pestanias = document.getElementById("global-pestanias");
		pestanias.style.width = cuerpo.scrollWidth + "px";

	}			
		//Pie de pagina
		//Pie Izquierdo

		var direccion = document.getElementById("global-pie-direccion");
		direccion.style.fontSize = "11px";

		//Pie Derecho

		var normas = document.getElementById("global-pie-in-der");
		normas.style.fontSize = "12px";

		//Aumentar todos los h2, select,...
		var select = document.getElementsByTagName('select');
		for(n = 0; n < select.length; n++) {
   		select[n].style.fontSize = "11px";
   	}

	if (layout_izq) {
		var h2 = layout_izq.getElementsByTagName('h2');
		h2[0].style.fontSize = "20px";

		h2[1].style.fontSize = "11px";

		var h2 = layout_der.getElementsByTagName('h2');
		h2[0].style.fontSize = "15px";
	}
	tamano = 0;
  }
}

