if(!window.IBComet){if(!"f".trim){String.prototype.trim=function(){return(this.replace(/^[ \r\n\t\f\s]+/,"").replace(/[ \r\n\t\f\s]+$/,""))}}var thishost=self.location.hostname;var thiscookiedomain=thishost.substring(thishost.lastIndexOf(".",(thishost.length-5)),thishost.length);IBComet={setParticle:function(n,v,isSession){var sessionDurationMinutes=30;var forEver="Wed, 30-Dec-2037 00:00:00 GMT";var forSession=new Date(new Date().getTime()+(1000*60*sessionDurationMinutes)).toGMTString();document.cookie=n+"="+v+"; expires="+(!isSession?forEver:forSession)+"; path=/; domain="+thiscookiedomain+";";return v},getParticle:function(n){var ck=null;var cs=document.cookie.split("; ");for(var pc=0;!ck&&(strpair=cs[pc]);pc++){var pair=strpair.split("=");if(pair[0].trim()==n){ck=pair[1]}}return ck},getTrail:function(){var c="comettrail";var part=IBComet.getParticle(c);return part?part:IBComet.setParticle(c,(new Date().getTime().toString().substring(0,13)+Math.random().toString().substring(2,8)))},getNucleus:function(){var coil=document.getElementById("ref_ib_coid");return coil?coil.getAttribute("rel"):"-1"},getVisit:function(){var cvisit="_ibcv";var ccount="_ibcvc";var vid=IBComet.getParticle(cvisit);var vcount=IBComet.getParticle(ccount);if(!vcount){vcount=0}return vid?IBComet.setParticle(cvisit,vid,true):IBComet.setParticle(cvisit,IBComet.setParticle(ccount,parseInt(vcount)+1),true)},scape:function(s){return window.encodeURIComponent?encodeURIComponent(s):escape(s)},woosh:function(){if(arguments.callee.done){return }arguments.callee.done=true;var fields={coid:IBComet.scape(IBComet.getNucleus()),luuid:IBComet.scape(IBComet.getTrail()),u:IBComet.scape(self.location.href),r:IBComet.scape(document.referrer),ut:IBComet.scape(document.title),sid:IBComet.scape(IBComet.getVisit())};var shost=(location.href.indexOf("cometdev")==-1)?"comet.ibsrv.net":"cometdev.ibsrv.net:8080";var flyby="http://"+shost+"/woosh?cb="+(new Date().getTime());var trail="";for(k in fields){trail+="&"+k+"="+fields[k]}var ibcomet=new Image(1,1);ibcomet.alt="";ibcomet.src=flyby+trail}}}
if(window.IBComet)IBComet.woosh();

