var OA_p=location.protocol=='https:'?'https:':'http:';
var OA_r=Math.floor(Math.random()*99999999);
var OA_scriptbuffer = new Array();
if (!document.OA_used) document.OA_used = ',';
function OA_adjs(z,n)
{
  if (z>-1) {
    var az="<"+"script language='JavaScript' type='text/javascript' ";
    az+="src='"+OA_p+"//ads.manboo.jp/delivery/ajs.php?n="+n+"&zoneid="+z;
    az+="&exclude="+document.OA_used+"&r="+OA_r;
    az+="&mmm_fo="+(document.mmm_fo)?'1':'0';
    if (document.context) az+= "&context=" + escape(document.context);
    if (window.location) az+="&loc="+escape(window.location);
    if (document.referrer) az+="&referer="+escape(document.referrer);
    az+="'><"+"/script>";
    document.write(az);
  }
}
function OA_adjs2(z,n,t)
{
  if (z>-1) {
    var az =OA_p+"//ads.manboo.jp/delivery/ajs.php?n="+n+"&zoneid="+z;
    az+="&exclude="+document.OA_used+"&r="+OA_r;
    az+="&mmm_fo="+(document.mmm_fo)?'1':'0';
	az+="&jsin="+t;
    if (document.context) az+= "&context=" + escape(document.context);
    if (window.location) az+="&loc="+escape(window.location);
    if (document.referrer) az+="&referer="+escape(document.referrer);
//	document.write("<"+"script type=\"text/javascript\" src=\""+az+"\"><"+"/script>");
	OA_scriptbuffer.push("var banner_"+n+" =  document.createElement(\"div\");");
	OA_scriptbuffer.push("banner_"+n+".setAttribute(\"id\",\"scriptwrapper_"+n+"\");");
	OA_scriptbuffer.push("var sc = document.createElement(\"script\");");
	OA_scriptbuffer.push("banner_"+n+".appendChild(sc);");
	OA_scriptbuffer.push("sc.setAttribute('type', 'text/javascript');");
	OA_scriptbuffer.push("sc.setAttribute('src', '"+az+"');");
//	OA_scriptbuffer.push("sc.setAttribute('defer', 'defer');");
	OA_scriptbuffer.push("document.body.appendChild(banner_"+n+");");
	OA_scriptbuffer.push("banner_"+n+".innerHTML.evalScripts();");
  }
}
function OA_adpop(z,n)
{
  if (z>-1) {
    var az="<"+"script language='JavaScript' type='text/javascript' ";
    az+="src='"+OA_p+"//ads.manboo.jp/delivery/apu.php?n="+n+"&zoneid="+z;
    az+="&exclude="+document.OA_used+"&r="+OA_r;
    if (window.location) az+="&loc="+escape(window.location);
    if (document.referrer) az+="&referer="+escape(document.referrer);
    az+="'><"+"/script>";
    document.write(az);
  }
}

