// $Id: adSwap.js,v 1.3 2005/04/21 06:16:11 jhedley Exp $ // 2006/12/5 AJB Added remove_* behaviour // into the specified element, place the given html function ffx_swap(elName, html) { var d = document; if (!d.getElementById) { return; } var el = d.getElementById(elName); if (!el) { return; } var remove = false; if (typeof ffxAdExclusionList != "undefined") { var thisPage = window.location.pathname; for (var i=0; i"); // maybe should pass in? ffx_swap(elName, html); } // inline Fisher Yates shuffles the given array of objects function ffx_shuffle(list) { for (var i = list.length -1; i >= 0; --i) { var j = Math.floor(Math.random() * (i + 1)); if (i == j) continue; var temp = list[i]; list[i] = list[j]; list[j] = temp; } }