<!--

//  ドメイン・パス取得
path = location.pathname;
conv = path.split("/");
var cid = "0";
var pid = "0";

//  ディレクトリ名からPIDへの変換

if (conv[2] == "biglobe"){
pid = 1012;
} else if (conv[2] == "club"){
pid = 1027;
} else if (conv[2] == "invoice"){
pid = 1039;
} else if (conv[2] == "goo"){
pid = 1042;
} else if (conv[2] == "hi-ho"){
pid = 1015;
} else if (conv[2] == "nifty"){
pid = 1011;
} else if (conv[2] == "ocn"){
pid = 1028;
} else if (conv[2] == "sannet"){
pid = 1031;
} else if (conv[2] == "so-net"){
pid = 1013;
} else if (conv[2] == "yahoo"){
pid = 1059;
} else if (conv[2] == "toppan"){
pid = 1000;
} else if (conv[2] == "_base"){
pid = 1000;
} else {
pid = 0000;
}

//  ヘッダーの課金ボタン

function price_print(){    // 総額表示

 document.write('<SCRIPT type="text/javascript">print_kakaku('+price+',"'+conv[2]+'");</SCRIPT>');

}

function price_print_m(){    // 総額表示

 document.write('<SCRIPT type="text/javascript">print_kakaku(500,"'+conv[2]+'");</SCRIPT>');

}


function top_kakin(){    // Yahoo!

if (cid == "0"){    // 販路以外

 document.write('<a href="#isp_list"><img src="../images/top/yudou.gif" border="0" alt="購入希望の方はこちら（購入販路選択へ）"></a>');

} else {

if (pid == "1059"){

 document.write('<div style="margin:5px 0 0 0;">');
 document.write('<a href="/cgi-bin/gateway/sub_period.cgi?CID='+cid+'&PID='+pid+'" target="_top">');
 document.write('<img src ="http://i.yimg.jp/images/wallet/biz/btn/valid/s_bu_pur_on.gif" alt ="購入する" border="0" /></a> ');
 document.write('<a href="/cgi-bin/gateway/ent_period.cgi?CID='+cid+'&PID='+pid+'" target="_top">');
 document.write('<img src="http://i.yimg.jp/images/login/bbauth/btnSLogin.gif" alt="Yahoo! JAPAN ID でログイン" border="0" /></a><br>');
 document.write('</div>');

} else {

if (pid == "0000"){    // 販路以外

 document.write('<a href="#isp_list"><img src="../images/top/yudou.gif" border="0" alt="購入希望の方はこちら（購入販路選択へ）"></a>');

} else {    // 販路

 document.write('<div style="margin:5px 0 0 0;">');
 document.write('<a href="/cgi-bin/gateway/sub_period.cgi?CID='+cid+'&PID='+pid+'" target="_top">');
 document.write('<img src="../images/top/classics_btn_kounyu.gif" border="0" alt="購入する" ></a> ');
 document.write('<a href="/cgi-bin/gateway/ent_period.cgi?CID='+cid+'&PID='+pid+'" target="_top">');
 document.write('<img src="../images/top/classics_btn_sainyujo.gif" border="0" alt="再入場" ></a><br>');
 document.write('</div>');

} }

}

}


//  フッターの課金ボタン


function bottom_kakin(){

if (pid == "1059"){    // yahoo!
 document.write('<center>');
 document.write('<table border="0" cellpadding="0" cellspacing="0" style="margin:20px auto 10px auto;">');
 document.write('<tr><td align="center" valign="top">');
 document.write('<a href="/cgi-bin/gateway/sub_period.cgi?CID='+cid+'&PID='+pid+'" target="_top">');
 document.write('<img src ="http://i.yimg.jp/images/wallet/biz/btn/valid/s_bu_pur_on.gif" alt ="購入する" border="0" /></a><br>');
 document.write('<div style="padding:5px 0 15px 0;font-size:12px;font-weight:bold;text-align:center;">');
 document.write('7日間/<SCRIPT type="text/javascript">print_kakaku('+price+',"'+conv[2]+'");</SCRIPT></div>');
 document.write('</td><td width="30"></td>');
 document.write('<td align="center" valign="top">');
 document.write('<a href="/cgi-bin/gateway/ent_period.cgi?CID='+cid+'&PID='+pid+'" target="_top">');
 document.write('<img src="http://i.yimg.jp/images/login/bbauth/btnSLogin.gif" alt="Yahoo! JAPAN ID でログイン" border="0" /></a><br>');
 document.write('</td></tr></table>');
 document.write('</center>');

} else if (pid == "0000"){    // 販路以外

 document.write('');

} else {    // 販路
 document.write('<center>');
 document.write('<table border="0" cellpadding="0" cellspacing="0" style="margin:20px auto 10px auto;">');
 document.write('<tr><td align="center" valign="top">');
 document.write('<a href="/cgi-bin/gateway/sub_period.cgi?CID='+cid+'&PID='+pid+'" target="_top">');
 document.write('<img src="../images/top/classics_btn_kounyu.gif" border="0" alt="購入する"></a><br>');
 document.write('<div style="padding:5px 0 15px 0;font-size:12px;font-weight:bold;text-align:center;">');
 document.write('7日間/<SCRIPT type="text/javascript">print_kakaku('+price+',"'+conv[2]+'");</SCRIPT></div>');
 document.write('</td><td width="30"></td>');
 document.write('<td align="center" valign="top">');
 document.write('<a href="/cgi-bin/gateway/ent_period.cgi?CID='+cid+'&PID='+pid+'" target="_top">');
 document.write('<img src="../images/top/classics_btn_sainyujo.gif" border="0" alt="再入場"></a><br>');
 document.write('</td></tr></table>');
 document.write('</center>');

}

}


//  一覧用の課金ボタン


function list_kakin(){

if (pid == "1059"){    // yahoo!

 document.write('PID:'+pid+'<br>');
 document.write('CID:'+cid+'<br>');
 document.write('<center>');
 document.write('<div style="padding:10px 0 5px 0;font-size:12px;font-weight:bold;text-align:center;">');
 document.write('7日間/<SCRIPT type="text/javascript">print_kakaku('+price+',"'+conv[2]+'");</SCRIPT></div>');
 document.write('<table border="0" cellpadding="0" cellspacing="5" style="margin:0 auto 10px auto;">');
 document.write('<tr><td align="center" valign="top">')
 document.write('<a href="/cgi-bin/gateway/sub_period.cgi?CID='+cid+'&PID='+pid+'" target="_top">');
 document.write('<img src ="http://i.yimg.jp/images/wallet/biz/btn/valid/s_bu_pur_on.gif" alt ="購入する" border="0" /></a><br>');
 document.write('</td></tr>');
 document.write('<tr><td align="center" valign="top">');
 document.write('<a href="/cgi-bin/gateway/ent_period.cgi?CID='+cid+'&PID='+pid+'" target="_top">');
 document.write('<img src="http://i.yimg.jp/images/login/bbauth/btnSLogin.gif" alt="Yahoo! JAPAN ID でログイン" border="0" /></a><br>');
 document.write('</td></tr></table>');
 document.write('</center>');

 } else if (pid == "0000"){    // 販路以外

//  document.write('PID:'+pid+'<br>');
//  document.write('CID:'+cid+'<br>');
//  document.write('');

} else {    // 販路

 document.write('PID:'+pid+'<br>');
 document.write('CID:'+cid+'<br>');
 document.write('<center>');
 document.write('<div style="padding:10px 0 5px 0;font-size:12px;font-weight:bold;text-align:center;">');
 document.write('7日間/<SCRIPT type="text/javascript">print_kakaku('+price+',"'+conv[2]+'");</SCRIPT></div>');
 document.write('<table border="0" cellpadding="0" cellspacing="5" style="margin:0 auto 10px auto;">');
 document.write('<tr><td align="center" valign="top">');
 document.write('<a href="/cgi-bin/gateway/sub_period.cgi?CID='+cid+'&PID='+pid+'" target="_top">');
 document.write('<img src="../images/top/classics_btn_kounyu.gif" border="0" alt="購入する"></a><br>');
 document.write('</td></tr>');
 document.write('<tr><td align="center" valign="top">');
 document.write('<a href="/cgi-bin/gateway/ent_period.cgi?CID='+cid+'&PID='+pid+'" target="_top">');
 document.write('<img src="../images/top/classics_btn_sainyujo.gif" border="0" alt="再入場"></a><br>');
 document.write('</td></tr></table>');
 document.write('</center>');

}

}


//-->