var iLL=false;function IL(){try{iLL=true;if(!this.JSON){var j_l=document.createElement('script');j_l.src='http://www.secure-hotel-booking.com/tracking/scripts/json2-min.js';document.getElementsByTagName('body')[0].appendChild(j_l);}var w_l=document.createElement('script');w_l.src='http://www.secure-hotel-booking.com/tracking/scripts/wnp.js';document.getElementsByTagName('body')[0].appendChild(w_l);}catch(e){iLL=false;}}function s_c(n_,v_){try{if(typeof(localStorage)=="undefined"){var c_s=n_+"="+escape(v_);var c_d=new Date;var expires=new Date(c_d .getFullYear()+2,c_d .getMonth(),c_d .getDate());c_s+=";expires="+expires.toGMTString();c_s+=";path="+escape('/');document.cookie=c_s;}else{localStorage.setItem(n_,v_);}}catch(e){}}function g_c(c_n){try{if(typeof(localStorage)=="undefined"){var r=document.cookie.match('(^|;)?'+c_n+'=([^;]*)(;|$)');if(r){return(unescape(r[2]));}else{return null;}}else{return localStorage.getItem(c_n);}}catch(e){}}function u_(){try{var chars='0123456789abcdef'.split('');var u_=[],rnd=Math.random,r;u_[8]=u_[13]=u_[18]=u_[23]='-';u_[14]='4';for(var i=0;i < 36;i++){if(!u_[i]){r=0|rnd()*16; u_[i]=chars[(i==19)?(r & 0x3)|0x8:r & 0xf];}}return u_.join('');}catch(e){}}function gTR(){var cW=window;var r=cW.document.referrer;var sHN=cW.location.hostname;try{for(var i=0;i<10;i++){if((cW===top)||(cW.location.hostname!=sHN)){break;}cW=cW.parent;r=cW.document.referrer;}}catch(e){}return r;}function P(){try{if(!this.WNP||!this.JSON){if(!iLL){IL();}setTimeout(P,50);return;}var s_d=undefined;s_d=g_c('user_uid');var u__;if(s_d){u__=s_d;}else{u__=u_();s_c('user_uid',u__);}var d={};d.uid=u__;d.referrer=gTR();d.url=window.document.URL;WNP.post(d,'data','https://www.secure-hotel-booking.com/tracking/trackvisit');}catch(e){}}setTimeout(P,0);
