var altoPantalla = 0;
var altoPagina = 0;
var anchoPantalla = 0;

function sizePantalla(){
	if (self.innerHeight) {
		altoPagina = document.height;
		altoPantalla = parseInt(self.innerHeight);
		anchoPantalla = parseInt(self.innerWidth);
	}else if (document.documentElement && document.documentElement.clientHeight) {
		altoPagina = document.body.offsetHeight;
		altoPantalla = parseInt(document.documentElement.clientHeight);
		anchoPantalla = parseInt(document.documentElement.clientWidth);
	}else if (document.body.clientHeight) {
		altoPagina = document.body.offsetHeight;
		altoPantalla = parseInt(document.body.clientHeight);
		anchoPantalla = parseInt(document.body.clientWidth);
	}
}

function mirarSizePantalla(){
	sizePantalla();
	
	if (altoPantalla > 804) document.getElementById('contenido').style.height = altoPantalla - 74 + "px";
	else document.getElementById('contenido').style.height = 730 + "px";
}


function verCatalogo(cual){
	sizePantalla();
	
	window.open("swf/" + cual, "catalogo","width=" + anchoPantalla +",height=" + (altoPantalla+100) + ",menubars=no,scrollbars=yes");
}
