var WRWarn="Copyright 2006 ClickTale Ltd., US Patent Pending",WRA,WRD=document,WRAU=location,WRv,WRL,WRE=".clicktale.net/",WRAQ="http://s.clicktale.net/",WRn,WRB=new Array(),WRw,ClickTaleCookieDomain,ClickTaleUnloadPause=500,ClickTaleEventsMask=255,ClickTaleFetchFrom,WRAh,WRAV,WRAW,WRAX,WRAY;if(typeof WRInitTime=="undefined")var WRInitTime=(new Date()).getTime();if(WRD.addEventListener)WRD.addEventListener("DOMContentLoaded",WRondomload,false);WRn=WRp();if(WRn&&WRn.substr(0,2)=="IE"&&WRAU.protocol!="https:"){WRD.write('<script id="ClickTaleDefer" defer="defer" src="javascript:void(0)"><\/script>');WRD.getElementById("ClickTaleDefer").onreadystatechange=function(){if(this.readyState=="complete")WRondomload();};};WRw=(WRD.compatMode=='BackCompat');WRv=(WRw?WRD.body:WRD.documentElement);var t=WRD.domain;if(t.search(/www\.\w+\.\w+/i)==0)ClickTaleCookieDomain=t.substring(4,t.length);WRo(window,"load",WRf);function ClickTale(Project,Prob,Dest){if(WRAh)throw"CT: Monitoring has already started";if(!WRn)return;if(WRAU.protocol=="file:")return;if(!Dest)Dest="www";WRE="http://"+Dest+WRE;if(typeof ClickTaleSSL!="undefined")if((ClickTaleSSL==1&&WRAU.protocol=="https:")||ClickTaleSSL==2)WRAQ=WRE=WRE.replace(/^http/,'https');if(ClickTaleIsPlayback())return;if(Prob==undefined)Prob=1;WRL=WRl("WRUID");if(WRL==null){if(Math.random()<Prob)WRL=WRAi();else WRL=0;};WRk("WRUID",WRL,365);if(WRL==0||(WRl("WRUID")==null&&Prob!=1))return;WRAh=true;WRC({a:"start",t:WRI()});WRA=Project;var i=new Image();i.src=WRE+"i/"+WRA+".gif?"+WRH();i.onerror=function(){i.onload=null;i.onerror=null;};i.onload=function(){i.onload=null;i.onerror=null;WRG(i);};};function ClickTaleIsPlayback(){return parent&&parent.WebPlayer;};function ClickTaleGetSID(){return typeof WRSID=="number"?WRSID:null;};function ClickTaleGetUID(){var c=readCookie("WRUID");return c>0?c:null;};function WRG(i){var s=WRD.createElement("script");s.src=WRAQ+"WR"+"a"+(i.width>1?"S"+i.width:"")+"b.js";var dd=WRD.getElementById("ClickTale");if(dd)dd.appendChild(s);};function WRH(){return Math.floor(Math.random()*2147483647);};function WRAi(){return WRH()+"."+(WRInitTime&2147483647);};function WRI(){return(new Date()).getTime()-WRInitTime;};function WRC(m){if(typeof WRc=='function')WRc(m);else if(WRB.push)WRB.push(m);};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(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*86400000));var expires="; expires="+date.toGMTString();}else var expires="";WRD.cookie=name+"="+value+expires+"; path=/;"+(ClickTaleCookieDomain?" domain="+ClickTaleCookieDomain+";":"");};function WRl(name){var nameEQ=name+"=";var ca=WRD.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);};return null;};function ClickTaleTag(c){WRC({a:"tag",c:c,t:WRI()});};function ClickTaleNote(c){WRC({a:"note",c:c,t:WRI()});};function ClickTaleField(f,v){WRC({a:"field",f:f,v:v,t:WRI()});};function ClickTaleExec(c){WRC({a:"exec",c:c,t:WRI()});};function ClickTaleIgnore(Days){WRk("WRUID",0,Days);};function ClickTaleUploadPage(Pre,Suf){if(WRAh)throw"CTUP: Monitoring has already started";WRAV=true;WRAX=Pre;WRAY=Suf;if(WRAW&&typeof WRAj=='function')WRAj();};function WRondomload(){if(ClickTaleIsPlayback()||WRAW)return;var s=WRD.getElementById("ClickTaleDefer");if(s)s.parentNode.removeChild(s);var reg=new RegExp("(<div id=\"?ClickTale\"?[^>]+>)\\s*<script[^>]+></script>\\s*(</div>)","i");WRAW=WRD.documentElement.innerHTML.replace(reg,"$1$2");WRC({a:"domload",t:WRI()});if(typeof WRAZ=='function')WRAZ();if(WRAV&&typeof WRAj=='function')WRAj();};function WRp(){var ua=navigator.userAgent;if(ua.indexOf("Opera ")!=-1)return;if(ua.indexOf("MSIE 6.0")!=-1)return"IE6";if(ua.indexOf("MSIE 7.0")!=-1)return"IE7";if(ua.indexOf("Firefox/1.5")!=-1)return"FF15";if(ua.indexOf("Firefox/2.0")!=-1)return"FF20";};function WRo(e,t,fn){if(e.addEventListener)e.addEventListener(t,fn,false);else if(e.attachEvent)e.attachEvent('on'+t,fn);};
