function WebTrends(){var a=this;this.dcsid="dcsv9a9m6wz5bdfwgywcp0c4b_2n6f";this.domain="statse.webtrendslive.com";this.timezone=0;this.fpcdom=".play.com";this.onsitedoms="";this.downloadtypes="xls,doc,pdf,txt,csv,zip";this.navigationtag="div,table";this.trackevents=true;this.enabled=true;this.i18n=false;this.fpc="WT_FPC";this.paidsearchparams="gclid";this.splitvalue="";this.preserve=true;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(k){var l=document.cookie.split("; ");var a=[];var m=0;var b=0;var d=k.length;var g=l.length;for(b=0;b<g;b++){var h=l[b];if((h.substring(0,d+1))==(k+"=")){a[m++]=h}}var e=a.length;if(e>0){m=0;if((e>1)&&(k==this.fpc)){var j=new Date(0);for(b=0;b<e;b++){var n=parseInt(this.dcsGetCrumb(a[b],"lv"));var f=new Date(n);if(f>j){j.setTime(f.getTime());m=b}}}return unescape(a[m].substring(d+1))}else{return null}};WebTrends.prototype.dcsGetCrumb=function(f,c,a){var e=f.split(a||":");for(var b=0;b<e.length;b++){var d=e[b].split("=");if(c==d[0]){return d[1]}}return null};WebTrends.prototype.dcsGetIdCrumb=function(e,a){var b=e.substring(0,e.indexOf(":lv="));var c=b.split("=");for(var d=0;d<c.length;d++){if(a==c[0]){return c[1]}}return null};WebTrends.prototype.dcsIsFpcSet=function(f,a,e,d){var b=this.dcsGetCookie(f);if(b){return((a==this.dcsGetIdCrumb(b,"id"))&&(e==this.dcsGetCrumb(b,"lv"))&&(d==this.dcsGetCrumb(b,"ss")))?0:3}return 2};WebTrends.prototype.dcsFPC=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var a=this.WT;var b=this.fpc;var q=new Date();var s=(q.getTimezoneOffset()*60000)+(this.timezone*3600000);q.setTime(q.getTime()+s);var d=new Date(q.getTime()+315360000000);var h=new Date(q.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;a.vt_f="1"}else{a.co_f="2";var l=q.getTime().toString();for(var k=2;k<=(32-l.length);k++){a.co_f+=Math.floor(Math.random()*16).toString(16)}a.co_f+=l;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 n=this.dcsGetCookie(b);var m=this.dcsGetIdCrumb(n,"id");var f=parseInt(this.dcsGetCrumb(n,"lv"));var g=parseInt(this.dcsGetCrumb(n,"ss"));if((m==null)||(m=="null")||isNaN(f)||isNaN(g)){return}a.co_f=m;var p=new Date(f);a.vt_f_tlh=Math.floor((p.getTime()-s)/1000);h.setTime(g);if((q.getTime()>(p.getTime()+1800000))||(q.getTime()>(h.getTime()+28800000))){a.vt_f_tlv=Math.floor((h.getTime()-s)/1000);h.setTime(q.getTime());a.vt_f_s="1"}if((q.getDay()!=p.getDay())||(q.getMonth()!=p.getMonth())||(q.getYear()!=p.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=(h.getTime()-s).toString();var j="; expires="+d.toGMTString();var r=q.getTime().toString();var o=h.getTime().toString();document.cookie=b+"=id="+a.co_f+":lv="+r+":ss="+o+j+"; path=/"+(((this.fpcdom!=""))?("; domain="+this.fpcdom):(""));var e=this.dcsIsFpcSet(b,a.co_f,r,o);if(e!=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=e}};WebTrends.prototype.dcsIsOnsite=function(c){if(c.length>0){c=c.toLowerCase();if(c==window.location.hostname.toLowerCase()){return true}if(typeof(this.onsitedoms.test)=="function"){return this.onsitedoms.test(c)}else{if(this.onsitedoms.length>0){var d=this.dcsSplit(this.onsitedoms);var b=d.length;for(var a=0;a<b;a++){if(c==d[a]){return true}}}}}return false};WebTrends.prototype.dcsTypeMatch=function(f,b){var c=f.toLowerCase().substring(f.lastIndexOf(".")+1,f.length);var d=this.dcsSplit(b);var e=d.length;for(var a=0;a<e;a++){if(c==d[a]){return true}}return false};WebTrends.prototype.dcsEvt=function(c,a){var b=c.target||c.srcElement;while(b.tagName&&(b.tagName.toLowerCase()!=a.toLowerCase())){b=b.parentElement||b.parentNode}return b};WebTrends.prototype.dcsNavigation=function(d){var c="";var j="";var g=this.dcsSplit(this.navigationtag);var f=g.length;var a,h,b;for(a=0;a<f;a++){b=g[a];if(b.length){h=this.dcsEvt(d,b);c=(h.getAttribute&&h.getAttribute("id"))?h.getAttribute("id"):"";j=h.className||"";if(c.length||j.length){break}}}return c.length?c:j};WebTrends.prototype.dcsBind=function(b,a){if((typeof(a)=="function")&&document.body){if(document.body.addEventListener){document.body.addEventListener(b,a.wtbind(this),true)}else{if(document.body.attachEvent){document.body.attachEvent("on"+b,a.wtbind(this))}}}};WebTrends.prototype.dcsET=function(){var a=(navigator.appVersion.indexOf("MSIE")!=-1)?"click":"mousedown";this.dcsBind(a,this.dcsDownload)};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(b){for(var a=0;a<b.length;a+=2){if(b[a].indexOf("WT.")==0){this.WT[b[a].substring(3)]=b[a+1]}else{if(b[a].indexOf("DCS.")==0){this.DCS[b[a].substring(4)]=b[a+1]}else{if(b[a].indexOf("DCSext.")==0){this.DCSext[b[a].substring(7)]=b[a+1]}}}}};WebTrends.prototype.dcsSaveProps=function(b){var a,d,c;if(this.preserve){this.args=[];for(a=0;a<b.length;a+=2){c=b[a];if(c.indexOf("WT.")==0){d=c.substring(3);this.args[a]=c;this.args[a+1]=this.WT[d]||""}else{if(c.indexOf("DCS.")==0){d=c.substring(4);this.args[a]=c;this.args[a+1]=this.DCS[d]||""}else{if(c.indexOf("DCSext.")==0){d=c.substring(7);this.args[a]=c;this.args[a+1]=this.DCSext[d]||""}}}}}};WebTrends.prototype.dcsRestoreProps=function(){if(this.preserve){this.dcsSetProps(this.args);this.args=[]}};WebTrends.prototype.dcsSplit=function(b){var c=b.toLowerCase().split(",");var a=c.length;for(var d=0;d<a;d++){c[d]=c[d].replace(/^\s*/,"").replace(/\s*$/,"")}return c};WebTrends.prototype.dcsDownload=function(f){f=f||(window.event||"");if(f&&((typeof(f.which)!="number")||(f.which==1))){var g=this.dcsEvt(f,"A");if(g.href){var a=g.hostname?(g.hostname.split(":")[0]):"";if(this.dcsIsOnsite(a)&&this.dcsTypeMatch(g.pathname,this.downloadtypes)){var b=g.search?g.search.substring(g.search.indexOf("?")+1,g.search.length):"";var i=g.pathname?((g.pathname.indexOf("/")!=0)?"/"+g.pathname:g.pathname):"/";var d="";var h=document.all?g.innerText:g.text;var c=this.dcsEvt(f,"IMG");if(c.alt){d=c.alt}else{if(h){d=h}else{if(g.innerHTML){d=g.innerHTML}}}this.dcsMultiTrack("DCS.dcssip",a,"DCS.dcsuri",i,"DCS.dcsqry",g.search||"","WT.ti","Download:"+d,"WT.dl","20","WT.nv",this.dcsNavigation(f))}}}};WebTrends.prototype.dcsAdv=function(){if(this.trackevents&&(typeof(this.dcsET)=="function")){if(window.addEventListener){window.addEventListener("load",this.dcsET.wtbind(this),false)}else{if(window.attachEvent){window.attachEvent("onload",this.dcsET.wtbind(this))}}}this.dcsFPC()};WebTrends.prototype.dcsVar=function(){var h=new Date();var f=this.WT;var a=this.DCS;f.tz=parseInt(h.getTimezoneOffset()/60*-1)||"0";f.bh=h.getHours()||"0";f.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;if(typeof(screen)=="object"){f.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth;f.sr=screen.width+"x"+screen.height}if(typeof(navigator.javaEnabled())=="boolean"){f.jo=navigator.javaEnabled()?"Yes":"No"}if(document.title){if(window.RegExp){var d=new RegExp("^"+window.location.protocol+"//"+window.location.hostname+"\\s-\\s");f.ti=document.title.replace(d,"")}else{f.ti=document.title}}f.js="Yes";f.jv=(function(){var u=navigator.userAgent.toLowerCase();var z=parseInt(navigator.appVersion);var t=(u.indexOf("mac")!=-1);var s=(u.indexOf("firefox")!=-1);var p=(u.indexOf("firefox/0.")!=-1);var y=(u.indexOf("firefox/1.0")!=-1);var A=(u.indexOf("firefox/1.5")!=-1);var l=(u.indexOf("firefox/2.0")!=-1);var v=(s&&!p&&!y&!A&!l);var o=(!s&&(u.indexOf("mozilla")!=-1)&&(u.indexOf("compatible")==-1));var q=(o&&(z==4));var i=(o&&(z>=5));var w=((u.indexOf("msie")!=-1)&&(u.indexOf("opera")==-1));var e=(w&&(z==4)&&(u.indexOf("msie 4")!=-1));var k=(w&&!e);var B=(u.indexOf("opera")!=-1);var r=(u.indexOf("opera 5")!=-1||u.indexOf("opera/5")!=-1);var x=(u.indexOf("opera 6")!=-1||u.indexOf("opera/6")!=-1);var n=(B&&!r&&!x);var m="1.1";if(v){m="1.8"}else{if(l){m="1.7"}else{if(A){m="1.6"}else{if(p||y||i||n){m="1.5"}else{if((t&&k)||x){m="1.4"}else{if(k||q||r){m="1.3"}else{if(e){m="1.2"}}}}}}}return m})();f.ct="unknown";if(document.body&&document.body.addBehavior){try{document.body.addBehavior("#default#clientCaps");f.ct=document.body.connectionType||"unknown";document.body.addBehavior("#default#homePage");f.hp=document.body.isHomePage(location.href)?"1":"0"}catch(j){}}if(document.all){f.bs=document.body?document.body.offsetWidth+"x"+document.body.offsetHeight:"unknown"}else{f.bs=window.innerWidth+"x"+window.innerHeight}f.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"})();f.slv=(function(){var o="Not enabled";try{if(navigator.userAgent.indexOf("MSIE")!=-1){var p=new ActiveXObject("AgControl.AgControl");if(p){o="Unknown"}}else{if(navigator.plugins["Silverlight Plug-In"]){o="Unknown"}}}catch(q){}if(o!="Not enabled"){var k,l,n,r;if((typeof(Silverlight)=="object")&&(typeof(Silverlight.isInstalled)=="function")){for(k=9;k>0;k--){n=k;if(Silverlight.isInstalled(n+".0")){break}if(o==n){break}}for(l=9;l>=0;l--){r=n+"."+l;if(Silverlight.isInstalled(r)){o=r;break}if(o==r){break}}}}return o})();if(this.i18n){if(typeof(document.defaultCharset)=="string"){f.le=document.defaultCharset}else{if(typeof(document.characterSet)=="string"){f.le=document.characterSet}else{f.le="unknown"}}}f.tv="9.3.0";f.sp=this.splitvalue;f.dl="0";f.ssl=(window.location.protocol.indexOf("https:")==0)?"1":"0";a.dcsdat=h.getTime();a.dcssip=window.location.hostname;a.dcsuri=window.location.pathname;f.es=a.dcssip+a.dcsuri;if(window.location.search){a.dcsqry=window.location.search}if(a.dcsqry){var b=a.dcsqry.toLowerCase();var g=this.paidsearchparams.length?this.paidsearchparams.toLowerCase().split(","):[];for(var c=0;c<g.length;c++){if(b.indexOf(g[c]+"=")!=-1){f.srch="1";break}}}if((window.document.referrer!="")&&(window.document.referrer!="-")){if(!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){a.dcsref=window.document.referrer}}};WebTrends.prototype.dcsEscape=function(c,b){if(b!=""){c=c.toString();for(var a in b){if(b[a] instanceof RegExp){c=c.replace(b[a],a)}}return c}else{return escape(c)}};WebTrends.prototype.dcsA=function(f,j){if(this.i18n&&(this.exre!="")&&!this.exre.test(f)){if(f=="dcsqry"){var a="";var c=j.substring(1).split("&");for(var b=0;b<c.length;b++){var h=c[b];var d=h.indexOf("=");if(d!=-1){var g=h.substring(0,d);var e=h.substring(d+1);if(b!=0){a+="&"}a+=g+"="+this.dcsEncode(e)}}j=j.substring(0,1)+a}else{j=this.dcsEncode(j)}}return"&"+f+"="+this.dcsEscape(j,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 c;if(document.documentElement){c=document.getElementsByTagName("meta")}else{if(document.all){c=document.all.tags("meta")}}if(typeof(c)!="undefined"){var d=c.length;for(var b=0;b<d;b++){var f=c.item(b).name;var e=c.item(b).content;var a=c.item(b).httpEquiv;if(f.length>0){if(f.toUpperCase().indexOf("WT.")==0){this.WT[f.substring(3)]=e}else{if(f.toUpperCase().indexOf("DCSEXT.")==0){this.DCSext[f.substring(7)]=e}else{if(f.toUpperCase().indexOf("DCS.")==0){this.DCS[f.substring(4)]=e}}}}}}};WebTrends.prototype.dcsTag=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var e=this.WT;var a=this.DCS;var b=this.DCSext;var c=this.i18n;var f="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+this.domain+(this.dcsid==""?"":"/"+this.dcsid)+"/dcs.gif?";if(c){e.dep=""}for(var d in a){if(a[d]&&(typeof a[d]!="function")){f+=this.dcsA(d,a[d])}}for(d in e){if(e[d]&&(typeof e[d]!="function")){f+=this.dcsA("WT."+d,e[d])}}for(d in b){if(b[d]&&(typeof b[d]!="function")){if(c){e.dep=(e.dep.length==0)?d:(e.dep+";"+d)}f+=this.dcsA(d,b[d])}}if(c&&(e.dep.length>0)){f+=this.dcsA("WT.dep",e.dep)}if(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 c=this;var b=c.images[0].src;var a=b.indexOf("?");var e=b.substring(0,a).split("/");var d="<b>Protocol</b><br><code>"+e[0]+"<br></code>";d+="<b>Domain</b><br><code>"+e[2]+"<br></code>";d+="<b>Path</b><br><code>/"+e[3]+"/"+e[4]+"<br></code>";d+="<b>Query Params</b><code>"+b.substring(a+1).replace(/\&/g,"<br>")+"</code>";d+="<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(d);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 a=this;var c=function(){return a.apply(b,arguments)};return c};
