 
function getAD(zoneid,adserverpath)
{
   var m3_u = (location.protocol=='https:'?'https://'+adserverpath+'/www/delivery/ajs.php':'http://'+adserverpath+'/www/delivery/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid="+zoneid);
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");     
}

function getPopupAd(zoneid,adserverpath)
{
   var m3_u = (location.protocol=='https:'?'https://'+adserverpath+'/www/delivery/al.php':'http://'+adserverpath+'/www/delivery/al.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid="+zoneid);
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1&amp;");
   document.write("&amp;layerstyle=simple&amp;align=center&amp;valign=middle&amp;padding=2&amp;padding=2");
   document.write("&amp;shifth=0&amp;shiftv=50&amp;closebutton=t&amp;backcolor=FFFFFF&amp;bordercolor=000000")
   document.write ("'><\/scr"+"ipt>");     
}

	
	 
