function cacheHostV3() { var c=Math.floor(Math.random()*10)+1; return "http://cache"+c+".theglobalweb.com"; }
function cacheSrvV3() { var c=Math.floor(Math.random()*3)+97; return String.fromCharCode(c); }
function initAd(id,zoneid) {
  var c=document.getElementById(id);
  if (!c) return;
  var f=document.createElement("iframe");
  var d=c.getAttribute("size"); if (d) d=d.split("x");
  (c.offsetWidth>0)?f.width=c.offsetWidth:f.width=parseInt(d[0]);
  (c.offsetHeight>0)?f.height=c.offsetHeight:f.height=parseInt(d[1]);
  f.frameBorder=0; f.scrolling="no";
  f.allowTransparency=true; f.style.margin="0px";
  f.marginWidth=0; f.marginHeight=0;
  f.hspace=0; f.vspace=0; f.style.border="none";
  c.appendChild(f); var n=Math.floor(Math.random()*4)+40;

/* edge 7/30/2011 */
//  if (f.width==728) f.src=cacheHostV3()+"/"+cacheSrvV3()+"/z/3";
//  if (f.width==300) f.src=cacheHostV3()+"/"+cacheSrvV3()+"/z/2";
//  if (f.width==160) f.src=cacheHostV3()+"/"+cacheSrvV3()+"/z/1"; 
//  return;
/* end */

  var ut=parseInt(new Date().getTime()/1000);
  var pz=0; if (f.width==728) pz=1; if (f.width==300) pz=2; if (f.width==160) pz=3;
  var ld=window.location.href.replace(/\//mg,"").toLowerCase();
  if (ld.indexOf("http")==0) ld=ld.substring(5); var host="";
  ld=ld.split("."); for (var i=ld.length-2; i<ld.length; i++) host=host+"."+ld[i];
  var n=Math.floor(Math.random()*3)+50;
  host="http://a"+n+host; if (pz) f.src=host+"/adstrm/iab/"+pz+"/"+ut;
}

