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