/* 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 = 'aut0000,aut0100,aut0101,aut0102,aut0103,aut0200,aut0300,aut0301,aut0302,mot0000,mot0100,mot0200,mot0300,app0000,app0100,app0101,app0102,app0103,app0104,app0105,app0106,app0107,app0200,app0300,app0400,app0401,app0402,app0403,app0404,app0500,boo0000,boo0100,boo0101,boo0102,boo0103,boo0104,boo0105,boo0200,boo0300,boo0301,boo0302,sof0000,sof0100,sof0101,sof0102,sof0103,sof0104,sof0105,sof0200,sof0201,sof0202,sof0300,sof0301,sof0302,ele0000,ele0100,ele0101,ele0102,ele0103,ele0200,ele0300,ele0301,ele0302,ele0303,spe0000,spe0100,spe0101,spe0102,hom0000,hom0100,hom0101,hom0102,hom0103,hom0200,hom0300,hom0400,hom0500,hom0501,hom0502,spo0000,spo0100,spo0200,spo0400,spo0500,toy0000,toy0100,toy0200,hea0000,hea0100,hea0101,hea0102,hea0103,hea0200,hea0201,hea0202,hea0203,hea0204,hea0205,hea0206,hea0300,hea0400,hea0500,hea0501,hea0502,hea0503,ret0000,ret0100,ret0200,ret0201,ret0202,ret0203,ret0204,ret0205,oth0000,car0000,car0100,car0200,car0300,car0400,edu0000,edu0100,edu0200,edu0201,edu0202,edu0203,edu0204,edu0205,edu0206,edu0207,edu0208,edu0209,edu0300,edu0400,edu0500,edu0600,edu0601,edu0602,edu0700,ent0000,ent0100,ent0101,ent0102,ent0103,ent0200,ent0300,ent0400,ent0500,fin0000,fin0100,fin0101,fin0102,fin0200,fin0201,fin0202,fin0203,fin0204,fin0205,fin0206,fin0300,fin0301,fin0302,fin0303,ins0000,ins0100,ins0200,ins0201,ins0202,ins0203,ins0204,ins0300,tra0000,tra0100,tra0200,tra0300,tra0301,tra0302,tra0400,com0000,com0100,com0101,com0102,com0200,com0201,com0202,com0203,com0300,com0400,com0500,com0600,com0700,com0800,com0900,com1000,com1001,com1002,com1003,rea0000,rea0100,rea0101,rea0102,rea0103,rea0104,rea0200,rea0300,rea0301,rea0302,rea0303,pro0000,pro0100,pro0101,pro0102,pro0103,pro0104,pro0105,pro0106,pro0200,pro0300,pro0400,pro0500,pro0501,pro0502,pro0600,pro0601,pro0602,pro0603,pro0700,pro0800,pro0801,pro0802,pro0803,pro0900,pro0901,pro0902,pro1000,pro1100,pro1200,pro1300,pro1400,pro1500,pro1600,pro1700,pro1800,pro1900,gam0000,gam0100,gam0200';

var ctxtArr = new Array('aut0000','aut0100','aut0101','aut0102','aut0103','aut0200','aut0300','aut0301','aut0302','mot0000','mot0100','mot0200','mot0300','app0000','app0100','app0101','app0102','app0103','app0104','app0105','app0106','app0107','app0200','app0300','app0400','app0401','app0402','app0403','app0404','app0500','boo0000','boo0100','boo0101','boo0102','boo0103','boo0104','boo0105','boo0200','boo0300','boo0301','boo0302','sof0000','sof0100','sof0101','sof0102','sof0103','sof0104','sof0105','sof0200','sof0201','sof0202','sof0300','sof0301','sof0302','ele0000','ele0100','ele0101','ele0102','ele0103','ele0200','ele0300','ele0301','ele0302','ele0303','spe0000','spe0100','spe0101','spe0102','hom0000','hom0100','hom0101','hom0102','hom0103','hom0200','hom0300','hom0400','hom0500','hom0501','hom0502','spo0000','spo0100','spo0200','spo0400','spo0500','toy0000','toy0100','toy0200','hea0000','hea0100','hea0101','hea0102','hea0103','hea0200','hea0201','hea0202','hea0203','hea0204','hea0205','hea0206','hea0300','hea0400','hea0500','hea0501','hea0502','hea0503','ret0000','ret0100','ret0200','ret0201','ret0202','ret0203','ret0204','ret0205','oth0000','car0000','car0100','car0200','car0300','car0400','edu0000','edu0100','edu0200','edu0201','edu0202','edu0203','edu0204','edu0205','edu0206','edu0207','edu0208','edu0209','edu0300','edu0400','edu0500','edu0600','edu0601','edu0602','edu0700','ent0000','ent0100','ent0101','ent0102','ent0103','ent0200','ent0300','ent0400','ent0500','fin0000','fin0100','fin0101','fin0102','fin0200','fin0201','fin0202','fin0203','fin0204','fin0205','fin0206','fin0300','fin0301','fin0302','fin0303','ins0000','ins0100','ins0200','ins0201','ins0202','ins0203','ins0204','ins0300','tra0000','tra0100','tra0200','tra0300','tra0301','tra0302','tra0400','com0000','com0100','com0101','com0102','com0200','com0201','com0202','com0203','com0300','com0400','com0500','com0600','com0700','com0800','com0900','com1000','com1001','com1002','com1003','rea0000','rea0100','rea0101','rea0102','rea0103','rea0104','rea0200','rea0300','rea0301','rea0302','rea0303','pro0000','pro0100','pro0101','pro0102','pro0103','pro0104','pro0105','pro0106','pro0200','pro0300','pro0400','pro0500','pro0501','pro0502','pro0600','pro0601','pro0602','pro0603','pro0700','pro0800','pro0801','pro0802','pro0803','pro0900','pro0901','pro0902','pro1000','pro1100','pro1200','pro1300','pro1400','pro1500','pro1600','pro1700','pro1800','pro1900','gam0000','gam0100','gam0200');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_webclap_im&type=kei_1_' + typeCtxtId + '&ctxtKeywords=&ctxtId=' + ctxtId + '&keywordCharEnc=utf8&outputCharEnc=utf8&maxCount=' + adingoBeagle.adsCount + '&ctxtUrl=' + encodeURIComponent(document.URL) + '&ref=' + encodeURIComponent(document.referrer) + '&gen=F&age=30"><\/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('<iframe id="adingoBeagle'+adingoBeagle.showCount+'" width="100%" height="20" 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 += 1;
    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+="cursor: pointer;";
tmp+="overflow: hidden;";
tmp+="display: block;";
tmp+="vertical-align: middle;";
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: #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+="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+="padding-left: 5px;";
tmp+="display: block;";
tmp+="line-height: 1.2;";
tmp+="color: #000000;";
tmp+="font-size: 12px;";
tmp+="display: block;";
tmp+="}";
tmp+="div.AdingoLayout a span.adlink {";
tmp+="line-height: 1.2;";
tmp+="color: #CCCCCC;";
tmp+="font-size: 10px;";
tmp+="display: block;";
tmp+="}";
tmp+="/* overtureim */";
tmp+="/*common*/";
tmp+="body div.overtureimone,";
tmp+="body div.overtureim {";
tmp+="margin: 0;";
tmp+="padding: 0;";
tmp+="width: 100% !important;";
tmp+="clear: both;";
tmp+="text-align: right;";
tmp+="background: #FFFFFF;";
tmp+="}";
tmp+="body div.overtureimone ul li,";
tmp+="body div.overtureim ul li {";
tmp+="margin: 0;";
tmp+="padding: 0;";
tmp+="line-height: 1;";
tmp+="}";
tmp+="body div.overtureimone ul li a,";
tmp+="body div.overtureim ul li a {";
tmp+="margin: 0;";
tmp+="padding: 0;";
tmp+="width: auto;";
tmp+="height: auto;";
tmp+="color: #CCCCCC;";
tmp+="background: none;";
tmp+="text-decoration: none;";
tmp+="}";
tmp+="body div.overtureimone ul li a:hover,";
tmp+="body div.overtureim ul li a:hover {";
tmp+="color: #CCCCCC;";
tmp+="background: none;";
tmp+="}";
tmp+="/* overtureimone */";
tmp+="body div.overtureimone {";
tmp+="height: 16px;";
tmp+="}";
tmp+="body div.overtureimone ul {";
tmp+="margin: 0;";
tmp+="padding: 3px 6px 0 0;";
tmp+="_padding: 5px 6px 0 0;";
tmp+="display: block;";
tmp+="color: #CCCCCC;";
tmp+="font-size: 11px;";
tmp+="list-style: none;";
tmp+="}";
tmp+="body div.overtureimone ul li,";
tmp+="body div.overtureimone ul li a {";
tmp+="display: inline !important;";
tmp+="}";
tmp+="/* overtureim */";
tmp+="body div.overtureim {";
tmp+="height: 26px;";
tmp+="}";
tmp+="body div.overtureim ul {";
tmp+="margin: 0;";
tmp+="padding: 3px 6px 0 0;";
tmp+="display: block;";
tmp+="color: #CCCCCC;";
tmp+="font-size: 11px;";
tmp+="list-style: none;";
tmp+="}";
tmp+="body div.overtureim ul li{";
tmp+="display: inline;";
tmp+="}";
tmp+="body div.overtureim ul li a {";
tmp+="display: block;";
tmp+="}";
tmp+="/*--------------------------------------------------";
tmp+="AdingoAd_Oneline_div";
tmp+="--------------------------------------------------*/";
tmp+="div#AdingoAd_Oneline_iframe {";
tmp+="margin: 0;";
tmp+="padding: 0;";
tmp+="width: auto;";
tmp+="height: 100%;";
tmp+="overflow: hidden;";
tmp+="}";
tmp+="div#AdingoAd_Oneline_iframe div.AdingoLayout {";
tmp+="margin: 0;";
tmp+="height: 100%;";
tmp+="zoom: 1;";
tmp+="}";
tmp+="div#AdingoAd_Oneline_iframe div.AdingoLayout a {";
tmp+="height: 100%;";
tmp+="}";
tmp+="/* adpr */";
tmp+="div#AdingoAd_Oneline_iframe div.AdingoLayout a.adpr{";
tmp+="display: block;";
tmp+="float: left;";
tmp+="background: #FFFFFF;";
tmp+="}";
tmp+="div#AdingoAd_Oneline_iframe div.AdingoLayout a:hover.adpr {";
tmp+="background: #FFFFFF;";
tmp+="}";
tmp+="/* adpr text */";
tmp+="div#AdingoAd_Oneline_iframe div.AdingoLayout a.adpr span {";
tmp+="color: #CCCCCC;";
tmp+="font-size: 11px !important;";
tmp+="font-weight: normal;";
tmp+="text-decoration: none;";
tmp+="}";
tmp+="div#AdingoAd_Oneline_iframe div.AdingoLayout a.adpr span.prttl {";
tmp+="display: block;";
tmp+="line-height: 20px;";
tmp+="vertical-align: middle;";
tmp+="}";
tmp+="div#AdingoAd_Oneline_iframe span.adttl,";
tmp+="div#AdingoAd_Oneline_iframe span.adtext{";
tmp+="display: block;";
tmp+="float: left;";
tmp+="line-height: 18px;";
tmp+="vertical-align: middle;";
tmp+="}";
tmp+="div#AdingoAd_Oneline_iframe span.adttl {";
tmp+="margin-left: 5px;";
tmp+="_margin-left: 0;";
tmp+="}";
tmp+="div#AdingoAd_Oneline_iframe span.adtext {";
tmp+="width: auto;";
tmp+="}";
tmp+="--></style>";
tmp+="</head>";
tmp+="<body>";
tmp+="<div id=\"AdingoAd_Oneline_iframe\" class=\"adOverture\">";
for(var i=zsrStart; i<zsrEnd; i=i+6){
tmp+="<div class=\"AdingoLayout\">";
tmp+="<a href=\"http://ov.yahoo.co.jp/service/int/index.html?o=IM0028\" target=\"_new\" class=\"adpr\"><span class=\"prttl\">【PR】</span></a>";
tmp+="<a href=\"";
tmp += zSr[i+2];
tmp+="\" target=\"_new\" class=\"ad\">";
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>";
tmp+="</a>";
tmp+="</div>";
}
tmp+="</div>";
tmp+="</body>";

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