function WebTrends(){this.dcsid="dcsfaep7pvz5bdrv618hi4msg_2r4m";this.domain="statse.webtrendslive.com";this.timezone=0;this.fpcdom=".londonandpartners.com";this.onsitedoms="www.londonandpartners.com,londonandpartners.com,vlstatic.com,static.visitlondon.com,traveltrade.visitlondon.com,awards.visitlondon.com,business.visitlondon.com,partners.visitlondon.com,blog.visitlondon.com,visitlondon.com.cn,www.goldentours.co.uk,www.goldentours.com,www.seetickets.com,www.visitlondonoffers.com,visitlondon.eolts.co.uk,tripadvisor.com,secure.bookhostels.com,euro.wwte7.com,es.wwte34.com,it.wwte33.com,de.wwte32.com,nl.wwte5.com,visitlondon.wwte1.com,travel.ian.com";
this.downloadtypes="xls,doc,pdf,txt,csv,zip,mp3,ppt,docx,xslx,wmv,avi,mp4";this.navigationtag="div,table";this.enabled=this.trimoffsiteparams=this.trackevents=!0;this.i18n=!1;this.fpc="WT_FPC";this.paidsearchparams="gclid";this.splitvalue="";this.preserve=!0;this.DCS={};this.WT={};this.DCSext={};this.images=[];this.index=0;this.exre=window.RegExp?/dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(cfg)|(redirect)|(cip)/i:"";this.re=window.RegExp?this.i18n?{"%25":/\%/g,"%26":/\&/g}:{"%09":/\t/g,
"%20":/ /g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g,"%22":/\"/g,"%7F":/\x7F/g,"%A0":/\xA0/g}:""}WebTrends.prototype.dcsGetId=function(){this.enabled&&document.cookie.indexOf(this.fpc+"=")==-1&&document.cookie.indexOf("WTLOPTOUT=")==-1&&document.write("<script type='text/javascript' src='http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+this.domain+"/"+this.dcsid+"/wtid.js'><\/script>")};
WebTrends.prototype.dcsGetCookie=function(a){for(var b=document.cookie.split("; "),c=[],d=0,f=0,e=a.length,g=b.length,f=0;f<g;f++){var h=b[f];h.substring(0,e+1)==a+"="&&(c[d++]=h)}b=c.length;if(b>0){d=0;if(b>1&&a==this.fpc){a=new Date(0);for(f=0;f<b;f++)g=parseInt(this.dcsGetCrumb(c[f],"lv")),g=new Date(g),g>a&&(a.setTime(g.getTime()),d=f)}return unescape(c[d].substring(e+1))}else return null};
WebTrends.prototype.dcsGetCrumb=function(a,b,c){a=a.split(c||":");for(c=0;c<a.length;c++){var d=a[c].split("=");if(b==d[0])return d[1]}return null};WebTrends.prototype.dcsGetIdCrumb=function(a,b){for(var c=a.substring(0,a.indexOf(":lv=")).split("="),d=0;d<c.length;d++)if(b==c[0])return c[1];return null};WebTrends.prototype.dcsIsFpcSet=function(a,b,c,d){if(a=this.dcsGetCookie(a))return b==this.dcsGetIdCrumb(a,"id")&&c==this.dcsGetCrumb(a,"lv")&&d==this.dcsGetCrumb(a,"ss")?0:3;return 2};
WebTrends.prototype.dcsFPC=function(){if(document.cookie.indexOf("WTLOPTOUT=")==-1){var a=this.WT,b=this.fpc,c=new Date,d=c.getTimezoneOffset()*6E4+this.timezone*36E5;c.setTime(c.getTime()+d);var f=new Date(c.getTime()+31536E7),e=new Date(c.getTime());a.co_f=a.vtid=a.vtvs=a.vt_f=a.vt_f_a=a.vt_f_s=a.vt_f_d=a.vt_f_tlh=a.vt_f_tlv="";if(document.cookie.indexOf(b+"=")==-1){if(typeof gWtId!="undefined"&&gWtId!="")a.co_f=gWtId;else{if(typeof gTempWtId!="undefined"&&gTempWtId!="")a.co_f=gTempWtId;else{a.co_f=
"2";for(var g=c.getTime().toString(),h=2;h<=32-g.length;h++)a.co_f+=Math.floor(Math.random()*16).toString(16);a.co_f+=g}a.vt_f="1"}if(typeof gWtAccountRollup=="undefined")a.vt_f_a="1";a.vt_f_s=a.vt_f_d="1";a.vt_f_tlh=a.vt_f_tlv="0"}else{var j=this.dcsGetCookie(b),g=this.dcsGetIdCrumb(j,"id"),h=parseInt(this.dcsGetCrumb(j,"lv")),j=parseInt(this.dcsGetCrumb(j,"ss"));if(g==null||g=="null"||isNaN(h)||isNaN(j))return;a.co_f=g;g=new Date(h);a.vt_f_tlh=Math.floor((g.getTime()-d)/1E3);e.setTime(j);if(c.getTime()>
g.getTime()+18E5||c.getTime()>e.getTime()+288E5)a.vt_f_tlv=Math.floor((e.getTime()-d)/1E3),e.setTime(c.getTime()),a.vt_f_s="1";if(c.getDay()!=g.getDay()||c.getMonth()!=g.getMonth()||c.getYear()!=g.getYear())a.vt_f_d="1"}a.co_f=escape(a.co_f);a.vtid=typeof this.vtid=="undefined"?a.co_f:this.vtid||"";a.vtvs=(e.getTime()-d).toString();d="; expires="+f.toGMTString();c=c.getTime().toString();e=e.getTime().toString();document.cookie=b+"=id="+a.co_f+":lv="+c+":ss="+e+d+"; path=/"+(this.fpcdom!=""?"; domain="+
this.fpcdom:"");b=this.dcsIsFpcSet(b,a.co_f,c,e);if(b!=0){a.co_f=a.vtvs=a.vt_f_s=a.vt_f_d=a.vt_f_tlh=a.vt_f_tlv="";if(typeof this.vtid=="undefined")a.vtid="";a.vt_f=a.vt_f_a=b}}};WebTrends.prototype.dcsIsOnsite=function(a){if(a.length>0){a=a.toLowerCase();if(a==window.location.hostname.toLowerCase())return!0;if(typeof this.onsitedoms.test=="function")return this.onsitedoms.test(a);else if(this.onsitedoms.length>0)for(var b=this.dcsSplit(this.onsitedoms),c=b.length,d=0;d<c;d++)if(a==b[d])return!0}return!1};
WebTrends.prototype.dcsTypeMatch=function(a,b){for(var c=a.toLowerCase().substring(a.lastIndexOf(".")+1,a.length),d=this.dcsSplit(b),f=d.length,e=0;e<f;e++)if(c==d[e])return!0;return!1};WebTrends.prototype.dcsEvt=function(a,b){for(var c=a.target||a.srcElement;c.tagName&&c.tagName.toLowerCase()!=b.toLowerCase();)c=c.parentElement||c.parentNode;return c};
WebTrends.prototype.dcsNavigation=function(a){var b="",c="",d=this.dcsSplit(this.navigationtag),f=d.length,e,g;for(e=0;e<f;e++)if(g=d[e],g.length&&(c=this.dcsEvt(a,g),b=c.getAttribute&&c.getAttribute("id")?c.getAttribute("id"):"",c=c.className||"",b.length||c.length))break;return b.length?b:c};
WebTrends.prototype.dcsBind=function(a,b){typeof b=="function"&&document.body&&(document.body.addEventListener?document.body.addEventListener(a,b.wtbind(this),!0):document.body.attachEvent&&document.body.attachEvent("on"+a,b.wtbind(this)))};WebTrends.prototype.dcsET=function(){var a=navigator.appVersion.indexOf("MSIE")!=-1?"click":"mousedown";this.dcsBind(a,this.dcsDownload);this.dcsBind(a,this.dcsOffsite);this.dcsBind("contextmenu",this.dcsRightClick)};
WebTrends.prototype.dcsMultiTrack=function(){var a=dcsMultiTrack.arguments?dcsMultiTrack.arguments:arguments;if(a.length%2==0)this.dcsSaveProps(a),this.dcsSetProps(a),this.DCS.dcsdat=(new Date).getTime(),this.dcsFPC(),this.dcsTag(),this.dcsRestoreProps()};WebTrends.prototype.dcsCleanUp=function(){this.DCS={};this.WT={};this.DCSext={};arguments.length%2==0&&this.dcsSetProps(arguments)};
WebTrends.prototype.dcsSetProps=function(a){for(var b=0;b<a.length;b+=2)a[b].indexOf("WT.")==0?this.WT[a[b].substring(3)]=a[b+1]:a[b].indexOf("DCS.")==0?this.DCS[a[b].substring(4)]=a[b+1]:a[b].indexOf("DCSext.")==0&&(this.DCSext[a[b].substring(7)]=a[b+1])};
WebTrends.prototype.dcsSaveProps=function(a){var b,c,d;if(this.preserve){this.args=[];for(b=0;b<a.length;b+=2)d=a[b],d.indexOf("WT.")==0?(c=d.substring(3),this.args[b]=d,this.args[b+1]=this.WT[c]||""):d.indexOf("DCS.")==0?(c=d.substring(4),this.args[b]=d,this.args[b+1]=this.DCS[c]||""):d.indexOf("DCSext.")==0&&(c=d.substring(7),this.args[b]=d,this.args[b+1]=this.DCSext[c]||"")}};WebTrends.prototype.dcsRestoreProps=function(){if(this.preserve)this.dcsSetProps(this.args),this.args=[]};
WebTrends.prototype.dcsSplit=function(a){for(var a=a.toLowerCase().split(","),b=a.length,c=0;c<b;c++)a[c]=a[c].replace(/^\s*/,"").replace(/\s*$/,"");return a};
WebTrends.prototype.dcsDownload=function(a){if((a=a||window.event||"")&&(typeof a.which!="number"||a.which==1)){var b=this.dcsEvt(a,"A");if(b.href){var c=b.hostname?b.hostname.split(":")[0]:"";if(this.dcsIsOnsite(c)&&this.dcsTypeMatch(b.pathname,this.downloadtypes)){b.search&&b.search.substring(b.search.indexOf("?")+1,b.search.length);var d=b.pathname?b.pathname.indexOf("/")!=0?"/"+b.pathname:b.pathname:"/",f="",e=document.all?b.innerText:b.text,g=this.dcsEvt(a,"IMG");if(g.alt)f=g.alt;else if(e)f=
e;else if(b.innerHTML)f=b.innerHTML;this.dcsMultiTrack("DCS.dcssip",c,"DCS.dcsuri",d,"DCS.dcsqry",b.search||"","WT.ti","Download:"+f,"WT.dl","20","WT.nv",this.dcsNavigation(a))}}}};
WebTrends.prototype.dcsRightClick=function(a){if((a=a||window.event||"")&&((a.which||a.button)!=1||navigator.userAgent.indexOf("Safari")!=-1))if(a=this.dcsEvt(a,"A"),typeof a.href!="undefined"&&a.href&&typeof a.protocol!="undefined"&&a.protocol&&a.protocol.indexOf("http")!=-1&&typeof a.pathname!="undefined"&&this.dcsTypeMatch(a.pathname,this.downloadtypes)){var b=a.pathname?a.pathname.indexOf("/")!=0?"/"+a.pathname:a.pathname:"/";this.dcsMultiTrack("DCS.dcssip",a.hostname?a.hostname.split(":")[0]:
"","DCS.dcsuri",b,"DCS.dcsqry","","WT.ti","RightClick:"+b,"WT.dl","25")}};
WebTrends.prototype.dcsOffsite=function(a){if((a=a||window.event||"")&&(typeof a.which!="number"||a.which==1)){var b=this.dcsEvt(a,"A");if(b.href){var c=b.hostname?b.hostname.split(":")[0]:"",d=b.protocol||"";c.length>0&&d.indexOf("http")==0&&!this.dcsIsOnsite(c)&&(d=b.search?b.search.substring(b.search.indexOf("?")+1,b.search.length):"",b=b.pathname?b.pathname.indexOf("/")!=0?"/"+b.pathname:b.pathname:"/",this.dcsMultiTrack("DCS.dcssip",c,"DCS.dcsuri",b,"DCS.dcsqry",this.trimoffsiteparams?"":d,"DCS.dcsref",
window.location,"WT.ti","Offsite:"+c+b+(d.length?"?"+d:""),"WT.dl","24","WT.nv",this.dcsNavigation(a)))}}};WebTrends.prototype.dcsAdv=function(){this.trackevents&&typeof this.dcsET=="function"&&(window.addEventListener?window.addEventListener("load",this.dcsET.wtbind(this),!1):window.attachEvent&&window.attachEvent("onload",this.dcsET.wtbind(this)));this.dcsFPC()};
WebTrends.prototype.dcsVar=function(){var a=new Date,b=this.WT,c=this.DCS;b.tz=parseInt(a.getTimezoneOffset()/60*-1)||"0";b.bh=a.getHours()||"0";b.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;if(typeof screen=="object")b.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth,b.sr=screen.width+"x"+screen.height;if(typeof navigator.javaEnabled()=="boolean")b.jo=navigator.javaEnabled()?"Yes":"No";if(document.title)b.ti=window.RegExp?document.title.replace(RegExp("^"+
window.location.protocol+"//"+window.location.hostname+"\\s-\\s"),""):document.title;b.js="Yes";b.jv=function(){var a=navigator.userAgent.toLowerCase(),b=parseInt(navigator.appVersion),c=a.indexOf("mac")!=-1,d=a.indexOf("firefox")!=-1,e=a.indexOf("firefox/0.")!=-1,f=a.indexOf("firefox/1.0")!=-1,m=a.indexOf("firefox/1.5")!=-1,n=a.indexOf("firefox/2.0")!=-1,p=d&&!e&&!f&!m&!n,l=!d&&a.indexOf("mozilla")!=-1&&a.indexOf("compatible")==-1,d=l&&b==4,l=l&&b>=5,k=a.indexOf("msie")!=-1&&a.indexOf("opera")==
-1,b=k&&b==4&&a.indexOf("msie 4")!=-1,k=k&&!b,q=a.indexOf("opera")!=-1,o=a.indexOf("opera 5")!=-1||a.indexOf("opera/5")!=-1,a=a.indexOf("opera 6")!=-1||a.indexOf("opera/6")!=-1,i="1.1";p?i="1.8":n?i="1.7":m?i="1.6":e||f||l||q&&!o&&!a?i="1.5":c&&k||a?i="1.4":k||d||o?i="1.3":b&&(i="1.2");return i}();b.ct="unknown";if(document.body&&document.body.addBehavior)try{document.body.addBehavior("#default#clientCaps"),b.ct=document.body.connectionType||"unknown",document.body.addBehavior("#default#homePage"),
b.hp=document.body.isHomePage(location.href)?"1":"0"}catch(d){}b.bs=document.all?document.body?document.body.offsetWidth+"x"+document.body.offsetHeight:"unknown":window.innerWidth+"x"+window.innerHeight;b.fv=function(){var a;if(window.ActiveXObject)for(a=15;a>0;a--)try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a),a+".0"}catch(b){}else if(navigator.plugins&&navigator.plugins.length)for(a=0;a<navigator.plugins.length;a++)if(navigator.plugins[a].name.indexOf("Shockwave Flash")!=-1)return navigator.plugins[a].description.split(" ")[2];
return"Not enabled"}();b.slv=function(){var a="Not enabled";try{navigator.userAgent.indexOf("MSIE")!=-1?new ActiveXObject("AgControl.AgControl")&&(a="Unknown"):navigator.plugins["Silverlight Plug-In"]&&(a="Unknown")}catch(b){}if(a!="Not enabled"){var c,d,e;if(typeof Silverlight=="object"&&typeof Silverlight.isInstalled=="function"){for(c=9;c>0;c--){d=c;if(Silverlight.isInstalled(d+".0"))break;if(a==d)break}for(c=9;c>=0;c--){e=d+"."+c;if(Silverlight.isInstalled(e)){a=e;break}if(a==e)break}}}return a}();
if(this.i18n)b.le=typeof document.defaultCharset=="string"?document.defaultCharset:typeof document.characterSet=="string"?document.characterSet:"unknown";b.tv="9.3.0";b.sp=this.splitvalue;b.dl="0";b.ssl=window.location.protocol.indexOf("https:")==0?"1":"0";c.dcsdat=a.getTime();c.dcssip=window.location.hostname;c.dcsuri=window.location.pathname;b.es=c.dcssip+c.dcsuri;if(window.location.search)c.dcsqry=window.location.search;if(c.dcsqry)for(var a=c.dcsqry.toLowerCase(),f=this.paidsearchparams.length?
this.paidsearchparams.toLowerCase().split(","):[],e=0;e<f.length;e++)if(a.indexOf(f[e]+"=")!=-1){b.srch="1";break}if(window.document.referrer!=""&&window.document.referrer!="-"&&!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4))c.dcsref=window.document.referrer};WebTrends.prototype.dcsEscape=function(a,b){if(b!=""){var a=a.toString(),c;for(c in b)b[c]instanceof RegExp&&(a=a.replace(b[c],c));return a}else return escape(a)};
WebTrends.prototype.dcsA=function(a,b){if(this.i18n&&this.exre!=""&&!this.exre.test(a))if(a=="dcsqry"){for(var c="",d=b.substring(1).split("&"),f=0;f<d.length;f++){var e=d[f],g=e.indexOf("=");if(g!=-1){var h=e.substring(0,g),e=e.substring(g+1);f!=0&&(c+="&");c+=h+"="+this.dcsEncode(e)}}b=b.substring(0,1)+c}else b=this.dcsEncode(b);return"&"+a+"="+this.dcsEscape(b,this.re)};WebTrends.prototype.dcsEncode=function(a){return typeof encodeURIComponent=="function"?encodeURIComponent(a):escape(a)};
WebTrends.prototype.dcsCreateImage=function(a){document.images?(this.images[this.index]=new Image,this.images[this.index].src=a,this.index++):document.write('<img alt="" border="0" name="DCSIMG" width="1" height="1" src="'+a+'">')};
WebTrends.prototype.dcsMeta=function(){var a;document.documentElement?a=document.getElementsByTagName("meta"):document.all&&(a=document.all.tags("meta"));if(typeof a!="undefined")for(var b=a.length,c=0;c<b;c++){var d=a.item(c).name,f=a.item(c).content;a.item(c);d.length>0&&(d.toUpperCase().indexOf("WT.")==0?this.WT[d.substring(3)]=f:d.toUpperCase().indexOf("DCSEXT.")==0?this.DCSext[d.substring(7)]=f:d.toUpperCase().indexOf("DCS.")==0&&(this.DCS[d.substring(4)]=f))}};
WebTrends.prototype.dcsTag=function(){if(document.cookie.indexOf("WTLOPTOUT=")==-1){var a=this.WT,b=this.DCS,c=this.DCSext,d=this.i18n,f="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+this.domain+(this.dcsid==""?"":"/"+this.dcsid)+"/dcs.gif?";if(d)a.dep="";for(var e in b)b[e]&&typeof b[e]!="function"&&(f+=this.dcsA(e,b[e]));for(e in a)a[e]&&typeof a[e]!="function"&&(f+=this.dcsA("WT."+e,a[e]));for(e in c)if(c[e]&&typeof c[e]!="function"){if(d)a.dep=a.dep.length==0?e:a.dep+";"+
e;f+=this.dcsA(e,c[e])}d&&a.dep.length>0&&(f+=this.dcsA("WT.dep",a.dep));f.length>2048&&navigator.userAgent.indexOf("MSIE")>=0&&(f=f.substring(0,2040)+"&WT.tu=1");this.dcsCreateImage(f);this.WT.ad=""}};
WebTrends.prototype.dcsDebug=function(){var a=this.images[0].src,b=a.indexOf("?"),c=a.substring(0,b).split("/"),d="<b>Protocol</b><br><code>"+c[0]+"<br></code>";d+="<b>Domain</b><br><code>"+c[2]+"<br></code>";d+="<b>Path</b><br><code>/"+c[3]+"/"+c[4]+"<br></code>";d+="<b>Query Params</b><code>"+a.substring(b+1).replace(/\&/g,"<br>")+"</code>";d+="<br><b>Cookies</b><br><code>"+document.cookie.replace(/\;/g,"<br>")+"</code>";this.w&&!this.w.closed&&this.w.close();this.w=window.open("","dcsDebug","width=500,height=650,scrollbars=yes,resizable=yes");
this.w.document.write(d);this.w.focus()};WebTrends.prototype.dcsCollect=function(){this.enabled&&(this.dcsVar(),this.dcsMeta(),this.dcsAdv(),typeof this.dcsCustom=="function"&&this.dcsCustom(),this.dcsTag())};function dcsMultiTrack(){if(typeof _tag!="undefined")return _tag.dcsMultiTrack()}function dcsDebug(){if(typeof _tag!="undefined")return _tag.dcsDebug()}Function.prototype.wtbind=function(a){var b=this;return function(){return b.apply(a,arguments)}};
