/* 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 = 'sof0101,ele0000,hea0000,pro1000';

var ctxtArr = new Array('sof0101','ele0000','hea0000','pro1000');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_iwanichi_im&type=getnews_im_top_' + typeCtxtId + '&ctxtKeywords=&ctxtId=' + ctxtId + '&keywordCharEnc=utf8&outputCharEnc=utf8&maxCount=' + adingoBeagle.adsCount + '&ctxtUrl=' + encodeURIComponent(document.URL) + '&ref=' + encodeURIComponent(document.referrer) + '&gen=M&age=22"><\/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 += 4;

document.write('<iframe id="adingoBeagle'+adingoBeagle.showCount+'" width="160" height="600" allowtransparency="false" hspace="0" vspace="0" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" >&nbsp;</iframe>');
adingoBeagle["showAdingoBeagle"+adingoBeagle.showCount] = function(no){
    var tmp='';
    
    if(typeof(zSr)=="undefined") return;
    var zsrStart = (adingoBeagle.outputCount + 1) * 6;
    adingoBeagle.outputCount += 4;
    var zsrEnd = (adingoBeagle.outputCount + 1) * 6;
    if(zSr.length<zsrEnd) return;
    var i=zsrStart;
    
    tmp+="<head>";
tmp+="<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";
tmp+="<meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />";
tmp+="<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\" />";
tmp+="<title></title>";
tmp+="<style type=\"text/css\"><!--";
tmp+="/*--------------------------------------------------";
tmp+="Common styles";
tmp+="--------------------------------------------------*/";
tmp+="body {";
tmp+="position: relative;";
tmp+="background: #FFFFFF;";
tmp+="border: 1px solid #FFFFFF;";
tmp+="zoom: 1;";
tmp+="}";
tmp+=".adOverture {";
tmp+="position: relative;";
tmp+="margin: 0;";
tmp+="padding: 0;";
tmp+="font-family: \"Lucida Grande\",\"Hiragino Kaku Gothic Pro\",\"ヒラギノ角ゴ Pro W3\",\"ＭＳ Ｐゴシック\",Geneva,Arial,Verdana,sans-serif !important;";
tmp+="text-align: left !important;";
tmp+="letter-spacing: normal !important;";
tmp+="}";
tmp+="/* common a */";
tmp+="div.AdingoLayout a:link,";
tmp+="div.AdingoLayout a:visited,";
tmp+="div.AdingoLayout a:hover,";
tmp+="div.AdingoLayout a:active {";
tmp+="text-decoration: none;";
tmp+="}";
tmp+="div.AdingoLayout a {";
tmp+="clear: both;";
tmp+="cursor: pointer;";
tmp+="overflow: hidden;";
tmp+="display: block;";
tmp+="}";
tmp+="/* title and background Color */";
tmp+="div.AdingoLayout a{";
tmp+="color: #4040C0;";
tmp+="text-decoration: none;";
tmp+="}";
tmp+="div.AdingoLayout a:hover{";
tmp+="color: #C04040;";
tmp+="background: #ffffff;";
tmp+="}";
tmp+="/* title underline on mouseover */";
tmp+="div.AdingoLayout a:hover span.adttl {";
tmp+="text-decoration: underline;";
tmp+="}";
tmp+="/* common span */";
tmp+="div.AdingoLayout a span.adttl {";
tmp+="padding: 0 0 2px;";
tmp+="line-height: 1.2;";
tmp+="display: block;";
tmp+="text-decoration: none;";
tmp+="font-weight: bold;";
tmp+="font-size: 14px;";
tmp+="}";
tmp+="div.AdingoLayout a span.adtext {";
tmp+="display: block;";
tmp+="line-height: 1.2;";
tmp+="color: #494949;";
tmp+="font-size: 12px;";
tmp+="display: block;";
tmp+="}";
tmp+="div.AdingoLayout a span.adlink {";
tmp+="line-height: 1.2;";
tmp+="color: #494949;";
tmp+="font-size: 10px;";
tmp+="display: block;";
tmp+="}";
tmp+="/* overtureim */";
tmp+="body div.overtureim {";
tmp+="position: absolute;";
tmp+="bottom: 0;";
tmp+="margin: 0;";
tmp+="padding: 0;";
tmp+="width: 100% !important;";
tmp+="height: 26px;";
tmp+="clear: both;";
tmp+="text-align: right;";
tmp+="background: #FFFFFF;";
tmp+="}";
tmp+="body div.overtureim ul {";
tmp+="margin: 0;";
tmp+="padding: 0 5px 0 0;";
tmp+="height: 26px;";
tmp+="line-height: 26px;";
tmp+="color: #cccccc;";
tmp+="font-size: 11px;";
tmp+="list-style: none;";
tmp+="vertical-align: middle;";
tmp+="}";
tmp+="body div.overtureim ul li {";
tmp+="margin: 0;";
tmp+="padding: 2px 0 0 0;";
tmp+="line-height: 11px;";
tmp+="}";
tmp+="body div.overtureim ul li a {";
tmp+="margin: 0;";
tmp+="padding: 0;";
tmp+="width: auto;";
tmp+="height: auto;";
tmp+="display: block;";
tmp+="color: #cccccc;";
tmp+="background: none;";
tmp+="text-decoration: none;";
tmp+="}";
tmp+="body div.overtureim ul li a:hover {";
tmp+="color: #cccccc;";
tmp+="background: none;";
tmp+="}";
tmp+="/*--------------------------------------------------";
tmp+="AdingoAd_160_600_div";
tmp+="--------------------------------------------------*/";
tmp+="div#AdingoAd_160_600_iframe {";
tmp+="margin: 0;";
tmp+="padding: 0;";
tmp+="width: auto;";
tmp+="height: 100%;";
tmp+="overflow: hidden;";
tmp+="}";
tmp+="div#AdingoAd_160_600_iframe div.Adingoinner {";
tmp+="}";
tmp+="div#AdingoAd_160_600_iframe div.AdingoLayout {";
tmp+="height: 143px;";
tmp+="}";
tmp+="div#AdingoAd_160_600_iframe div.AdingoLayout a {";
tmp+="width: auto;";
tmp+="height: 100%;";
tmp+="}";
tmp+="div#AdingoAd_160_600_iframe div.AdingoLayout a span.adwrap {";
tmp+="padding: 6px 8px;";
tmp+="display: block;";
tmp+="}";
tmp+="div#AdingoAd_160_600_iframe div.AdingoLayout a span.adlink {";
tmp+="word-break: break-all;";
tmp+="}";
tmp+="--></style>";
tmp+="</head>";
tmp+="<body>";
tmp+="<div id=\"AdingoAd_160_600_iframe\" class=\"adOverture\">";
tmp+="<div class=\"Adingoinner\">";
for(var i=zsrStart; i<zsrEnd; i=i+6){
tmp+="<div class=\"AdingoLayout\">";
tmp+="<a href=\"";
tmp += zSr[i+2];
tmp+="\" target=\"_new\">";
tmp+="<span class=\"adwrap\">";
tmp+="<span class=\"adttl\">";
tmp += zSr[i+3];
tmp+="</span>";
tmp+="<span class=\"adtext\">";
tmp += zSr[i+0];
tmp+="</span>";
tmp+="<span class=\"adlink\">";
tmp += zSr[i+4];
tmp+="</span>";
tmp+="</span>";
tmp+="</a>";
tmp+="</div>";
}
tmp+="<div class=\"overtureim\">";
tmp+="<ul>";
tmp+="<li>インタレストマッチ&nbsp;&ndash;&nbsp;</li>";
tmp+="<li>";
tmp+="<a href=\"http://ov.yahoo.co.jp/service/int/index.html?o=IM0028\" target=\"_blank\">広告の掲載について</a>";
tmp+="</li>";
tmp+="</ul>";
tmp+="</div>";
tmp+="</div>";
tmp+="</div>";
tmp+="</body>";

    
    var iframeDocument = document.getElementById('adingoBeagle'+no).contentWindow.document;iframeDocument.write(tmp);iframeDocument.close();
}
