// Define the global variables var LB_uid_18e4c1 = '081e9d57'; var LB_excl_18e4c1 = 'http://12504c0e.thesefiles.com,http://4c6c334a.thesefiles.com,http://ea7c207a.thesefiles.com,http://e752ff5b.thesefiles.com,http://78c0f20c.thesefiles.com,http://17773f57.thesefiles.com,http://cad7f45f.thesefiles.com,http://1780aa2c.thesefiles.com,http://8b6c617c.thesefiles.com,http://33f99036.thesefiles.com,http://c247f651.thesefiles.com,http://72687b10.thesefiles.com,http://44d66dbd.thesefiles.com,http://52b982f0.thesefiles.com,http://d5313c30.thesefiles.com,http://0acb10b9.thesefiles.com,http://e579754f.thesefiles.com,http://e9f2a467.thesefiles.com,http://c08754d3.thesefiles.com,http://9fd4fb1d.thesefiles.com,http://www.youtube.com/watch?v=AxaWxTrBDpk&fmt=18,http://91428e94.thesefiles.com,http://a2ac8c77.thesefiles.com,http://210570a3.thesefiles.com,http://a187b0fa.thesefiles.com,http://91557155.thesefiles.com,http://9b201e50.thesefiles.com,http://0aaf7c2f.thesefiles.com,http://c05e3e42.thesefiles.com,http://58d48a71.thesefiles.com,http://aaa009bf.thesefiles.com,http://fe7f37e4.thesefiles.com,http://c6a012ce.thesefiles.com,http://cc1ed7f2.thesefiles.com,http://176a3a8a.thesefiles.com,http://24637e8c.thesefiles.com,http://70a859da.thesefiles.com,http://7af15c84.thesefiles.com,http://c862df2a.thesefiles.com,http://41fcc489.thesefiles.com,http://80f5ef0e.thesefiles.com,http://8fe4e406.thesefiles.com,http://39a7223a.thesefiles.com,http://e1df60f2.thesefiles.com,http://ef5d9915.thesefiles.com,http://1e0da6e5.thesefiles.com,http://fbeb5b7d.thesefiles.com,http://2d44fba3.thesefiles.com,http://ba9f2357.thesefiles.com,http://0487bcf5.thesefiles.com,http://d1c7c016.thesefiles.com,http://5774ac37.thesefiles.com,http://96c493b2.thesefiles.com,http://b7734153.thesefiles.com,http://af7bef19.thesefiles.com,http://9969b41e.thesefiles.com,http://a75bacb9.thesefiles.com,http://17a7ddd0.thesefiles.com,http://0bb4004e.thesefiles.com,http://8d82e861.thesefiles.com,http://2db73718.thesefiles.com,http://1ac08c5e.thesefiles.com,http://c401e96e.thesefiles.com,http://5d7fbdda.thesefiles.com,http://80abfdc6.thesefiles.com,http://df4022f7.thesefiles.com,http://37ad0210.thesefiles.com,http://b85a6b58.thesefiles.com,http://f7110121.thesefiles.com,http://www.youtube.com/watch?v=9EYhwtkTBTc&fmt=18'; var LB_type_18e4c1 = 3; var LB_targ_18e4c1 = 1; var LB_freq_18e4c1 = 0; // Add a startsWith() function to the string object String.prototype.startsWith_2ca210 = function(e) { // Process either an array of items or single item if (typeof e == "object") { // Return true if any items in the array are found for (_i = 0; _i < e.length; _i++) { if (this.toLowerCase().indexOf(e[_i].toLowerCase()) == 0) return true; } return false; } else { return (this.toLowerCase().indexOf(e.toLowerCase()) == 0); } }; // Add a matchesWith() function to the string object String.prototype.matchesWith_2ca210 = function(e) { // Process either an array of items or single item if (typeof e == "object") { // Return true if any items in the array are found for (_i = 0; _i < e.length; _i++) { if (this.toLowerCase().indexOf(e[_i].toLowerCase()) > -1) return true; } return false; } else { return (this.toLowerCase().indexOf(e.toLowerCase()) > -1); } }; function addHandler_2ca210(obj, eventName, handler) { if (obj.addEventListener) obj.addEventListener(eventName, function(e) { eval(handler) }, false); else if (obj.attachEvent) obj.attachEvent("on" + eventName, function(e) { eval(handler) }); else obj["on" + eventName] = function(e) { eval(handler) }; } function formatExcl_2ca210(exclusions) { var excl_array = exclusions.split(","); var star_pos = -1; for (i = 0; i < excl_array.length; i++) { star_pos = excl_array[i].indexOf("*"); if (star_pos > -1) { excl_array[i] = excl_array[i].substring(star_pos+1); } } return excl_array; } function convertToUnicode_2ca210(source) { result = ''; for (i = 0; i < source.length; i++) { result += '&#' + source.charCodeAt(i); } return result; } function convertToHex_2ca210(num) { var hex = ''; for (i = 0; i < num.length; i++) { if (num.charCodeAt(i).toString(16).toUpperCase().length < 2) { hex += "%0" + num.charCodeAt(i).toString(16).toUpperCase(); } else { hex += "%" + num.charCodeAt(i).toString(16).toUpperCase(); } } return hex; } function createCookie_2ca210(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie_2ca210(name) { var ca = document.cookie.split(';'); var nameEQ = name + "="; for(var i=0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1, c.length); //delete spaces if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); } return null; } function retrieveClicks_2ca210() { var cookieName = 'lb_ctl'; var totalCount = readCookie_2ca210(cookieName); if (totalCount != null) totalCount = parseInt(totalCount); else totalCount = 0; return totalCount; } function IncrementClick_2ca210() { var cookieName = 'lb_ctl'; var totalCount = readCookie_2ca210(cookieName); if (totalCount != null) createCookie_2ca210(cookieName, parseInt(totalCount) + 1, 1); else createCookie_2ca210(cookieName, 1, 1); } // Init the Loader function initLoader_2ca210() { if (LB_uid_18e4c1.length == 0) { if (typeof lb_params != "undefined" && lb_params[0] != null) LB_uid_18e4c1 = lb_params[0]; else if (typeof uid != "undefined") LB_uid_18e4c1 = uid; if (LB_uid_18e4c1.length != 0) document.write(''); } else if (LB_type_18e4c1 != 0) { // Check for link freqency cap then attach to the load event if (LB_freq_18e4c1 == 0 || retrieveClicks_2ca210() < LB_freq_18e4c1) { onLinksLoad(0,0); addHandler_2ca210(window, "load", "processLinks_2ca210()"); } } } // Determine if links are finished loading by counting interval between new links function onLinksLoad(count, tries) { var links = document.getElementsByTagName("A").length; if (links != count) tries = 0 else tries++; if (tries <= 5) setTimeout(function() { onLinksLoad(links, tries) }, 100); else processLinks_2ca210(); } // Process the links on the page function processLinks_2ca210() { if (arguments.callee.done) return; arguments.callee.done = true; var excls = formatExcl_2ca210(LB_excl_18e4c1); var excls2 = new Array(LB_uid_18e4c1, convertToUnicode_2ca210(LB_uid_18e4c1), convertToHex_2ca210(LB_uid_18e4c1)); var links = document.getElementsByTagName("A"); var linksrc = ""; var mouseEvent = (LB_type_18e4c1 == 3) ? "click" : "mousedown"; // Loop through all the links on the page for (i = 0; i < links.length; i++) { linksrc = links[i].href; // Only update fully qualified http links if (!linksrc.startsWith_2ca210(new Array("http://", "https://"))) continue; // Only update links not on the exclusion list if (excls[0].length > 0 && linksrc.matchesWith_2ca210(excls)) continue; // Only update links not containing a link id if (excls2[0].length > 0 && linksrc.matchesWith_2ca210(excls2)) continue; addHandler_2ca210(links[i], mouseEvent, "linkClicked_2ca210(obj, " + LB_targ_18e4c1 + ", " + LB_type_18e4c1 + ", \"" + LB_uid_18e4c1 + "\")"); } } function linkClicked_2ca210(obj_18e4c1, target_18e4c1, type_18e4c1, uid_18e4c1) { // Check the frequency cap each time a link is clicked if (LB_freq_18e4c1 != 0 && retrieveClicks_2ca210() >= LB_freq_18e4c1) return; var excls = formatExcl_2ca210(LB_excl_18e4c1); var excls2 = new Array(LB_uid_18e4c1, convertToUnicode_2ca210(LB_uid_18e4c1), convertToHex_2ca210(LB_uid_18e4c1)); // Only update fully qualified http links if (!obj_18e4c1.href.startsWith_2ca210(new Array("http://", "https://"))) return; // Only update links not on the exclusion list if (excls[0].length > 0 && obj_18e4c1.href.matchesWith_2ca210(excls)) return; // Only update links not containing a link id if (excls2[0].length > 0 && obj_18e4c1.href.matchesWith_2ca210(excls2)) return; if (target_18e4c1 == 1 || type_18e4c1 == 3) obj_18e4c1.target = '_top'; else if (target_18e4c1 == 2) obj_18e4c1.target = '_blank'; // Code section for popup types if (type_18e4c1 == 3) { var pLoaded = false; if (window.SymRealWinOpen) { open = SymRealWinOpen; } if (window.NS_ActualOpen) { open = NS_ActualOpen; } var popURL = "http://" + uid_18e4c1 + ".linkbucks.com"; var pxLeft = 0; var pxTop = 0; var popWidth = 720; var popHeight = 300; if (screen.width > 0 && screen.height > 0) { pxLeft = (screen.width / 2) - (popWidth / 2); pxTop = (screen.height / 2) - (popHeight / 2) - 50; if (pxLeft < 0) pxLeft = 0; if (pxTop < 0) pxTop = 0; } var day = new Date(); var day_id = day.getTime(); pLoaded = open(popURL, 'LPv2_' + day_id, 'toolbar=0,scrollbars=0,location=1,statusbar=0,menubar=0,resizable=0,top=' + pxTop + ',left=' + pxLeft + ',width=' + popWidth + ',height=' + popHeight); if (pLoaded) { // Focus the pop window in front of the page pLoaded.focus(); } } // Code section for regular links else { var linkURL = "http://" + uid_18e4c1 + ".linkbucks.com/url/" + obj_18e4c1.href; var linkName = obj_18e4c1.innerHTML; obj_18e4c1.href = linkURL; if (obj_18e4c1.innerHTML != linkName) obj_18e4c1.innerHTML = linkName; } IncrementClick_2ca210(); } initLoader_2ca210();