// JavaScript Document
/*
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
*/
// FUNCIONES DE COLOCACION Y CALCULOS INICIALES

var myWidth = 0, myHeight = 0, vAlto = 0, vAncho=0;
var WidthHeigth;

function GetWidthHeight() {
	  var myWidth = 0;
	  var myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight-38;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight-60;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	  }
	  return [myWidth,myHeight];
}

function ReCalcularMedidas(){
	WidthHeigth = GetWidthHeight();
	myWidth = WidthHeigth[0];
	if(myWidth<1000) {myWidth=1000;}
	myHeight  = WidthHeigth[1];
	
	vAlto = (myHeight-431)/2;
	vAncho = (myWidth-1000)/2;
	
	//document.write("<style>#loadingNotice {top:"+ vAlto +"px;height:390px;}</style>");
}
ReCalcularMedidas();


function VerificaInicializacion() {
	initScrollLayers();
	ReCalcularMedidas();
	if (navigator.appVersion.indexOf("MSIE")!=-1)
		{
			initLightbox();
		}

}
