var WRWarn="Copyright 2006-2008 ClickTale Ltd., US Patent Pending",WRA,WRD=document,WRAS=location,WRA4=!1,WRA5,WRv,WRL,WRE=".clicktale.net/",WRAP="http://s.clicktale.net/",WRn,WRB=[],WRw,ClickTaleCookieDomain,ClickTaleUnloadPause=500,ClickTaleEventsMask=127,ClickTaleFetchFrom,ClickTaleCookieExpiryDays=365,WRAf,WRAT,WRAU,WRAV,WRAW,t=WRD.domain;t.search(/www\.\w+\.\w+/i)==0&&(ClickTaleCookieDomain=t.substring(4,t.length));WRA6();WRA4&&WRA7("note1: entering debug mode, ClickTale script is installed");
if(typeof WRInitTime=="undefined"){var WRInitTime=(new Date).getTime();WRA4&&WRA7("warning1: top ClickTale script is missing in the page")}WRD.addEventListener&&WRD.addEventListener("DOMContentLoaded",WRondomload,!1);if((WRn=WRp())&&WRn.substr(0,2)=="IE"){WRD.write('<script id="ClickTaleDefer" defer="defer" src=//:><\/script>');WRD.getElementById("ClickTaleDefer").onreadystatechange=function(){this.readyState=="complete"&&WRondomload()}}WRv=(WRw=WRD.compatMode=="BackCompat")?WRD.body:WRD.documentElement;
WRo(window,"load",WRf);
function ClickTale(a,b,c){if(WRAf)throw"CT: Monitoring has already started";if(!ClickTaleIsPlayback()){b==void 0&&(b=1);if(WRA4){WRA7("note2: preparing to record (ver 11.2) for project id "+a);b==1?WRA7("note3: recording all visitors to this page"):WRA7("note3: recording approximately 1 of every "+Math.ceil(1/b)+" visitors to this page")}if(WRn)if(WRAS.protocol=="file:")WRA4&&WRA7("warning3: the current protocol is not supported");else if(WRl("WRIgnore"))WRA4&&WRA7("warning6: the current machine/user is temporarily disabled for recording");else{WRL=
WRl("WRUID");var d=!1;if(WRL==null){d=!0;WRL=Math.random()<b?WRAg():0}WRk("WRUID",WRL,ClickTaleCookieExpiryDays);if(WRL==0||WRl("WRUID")==null&&b!=1)WRA4&&WRA7("warning4: the current machine/user is disabled for recording");else{c||(c="www");WRE="http://"+c+WRE;if(typeof ClickTaleSSL!="undefined"&&(ClickTaleSSL==1&&WRAS.protocol=="https:"||ClickTaleSSL==2))WRAP=WRE=WRE.replace(/^http/,"https");WRAf=!0;WRC({a:"start",t:WRI()});WRA=a;var e=new Image;e.src=WRE+"i/"+WRA+".gif?r="+b+"&UID="+WRL+(d?"&new":
"")+"&"+WRH();e.onerror=function(){e.onload=null;e.onerror=null;WRA8()};e.onload=function(){e.onload=null;e.onerror=null;WRG(e)}}}else WRA4&&WRA7("warning2: the current browser is not supported")}}function ClickTaleIsPlayback(){try{return parent&&parent.WebPlayer}catch(a){}return!1}
function WRG(a){var b=WRD.createElement("script");b.src=WRAP+"WRb2"+(a.width>1?"S"+a.width:"")+"b.js";(a=WRD.getElementById("ClickTaleDiv"))||(a=WRD.getElementById("ClickTale"));if(a){a.appendChild(b);WRA4&&WRA7("note4: preparing for stage 2")}else WRA4&&WRA7("error1: no 'ClickTale' DIV element found in this page")}
function WRA8(){WRA4&&WRA7("error2: unable to record because either there are no credits for project or communication may be down");WRk("WRIgnore",!0,ClickTaleCookieExpiryDays?0.0070:!1)}function WRH(){return Math.floor(Math.random()*2147483647)}function WRAg(){return WRH()+"."+(WRInitTime&2147483647)}function WRI(){return(new Date).getTime()-WRInitTime}function WRC(a){typeof WRc=="function"?WRc(a):WRB.push&&WRB.push(a)}
function WRf(){WRC({a:"load",w:WRs(),h:WRt(),sw:WRv.scrollWidth,sh:WRv.scrollHeight,cw:WRv.clientWidth,ch:WRv.clientHeight,t:WRI()})}function WRs(){return self.innerWidth||WRv.offsetWidth}function WRt(){return self.innerHeight||WRv.offsetHeight}function WRk(a,b,c){if(c){var d=new Date;d.setTime(d.getTime()+c*864E5);c="; expires="+d.toGMTString()}else c="";WRD.cookie=a+"="+b+c+"; path=/;"+(ClickTaleCookieDomain?" domain="+ClickTaleCookieDomain+";":"")}
function WRl(a){a+="=";for(var b=WRD.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];d.charAt(0)==" ";)d=d.substring(1,d.length);if(d.indexOf(a)==0)return d.substring(a.length,d.length)}return null}function ClickTaleGetSID(){return typeof WRSID=="number"?WRSID:null}function ClickTaleGetUID(){var a=WRl("WRUID");return a>0?a:null}function ClickTaleTag(a){WRC({a:"tag",c:a,t:WRI()})}function ClickTaleNote(a){WRC({a:"note",c:a,t:WRI()})}
function ClickTaleField(a,b){WRC({a:"field",f:a,v:b,t:WRI()})}function ClickTaleExec(a){WRC({a:"exec",c:a,t:WRI()})}function ClickTaleIgnore(a){WRk("WRUID",0,a)}function ClickTaleUploadPage(a,b){if(WRAf)throw"CTUP: Monitoring has already started";WRAT=!0;WRAV=a;WRAW=b;WRAU&&typeof WRAh=="function"&&WRAh()}
function WRondomload(){if(!ClickTaleIsPlayback()&&!WRAU){var a=WRD.getElementById("ClickTaleDefer");a&&a.parentNode.removeChild(a);WRAU=WRD.documentElement.innerHTML.replace(/(<div id="?ClickTaleDiv"?[^>]+>)\s*<script[^>]+><\/script>\s*(<\/div>)/i,"$1$2");WRC({a:"domload",t:WRI()});typeof WRAX=="function"&&WRAX();WRAT&&typeof WRAh=="function"&&WRAh()}}function WRA6(){if(!ClickTaleIsPlayback()){WRA9(WRAS.hash.substr(1));WRA9(WRAS.search.substr(1))}}
function WRA9(a){a=a.split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=decodeURIComponent(c[0]).toLowerCase();c.length==2&&(d=="ct"||d=="clicktale")&&WRBA(decodeURIComponent(c[1]))}}
function WRBA(a){a=a.split(",");for(var b=0;b<a.length;b++)switch(a[b].toLowerCase()){case "debug":WRD.write('<textarea id="ClickTaleDebugDump" rows="5" cols="80" style="position: absolute; left:10px; top:10px; border: solid #6C358D;"></textarea>');if(WRA5=WRD.getElementById("ClickTaleDebugDump"))WRA5.value="";WRA4=!0;break;case "enable":WRk("WRIgnore",null,-1);var c=WRl("WRUID");(c==null||c==0)&&WRk("WRUID",WRAg(),ClickTaleCookieExpiryDays);break;case "disable":WRk("WRUID",0,ClickTaleCookieExpiryDays);
break;case "reset":WRk("WRUID",null,-1);break;default:/^t\(.+\)$/i.test(a[b])?ClickTaleTag(a[b].substring(2,a[b].length-1)):WRA4&&WRA7("warning5: unknown parameter in URL: "+a[b])}}function WRA7(a){WRA5?WRA5.value+=a+"\n":alert("CT: "+a)}
function WRp(){var a=navigator.userAgent;if(a.indexOf("Opera ")==-1){if(a.indexOf("MSIE 6.0")!=-1)return"IE6";if(a.indexOf("MSIE 7.0")!=-1)return"IE7";if(a.indexOf("Firefox/1.5")!=-1)return"FF15";if(a.indexOf("Firefox/2.0")!=-1)return"FF20";if(a.indexOf("Firefox/3.0")!=-1)return"FF30"}}function WRo(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)};

