var FRWK_JS_PATH="/js/";var LIB_ROOT_PATHS={FrameworkJS:"js",Hotels:"hotels/js",Cruises:"cruises/js",Flights:"flights/js","flights-web":"shop/flights/js",Social:"Turismo/Content/js",Nibbler:"nibbler-js",Commercial:"commercial-web/js",LandingHotels:"landing-hotels-web/js",LandingFlights:"landing-flights-web/js",HomeMobile:"mobile-home-web/js",HotelsMobile:"mobile-hotels-web/js",FlightsMobile:"mobile-flights-web/js",CheckoutHotelsMobile:"mobile-checkout-hotels-web/js",CheckoutFlightsMobile:"mobile-checkout-flights-web/js",SaleServices:"sale-services/js",Home:"home-web/js",GdsService:"gds-services-web/js"};function registerNameSpace(d){var c=d.split(".");var a=window;for(var b=0;b<c.length;b++){if(typeof a[c[b]]=="undefined"){a[c[b]]=new Object()}a=a[c[b]]}}function loadJS(c){xmlhttp=null;if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest()}else{if(window.ActiveXObject){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}}headTag=document.getElementsByTagName("head")[0];var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("charset","utf-8");if(xmlhttp!=null){xmlhttp.open("GET",c,false);xmlhttp.send(null);var a="//START of '"+c+"' file \n";a+=xmlhttp.responseText;a+="//END of '"+c+"' file \n";if(xmlhttp.status==200||xmlhttp.status==0||xmlhttp.status==undefined){b.text=a}else{b.text="//ERROR al cargar archivo '"+c+"' ("+xmlhttp.statusText+")\n"}}else{b.text="//ERROR al cargar archivo '"+c+"' (no se pudo instanciar XMLHttpRequest)\n"}headTag.appendChild(b)}function getJSClassPath(a){var b="";var d=a.split(".");for(var c=0;c<d.length;c++){if(c==0){b=LIB_ROOT_PATHS[d[c]]+"/"}b+=d[c];if(c<d.length-1){b+="/"}}b+=".js";return"/"+b}function loadCustomJS(a){loadJS(FRWK_JS_PATH+"custom/"+a)}function loadJSClass(a){loadJS(getJSClassPath(a))}var errorHandler=function(){var c="/loggerjs";var f=Math.floor((900000000000)*Math.random())+100000000000;var d=function(){var h=new Array();var g=0;return{add:function(i){i.StackPosition=g;h.push(i);g++},clear:function(){h=new Array();g=0},toString:function(){var l="";var n=1;for(var j=h.length-1;j>=0;j--){if(h[j].SentErrorMessage==undefined){n=1;strCurrPos="{";for(var m in h[j]){var k=typeof h[j][m];if(k=="string"||k=="number"||k=="boolean"){strCurrPos+='"'+m+'":"'+h[j][m]+'",'}else{strCurrPos+='"'+m+'":"ERROR: Data type \''+typeof h[j][m]+"' not allowed as debugInfo\","}}if(strCurrPos[strCurrPos.length-1]==","){strCurrPos=strCurrPos.substring(0,strCurrPos.length-1)}strCurrPos+="},";if(strCurrPos!="{},"){l+=strCurrPos}}else{if(j>0&&h[j].SentErrorMessage!=h[j-1].SentErrorMessage){l+='{"SentErrorMessage":"'+h[j].SentErrorMessage;if(n>1){l+=" ("+n+" repetitions)"}l+='"},';n=1}else{if(j==0){l+='{"SentErrorMessage":"'+h[j].SentErrorMessage;if(n>1){l+=" ("+n+" repetitions)"}l+='"},'}n++}}}if(l[l.length-1]==","){l=l.substring(0,l.length-1)}l="["+l+"]";return l}}}();var b=function(){var g=new Object();for(var i in navigator){var h=typeof navigator[i];if(h=="string"||h=="number"||h=="boolean"){switch(i){case"javaEnabled":case"taintEnabled":case"preference":case"registerContentHandler":case"registerProtocolHandler":case"mozIsLocallyAvailable":break;default:g[i]=navigator[i].toString();break}}}return{props:g,toString:function(){var j="";j+="{";for(var k in g){j+='"'+k+'":"'+g[k].toString()+'",'}if(j[j.length-1]==","){j=j.substring(0,j.length-1)}j+="}";return j}}}();var a=function(){return{curMsg:"",curUrl:"",curLineNumber:"",currLocationHref:window.location.href,set:function(i,h,g){this.curMsg=i;this.curUrl=h;this.curLineNumber=g},toString:function(){return'{"Message":"'+this.curMsg+'","Url":"'+this.curUrl+'","LineNumber":"'+this.curLineNumber+'","LocationHref":"'+this.currLocationHref+'"}'}}}();var e=function(g){if(typeof XMLHttpRequest!="undefined"){var h=new XMLHttpRequest();h.open("POST",c,true);h.send(g)}};return{throwOverride:function(i,h,g){return false},handler:function(i,h,g){a.set(i,h,g);e(this.toString());d.add({SentErrorMessage:i});return this.throwOverride(i,h,g)},addDebugInfo:d.add,clearDebugInfo:d.clear,toString:function(){var g="{";g+='"InstanceID":'+f+",";g+='"ErrorInfo":'+a.toString()+",";g+='"DebugInfo":'+d.toString()+",";g+='"Navigator":'+b.toString()+",";if(g[g.length-1]==","){g=g.substring(0,g.length-1)}g+="}";return g},toHTML:function(){var g=document.createElement("div");var h="			<dl>					<dt>Informacion del error:</dt>					<dd>Mensaje: "+a.curMsg+"</dd>					<dd>Linea: "+a.curLineNumber+"</dd>					<dd>URL: "+a.curUrl+"</dd>					<dt>Informacion del Browser:</dt>";for(prop in b.props){h+="<dd>"+prop+": "+b.props[prop]+"</dd>"}h+="<dt>Debug Info Stack:</dt>					<dd>						"+d.toString()+"					</dd>			</dl>			";g.innerHTML=h;return g}}}();window.onerror=function(c,b,a){return errorHandler.handler(c,b,a)};
