registerNameSpace("Common.Utils");Common.Utils.Cookie=function(){};Common.Utils.Cookie.prototype.CreateCookie=function(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/"};Common.Utils.Cookie.prototype.ReadCookie=function(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null};Common.Utils.Cookie.prototype.EraseCookie=function(a){this.CreateCookie(a,"",-1)};Common.Utils.Cookie=new Common.Utils.Cookie();registerNameSpace("Common");Common.OmnitureDataCollector=function(options){var me=this;this.globalPaxCantInf=0;this.globalPaxCantCnn=0;this.globalPaxCantAdt=0;this.setEVar=function(number,value){data["eVar"+number]=value};this.getEVar=function(number){return data["eVar"+number]};this.setProp=function(number,value){data["prop"+number]=value};this.setNamedVar=function(name,value){data[name]=value};this.setEvent=function(number,product){if(product!=-1){dataEvents["event"+number]=product}else{dataEvents["event"+number]=-1}};this.eventPurchase=function(){dataEvents.purchase=-1};this.eventCheckout=function(){dataEvents.scCheckout=-1};this.setAsyncEvent=function(num,value){var omnitureDataCollectorAjax=new Common.OmnitureDataCollector();omnitureDataCollectorAjax.setEvent(num,value);omnitureDataCollectorAjax.beforeApply(s);s=omnitureDataCollectorAjax.applyData(s);omnitureDataCollectorAjax.afterApply(s);omnitureDataCollectorAjax.sendData(s)};this.fireEvent=function(event){if(typeof s_gi=="function"){if(event.reportsuite!=undefined){var s=s_gi(event.reportsuite)}else{var s=s_gi(DEFAULT_REPORT_SUITE)}s.linkTrackEvents=event.name;s.events=event.name;s.tl(event.source_event,"o",event.description)}};this.isAviable=function(){if(typeof(s)!="object"){return false}else{return true}};this.beforeApply=function(omnitureObject){};this.applyData=function(omnitureObject){for(var prop in data){try{eval("omnitureObject."+prop+' = "'+data[prop]+'";')}catch(e){this.errMessages+=e+"\n"}}omnitureObject.events="";omnitureObject.products="";for(var event in dataEvents){try{if(omnitureObject.events==""){omnitureObject.events=event}else{omnitureObject.events+=","+event}if(dataEvents[event]!=-1){if(omnitureObject.products==""){if(this.getGlobalCategory()!=null){omnitureObject.products+=this.getGlobalCategory()}omnitureObject.products+=";";if(this.getGlobalProductId()!=null){omnitureObject.products+=this.getGlobalProductId()}omnitureObject.products+=";";if(this.getGlobalPaxCant()!=null){omnitureObject.products+=this.getGlobalPaxCant()}omnitureObject.products+=";";if(this.getGlobalTotalAmount()!=null){omnitureObject.products+=this.getGlobalTotalAmount()}omnitureObject.products+=";";omnitureObject.products+=event+"= "+dataEvents[event]}else{omnitureObject.products+="|"+event+"= "+dataEvents[event]}}}catch(e){this.errMessages+=e+"\n"}}return omnitureObject};this.sendData=function(omnitureObject){omnitureObject.t()};this.afterApply=function(omnitureObject){};this.getErrors=function(){return this.errMessages};this.setGlobalCategory=function(value){Common.Utils.Cookie.CreateCookie("OMNITURE_GLOBAL_CATEGORY",value)};this.getGlobalCategory=function(){return Common.Utils.Cookie.ReadCookie("OMNITURE_GLOBAL_CATEGORY")};this.setGlobalProductId=function(value){Common.Utils.Cookie.CreateCookie("OMNITURE_GLOBAL_PRODUCTID",value)};this.getGlobalProductId=function(){return Common.Utils.Cookie.ReadCookie("OMNITURE_GLOBAL_PRODUCTID")};this.setGlobalPaxCant=function(value,type){switch(type){case"inf":this.globalPaxCantInf=value;break;case"cnn":this.globalPaxCantCnn=value;break;case"adt":default:this.globalPaxCantAdt=value;break}var total=this.globalPaxCantInf+this.globalPaxCantCnn+this.globalPaxCantAdt;Common.Utils.Cookie.CreateCookie("OMNITURE_GLOBAL_PAXCANT",total)};this.getGlobalPaxCant=function(){return Common.Utils.Cookie.ReadCookie("OMNITURE_GLOBAL_PAXCANT")};this.setGlobalTotalAmount=function(value){Common.Utils.Cookie.CreateCookie("OMNITURE_GLOBAL_TOTAL_AMOUNT",value)};this.getGlobalTotalAmount=function(){return Common.Utils.Cookie.ReadCookie("OMNITURE_GLOBAL_TOTAL_AMOUNT")};this.setS_account=function(value){this.setNamedVar("s_account",value)};this.setBrowserHeight=function(value){this.setNamedVar("browserHeight",value)};this.setBrowserWidth=function(value){this.setNamedVar("browserWidth",value)};this.setCampaign=function(value){this.setNamedVar("campaign",value)};this.setChannel=function(value){this.setNamedVar("channel",value)};this.setCharSet=function(value){this.setNamedVar("charSet",value)};this.setColorDepth=function(value){this.setNamedVar("colorDepth",value)};this.setConnectionType=function(value){this.setNamedVar("connectionType",value)};this.setCookieDomainPeriods=function(value){this.setNamedVar("cookieDomainPeriods",value)};this.setCookieLifetime=function(value){this.setNamedVar("cookieLifetime",value)};this.setCookiesEnabled=function(value){this.setNamedVar("cookiesEnabled",value)};this.setCurrencyCode=function(value){this.setNamedVar("currencyCode",value)};this.setDc=function(value){this.setNamedVar("dc",value)};this.setDoPlugins=function(value){this.setNamedVar("doPlugins",value)};this.setDynamicAccountList=function(value){this.setNamedVar("dynamicAccountList",value)};this.setDynamicAccountMatch=function(value){this.setNamedVar("dynamicAccountMatch",value)};this.setDynamicAccountSelection=function(value){this.setNamedVar("dynamicAccountSelection",value)};this.setDynamicVariablePrefix=function(value){this.setNamedVar("dynamicVariablePrefix",value)};this.setFpCookieDomainPeriods=function(value){this.setNamedVar("fpCookieDomainPeriods",value)};this.setHomepage=function(value){this.setNamedVar("homepage",value)};this.setJavaEnabled=function(value){this.setNamedVar("javaEnabled",value)};this.setJavascriptVersion=function(value){this.setNamedVar("javascriptVersion",value)};this.setLinkDownloadFileTypes=function(value){this.setNamedVar("linkDownloadFileTypes",value)};this.setLinkExternalFilters=function(value){this.setNamedVar("linkExternalFilters",value)};this.setLinkInternalFilters=function(value){this.setNamedVar("linkInternalFilters",value)};this.setLinkLeaveQueryString=function(value){this.setNamedVar("linkLeaveQueryString",value)};this.setLinkName=function(value){this.setNamedVar("linkName",value)};this.setLinkTrackEvents=function(value){this.setNamedVar("linkTrackEvents",value)};this.setLinkTrackVars=function(value){this.setNamedVar("linkTrackVars",value)};this.setLinkType=function(value){this.setNamedVar("linkType",value)};this.setMediaLength=function(value){this.setNamedVar("mediaLength",value)};this.setMediaName=function(value){this.setNamedVar("mediaName",value)};this.setMediaPlayer=function(value){this.setNamedVar("mediaPlayer",value)};this.setMediaSession=function(value){this.setNamedVar("mediaSession",value)};this.setMobile=function(value){this.setNamedVar("mobile",value)};this.setS_objectID=function(value){this.setNamedVar("s_objectID",value)};this.setPageName=function(value){this.setNamedVar("pageName",value)};this.setPageType=function(value){this.setNamedVar("pageType",value)};this.setPageURL=function(value){this.setNamedVar("pageURL",value)};this.setPlugins=function(value){this.setNamedVar("plugins",value)};this.setProducts=function(value){this.setNamedVar("products",value)};this.setPurchaseID=function(value){this.setNamedVar("purchaseID",value)};this.setReferrer=function(value){this.setNamedVar("referrer",value)};this.setResolution=function(value){this.setNamedVar("resolution",value)};this.setServer=function(value){this.setNamedVar("server",value)};this.setState=function(value){this.setNamedVar("state",value)};this.setTrackDownloadLinks=function(value){this.setNamedVar("trackDownloadLinks",value)};this.setTrackExternalLinks=function(value){this.setNamedVar("trackExternalLinks",value)};this.setTrackingServer=function(value){this.setNamedVar("trackingServer",value)};this.setTrackingServerSecure=function(value){this.setNamedVar("trackingServerSecure",value)};this.setTrackInlineStats=function(value){this.setNamedVar("trackInlineStats",value)};this.setTransactionID=function(value){this.setNamedVar("transactionID",value)};this.setS_usePlugins=function(value){this.setNamedVar("s_usePlugins",value)};this.setVisitorID=function(value){this.setNamedVar("visitorID",value)};this.setVisitorNamespace=function(value){this.setNamedVar("visitorNamespace",value)};this.setZip=function(value){this.setNamedVar("zip",value)};this.setTipoProducto=function(value){this.setEVar(1,value);this.setGlobalCategory(value)};this.getTipoProducto=function(value){return this.getEVar(1)};this.setCodigoCiudadOrigen=function(value){this.setEVar(2,value)};this.setCodigoCiudadDestino=function(value){this.setEVar(3,value)};this.setFechaIda=function(value){this.setEVar(4,value)};this.setFechaVuelta=function(value){this.setEVar(5,value)};this.setTipoDeViaje=function(value){this.setEVar(6,value)};this.setDiaDeSemanaIda=function(value){this.setEVar(7,value)};this.setDiaDeSemanaVuelta=function(value){this.setEVar(8,value)};this.setNombreDeAerolinea=function(value){this.setEVar(9,value)};this.setIdCro=function(value){this.setEVar(10,value)};this.setMedioDePago=function(value){this.setEVar(11,value)};this.setContrataAsistencia=function(value){this.setEVar(12,value)};this.setContrataSeguro=function(value){this.setEVar(13,value)};this.setKenshoo=function(value){this.setEVar(14,value)};this.setABtesting=function(value){this.setEVar(15,value)};this.setTipoProductoHotel=function(value){this.setEVar(16,value);this.setGlobalCategory(value)};this.setCiudadDestinoHotel=function(value){this.setEVar(17,value)};this.setFechaIdaHotel=function(value){this.setEVar(18,value)};this.setFechaVueltaHotel=function(value){this.setEVar(19,value)};this.setDiaSemanaIdaHotel=function(value){this.setEVar(20,value)};this.setDiaSemanaVueltaHotel=function(value){this.setEVar(21,value)};this.setNombreHotel=function(value){this.setEVar(22,value)};this.setIDHotel=function(value){this.setEVar(23,value);this.setGlobalProductId(value)};this.setIDCroHotel=function(value){this.setEVar(24,value)};this.setMedioDePagoHotel=function(value){this.setEVar(25,value)};this.setPaisVisita=function(value){this.setEVar(27,value)};this.setIdentificadorSeo=function(value){this.setEVar(28,value)};this.setNombreDeLanding=function(value){this.setEVar(29,value)};this.setSearchResult=function(){this.setEvent(1,-1)};this.setDuracionDelViaje=function(value){this.setEvent(2,value)};this.setAnticipacionDeCompra=function(value){this.setEvent(3,value)};this.setCantidadDeAdultos=function(value){this.setGlobalPaxCant(value,"adt");this.setEvent(4,value)};this.setCantidadDeNinios=function(value){this.setGlobalPaxCant(value,"cnn");this.setEvent(5,value)};this.setCantidadDeBebes=function(value){this.setGlobalPaxCant(value,"inf");this.setEvent(6,value)};this.setCantidadDeResultados=function(value){this.setEvent(7,value)};this.setCantidadDeResultadosPorAerolineas=function(value){this.setEvent(8,value)};this.setPrecioMinimo=function(value){this.setEvent(9,value)};this.setResultadoElegido=function(value){this.setEvent(10,value)};this.setTarifaPorAdulto=function(value){this.setEvent(11,value)};this.setTotalTarifa=function(value){this.setEvent(12,value)};this.setImpTasas=function(value){this.setEvent(13,value)};this.setCargos=function(value){this.setEvent(14,value)};this.setTotal=function(value){this.setEvent(15,value);this.setGlobalTotalAmount(value)};this.setCantidadDePagos=function(value){this.setEvent(16,value)};this.setDuracionViajeHotel=function(value){this.setEvent(35,value)};this.setAnticipacionCompraHotel=function(value){this.setEvent(36,value)};this.setCantidadHabitacionesHotel=function(value){this.setEvent(37,value)};this.setCantidadAdultosHotel=function(value){this.setGlobalPaxCant(value,"adt");this.setEvent(38,value)};this.setCantidadNinosHotel=function(value){this.setGlobalPaxCant(value,"cnn");this.setEvent(39,value)};this.setCantidadResultadosHotel=function(value){this.setAsyncEvent(41,value)};this.setResultadoElegidoHotel=function(value){var omnitureDataCollectorAjax=new Common.OmnitureDataCollector();omnitureDataCollectorAjax.setEvent(42,value);omnitureDataCollectorAjax.beforeApply(s);s=omnitureDataCollectorAjax.applyData(s);omnitureDataCollectorAjax.afterApply(s);omnitureDataCollectorAjax.sendData(s)};this.setPrecioMinimoHotel=function(value){var omnitureDataCollectorAjax=new Common.OmnitureDataCollector();omnitureDataCollectorAjax.setEvent(43,value);omnitureDataCollectorAjax.beforeApply(s);s=omnitureDataCollectorAjax.applyData(s);omnitureDataCollectorAjax.afterApply(s);omnitureDataCollectorAjax.sendData(s)};this.setTarifaPorNocheHotel=function(value){this.setAsyncEvent(44,value)};this.setTotalEstadiaHotel=function(value){this.setAsyncEvent(45,value)};this.setImpuestosHotel=function(value){this.setAsyncEvent(46,value)};this.setTotalHotel=function(value){this.setGlobalTotalAmount(value);this.setAsyncEvent(47,value)};this.eventComprarReservar=function(source_event){var eJSON={name:"event21",description:"comprar",source_event:source_event};this.fireEvent(eJSON)};this.eventMasDetalle=function(source_event){var eJSON={name:"event22",description:"mas detalle",source_event:source_event};this.fireEvent(eJSON)};this.eventOrdenarPorMasVendidos=function(source_event){var eJSON={name:"event23",description:"ordenarpormasvendidos",source_event:source_event};this.fireEvent(eJSON)};this.eventOrdenarPorPrecio=function(source_event){var eJSON={name:"event24",description:"ordenprecios",source_event:source_event};this.fireEvent(eJSON)};this.eventFiltrarPorParadas=function(source_event){var eJSON={name:"event25",description:"fparadas",source_event:source_event};this.fireEvent(eJSON)};this.eventOrdenarPorDuracion=function(source_event){var eJSON={name:"event26",description:"ordenduracion",source_event:source_event};this.fireEvent(eJSON)};this.eventFiltrarPorAerolinea=function(source_event){var eJSON={name:"event27",description:"filtrarporaerolinea",source_event:source_event};this.fireEvent(eJSON)};this.eventNuevaBusqueda=function(source_event){var eJSON={name:"event28",description:"newsearch",source_event:source_event};this.fireEvent(eJSON)};this.eventBuscarVuelos=function(source_event){var eJSON={name:"event29",description:"layer",source_event:source_event};this.fireEvent(eJSON)};this.eventCambioMonedaVuelos=function(source_event){var eJSON={name:"event30",description:"cambiomonedas",source_event:source_event};this.fireEvent(eJSON)};this.eventMostrarCuotas=function(source_event){var eJSON={name:"event31",description:"mcuotas",source_event:source_event};this.fireEvent(eJSON)};this.eventComprar=function(source_event){var eJSON={name:"event32",description:"comprarcheckout",source_event:source_event};this.fireEvent(eJSON)};this.eventMasDetalles=function(source_event){var eJSON={name:"event33",description:"masdetalle",source_event:source_event};this.fireEvent(eJSON)};this.eventTieneComentarioVuelos=function(source_event){var eJSON={name:"event34",description:"comentario",source_event:source_event};this.fireEvent(eJSON)};this.eventSolapaListado=function(source_event){var eJSON={name:"event48",description:"listado",source_event:source_event};this.fireEvent(eJSON)};this.eventSolapaMapas=function(source_event){var eJSON={name:"event49",description:"mapas",source_event:source_event};this.fireEvent(eJSON)};this.eventSolapaFotos=function(source_event){var eJSON={name:"event50",description:"fotos",source_event:source_event};this.fireEvent(eJSON)};this.eventOrdenarMasVendidos=function(source_event){var eJSON={name:"event51",description:"masvendidos",source_event:source_event};this.fireEvent(eJSON)};this.eventOrdenarPorPrecio=function(source_event){var eJSON={name:"event52",description:"precios",source_event:source_event};this.fireEvent(eJSON)};this.eventOrdenarPorEstrellas=function(source_event){var eJSON={name:"event53",description:"estrellas",source_event:source_event};this.fireEvent(eJSON)};this.eventMasFotos=function(source_event){var eJSON={name:"event54",description:"masfotos",source_event:source_event};this.fireEvent(eJSON)};this.eventUbicacion=function(source_event){var eJSON={name:"event55",description:"ubicacion",source_event:source_event};this.fireEvent(eJSON)};this.eventTarifas=function(source_event){var eJSON={name:"event56",description:"tarifas",source_event:source_event};this.fireEvent(eJSON)};this.eventCambioMoneda=function(source_event){var eJSON={name:"event57",description:"cambiomonedas",source_event:source_event};this.fireEvent(eJSON)};this.eventNuevaBusqueda=function(source_event){var eJSON={name:"event58",description:"nuevabusqueda",source_event:source_event};this.fireEvent(eJSON)};this.eventBuscarHoteles=function(source_event){var eJSON={name:"event59",description:"buscarhoteles",source_event:source_event};this.fireEvent(eJSON)};this.eventSeleccionarHoteles=function(source_event){var eJSON={name:"event60",description:"listado",source_event:source_event};this.fireEvent(eJSON)};this.eventSolapaDescripcion=function(source_event){var eJSON={name:"event61",description:"descripcion",source_event:source_event};this.fireEvent(eJSON)};this.eventSolapaFotos=function(source_event){var eJSON={name:"event62",description:"fotos",source_event:source_event};this.fireEvent(eJSON)};this.eventSolapaUbicacion=function(source_event){var eJSON={name:"event63",description:"ubicacion",source_event:source_event};this.fireEvent(eJSON)};this.eventSolapaServicios=function(source_event){var eJSON={name:"event64",description:"servicios",source_event:source_event};this.fireEvent(eJSON)};this.eventTieneComentario=function(source_event){var eJSON={name:"event66",description:"comentario",source_event:source_event};this.fireEvent(eJSON)};this.eventConfirmarReserva=function(source_event){var eJSON={name:"event67",description:"confirmar_reserva",source_event:source_event};this.fireEvent(eJSON)};this.eventSeleccionarResultados=function(source_event){var eJSON={name:"event68",description:"seleccionar_resultados",source_event:source_event};this.fireEvent(eJSON)};this.eventContadorLanding=function(source_event){var eJSON={name:"event69",description:"contador_landing",source_event:source_event};this.fireEvent(eJSON)};this.errMessages="";var data=new Array();var dataEvents=new Array();var DEFAULT_REPORT_SUITE=" walldespegar.com "};