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;
  var ut=parseInt(new Date().getTime()/1000);
  var cn="r0";
  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;
  if (f.width==728) cn="lb1";
  if (f.width==300) cn="rc1";
  if (f.width==160) cn="ss1";
  f.src="http://adx.theglobalweb.com/bootstrap/t/"+cn+"?ut="+ut+"&g="+n;
}

