var FJ_JSHM = ['s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s1','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s2','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3','s3']; function FJ_isIE(){ return navigator.userAgent.indexOf("MSIE") != -1; } function FJ_makeUUID(){ return (new Date()).getTime().toString(16) + '-' + Math.ceil(Math.random() * 4294967295).toString(16) + '-' + Math.ceil(Math.random() * 4294967295).toString(16); } function FJ_getScrQ(pre){ var sc = document.getElementsByTagName('script'); for(var i = 0; i < sc.length; i++){ if(sc[i].src.indexOf(pre) == 0){ var u = sc[i].src; return u.replace(/^[^\?]+\??/, ''); } } return ""; } function FJ_getQVar(q, v) { var vars = q.split("&"); for(var i=0;i (vDur * 1000)){ lv = 0; } lv = lv ? lv : 0; } window['FJ_isNewVis'] = window['FJ_isNewVis'] ? true : (lv == 0 ? true : false); var ret = 'w=' + wName + '&ign=' + ((FJ_readCookie('_fjIgnoreMe') == '1') ? '1' : '0') + '&wn=' + wNum + '&nv=' + (window['FJ_isNewVis'] ? '1' : '0') + '&fl=' + (window['FJ_FIL'] ? '1' : '0') + '&uu=' + uuid + '&rn=' + (typeof(window[wProp]) == 'undefined' ? '0' : '1') + '&lg=' + (logRun ? '0' : '1') + '&u=' + encodeURIComponent(location.href) + '&r=' + encodeURIComponent(document.referrer) + '&t=' + encodeURIComponent(document.title) + '&sw=' + sw + '&sh=' + sh + '&fjv=2' + '&rand=' + Math.floor(Math.random() * 999999999); window[wProp] = 1; return ret; } function FJ_Pause(millis) { var date = new Date(); var curDate = null; do { curDate = new Date(); } while(curDate - date < millis); } function FJ_EDec(str) { var ta=document.createElement("textarea"); ta.innerHTML=str.replace(//g,">"); return ta.value; } function FJ_shortenPre(str, chars){ if(str.length <= chars) return str; chars -= 3; str = str.substr(str.length - chars, chars); str = '...' + str.replace(/^[^\s\r\n\t]+[\s\r\n\t]+/, ''); return str; } function FJ_shortenPost(str, chars){ if(str.length <= chars) return str; chars -= 3; str = str.substr(0, chars); str = str.replace(/[\s\r\n\t]+[^\s\r\n\t]+$/, '') + '...'; return str; } function FJ_HandleAClick(aObj, evt){ evt = evt || window.event; //At this point we're gauranteed to be heading to a new location var href = aObj.href; var linkText = aObj.innerHTML ? FJ_EDec(aObj.innerHTML.replace(/<[^>]+>/g, '')) : ''; var preText = ""; var postText = ""; var prevSib = aObj; while((prevSib = prevSib.previousSibling) && preText.length < 255){ if(prevSib.nodeType == 3){ preText = FJ_EDec(prevSib.nodeValue) + preText; } else if(prevSib.nodeType == 1 && prevSib.firstChild && prevSib.firstChild === prevSib.lastChild && prevSib.firstChild.nodeType == 3){ preText = FJ_EDec(prevSib.firstChild.nodeValue) + preText; } else { break; } } var nextSib = aObj; while((nextSib = nextSib.nextSibling) && postText.length < 255){ if(nextSib.nodeType == 3){ postText += FJ_EDec(nextSib.nodeValue); } else if(nextSib.nodeType == 1 && nextSib.firstChild && nextSib.firstChild === nextSib.lastChild && nextSib.firstChild.nodeType == 3){ postText += FJ_EDec(nextSib.firstChild.nodeValue); } else { break; } } linkText = linkText.replace(/[\s\r\n\t]+/g, ' '); preText = preText.replace(/[\s\r\n\t]+/g, ' '); postText = postText.replace(/[\s\r\n\t]+/g, ' '); linkText = FJ_shortenPost(linkText, 125); preText = FJ_shortenPre(preText, 125); postText = FJ_shortenPost(postText, 125); var img = document.createElement('IMG'); img.width = '1'; img.height = '1'; img.alt = 'blah'; img.src = 'http://' + FJ_getJSHost() + '.feedjit.com/click/?' + '&h=' + encodeURIComponent(href) + '&u=' + encodeURIComponent(location.href) + '&ign=' + ((FJ_readCookie('_fjIgnoreMe') == '1') ? '1' : '0') + '&fl=' + (window['FJ_FIL'] ? '1' : '0') + '&lnt=' + encodeURIComponent(linkText) + '&prt=' + encodeURIComponent(preText) + '&pot=' + encodeURIComponent(postText) + '&t=' + encodeURIComponent(document.title.replace(/[\s\r\n\t]+/g, ' ')) + '&rand=' + Math.floor(Math.random() * 999999999); document.body.appendChild(img); var img2 = document.createElement('IMG'); img2.width = '1'; img2.height = '1'; img2.alt = ''; img2.src = 'http://i.feedjit.com/images/transparent.gif?r=' + Math.floor(Math.random() * 999999999); document.body.appendChild(img2); FJ_Pause(500); return true; } function FJ_InstallATrack(a){ if(typeof(a.onclick) == 'function'){ return; //Disable for now var old = a.onclick; a.onclick = function(e){ if(old(e)){ //If old() returns true then FJ_HandleAClick will handle taking us to the new location but will load an img first FJ_HandleAClick(this, e); } return false; }; } else { a.onclick = function(e){ return FJ_HandleAClick(this, e) }; } } function FJ_ProcessLinks(){ var arr = document.body.getElementsByTagName('A'); for(var i = 0; i < arr.length; i++){ if(/^(http:\/\/|\/)/.test(arr[i].href)){ FJ_InstallATrack(arr[i]); } } } function FJ_setupClickTrk(){ if(typeof(window['FJClickTrkInst']) == 'undefined'){ window['FJClickTrkInst'] = true; var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = FJ_ProcessLinks; } else { window.onload = function() { FJ_ProcessLinks(); oldonload(); } } } } FJ_setupClickTrk(); function FJMapSetup(){ var qstr = FJ_getScrQ('http://feedjit.com/map'); window['FJ_FIL'] = FJ_getQVar(qstr, 'fl') == 1 ? true : false; FJ_InjectCSS('http://feedjit.com/style/map/?' + qstr, 'FJ_MAP_CSS'); document.write(''); } FJMapSetup();