function WebTrends(){var a=this;
this.dcsid="dcskzgl9m000000w4dyp4senq_3i2w";
this.domain="statse.webtrendslive.com";
this.timezone=0;
this.fpcdom=".cineworld.co.uk";
this.enabled=true;
this.i18n=false;
this.fpc="WT_FPC";
this.paidsearchparams="gclid";
this.splitvalue="";
this.preserve=false;
this.DCS={};
this.WT={};
this.DCSext={};
this.images=[];
this.index=0;
this.exre=(function(){return(window.RegExp?new RegExp("dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(cfg)|(redirect)|(cip)","i"):"")
})();
this.re=(function(){return(window.RegExp?(a.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(){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>")
}};
WebTrends.prototype.dcsGetCookie=function(d){var n=document.cookie.split("; ");
var m=[];
var l=0;
var g=0;
var b=d.length;
var j=n.length;
for(g=0;
g<j;
g++){var h=n[g];
if((h.substring(0,b+1))==(d+"=")){m[l++]=h
}}var a=m.length;
if(a>0){l=0;
if((a>1)&&(d==this.fpc)){var k=new Date(0);
for(g=0;
g<a;
g++){var e=parseInt(this.dcsGetCrumb(m[g],"lv"));
var f=new Date(e);
if(f>k){k.setTime(f.getTime());
l=g
}}}return unescape(m[l].substring(b+1))
}else{return null
}};
WebTrends.prototype.dcsGetCrumb=function(f,c,d){var b=f.split(d||":");
for(var e=0;
e<b.length;
e++){var a=b[e].split("=");
if(c==a[0]){return a[1]
}}return null
};
WebTrends.prototype.dcsGetIdCrumb=function(d,b){var e=d.substring(0,d.indexOf(":lv="));
var a=e.split("=");
for(var c=0;
c<a.length;
c++){if(b==a[0]){return a[1]
}}return null
};
WebTrends.prototype.dcsIsFpcSet=function(a,f,d,b){var e=this.dcsGetCookie(a);
if(e){return((f==this.dcsGetIdCrumb(e,"id"))&&(d==this.dcsGetCrumb(e,"lv"))&&(b==this.dcsGetCrumb(e,"ss")))?0:3
}return 2
};
WebTrends.prototype.dcsFPC=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return
}var d=this.WT;
var b=this.fpc;
var o=new Date();
var m=(o.getTimezoneOffset()*60000)+(this.timezone*3600000);
o.setTime(o.getTime()+m);
var h=new Date(o.getTime()+315360000000);
var n=new Date(o.getTime());
d.co_f=d.vtid=d.vtvs=d.vt_f=d.vt_f_a=d.vt_f_s=d.vt_f_d=d.vt_f_tlh=d.vt_f_tlv="";
if(document.cookie.indexOf(b+"=")==-1){if((typeof(gWtId)!="undefined")&&(gWtId!="")){d.co_f=gWtId
}else{if((typeof(gTempWtId)!="undefined")&&(gTempWtId!="")){d.co_f=gTempWtId;
d.vt_f="1"
}else{d.co_f="2";
var r=o.getTime().toString();
for(var k=2;
k<=(32-r.length);
k++){d.co_f+=Math.floor(Math.random()*16).toString(16)
}d.co_f+=r;
d.vt_f="1"
}}if(typeof(gWtAccountRollup)=="undefined"){d.vt_f_a="1"
}d.vt_f_s=d.vt_f_d="1";
d.vt_f_tlh=d.vt_f_tlv="0"
}else{var l=this.dcsGetCookie(b);
var e=this.dcsGetIdCrumb(l,"id");
var g=parseInt(this.dcsGetCrumb(l,"lv"));
var s=parseInt(this.dcsGetCrumb(l,"ss"));
if((e==null)||(e=="null")||isNaN(g)||isNaN(s)){return
}d.co_f=e;
var j=new Date(g);
d.vt_f_tlh=Math.floor((j.getTime()-m)/1000);
n.setTime(s);
if((o.getTime()>(j.getTime()+1800000))||(o.getTime()>(n.getTime()+28800000))){d.vt_f_tlv=Math.floor((n.getTime()-m)/1000);
n.setTime(o.getTime());
d.vt_f_s="1"
}if((o.getDay()!=j.getDay())||(o.getMonth()!=j.getMonth())||(o.getYear()!=j.getYear())){d.vt_f_d="1"
}}d.co_f=escape(d.co_f);
d.vtid=(typeof(this.vtid)=="undefined")?d.co_f:(this.vtid||"");
d.vtvs=(n.getTime()-m).toString();
var f="; expires="+h.toGMTString();
var q=o.getTime().toString();
var p=n.getTime().toString();
document.cookie=b+"=id="+d.co_f+":lv="+q+":ss="+p+f+"; path=/"+(((this.fpcdom!=""))?("; domain="+this.fpcdom):(""));
var a=this.dcsIsFpcSet(b,d.co_f,q,p);
if(a!=0){d.co_f=d.vtvs=d.vt_f_s=d.vt_f_d=d.vt_f_tlh=d.vt_f_tlv="";
if(typeof(this.vtid)=="undefined"){d.vtid=""
}d.vt_f=d.vt_f_a=a
}};
WebTrends.prototype.dcsMultiTrack=function(){var b=dcsMultiTrack.arguments?dcsMultiTrack.arguments:arguments;
if(b.length%2==0){this.dcsSaveProps(b);
this.dcsSetProps(b);
var a=new Date();
this.DCS.dcsdat=a.getTime();
this.dcsFPC();
this.dcsTag();
this.dcsRestoreProps()
}};
WebTrends.prototype.dcsCleanUp=function(){this.DCS={};
this.WT={};
this.DCSext={};
if(arguments.length%2==0){this.dcsSetProps(arguments)
}};
WebTrends.prototype.dcsSetProps=function(a){for(var b=0;
b<a.length;
b+=2){if(a[b].indexOf("WT.")==0){this.WT[a[b].substring(3)]=a[b+1]
}else{if(a[b].indexOf("DCS.")==0){this.DCS[a[b].substring(4)]=a[b+1]
}else{if(a[b].indexOf("DCSext.")==0){this.DCSext[a[b].substring(7)]=a[b+1]
}}}}};
WebTrends.prototype.dcsSaveProps=function(a){var c,b,d;
if(this.preserve){this.args=[];
for(c=0;
c<a.length;
c+=2){d=a[c];
if(d.indexOf("WT.")==0){b=d.substring(3);
this.args[c]=d;
this.args[c+1]=this.WT[b]||""
}else{if(d.indexOf("DCS.")==0){b=d.substring(4);
this.args[c]=d;
this.args[c+1]=this.DCS[b]||""
}else{if(d.indexOf("DCSext.")==0){b=d.substring(7);
this.args[c]=d;
this.args[c+1]=this.DCSext[b]||""
}}}}}};
WebTrends.prototype.dcsRestoreProps=function(){if(this.preserve){this.dcsSetProps(this.args);
this.args=[]
}};
WebTrends.prototype.dcsAdv=function(){this.dcsFPC()
};
WebTrends.prototype.dcsVar=function(){var b=new Date();
var a=this.WT;
var j=this.DCS;
a.tz=parseInt(b.getTimezoneOffset()/60*-1)||"0";
a.bh=b.getHours()||"0";
a.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;
if(typeof(screen)=="object"){a.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth;
a.sr=screen.width+"x"+screen.height
}if(typeof(navigator.javaEnabled())=="boolean"){a.jo=navigator.javaEnabled()?"Yes":"No"
}if(document.title){if(window.RegExp){var f=new RegExp("^"+window.location.protocol+"//"+window.location.hostname+"\\s-\\s");
a.ti=document.title.replace(f,"")
}else{a.ti=document.title
}}a.js="Yes";
a.jv=(function(){var o=navigator.userAgent.toLowerCase();
var A=parseInt(navigator.appVersion);
var n=(o.indexOf("mac")!=-1);
var u=(o.indexOf("firefox")!=-1);
var k=(o.indexOf("firefox/0.")!=-1);
var p=(o.indexOf("firefox/1.0")!=-1);
var l=(o.indexOf("firefox/1.5")!=-1);
var z=(o.indexOf("firefox/2.0")!=-1);
var B=(u&&!k&&!p&!l&!z);
var i=(!u&&(o.indexOf("mozilla")!=-1)&&(o.indexOf("compatible")==-1));
var m=(i&&(A==4));
var w=(i&&(A>=5));
var y=((o.indexOf("msie")!=-1)&&(o.indexOf("opera")==-1));
var q=(y&&(A==4)&&(o.indexOf("msie 4")!=-1));
var x=(y&&!q);
var t=(o.indexOf("opera")!=-1);
var s=(o.indexOf("opera 5")!=-1||o.indexOf("opera/5")!=-1);
var r=(o.indexOf("opera 6")!=-1||o.indexOf("opera/6")!=-1);
var e=(t&&!s&&!r);
var v="1.1";
if(B){v="1.8"
}else{if(z){v="1.7"
}else{if(l){v="1.6"
}else{if(k||p||w||e){v="1.5"
}else{if((n&&x)||r){v="1.4"
}else{if(x||m||s){v="1.3"
}else{if(q){v="1.2"
}}}}}}}return v
})();
a.ct="unknown";
if(document.body&&document.body.addBehavior){try{document.body.addBehavior("#default#clientCaps");
a.ct=document.body.connectionType||"unknown";
document.body.addBehavior("#default#homePage");
a.hp=document.body.isHomePage(location.href)?"1":"0"
}catch(g){}}if(document.all){a.bs=document.body?document.body.offsetWidth+"x"+document.body.offsetHeight:"unknown"
}else{a.bs=window.innerWidth+"x"+window.innerHeight
}a.fv=(function(){var l,k;
if(window.ActiveXObject){for(l=15;
l>0;
l--){try{k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+l);
return l+".0"
}catch(m){}}}else{if(navigator.plugins&&navigator.plugins.length){for(l=0;
l<navigator.plugins.length;
l++){if(navigator.plugins[l].name.indexOf("Shockwave Flash")!=-1){return navigator.plugins[l].description.split(" ")[2]
}}}}return"Not enabled"
})();
a.slv=(function(){var l="Not enabled";
try{if(navigator.userAgent.indexOf("MSIE")!=-1){var n=new ActiveXObject("AgControl.AgControl");
if(n){l="Unknown"
}}else{if(navigator.plugins["Silverlight Plug-In"]){l="Unknown"
}}}catch(q){}if(l!="Not enabled"){var o,k,r,p;
if((typeof(Silverlight)=="object")&&(typeof(Silverlight.isInstalled)=="function")){for(o=9;
o>0;
o--){r=o;
if(Silverlight.isInstalled(r+".0")){break
}if(l==r){break
}}for(k=9;
k>=0;
k--){p=r+"."+k;
if(Silverlight.isInstalled(p)){l=p;
break
}if(l==p){break
}}}}return l
})();
if(this.i18n){if(typeof(document.defaultCharset)=="string"){a.le=document.defaultCharset
}else{if(typeof(document.characterSet)=="string"){a.le=document.characterSet
}else{a.le="unknown"
}}}a.tv="9.3.0";
a.sp=this.splitvalue;
a.dl="0";
a.ssl=(window.location.protocol.indexOf("https:")==0)?"1":"0";
j.dcsdat=b.getTime();
j.dcssip=window.location.hostname;
j.dcsuri=window.location.pathname;
a.es=j.dcssip+j.dcsuri;
if(window.location.search){j.dcsqry=window.location.search
}if(j.dcsqry){var c=j.dcsqry.toLowerCase();
var h=this.paidsearchparams.length?this.paidsearchparams.toLowerCase().split(","):[];
for(var d=0;
d<h.length;
d++){if(c.indexOf(h[d]+"=")!=-1){a.srch="1";
break
}}}if((window.document.referrer!="")&&(window.document.referrer!="-")){if(!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){j.dcsref=window.document.referrer
}}};
WebTrends.prototype.dcsEscape=function(a,c){if(c!=""){a=a.toString();
for(var b in c){if(c[b] instanceof RegExp){a=a.replace(c[b],b)
}}return a
}else{return escape(a)
}};
WebTrends.prototype.dcsA=function(g,c){if(this.i18n&&(this.exre!="")&&!this.exre.test(g)){if(g=="dcsqry"){var a="";
var d=c.substring(1).split("&");
for(var f=0;
f<d.length;
f++){var e=d[f];
var h=e.indexOf("=");
if(h!=-1){var j=e.substring(0,h);
var b=e.substring(h+1);
if(f!=0){a+="&"
}a+=j+"="+this.dcsEncode(b)
}}c=c.substring(0,1)+a
}else{c=this.dcsEncode(c)
}}return"&"+g+"="+this.dcsEscape(c,this.re)
};
WebTrends.prototype.dcsEncode=function(a){return(typeof(encodeURIComponent)=="function")?encodeURIComponent(a):escape(a)
};
WebTrends.prototype.dcsCreateImage=function(a){if(document.images){this.images[this.index]=new Image();
this.images[this.index].src=a;
this.index++
}else{document.write('<img alt="" border="0" name="DCSIMG" width="1" height="1" src="'+a+'">')
}};
WebTrends.prototype.dcsMeta=function(){var b;
if(document.documentElement){b=document.getElementsByTagName("meta")
}else{if(document.all){b=document.all.tags("meta")
}}if(typeof(b)!="undefined"){var f=b.length;
for(var d=0;
d<f;
d++){var c=b.item(d).name;
var e=b.item(d).content;
var a=b.item(d).httpEquiv;
if(c.length>0){if(c.toUpperCase().indexOf("WT.")==0){this.WT[c.substring(3)]=e
}else{if(c.toUpperCase().indexOf("DCSEXT.")==0){this.DCSext[c.substring(7)]=e
}else{if(c.toUpperCase().indexOf("DCS.")==0){this.DCS[c.substring(4)]=e
}}}}}}};
WebTrends.prototype.dcsTag=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return
}var a=this.WT;
var f=this.DCS;
var b=this.DCSext;
var d=this.i18n;
var c="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+this.domain+(this.dcsid==""?"":"/"+this.dcsid)+"/dcs.gif?";
if(d){a.dep=""
}for(var e in f){if(f[e]&&(typeof f[e]!="function")){c+=this.dcsA(e,f[e])
}}for(e in a){if(a[e]&&(typeof a[e]!="function")){c+=this.dcsA("WT."+e,a[e])
}}for(e in b){if(b[e]&&(typeof b[e]!="function")){if(d){a.dep=(a.dep.length==0)?e:(a.dep+";"+e)
}c+=this.dcsA(e,b[e])
}}if(d&&(a.dep.length>0)){c+=this.dcsA("WT.dep",a.dep)
}if(c.length>2048&&navigator.userAgent.indexOf("MSIE")>=0){c=c.substring(0,2040)+"&WT.tu=1"
}this.dcsCreateImage(c);
this.WT.ad=""
};
WebTrends.prototype.dcsDebug=function(){var c=this;
var b=c.images[0].src;
var e=b.indexOf("?");
var d=b.substring(0,e).split("/");
var a="<b>Protocol</b><br><code>"+d[0]+"<br></code>";
a+="<b>Domain</b><br><code>"+d[2]+"<br></code>";
a+="<b>Path</b><br><code>/"+d[3]+"/"+d[4]+"<br></code>";
a+="<b>Query Params</b><code>"+b.substring(e+1).replace(/\&/g,"<br>")+"</code>";
a+="<br><b>Cookies</b><br><code>"+document.cookie.replace(/\;/g,"<br>")+"</code>";
if(c.w&&!c.w.closed){c.w.close()
}c.w=window.open("","dcsDebug","width=500,height=650,scrollbars=yes,resizable=yes");
c.w.document.write(a);
c.w.focus()
};
WebTrends.prototype.dcsCollect=function(){if(this.enabled){this.dcsVar();
this.dcsMeta();
this.dcsAdv();
if(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(b){var c=this;
var a=function(){return c.apply(b,arguments)
};
return a
};
