/* 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 = 'tra0000,tra0302,sof0300,app0400,ent0500,edu0203,ins0204,tra0100,fin0100,ent0300,edu0205,edu0201,boo0103,sof0301,tra0301,edu0202,edu0206,fin0203,fin0102,pro0602,edu0400,spo0400,ent0200,app0401,edu0100,edu0000,hea0203,edu0209,edu0601,boo0102,edu0602,hea0300,pro0600,pro0601,app0104,hea0206,hea0205,hea0502,pro0603,pro0103,pro0104,ret0204,tra0200,app0200,tra0300,app0107,tra0400,app0100,app0102,spo0500,hea0204,ret0100,app0103,app0300,sof0302,pro0700,hea0103,edu0204,boo0000,app0500,app0404,edu0207,boo0100,boo0101,boo0200,boo0105,car0100,car0300,edu0200,edu0208,edu0500,hea0101,hea0100,hea0102,hea0200,hea0201,hea0000,fin0201,app0000,app0403,app0402,fin0101,app0106,hea0202';

var ctxtArr = new Array('tra0000','tra0302','sof0300','app0400','ent0500','edu0203','ins0204','tra0100','fin0100','ent0300','edu0205','edu0201','boo0103','sof0301','tra0301','edu0202','edu0206','fin0203','fin0102','pro0602','edu0400','spo0400','ent0200','app0401','edu0100','edu0000','hea0203','edu0209','edu0601','boo0102','edu0602','hea0300','pro0600','pro0601','app0104','hea0206','hea0205','hea0502','pro0603','pro0103','pro0104','ret0204','tra0200','app0200','tra0300','app0107','tra0400','app0100','app0102','spo0500','hea0204','ret0100','app0103','app0300','sof0302','pro0700','hea0103','edu0204','boo0000','app0500','app0404','edu0207','boo0100','boo0101','boo0200','boo0105','car0100','car0300','edu0200','edu0208','edu0500','hea0101','hea0100','hea0102','hea0200','hea0201','hea0000','fin0201','app0000','app0403','app0402','fin0101','app0106','hea0202');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_webdolce_im&type=_' + typeCtxtId + '&ctxtKeywords=%E5%A4%A7%E5%AD%A6,%E5%8C%96%E7%B2%A7,%E6%97%85,%E5%AD%A6%E7%94%9F,%E3%82%A2%E3%83%AB%E3%83%90%E3%82%A4%E3%83%88,%E5%B0%B1%E8%81%B7,%E3%83%95%E3%82%A1%E3%83%83%E3%82%B7%E3%83%A7%E3%83%B3&ctxtId=' + ctxtId + '&keywordCharEnc=utf8&outputCharEnc=euc-jp&maxCount=' + adingoBeagle.adsCount + '&ctxtUrl=' + encodeURIComponent(document.URL) + '&ref=' + encodeURIComponent(document.referrer) + '&gen=F&age=20"><\/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 += 2;

document.write('<div id="adingoBeagle'+adingoBeagle.showCount+'"  >&nbsp;</div>');
adingoBeagle["showAdingoBeagle"+adingoBeagle.showCount] = function(no){
    var tmp='';
    
    if(typeof(zSr)=="undefined") return;
    var zsrStart = (adingoBeagle.outputCount + 1) * 6;
    adingoBeagle.outputCount += 2;
    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: 6px 8px; height: auto; display: block; color: #5A555A; background: #ffffff; text-decoration: none;\" onmouseover=\"this.style.backgroundColor='#FFFFCC';this.style.color='#0000ff';\" onmouseout=\"this.style.backgroundColor='#ffffff';this.style.color='#5A555A';\" target=\"_new\">";
tmp+="<span style=\"line-height: 1.2; display: inline; color: #5A555A; font-weight: bold; font-size: 14px; text-decoration: underline;\" onmouseover=\"this.style.textDecoration='underline';this.style.color='#0000ff';\" onmouseout=\"this.style.textDecoration='underline';this.style.color='#5A555A';\">";
tmp += zSr[i+3];
tmp+="</span>";
tmp+="<span style=\"line-height: 1.2; color: #CCCCCC; 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: #666666; font-size: 12px; 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;
}
