!function() { var pktObj = {ic:1}; pktObj.l = function() { var v = '1'; // version for us to change if we need to do something different per embed code version var d = document; var link, label, count, saveurl, src, width, height; var pi=0, i=0, linksToReplace = []; var links = d.getElementsByTagName('a'); for(i=0; i -1) { linksToReplace.push(link); // we have to delay it because we are going through the childNode structure } } for(i=0; i'; link.parentNode.replaceChild(div, link); pi++; } } pktObj.chk = function() { if (document.readyState === "complete" || document.readyState === "interactive") { if (pktObj.to) clearTimeout(pktObj.to); pktObj.l(); } else { var wait = pktObj.ic * 10; if (wait > 100) wait = 100; pktObj.to = setTimeout(function(){pktObj.chk()},wait); pktObj.ic++; } } pktObj.chk(); }();