var server="http://wa2.webabacus.co.uk";var secureserver="https://wa2.webabacus.co.uk";var site="CHILDLINE2009BETA";var cookieLife=730;var cookieDomain="";var sourceparamname="wa_mkt";var checkFlash=true;var autoTagDocuments="doc,pdf,zip,ppt,pps,wmv,mpg";var autoTagExternalLinks=true;var autoTagTrustedDomain="";var WebAbacusRef="webabacus_ref";var ThirdPartyCookie=false;var DisableFirstPartyCookies=false;if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(n,b,o,e,k,l,g,f,d,m){if(!document.getElementById){return}this.DETECT_KEY=m?m:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(n){this.setAttribute("swf",n)}if(b){this.setAttribute("id",b)}if(o){this.setAttribute("width",o)}if(e){this.setAttribute("height",e)}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(l){this.addParam("bgcolor",l)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var j=(f)?f:window.location;this.setAttribute("xiRedirectUrl",j);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}function SetCookie(e,d,c){var b=new Date();var a=new Date();if(c==null||c==0){c=1}a.setTime(b.getTime()+3600000*24*c);if(!DisableFirstPartyCookies){document.cookie=e+"="+escape(d)+";expires="+a.toGMTString()+"; path=/"+(cookieDomain==""?"":"; domain="+cookieDomain)}}function ReadCookie(d){var b=""+document.cookie;var c=b.indexOf(d);if(c==-1||d==""){return""}var a=b.indexOf(";",c);if(a==-1){a=b.length}return unescape(b.substring(c+d.length+1,a))}var WEBABACUS=function(){function K(){return new Date().getTime()}function y(){if(navigator.appName=="Netscape"){return"NS"}else{if(navigator.appName=="Microsoft Internet Explorer"){return"IE"}else{return"OT"}}}function f(){return(navigator.javaEnabled())?1:0}var M=cookieLife*86400000;var J=new Date((new Date().getTime())+M);function d(){var Y=Math.floor(1000*Math.random());SetCookie("AreCookiesEnabled",Y);return(Y==ReadCookie("AreCookiesEnabled"))?1:0}function h(ab){var Z=document.cookie;var aa=ab+"=";var Y=Z.length;var ac=0;while(ac<Y){var ae=ac+aa.length;if(Z.substring(ac,ae)==aa){var ad=Z.indexOf(";",ae);if(ad==-1){ad=Y}return unescape(Z.substring(ae,ad))}ac=Z.indexOf(" ",ac)+1;if(ac==0){break}}return null}var F=new Array();var W=new Array();function B(Z){var aa=null;for(var Y=0;Y<F.length;Y++){if(F[Y]==Z){aa=W[Y];break}}return aa}function q(){var ab="";try{ab=top.window.location.search.substring(1)}catch(ac){}var Y=ab.toLowerCase();var aa=Y.split("&");for(var Z=0;Z<aa.length;Z++){var ad=aa[Z].indexOf("=");if(ad>=0){F[F.length]=aa[Z].substring(0,ad);W[W.length]=aa[Z].substring(ad+1)}}}function g(Y){if(typeof(Y.id)!="undefined"&&Y.id!=""){return"&tagId="+Y.id}else{return""}}function a(Y){if(typeof(Y.href)!="undefined"&&Y.href!=""){return Y.getAttribute("href")}else{return"-"}}var n=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");function r(an){var al="";var ak="";for(i=0;i<an;i++){al+=n[Math.floor(Math.random()*n.length)]}for(i=0;i<al.length;i++){ak+=al.charCodeAt(i).toString(16)}var af=new Date();var ac=af.getMonth()+1;var ai=af.getYear();var ad=af.getDate();if(ad<10){ad="0"+ad}if(ac<10){ac="0"+ac}if(ai<1000){ai+=1900}var aa=ai.toString()+ac.toString()+ad.toString();var ag=new Date();var ah=ag.getHours()+ag.getTimezoneOffset()/60;if(ah>24){ah-=24}if(ah<0){ah+=24}var am=ag.getMinutes();var Z=ag.getSeconds();var ae=((ah<10)?"0":"")+ah+((am<10)?"0":"")+am+((Z<10)?"0":"")+Z;var Y=ae+"-"+(ag.getTimezoneOffset()/60);var aj="d"+aa+"_t"+Y;var ab=al+ak+"-1-"+aj;return(ab)}function L(){var Y=escape(site);if(Y==null||Y==""){Y="-"}return Y}function u(){if(ThirdPartyCookie){return".asp"}else{return".gif"}}function o(){return"3.02"}var b=new Date().getTime();function p(){return b}function e(){return new Date().getTimezoneOffset()}function A(){return N}function U(){return m}function j(Y){return Math.pow(2,screen.colorDepth)}function H(Y){return screen.width+"x"+screen.height}function S(Y){var ab;var Z;if(y()=="IE"){if(document.documentElement&&document.documentElement.clientWidth){ab=document.documentElement.clientWidth;Z=document.documentElement.clientHeight}else{if(document.body){ab=document.body.clientWidth;Z=document.body.clientHeight}}}else{try{ab=window.outerWidth;Z=window.outerHeight}catch(aa){ab=0;Z=0}}return(ab+"x"+Z)}function v(){return navigator.javaEnabled()?"Y":"N"}function w(Y){return y()=="NS"?navigator.language:navigator.browserLanguage}function l(Y){return document.domain}function E(){return V().substring(0,5)=="https"}function V(Y){return(escape(document.URL)||"-")}function I(Y){var Z=escape(document.referrer);if(Z==null||Z==""){Z="-"}return Z}function c(Y){var Z=escape(document.title);if(Z==null||Z==""){Z="-"}return Z}function t(Y){try{return document.fileSize}catch(Z){return"-"}}function R(Y){var Z=0;try{for(i=0;i<document.images.length;i++){Z+=parseInt(document.images[i].fileSize)}return Z}catch(aa){return"-"}}function D(){var ac="";for(var aa=0;aa<4;aa++){ac+=n[Math.floor(Math.random()*n.length)]}var ab=new Date().getTime();var Z=Math.floor(ab/200000);var Y=Math.floor(Z*200000);return(ac+(Math.floor(ab-Y)))}var G=D();function s(Y){if((Y==1)||(Y==2)||(Y==3)){return G}return D()}function P(Y){if(Y==1){return(new Date().getTime()-p())}return 0}function z(Y){if(Y==2){return(new Date().getTime()-p())}return 0}function Q(Y){if(Y==3){return(new Date().getTime()-p())}return 0}function O(Y){var Z="-";if(B(sourceparamname)!=null){mrkSrc=escape(B(sourceparamname))}else{if(X!="1"){Z=h("wa_last_source")}}if(Z==null||Z==""){mrkSrc="-"}return Z}function C(Y){var Z="0";if(B(sourceparamname)!=null){mrkSrcDate=p()}else{if(X!="1"){Z=h("wa_last_source_date")}}if(Z==null||Z==""){mrkSrc="0"}return Z}function T(Z){var Y="";if(typeof(wacustomvarnames)!="undefined"){Y="";for(i=0;i<wacustomvarnames.length;i++){Y=Y+wacustomvarnames[i]+"~"+wacustomvarvalues[i];if(i!=wacustomvarnames.length-1){Y=Y+"~"}}}Y+=(typeof(wa_SiteName)!="undefined")?"~wa_SiteName~"+wa_SiteName:"";Y+=(typeof(wa_UniqueUserID)!="undefined")?"~wa_UniqueUserID~"+wa_UniqueUserID:"";Y+=(typeof(wa_UniquePageName)!="undefined")?"~wa_UniquePageName~"+wa_UniquePageName:"";Y+=(typeof(wa_SiteBreadCrumb)!="undefined")?"~wa_SiteBreadCrumb~"+wa_SiteBreadCrumb:"";Y+=(typeof(wa_ProductID)!="undefined")?"~wa_ProductID~"+wa_ProductID:"";Y+=(typeof(wa_ProductValue)!="undefined")?"~wa_ProductValue~"+wa_ProductValue:"";Y+=(typeof(wa_TotalTransactionValue)!="undefined")?"~wa_TotalTransactionValue~"+wa_TotalTransactionValue:"";Y+=(typeof(wa_UniqueTransactionId)!="undefined")?"~wa_UniqueTransactionId~"+wa_UniqueTransactionId:"";Y+=(typeof(wa_TransactionCurrency)!="undefined")?"~wa_TransactionCurrency~"+wa_TransactionCurrency:"";Y+=(typeof(wa_SearchPhrase)!="undefined")?"~wa_SearchPhrase~"+wa_SearchPhrase:"";Y+=(typeof(wa_SearchResultsReturned)!="undefined")?"~wa_SearchResultsReturned~"+wa_SearchResultsReturned:"";if(checkFlash){var aa=deconcept.SWFObjectUtil.getPlayerVersion();if(Y=="-"){Y=""}Y+="~fl~"+aa.major+"."+aa.minor+"."+aa.rev+"~je~"+f()+"~ce~"+d()}return Y}q();var X=h("nocookie");var N;var k;var m;if(X!="1"){k=B(WebAbacusRef);if(k==null||k==""){N=h("webabacus_id")}else{N=k}if(N==null||N=="-1"){N=r(5);m="1"}else{m="0"}if(!DisableFirstPartyCookies){document.cookie="webabacus_id="+escape(N)+"; expires="+J.toUTCString()+"; path=/"+(cookieDomain==""?"":"; domain="+cookieDomain)}if(document.cookie.indexOf(escape(N))<0){var N="-";var m="-"}}else{N="nocookie";m="-1"}var x=B(sourceparamname);if((x!=null)&&(!DisableFirstPartyCookies)&&(X!=-1)){document.cookie="wa_last_source="+escape(x)+"; expires="+J.toUTCString()+"; path=/"+(cookieDomain==""?"":"; domain="+cookieDomain);document.cookie="wa_last_source_date="+p()+"; expires="+J.toUTCString()+"; path=/"+(cookieDomain==""?"":"; domain="+cookieDomain)}return{alert:function(ab){ab=String(ab).replace(/\n/g,"<br/>");var Y="<center><div id='WEBABACUS-msg' style='height:80px;width:40%;border:2px solid GREY;overflow: auto;'><div style='background-color:#FFFDBE;color:black;padding:5px;font-family:verdana;font-size:xx-small'><center><b>WebAbacus Tag code (v"+o()+")</b><br/><br/>%TEXT%<br/><input type='button' value='Hide' onclick='document.getElementById(\"WEBABACUS-msg\").style.display=\"none\"' /><input type='button' value='Stop' onclick='SetCookie(\"webabacus_debug\", false, 740);document.getElementById(\"WEBABACUS-msg\").style.display=\"none\"' /></div></div></center>";var Z=Y.replace("%TEXT%",ab);if(document.getElementById("WEBABACUS-msg-div")){document.getElementById("WEBABACUS-msg-div").innerHTML=Z}else{var ac=document.createElement("div");ac.setAttribute("id","WEBABACUS-msg-div");ac.innerHTML=Z;var aa=document.getElementsByTagName("body")[0];if(aa){aa.insertBefore(ac,aa.firstChild)}else{alert(Z)}}},addEvent:function(ab,aa,Z,Y){if(ab.addEventListener){ab.addEventListener(aa,Z,Y);return true}else{if(ab.attachEvent){return ab.attachEvent("on"+aa,Z)}else{ab["on"+aa]=Z}}},attachOnClickExternalLink:function(){var Z=autoTagDocuments.split(",");var ah=document.getElementsByTagName("a");var ag=document.domain;var ad=(typeof(autoTagTrustedDomain)!="undefined");var af=(document.URL.indexOf("wa_debug=true")>-1)||(document.cookie.indexOf("webabacus_debug=true")>-1);var ac=function(ai,aj){WEBABACUS.addEvent(ai,"click",function(){WEBABACUS.logclientdata("0","/CustomEvent="+aj+"&URL="+a(ai)+"&ClickType=Left"+g(ai));if(af){WEBABACUS.alert("CustomEvent="+aj+"&URL="+a(ai)+"&ClickType=Left"+g(ai))}},false);WEBABACUS.addEvent(ai,"contextmenu",function(){WEBABACUS.logclientdata("0","/CustomEvent="+aj+"&URL="+a(ai)+"&ClickType=Right"+g(ai));if(af){WEBABACUS.alert("CustomEvent="+aj+"&URL="+a(ai)+"&ClickType=Right"+g(ai))}},false)};for(var ae=0;ae<ah.length;ae++){if(!ah[ae].getAttribute("href")){continue}var Y=ah[ae].getAttribute("href").toLowerCase();for(var ab=0;ab<Z.length;ab++){if((Y.indexOf("."+Z[ab])>0)&&(autoTagDocuments.length>0)){ac(ah[ae],"file");continue}}if((autoTagExternalLinks)&&(Y.indexOf("http://")!=-1||Y.indexOf("https://")!=-1)){sDomainLink=Y.match(/:\/\/(www\.)?([^\/:\?]+)/);sDomainLink=sDomainLink[2]?sDomainLink[2]:"";if(ag.indexOf(sDomainLink)==-1){ac(ah[ae],"extURL");if(ad){if(autoTagTrustedDomain.indexOf(sDomainLink)>-1){var aa=ah[ae].getAttribute("href");aa+=((Y.indexOf("?")>0)?"&":"?");aa+=WebAbacusRef+"="+h("webabacus_id");ah[ae].setAttribute("href",aa)}continue}}}else{if((autoTagExternalLinks)&&(Y.indexOf("mailto:")!=-1)){ac(ah[ae],"email");continue}}}},logclientdata:function(ag,Y){var ad=V;var aa=I;if((ag=="0")&&(Y!=null)){ad=function(ai){var ah;if(E()){ah=escape("https://")+l()+escape(Y.replace("https://",""))}else{ah=escape("http://")+l()+escape(Y.replace("http://",""))}return ah};aa=function(ah){return escape(document.URL)}}var Z=((E())?secureserver:server)+"/clientinfo"+u()+"?"+o()+"&"+K()+"&";var ac=L()+"&"+e()+"&"+A()+"&"+U()+"&"+j(ag)+"&"+H(ag)+"&"+S(ag)+"&-&"+v()+"&"+w(ag)+"&"+l(ag)+"&"+ad(ag)+"&"+aa(ag)+"&"+c(ag)+"&"+t(ag)+"&"+R(ag)+"&"+s(ag)+"&"+ag+"&"+P(ag)+"&"+z(ag)+"&"+Q(ag)+"&"+O(ag)+"&"+C(ag)+"&"+T(ag)+"&-";var ab=4000;if(ac.length>ab){ac=ac.substring(0,ab)}if(document.URL.indexOf("file://")==-1){var af=new Image();af.src=Z+ac}var ae=(document.URL.indexOf("wa_debug=true")>-1)||(document.cookie.indexOf("webabacus_debug=true")>-1);if((ag=="02")&&ae){WEBABACUS.alert("Base Details: "+Z+"\nSite name (st): "+L()+"\nTime zone offset (tz): "+e()+"\nWebabacus ID (id): "+A()+"\nNew user flag (nu): "+U()+"\nVisitor Screen Colour Depth (sc): "+j(ag)+"\nVisitor Screen resolution (sr): "+H(ag)+"\nVisitor Window resolution (wr): "+S(ag)+"\nJavascript version (js): -\nJava Enablement (je): "+v()+"\nBrowser Language (lg): "+w(ag)+"\nServer name (dn): "+l(ag)+"\nResource (res): "+V()+"\nReferrer (ref): "+I(ag)+"\nPage Title (pt): "+c(ag)+"\nFile Size: "+t(ag)+"\nImages Size: "+R(ag)+"\ntrioID: "+s(ag)+"\nthispet: "+ag+"\nSRT: "+P(ag)+"\nOET: "+z(ag)+"\nUET: "+Q(ag)+"\nMarketing Source: "+O(ag)+"\nMarketing Source Date: "+C(ag)+"\ncustomfields: "+T(ag)+"\n\ncs(User Agent): "+navigator.userAgent);if(!DisableFirstPartyCookies){SetCookie("webabacus_debug",true,740)}}if(document.URL.indexOf("wa_debug=false")>-1){if(!DisableFirstPartyCookies){SetCookie("webabacus_debug",false,740)}}}}}();WEBABACUS.logclientdata("01");WEBABACUS.addEvent(window,"load",function(){WEBABACUS.attachOnClickExternalLink();WEBABACUS.logclientdata("02")},false);WEBABACUS.addEvent(window,"unload",function(){WEBABACUS.logclientdata("03")},false);