/* empty array to prevent js error in debugging info */ var dartCalls = new Array(); // dart global code // Defines a dart object and global random number and tile counter. var dart = new Object(); dart["tile_num"] = undefined; dart["ord"] = Math.random()*10000000000000000; dart["url"] = "http://ad.doubleclick.net/adj/"; // dart ad reloading code. // Grabs the DART code from the hidden iframe and places that in the ad's div. function dartSwap(placement) { var frameRef = document.getElementById('dartFrame_'+placement); var htmlRef = (frameRef.contentDocument || frameRef.contentWindow.document).getElementById('adHolder').innerHTML; // Destroy the content in the iframe. This prevents double ads running (i hope). (frameRef.contentDocument || frameRef.contentWindow.document).location.replace("/nolayout/blankadcontent"); // Now strip out the doubleclick call that ends up in the iframe's innerHTML. This avoids double doubleclick hits. htmlRef = htmlRef.toString(); var regExp = new RegExp(dart[placement].dartCall,'i'); var frameHTML = new String(htmlRef); frameHTML = frameHTML.replace(regExp, ''); frameHTML = frameHTML.replace(/