if(!window.fjit){window.fjit={isNewVisit:false,wUrlMap:{trafficList:"http://feedjit.com/serve",map:"http://feedjit.com/map",popPages:"http://feedjit.com/popPages",coFilter:"http://feedjit.com/coFilter"},qStrCache:{},cookiesAreEnabled:null,scrToTxt:"",trafficFeedEnabled:false,flashVisible:true,flashHasLoaded:false,flashInserted:false,FNVCalled:false,flCallbacks:[],totFLTime:0,logRun:false,cssNodes:{},widgetsRun:{},clickTInst:false,flashElemId:false,vid:null,filterOn:null,readyBound:false,domIsReady:false, onDomReadyFuncs:[],logDivInserted:false,logDivElem:false,logStartTime:(new Date).getTime(),logData:"",init:function(){this.bindReady();this.setupClickTrk();this.cookiesInit()},cookiesInit:function(){if(this.cookiesEnabled()){var a=this.readCookie("_fjvid1");if(a)this.vid=a;else{this.vid="new";this.isNewVisit=true}this.createCookie("_fjvid1",a,1800)}else this.vid="cookiesDisabled"},addOnDomReady:function(a){this.domIsReady?a():this.onDomReadyFuncs.push(a)},domReady:function(){if(!this.domIsReady){this.domIsReady= true;for(var a=0;a0){var e="application/x-shockwave-flash",f=navigator.mimeTypes;if(f&&f[e]&&f[e].enabledPlugin&&f[e].enabledPlugin.description){e=f[e].enabledPlugin.description;var h=g(e);a.raw=h.raw;a.major=h.major;a.minor=h.minor;a.revisionStr= h.revisionStr;a.revision=h.revision;a.installed=true}}else if(navigator.appVersion.indexOf("Mac")==-1&&window.execScript){e=-1;for(f=0;f=9?true:false},isIE:function(){return navigator.userAgent.indexOf("MSIE")!=-1}, getScrQ:function(a){for(var b=document.getElementsByTagName("script"),c=0;c/g,">");return b.value},shortenPre:function(a, b){if(a.length<=b)return a;b-=3;a=a.substr(a.length-b,b);return a="..."+a.replace(/^[^\s\r\n\t]+[\s\r\n\t]+/,"")},shortenPost:function(a,b){if(a.length<=b)return a;b-=3;a=a.substr(0,b);return a=a.replace(/[\s\r\n\t]+[^\s\r\n\t]+$/,"")+"..."},handleAClick:function(a,b){b=b||window.event;b=a.href;for(var c=a.innerHTML?this.eDec(a.innerHTML.replace(/<[^>]+>/g,"")):"",d="",i="",g=a;(g=g.previousSibling)&&d.length<255;)if(g.nodeType==3)d=this.eDec(g.nodeValue)+d;else if(g.nodeType==1&&g.firstChild&&g.firstChild=== g.lastChild&&g.firstChild.nodeType==3)d=this.eDec(g.firstChild.nodeValue)+d;else break;for(a=a;(a=a.nextSibling)&&i.length<255;)if(a.nodeType==3)i+=this.eDec(a.nodeValue);else if(a.nodeType==1&&a.firstChild&&a.firstChild===a.lastChild&&a.firstChild.nodeType==3)i+=this.eDec(a.firstChild.nodeValue);else break;c=c.replace(/[\s\r\n\t]+/g," ");d=d.replace(/[\s\r\n\t]+/g," ");i=i.replace(/[\s\r\n\t]+/g," ");c=this.shortenPost(c,125);d=this.shortenPre(d,125);i=this.shortenPost(i,125);a="0";if(g=this.flGet("gid"))a= g;g=document.createElement("IMG");g.width="1";g.height="1";g.alt="blah";g.src="http://feedjit.com/click/?&h="+encodeURIComponent(b)+"&u="+encodeURIComponent(location.href)+"&cen="+(this.cookiesEnabled()?"1":"0")+"&vid="+this.vid+"&ign="+(this.readCookie("_fjIgnoreMe")=="1"?"1":"0")+"&fl="+this.isFilterOn()+"&lnt="+encodeURIComponent(c)+"&prt="+encodeURIComponent(d)+"&pot="+encodeURIComponent(i)+"&gid="+a+"&tfen="+(this.trafficFeedEnabled?"1":"0")+"&fjv=2&t="+encodeURIComponent(document.title.replace(/[\s\r\n\t]+/g, " "))+"&rand="+Math.floor(Math.random()*999999999);document.body.appendChild(g);b=document.createElement("IMG");b.width="1";b.height="1";b.alt="";b.src="http://feedjit.com/images/transparent.gif?r="+Math.floor(Math.random()*999999999);document.body.appendChild(b);fjit.pause(500);return true},installATrack:function(a){if(typeof a.onclick!="function")a.onclick=function(b){return fjit.handleAClick(this,b)}},processLinks:function(){for(var a=document.body.getElementsByTagName("A"),b=0;b'+b+"";if(a=this.e("FJ_S_TO"))a.innerHTML=this.scrToTxt},log:function(a,b){if(b)b+=": ";else b="";this.logData=b+((new Date).getTime()-this.logStartTime)+": "+a+ "
"+this.logData;if(this.logDivInserted){a=this.logDivElem.firstChild.nextSibling;a.innerHTML=this.logData}},appendLogDiv:function(){if(!this.logDivInserted){this.logDivInserted=true;var a=document.createElement("DIV");a=document.createElement("DIV");a.style.position="fixed";a.style.zIndex=99999999;a.style.textAlign="left";a.style.left="0px";a.style.bottom="0px";a.style.border="2px solid #F00";a.style.width="600px";a.style.height="200px";a.style.overflow="scroll";a.style.fontSize="10px";a.style.fontFamily= "Arial";a.style.color="#000";a.style.backgroundColor="#FFF";a.innerHTML='
  
';var b=a.firstChild.nextSibling;b.innerHTML=this.logData;this.logDivElem=a;document.body.appendChild(this.logDivElem);this.e("FJ_S_TO").innerHTML=this.scrToTxt}},isThisVisible:function(a){a=fjit.e(a);try{for(;a=a.parentNode;){if(a.tagName.toUpperCase()== "BODY")break;var b=fjit.getStyle(a,"display");if(b=="none")return false}}catch(c){}return true},setFlashElemId:function(a){this.flashElemId=a},flGet:function(a){if(this.flashElemId){var b=false;try{b=this.e(this.flashElemId).fjfGet(a)}catch(c){}if(b)return b}return false},flSet:function(a,b){if(this.flashElemId)try{this.e(this.flashElemId).fjfSet(a,b)}catch(c){}},addOnFlash:function(a,b){if(this.flashHasLoaded){this.log("in addOnFlash() flashHasLoaded is true, so executing callback immediately",b); a()}else{this.log("in addOnFlash() flash has not loaded yet, so queueing callback",b);this.flCallbacks.push(a)}},doWrite:function(a,b,c){this.log("Starting "+a+" widget creation",a);if(fjit.flashOn())if(this.flashHasLoaded){this.log("Flash already loaded at start of doWrite(). Doing basic doc.write and executing cb() immediately",a);document.write(b);c()}else if(this.flashInserted){this.log("Flash is already inserted. Writing basic div and setting up callback and returning.",a);document.write(b); this.addOnFlash(c,a)}else{this.log("Inserting fj.swf",a);this.setFlashElemId("FJ_FL_Obj");b='
'+b;document.write(b);this.flashInserted=true;this.log("Adding callback for "+ a);this.addOnFlash(c,a);this.flStartTime=(new Date).getTime();if(this.isThisVisible("FJ_FL_Cont")){this.log("Widget is visible",a);var d=this;setTimeout(function(){d.flashLoaded(true)},1E4)}else{this.flashVisible=false;this.log("Widget is NOT visible");if(this.isIE())if(this.domIsReady){this.log("Browser is IE and DOM is ready - inserting visible flash",a);this.flashNotVisible(a)}else{this.log("Browser is IE - setting up onDomReady to insert visible flash",a);d=this;this.addOnDomReady(function(){d.flashNotVisible(a)})}else{this.log("Inserting visible flash into DOM", a);this.flashNotVisible(a)}}}else{this.log("Flash not enabled. Calling doc.write and running callback immediatelly.",a);document.write(b);c()}},flashNotVisible:function(a){if(this.FNVCalled)this.log("FNV already called",a);else{this.FNVCalled=true;var b=document.createElement("DIV");b.style.width="1px";b.style.height="1px";b.style.borderWidth="0px";document.body.appendChild(b);this.setFlashElemId("FJ_FL_Obj2");b.innerHTML='
'; this.log("Added new flash object to DOM",a);var c=this;setTimeout(function(){c.flashLoaded(true)},1E4)}},flashLoaded:function(a){if(!this.flashHasLoaded){this.flashHasLoaded=true;if(a){this.log("WARNING: fjit.flashLoaded() called through timeout - Flash did not load.");this.totFLTime="0"}else{this.log("Flash loaded succesfully!");if(this.flGet("fjdebug")=="1")if(this.isIE()){var b=this;this.addOnDomReady(function(){b.appendLogDiv()})}else this.appendLogDiv();this.totFLTime=(new Date).getTime()-this.flStartTime}if(this.flCallbacks.length> 0)for(a=0;a',function(){b.fl()})},setCHost:function(a){this.cHost=a},fl:function(){var a=document.createElement("SCRIPT");a.charset="utf-8";a.type="text/javascript";var b=fjit.makeWParams("2","map","FJ_MP_RUN"); a.src="http://feedjit.com/router/?"+b;document.getElementsByTagName("head")[0].appendChild(a)},proc:function(a){fjit.e("FJ_MP_Cont").innerHTML=a},findPos:function(a){var b=curtop=0;if(a.offsetParent){b=a.offsetLeft;for(curtop=a.offsetTop;a=a.offsetParent;){b+=a.offsetLeft;curtop+=a.offsetTop}}return[b,curtop]},pointerX:function(a){return a.pageX||a.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)},pointerY:function(a){return a.pageY||a.clientY+(document.documentElement.scrollTop|| document.body.scrollTop)},mapClick:function(a,b){var c=this.findPos(b),d=this.pointerX(a)-c[0]-(fjit.isIE()?2:0);a=this.pointerY(a)-c[1]-(fjit.isIE()?2:0);window.location="http://feedjit.com/stats/"+this.cHost+"/map/?x="+d+"&y="+a+"&w="+parseInt(b.clientWidth)+"&h="+parseInt(b.clientHeight)},removeFloater:function(){if(this.floater&&this.floater.parentNode){this.floater.parentNode.removeChild(this.floater);this.floater=false}},floatingDiv:function(a,b){this.floater&&this.removeFloater();var c=this.pointerX(a)- 50;a=this.pointerY(a)-30;var d=document.createElement("DIV");d.id="FJ_FloatingDiv";d.style.left=c+"px";d.style.top=a+"px";d.innerHTML=b;this.floater=d;document.body.appendChild(this.floater)}};fjmap.init()};