/*arreglarAltura.js*/
function arreglarAltura() {
	if(document.body.clientHeight!=undefined) {
		altura = document.body.clientHeight;
	}
	else if (window.innerHeight!=undefined) {
		altura = window.innerHeight;
	}
	if(altura < 500) {
		//document.getElementById('contenedorSuperior')
		//contenedorAlternativo = document.getElementById('contenedorSuperior');
		
		contenidos = document.getElementById('contenedor').innerHTML;
		document.getElementById('contenedorSuperior').innerHTML = contenidos;
		document.getElementById('contenedorSuperior').style.display = "block";
		document.getElementById('contenedor').style.display = "none";
		
		fondo = document.getElementById('contenedor').style.backgroundImage;
		document.getElementById('contenedorSuperior').style.background = fondo;
	}
}

if(window.attachEvent) {
	window.attachEvent("onload", arreglarAltura);
}

if(window.addEventListener) {
	window.addEventListener("load", arreglarAltura, false);
}
