var FJ_mhstnm = 'fj0-12'; function FJ_isIE(){ return navigator.userAgent.indexOf("MSIE") != -1; } 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]+>/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://feedjit.com/click/?' + '&h=' + encodeURIComponent(href) + '&u=' + encodeURIComponent(location.href) + '&cen=' + (FJ_cookiesEnabled() ? '1' : '0') + '&vid=' + window['FJ_VID'] + '&ign=' + ((FJ_readCookie('_fjIgnoreMe') == '1') ? '1' : '0') + '&fl=' + (window['FJ_FIL'] ? '1' : '0') + '&lnt=' + encodeURIComponent(linkText) + '&prt=' + encodeURIComponent(preText) + '&pot=' + encodeURIComponent(postText) + '&fjv=2' + '&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://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(){ FJ_globalInit(); 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();