/* v20100608 */
if(typeof(adingoBeagle)=="undefined"){
    adingoBeagle = new Array();
    adingoBeagle.adsCount = 0;
    adingoBeagle.showCount = 0;
    adingoBeagle.outputCount = 0;
    adingoBeagle.requestFlag = 0;
    
    adingoBeagle.adingoAdsRequest = function(){
        if(typeof(adingoBeagle.adsCount)!="undefined" && adingoBeagle.showCount!="undefined"){
            if(adingoBeagle.adsCount!=0 && adingoBeagle.showCount!=0){
                var ctxtId = 'rea0102,fin0202,pro0902,com0600,hea0205,ent0400,pro0102,hea0203,sof0103,ret0201,toy0200,rea0101,com0700,rea0301,fin0205,edu0100,ele0300,app0200,pro0104,com1003,hom0200,sof0104,hom0500,pro0601,rea0103,ret0000,ret0200,hea0503,ent0200,hea0400,edu0000,fin0203,ret0202,aut0101,pro0106,mot0000,edu0300,ent0102,ret0203,fin0101,fin0201,com0202,hea0103,rea0104,boo0301,app0101,app0102,app0105,boo0101,app0402,com0201,pro0803,ele0000,app0403,com0900,boo0102,tra0100,pro0101,app0300,hea0200,boo0200,pro0901,ent0500,toy0000,spo0500,toy0100,edu0400,ins0201,tra0301,spo0400,spo0200,app0404,hom0101,sof0301,sof0302,spo0100,com0100,mot0200,pro0602,ret0100,edu0204,tra0400,boo0302,pro0502,hea0101,ent0103,boo0105,hea0000,pro0103,aut0000,aut0200,hom0103,com1002,edu0205,hom0300,app0104,hea0206,edu0601,hea0502,ele0301';

var ctxtArr = new Array('rea0102','fin0202','pro0902','com0600','hea0205','ent0400','pro0102','hea0203','sof0103','ret0201','toy0200','rea0101','com0700','rea0301','fin0205','edu0100','ele0300','app0200','pro0104','com1003','hom0200','sof0104','hom0500','pro0601','rea0103','ret0000','ret0200','hea0503','ent0200','hea0400','edu0000','fin0203','ret0202','aut0101','pro0106','mot0000','edu0300','ent0102','ret0203','fin0101','fin0201','com0202','hea0103','rea0104','boo0301','app0101','app0102','app0105','boo0101','app0402','com0201','pro0803','ele0000','app0403','com0900','boo0102','tra0100','pro0101','app0300','hea0200','boo0200','pro0901','ent0500','toy0000','spo0500','toy0100','edu0400','ins0201','tra0301','spo0400','spo0200','app0404','hom0101','sof0301','sof0302','spo0100','com0100','mot0200','pro0602','ret0100','edu0204','tra0400','boo0302','pro0502','hea0101','ent0103','boo0105','hea0000','pro0103','aut0000','aut0200','hom0103','com1002','edu0205','hom0300','app0104','hea0206','edu0601','hea0502','ele0301');var randNum = Math.floor(Math.random() * ctxtArr.length);ctxtId = ctxtArr[randNum];

var typeCtxtId = ctxtId;

document.write('<script type="text/javascript" src="http://im.ecnavi.ov.yahoo.co.jp/js_flat/?source=ecnavi_jp_puzzcore_im&type=_' + typeCtxtId + '&ctxtKeywords=&ctxtId=' + ctxtId + '&keywordCharEnc=utf8&outputCharEnc=utf8&maxCount=' + adingoBeagle.adsCount + '&ctxtUrl=' + encodeURIComponent(document.URL) + '&ref=' + encodeURIComponent(document.referrer) + '&gen=&age="><\/script>');

                adingoBeagle.requestFlag = 1;
            }
            document.write('<scr'+'ipt type="text/javascript" src="http://contents.adingo.jp.eimg.jp/adingoExecAds.js"><\/scr'+'ipt>');
        }
    }
    
    adingoBeagle.showAds = function(){
        if(adingoBeagle.requestFlag==1) {
            for(var i=1; i<=adingoBeagle.showCount; i++) {
                adingoBeagle["showAdingoBeagle"+i](i);
            }
        }
    }
    
}

adingoBeagle.showCount += 1;
adingoBeagle.adsCount += 1;

document.write('<div id="adingoBeagle'+adingoBeagle.showCount+'" style="width:251; height:70;" >&nbsp;</div>');
adingoBeagle["showAdingoBeagle"+adingoBeagle.showCount] = function(no){
    var tmp='';
    
    if(typeof(zSr)=="undefined") return;
    var zsrStart = (adingoBeagle.outputCount + 1) * 6;
    adingoBeagle.outputCount += 1;
    var zsrEnd = (adingoBeagle.outputCount + 1) * 6;
    if(zSr.length<zsrEnd) return;
    var i=zsrStart;
    
    tmp+="<!-- banner start-->";
tmp+="<div style=\"margin: 0; padding: 0; width: auto; height: auto; text-align: left !important; letter-spacing: normal !important; font-family: 'Lucida Grande','Hiragino Kaku Gothic Pro','ヒラギノ角ゴ Pro W3','ＭＳ Ｐゴシック',Geneva,Arial,Verdana,sans-serif !important;\">";
tmp+="<div style=\"border: 1px solid #ffffff; zoom: 1;\">";
for(var i=zsrStart; i<zsrEnd; i=i+6) {
tmp+="<div>";
tmp+="<a href=\"";
tmp += zSr[i+2];
tmp+="\" style=\"padding: 2px 8px; height: auto; display: block; color: #966432; background: #ffffff; text-decoration: none;\" onmouseover=\"this.style.backgroundColor='#ffffff';this.style.color='#0000ff';\" onmouseout=\"this.style.backgroundColor='#ffffff';this.style.color='#966432';\" target=\"_new\">";
tmp+="<span style=\"line-height: 1.2; display: inline; color: #966432; font-weight: bold; font-size: 11px; text-decoration: underline;\" onmouseover=\"this.style.textDecoration='underline';this.style.color='#0000ff';\" onmouseout=\"this.style.textDecoration='underline';this.style.color='#966432';\">";
tmp += zSr[i+3];
tmp+="</span>";
tmp+="<span style=\"line-height: 1.2; color: #966432; font-size: 10px; display: inline; text-decoration: none !important;\" >&nbsp;&ndash;&nbsp;";
tmp += zSr[i+4];
tmp+="</span>";
tmp+="<span style=\"width: auto; height: auto; line-height: 1.2; color: #000000; font-size: 11px; display: block; text-decoration: none !important;\">";
tmp += zSr[i];
tmp+="</span>";
tmp+="</a>";
tmp+="</div>";
}
tmp+="<!-- overtureim -->";
tmp+="<div style=\"margin: 0; padding: 0; width: 100% !important; height: 16px; clear: both; background: #ffffff;\">";
tmp+="<ul style=\"margin: 0; padding: 3px 6px 0 0; display: block; color: #cccccc; font-size: 11px; text-align: right; list-style: none;\">";
tmp+="<li style=\"margin: 0; padding: 0; color: #cccccc; line-height: 1; display: inline; font-size: 11px;\">インタレストマッチ&nbsp;&ndash;&nbsp;</li>";
tmp+="<li style=\"display: inline; font-size: 11px;\"><a href=\"http://ov.yahoo.co.jp/service/int/index.html?o=IM0028\" target=\"_blank\" style=\"margin: 0 0 0 3px; padding: 0; width: auto; height: auto; color: #cccccc; background: none; text-decoration: none; font-size: 11px; line-height: 1; display: inline; font-weight: normal;\">広告の掲載について</a></li>";
tmp+="</ul>";
tmp+="</div>";
tmp+="<!-- /overtureim -->";
tmp+="</div>";
tmp+="</div>";

    
    document.getElementById('adingoBeagle'+no).innerHTML = tmp;
}
