/* 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 = 'tra0200,edu0400,tra0000,ele0302,edu0500,com0101,boo0100,tra0301,boo0200,tra0302,ele0300,boo0300,edu0208,ele0200,ent0200,ele0303,edu0205,toy0000,tra0400,boo0302,pro0602,hom0300,app0101,edu0201,edu0207,edu0601,edu0200,boo0301,app0104,edu0700,hea0101,ele0000,app0400,hom0200,sof0302,edu0204,edu0000,com0102,ele0102,sof0103,tra0100,ele0103,app0402,edu0602,aut0102,ret0100,app0500,toy0100,boo0102,boo0101,app0200,spo0400,boo0104,boo0103,sof0301,aut0103,hea0300,edu0206,ent0103,com0202';

var ctxtArr = new Array('tra0200','edu0400','tra0000','ele0302','edu0500','com0101','boo0100','tra0301','boo0200','tra0302','ele0300','boo0300','edu0208','ele0200','ent0200','ele0303','edu0205','toy0000','tra0400','boo0302','pro0602','hom0300','app0101','edu0201','edu0207','edu0601','edu0200','boo0301','app0104','edu0700','hea0101','ele0000','app0400','hom0200','sof0302','edu0204','edu0000','com0102','ele0102','sof0103','tra0100','ele0103','app0402','edu0602','aut0102','ret0100','app0500','toy0100','boo0102','boo0101','app0200','spo0400','boo0104','boo0103','sof0301','aut0103','hea0300','edu0206','ent0103','com0202');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_trygate_im&type=_' + typeCtxtId + '&ctxtKeywords=&ctxtId=' + ctxtId + '&keywordCharEnc=utf8&outputCharEnc=utf8&maxCount=' + adingoBeagle.adsCount + '&ctxtUrl=' + encodeURIComponent(document.URL) + '&ref=' + encodeURIComponent(document.referrer) + '&gen=F&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 += 2;

document.write('<iframe id="adingoBeagle'+adingoBeagle.showCount+'" width="234" height="200" 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 += 2;
    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 #FFB610;";
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: #0000ff;";
tmp+="text-decoration: underline;";
tmp+="}";
tmp+="div.AdingoLayout a:hover{";
tmp+="color: #0000ff;";
tmp+="background: #FFFFCC;";
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+="line-height: 1.2;";
tmp+="display: block;";
tmp+="text-decoration: underline;";
tmp+="font-weight: bold;";
tmp+="font-size: 12px;";
tmp+="}";
tmp+="div.AdingoLayout a span.adtext {";
tmp+="display: block;";
tmp+="line-height: 1.2;";
tmp+="color: #4C4C4C;";
tmp+="font-size: 12px;";
tmp+="display: block;";
tmp+="}";
tmp+="div.AdingoLayout a span.adlink {";
tmp+="line-height: 1.2;";
tmp+="color: #808080;";
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: 16px;";
tmp+="clear: both;";
tmp+="text-align: right;";
tmp+="background: #FFFFFF;";
tmp+="}";
tmp+="body div.overtureim ul {";
tmp+="margin: 0 0 0 2px;";
tmp+="padding: 0 5px 0 0;";
tmp+="height: 16px;";
tmp+="line-height: 16px;";
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+="float: left;";
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_200_200_div";
tmp+="--------------------------------------------------*/";
tmp+="div#AdingoAd_200_200_iframe {";
tmp+="margin: 0;";
tmp+="padding: 0;";
tmp+="width: auto;";
tmp+="height: 100%;";
tmp+="overflow: hidden;";
tmp+="}";
tmp+="div#AdingoAd_200_200_iframe div.Adingoinner {";
tmp+="}";
tmp+="div#AdingoAd_200_200_iframe div.AdingoLayout {";
tmp+="}";
tmp+="div#AdingoAd_200_200_iframe div.AdingoLayout a {";
tmp+="padding: 2px;";
tmp+="width: auto;";
tmp+="height: 88px;";
tmp+="_height: 92px;";
tmp+="display: block;";
tmp+="}";
tmp+="div#AdingoAd_200_200_iframe div.AdingoLayout a span.adwrap {";
tmp+="display: block;";
tmp+="}";
tmp+="div#AdingoAd_200_200_iframe div.AdingoLayout span.adttl {";
tmp+="margin: 0 0 2px;";
tmp+="}";
tmp+="div#AdingoAd_200_200_iframe div.AdingoLayout a span.adlink {";
tmp+="word-break: break-all;";
tmp+="}";
tmp+="--></style>";
tmp+="</head>";
tmp+="<body>";
tmp+="<div id=\"AdingoAd_200_200_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();
}
