// JavaScript Document
<!--
	
	function resize(){
		//Averigua el tamaño de la pantalla
		var userScreen = document.getElementById('backDiv');
		var userWidth = Math.floor(parseFloat(userScreen.clientWidth));
		var userHeight = Math.floor(parseFloat(userScreen.clientHeight));
		var currentUniteWidth = userWidth/1440;
		var currentUniteHeight = userHeight/800;
		if(currentUniteWidth > currentUniteHeight){
			var currentUnite = currentUniteHeight;
		}else{
			var currentUnite = currentUniteWidth;
		}
		
		//Define el tamaño y posición del waiting div
		var waitingScreen = document.getElementById('waitingDiv');
		document.getElementById('waitingTable').style.width=userWidth+"px";
		document.getElementById('waitingTable').style.height=userHeight+"px";
		document.getElementById('waitingTextTable').style.width=userWidth+"px";
		document.getElementById('waitingTextTable').style.height=userHeight+"px";
		var browserVer = navigator.userAgent;
		var browserSplit = browserVer.split(";");
		var browserIndex = browserSplit[1].split(" ");
		
		//Cambia el tamaño del leftMenu
		var newHeight = userHeight - 40;
		changeCss('.leftMenu','height',newHeight+'px');
		var newWidth = Math.floor(350 * currentUnite);
		if(newWidth<250){newWidth=250;}
		changeCss('.leftMenu','width',newWidth+'px');
		
		//Cambia el tamaño del leftMenuTable
		newWidth = newWidth-10;
		changeCss('.leftMenuTable','width',newWidth+'px');
		changeCss('.leftMenuTable','height',newHeight+'px');
		
		//Cambia el tamaño del logo
		var newHeight = Math.floor((newWidth - 20) / 930 * 347);
		changeCss('.logo','height',newHeight+'px');
		
		//Cambia le tamaño del primer link box
		var newTop = newHeight + 40;
		document.getElementById('item-1').style.top = newTop+'px';
		document.getElementById('separator-1').style.top = newTop+'px';
		document.getElementById('separator-1').style.visibility = 'visible';
		document.getElementById('separator-0').style.top = newTop+'px';
		document.getElementById('separator-0').style.visibility = 'visible';
		
		//Cambia el tamaño del menuSelectionImage
		var newHeight = Math.floor(newWidth / 327 * 63);
		changeCss('.menuSelectionImage','height',newHeight+'px');
		changeCss('.menuSelectionImage','width',newWidth+'px');
		
		//cambia el valor del resto de los links boxs
		var newTop = newTop - newHeight;
		document.getElementById('separator-0').style.top = newTop+'px';
		var newTop = newTop + newHeight * 2;
		document.getElementById('item-2').style.top = newTop+'px';
		document.getElementById('separator-2').style.top = newTop+'px';
		document.getElementById('separator-2').style.visibility = 'visible';
		var newTop = newTop + newHeight;
		document.getElementById('item-3').style.top = newTop+'px';
		document.getElementById('separator-3').style.top = newTop+'px';
		document.getElementById('separator-3').style.visibility = 'visible';
		var newTop = newTop + newHeight;
		document.getElementById('item-4').style.top = newTop+'px';
		document.getElementById('separator-4').style.top = newTop+'px';
		document.getElementById('separator-4').style.visibility = 'visible';
		var newTop = newTop + newHeight;
		document.getElementById('item-5').style.top = newTop+'px';
		document.getElementById('separator-5').style.top = newTop+'px';
		document.getElementById('separator-5').style.visibility = 'visible';
		
		//Cambia el tamaño del menuSelection
		changeCss('.menuSelection','height',newHeight+'px');
		changeCss('.menuSelection','width',newWidth+'px');
		
		//Asigna el valor del ancho y alto del menuSelection a la variable que limita la animación
		widthLimit = newWidth;
		heightLimit = newHeight;
		
		//Cambia el tamaño del menuItem
		changeCss('.menuItem','height',newHeight+'px');
		var newSize = Math.floor(16 * currentUnite);
		if(newSize<13){newSize=13;}
		changeCss('.menuItem','fontSize',newSize+'px');
		
		//Cambia el tamaño de los socialNetwork icons
		var newHeight = Math.floor(newWidth / 327 * 59);
		changeCss('.socialNetwork','height',newHeight+'px');
		
		//Cambia los tamaños de los textos
		var textUnite = Math.floor(12*currentUnite)+"px";
		changeCss('body','font-size',textUnite);
		changeCss('td','font-size',textUnite);
		changeCss('th','font-size',textUnite);
		
		//Define el tamaño y la posición del contentsDiv
		var newWidth = Math.floor(350 * currentUnite);
		if(newWidth<250){newWidth=250;}
		var newLeft = newWidth + 40;
		changeCss('.contentsDiv','left',newLeft+'px');
		var newWidth = userWidth - newWidth - 70;
		changeCss('.contentsDiv','width',newWidth+'px');
		var newHeight = userHeight - 40;
		changeCss('.contentsDiv','height',newHeight+'px');
		
		//Define el galleryThumbTitle
		var galleryHeight = userHeight - 20;
		var newHeight = Math.floor(30 * currentUnite);
		changeCss('.galleryThumbTitle','height',newHeight+'px');
		var newFontSize = Math.floor(25 * currentUnite);
		changeCss('.galleryThumbTitle','fontSize',newFontSize+'px');
		var galleryWidth = Math.floor(350 * currentUnite);
		if(galleryWidth<250){galleryWidth=250;}
		var galleryWidth = userWidth - galleryWidth - 70;
		var galleryLeft = userWidth - galleryWidth - 25;
		changeCss('.galleryThumbTitle','width',galleryWidth+'px');
		changeCss('.galleryThumbTitle','top','10px');
		changeCss('.galleryThumbTitle','left',galleryLeft + 'px');
		
		//Define el galleryThumbTitleText
		var newFontSize = Math.floor(25 * currentUnite);
		changeCss('.galleryThumbTitleText','fontSize',newFontSize+'px');
		
		//Define el galleryThumbView
		var newHeight = userHeight - 35 - Math.floor(235 * currentUnite);
		changeCss('.galleryThumbView','width',galleryWidth+'px');
		changeCss('.galleryThumbView','left',galleryLeft+'px');
		changeCss('.galleryThumbView','height',newHeight+'px');
		var newTop = 15 + Math.floor(30 * currentUnite);
		changeCss('.galleryThumbView','top',newTop+'px');
		
		//Define el thumbDivContainer
		changeCss('.thumbDivContainer','width',galleryWidth+'px');
		changeCss('.thumbDivContainer','height',newHeight+'px');
		
		//Define el thumb
		changeCss('.thumbDivContainer','height',newHeight+'px');
		
		//Define el gallerySelectorDiv
		var newHeight = Math.floor(30 * currentUnite);
		changeCss('.gallerySelectorDiv','width',galleryWidth+'px');
		changeCss('.gallerySelectorDiv','left',galleryLeft+'px');
		changeCss('.gallerySelectorDiv','height',newHeight+'px');
		var newBottom = Math.floor(175 * currentUnite) + 15;
		changeCss('.gallerySelectorDiv','bottom',newBottom+'px');
		
		//Define el galleryPreview
		var newHeight = Math.floor(175 * currentUnite);
		changeCss('.galleryPreview','width',galleryWidth+'px');
		changeCss('.galleryPreview','left',galleryLeft+'px');
		changeCss('.galleryPreview','height',newHeight+'px');
		
		//Define el galleryPreviewTable
		changeCss('.galleryPreviewTable','height',newHeight+'px');
		
		//Define el galleryPreviewThumb
		var newHeight = Math.floor(175 * currentUnite) - 20;
		changeCss('.galleryPreviewThumb','height',newHeight+'px');
		
		//Define el thumbDiv
		changeCss('.thumbDiv','height',newHeight+'px');
		var newWidth = Math.floor(newHeight / 3 * 4);
		changeCss('.thumbDiv','width',newWidth+'px');
		
		//Define el tamaño del infoIcon
		var newBottom = 30 + Math.floor(205 * currentUnite); 
		changeCss('.infoIcon','bottom',newBottom+'px');
		var newWidth = Math.floor(30*currentUnite);
		changeCss('.infoIcon','width',newWidth+'px');
		var newHeight = Math.floor(30 * currentUnite);
		changeCss('.infoIcon','height',newHeight+'px');
		
		//Define el tamaño del infoDiv
		changeCss('.infoDiv','bottom',newBottom+'px');
		
		//Define el tamaño del contenidosImage
		var imageWidth = Math.floor(350 * currentUnite);
		changeCss('.contenidosImage','width',imageWidth+'px');
		var newPadding = Math.floor(30 * currentUnite);
		changeCss('.contenidosImage','paddingLeft',newPadding+'px');
		changeCss('.contenidosImage','paddingBottom',newPadding+'px');
		
		//Define el tamaño del texto del infoText
		var newFontSize = Math.floor(16 * currentUnite);
		changeCss('.infoText','fontSize',newFontSize+'px');
		
		//Define el tamaño del texto del titleText
		var newFontSize = Math.floor(20 * currentUnite);
		changeCss('.titleText','fontSize',newFontSize+'px');
		
		//Define el tamaño del texto del mainText
		var newFontSize = Math.floor(14 * currentUnite);
		changeCss('.mainText','fontSize',newFontSize+'px');
		
		//Define el tamaño del contenidosDisplayDiv
		changeCss('.contenidosDisplayDiv','width',galleryWidth+'px');
		changeCss('.contenidosDisplayDiv','height',galleryHeight+'px');
		
		//Revela el contenido de la web
		setTimeout('revealContent()',3000);
	}
//-->
