function get_isp() {
	this.isp = 'biglobe';
}

function isp_rogo(){
	document.write('<a href="http://www.biglobe.ne.jp/" target="_blank"><img src="http://www.cplaza.ne.jp/logo/img/biglobe_logo_color150cw.gif" border=0" width="150" height="36" alt="BIGLOBE" style="float:left;"></a>');
}

function isp_rogo_b(){
	document.write('<a href="http://www.biglobe.ne.jp/" target="_blank"><img src="http://www.cplaza.ne.jp/logo/img/biglobe_logo_color150cw.gif" border=0" width="150" height="36" alt="BIGLOBE" style="float:left;"></a>');
}

function isp_mente(){
	document.write('<script type="text/javascript" src="/shogakukan/sabra/biglobe/cmn/js/info.js"></script>');

/*	document.write('<div class="bb_mente" style="text-align:center;">');
	document.write('<table border="0" cellspacing="0" cellpadding="0" style="margin:0 auto;">');
	document.write('<tr>');
	document.write('<td align="center"><img src="http://www.bitway.ne.jp/sabra/images/mente.gif" border="0"></td>');
	document.write('</td>');
	document.write('<td align="center"><img src="http://www.bitway.ne.jp/sorry/sorry-biglobe.gif" border="0"></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</div>');
*/
}

function isp_chui(faqpath){
	twin1=window.open(''+faqpath+'faq/chui_'+isp.isp+'.html',"_blank",'resizable=yes,WIDTH=600,HEIGHT=300,scrollbars=yes,status=yes');
}

function get_url(cid,turl){
/*
	var param = new kakin_param();
	param.contents = 'sabra';
	param.rurl = 'http://www.bitway.ne.jp/sabra/biglobe/';
	param.turl = turl;
	param.cid = cid;
	param.hurl = 'http://www.biglobe.ne.jp/';

	var url = new get_kakinURL("biglobe",param);
	this.kikan_buy = url.kikan_buy;
*/
	this.kikan_buy = 'http://www.bitway.ne.jp/cgi-bin/gateway/sub_period.cgi?CID='+cid+'&PID=1012';
	this.kikan_enter = 'http://www.bitway.ne.jp/cgi-bin/gateway/ent_period.cgi?CID='+cid+'&PID=1012';
}

function print_button_easy(price,imagespath){
	document.write('<table border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr>');
	document.write('<td>');
	document.write('<a href="'+url.kikan_buy+'">');
	document.write('<img src="'+imagespath+'images/kounyu_biglobe.gif" border="0" alt="購入"></a>');
	document.write('<br>');
	document.write('<a href="'+url.kikan_enter+'"><img src="'+imagespath+'images/reenter_biglobe.gif" border="0" alt="再入場"></a>');
	document.write('<br>');
	document.write('<div style="font-size:13px; color:#000000">');
	print_kakaku(price,isp.isp);
	document.write('</div>');
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
}

function print_button_easy_b(price,imagespath){
	document.write('<table border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr>');
	document.write('<td>');
	document.write('<a href="'+url.kikan_buy+'">');
	document.write('<img src="'+imagespath+'images/kounyu_biglobe.gif" border="0" alt="購入"></a>');
	document.write('<br>');
	document.write('<a href="'+url.kikan_enter+'"><img src="'+imagespath+'images/reenter_biglobe.gif" border="0" alt="再入場"></a>');
	document.write('<br>');
	document.write('<div style="font-size:13px; color:#FFFFFF">');
	print_kakaku(price,isp.isp);
	document.write('</div>');
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
}

function print_button_bb(price,imagespath){
	document.write('<table border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr>');
	document.write('<td>');
	document.write('<a href="'+url.kikan_buy+'">');
	document.write('<img src="'+imagespath+'images/kounyu_biglobe.gif" border="0" alt="購入"></a>');
	document.write('<br>');
	document.write('<a href="'+url.kikan_enter+'"><img src="'+imagespath+'images/reenter_biglobe.gif" border="0" alt="再入場"></a>');
	document.write('<br>');
	document.write('<div style="font-size:13px; text-align:center; color:#000000">');
	print_kakaku(price,isp.isp);
	document.write('</div>');
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
}

function print_button_ticket(){
	document.write('<table width="150" border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr align="center" valign="middle">');
	document.write('<td>');
	document.write('<a href="'+url.kikan_buy+'">');
	document.write('<img src="img/kounyu_biglobe.gif" border="0" alt="購入"></a></td>');
	document.write('</tr>');
	document.write('<tr align="center" valign="middle">');
	document.write('<td>');
	document.write('<a href="'+url.kikan_enter+'">');
	document.write('<img src="img/reenter_biglobe.gif" border="0" alt="再入場"></a></td>');
	document.write('</tr>');
	document.write('</table>');
}

function print_button_ticket(imagespath){
	if(typeof(imagespath) == 'undefined') {
		imagespath = './';
	}
	document.write('<table width="150" border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr align="center" valign="middle">');
	document.write('<td>');
	document.write('<a href="'+url.kikan_buy+'">');
	document.write('<img src="'+imagespath+'img/kounyu_biglobe.gif" border="0" alt="購入"></a></td>');
	document.write('</tr>');
	document.write('<tr align="center" valign="middle">');
	document.write('<td>');
	document.write('<a href="'+url.kikan_enter+'">');
	document.write('<img src="'+imagespath+'img/reenter_biglobe.gif" border="0" alt="再入場"></a></td>');
	document.write('</tr>');
	document.write('</table>');
}

function isp_footer(){
	var str = '';

	str += '<br><br>';
	str += '<center>';
	str += '<img src="http://www.bitway.ne.jp/sorry/sorry-biglobe.gif" border="0"><br>';
	str += '<table border="0" cellpadding="3" cellspacing="0">';
	str += '<tr>';
	str += '<td style="font-size:10px!important;">';
	document.write(str);
	load_msg("biglobe","caution","000Ca000Bg");
	str  = '<br>';
	str += '<div align="center" style="font-size:12px;">';
	str += '<a href="http://support.biglobe.ne.jp/tokusyo.html" target="_blank">特定商取引法に基づく表示</a><BR>';
	str += 'BIGLOBE有料コンテンツ についての詳しい説明は<A HREF="http://www.cplaza.ne.jp/walk/" TARGET="_blank">こちら</A>をご覧ください。<BR>';
	str += '認証に関してエラーとなる方は<A HREF="http://www.cplaza.ne.jp/walk/error.html" TARGET="_blank">こちら</A>をご覧ください。<br>';
	str += '<br>';
	str += '課金、購入/解約、ID/パスワードについては<a target=_blank href="http://support.biglobe.ne.jp/ask/index.html">BIGLOBEカスタマサポート</a>へお問い合わせください。<br>';
	str += 'コンテンツ内容、動作については<a href="http://sabra.jp/support/strictly/" target="_blank">こちら</a>へお問い合わせください。<br>';
	str += '</div><br>';
	str += '</td>';
	str += '</tr>';
	str += '</table>';

	str += '<table cellspacing="0" cellpadding="0" width="95%" border="0">';
	str += '<tr><td bgcolor="#005063" style="height:15px;"><img src="same/images/spacer.gif" width="100%" height="1"></td></tr>';
	str += '</table>';

	str += '<table cellspacing="0" cellpadding="0" border="0" style="float:right;margin-right:30px;_margin-right:10px;">';
	str += '<TR><TD ALIGN="right" style="padding:5px 0;text-align:right;">';
	str += '<A HREF="http://www.biglobe.ne.jp/" TARGET="_top"><IMG SRC="http://www.bitway.ne.jp/isp-images/biglobe/ft_biglobe.gif" ALT="BIGLOBEトップ" BORDER="0" width="126" height="19"></A></TD>';
	str += '</TR>';
	str += '<TR><TD ALIGN="right" style="font-size:10px;text-align:right;">';
	str += '<A HREF="http://www.biglobe.ne.jp/privacy.html" TARGET="_blank">個人情報保護ポリシー</A>';
	str += '｜<A HREF="http://www.biglobe.ne.jp/safesecurity.html" TARGET="_blank">安全安心</A>';
	str += '｜<A HREF="http://support.biglobe.ne.jp/news/news112.html" TARGET="_blank">消費税総額表示</A>';
	str += '</TD>';
	str += '</TR>';
	str += '<TR><TD HEIGHT="2"></TD></TR>';
	str += '<TR>';
	str += '<TD ALIGN="right" style="font-size:10px;text-align:right;">';
	str += '<A HREF="http://www.biglobe.ne.jp/copyright.html" TARGET="_blank">Copyright(C) NEC BIGLOBE, Ltd. 1996-2009</A>';
	str += '</TD>';
	str += '</TR>';
	str += '</table>';
	str += '<br style="clear:right;">';

	str += '</center>';
	document.write(str);
}

function isp_footer_b(){
	var str = '';

	str += '<br><br>';
	str += '<center>';
	str += '<img src="http://www.bitway.ne.jp/sorry/sorry-biglobe.gif" border="0"><br>';
	str += '<table border="0" cellpadding="3" cellspacing="0" width="800">';
	str += '<tr>';
	str += '<td style="font-size:12px; color:#FFFFFF;">';
	document.write(str);
	load_msg("biglobe","caution","000Ca000Bg");
	str  = '<br>';
	str += '<div align="center" style="font-size:12px; color:#FFFFFF;">';
	str += '<a href="http://support.biglobe.ne.jp/tokusyo.html" target="_blank">特定商取引法に基づく表示</a><BR>';
	str += 'BIGLOBE有料コンテンツ についての詳しい説明は<A HREF="http://www.cplaza.ne.jp/walk/" TARGET="_blank">こちら</A>をご覧ください。<BR>';
	str += '認証に関してエラーとなる方は<A HREF="http://www.cplaza.ne.jp/walk/error.html" TARGET="_blank">こちら</A>をご覧ください。<br>';
	str += '<br>';
	str += '課金、購入/解約、ID/パスワードについては<a target=_blank href="http://support.biglobe.ne.jp/ask/index.html">BIGLOBEカスタマサポート</a>へお問い合わせください。<br>';
	str += 'コンテンツ内容、動作については<a href="http://sabra.jp/support/strictly/" target="_blank">こちら</a>へお問い合わせください。<br>';
	str += '</div><br>';
	str += '</td>';
	str += '</tr>';
	str += '</table>';

	str += '<table cellspacing="0" cellpadding="0" width="100%" border="0">';
	str += '<tr><td bgcolor="005063"><img src="same/images/spacer.gif" width="100%" height="1"></td></tr>';
	str += '<TR><TD ALIGN="right" style="padding:5px 0;">';
	str += '<A HREF="http://www.biglobe.ne.jp/" TARGET="_top"><IMG SRC="http://www.bitway.ne.jp/isp-images/biglobe/ft_biglobe.gif" ALT="BIGLOBEトップ" BORDER="0" width="126" height="19"></A></TD>';
	str += '</TR>';
	str += '<TR><TD ALIGN="right" style="font-size:10px; color:#FFFFFF;">';
	str += '<A HREF="http://www.biglobe.ne.jp/privacy.html" TARGET="_blank">個人情報保護ポリシー</A>';
	str += '｜<A HREF="http://www.biglobe.ne.jp/safesecurity.html" TARGET="_blank">安全安心</A>';
	str += '｜<A HREF="http://support.biglobe.ne.jp/news/news112.html" TARGET="_blank">消費税総額表示</A>';
	str += '</TD>';
	str += '</TR>';
	str += '<TR><TD HEIGHT="2"></TD></TR>';
	str += '<TR>';
	str += '<TD ALIGN="right" style="font-size:10px; color:#FFFFFF;">';
	str += '<A HREF="http://www.biglobe.ne.jp/copyright.html" TARGET="_blank">Copyright(C) NEC BIGLOBE, Ltd. 1996-2009</A>';
	str += '</TD>';
	str += '</TR>';
	str += '</table>';
	str += '</center>';
	document.write(str);

}

var  sabra_teika = {
	strictly: "800",
	oneday_1: "700",
	oneday_2: "500",
	netbb: "500"
}

function menu_strictly() {
	document.write('<dl>');
	//document.write('<dt><img src="./cmn/img/month/price.gif" alt="月額840円" /></dt>');
	document.write('<dt><span class="kakaku">月額');
	document.write(
		"<strong>"+ new kakaku(sabra_teika.strictly, new get_isp().isp, "br=on").hyoki.replace("円", "</strong>円")
	);
	document.write('</span></dt>');
	document.write('<dd><a href="http://www.bitway.ne.jp/cgi-bin/gateway/subscribe.cgi?CID=3P0170001&PID=1012" target="_parent"><img src="./cmn/img/month/regist.gif" alt="会員登録はこちら" /></a></dd>');
	document.write('<dd><a href="http://www.bitway.ne.jp/cgi-bin/gateway/enter.cgi?CID=3P0170001&PID=1012" target="_parent"><img src="./cmn/img/month/enter.gif" alt="会員入口はコチラから" /></a></dd>');
	document.write('</dl>');
	document.write('<ul>');
	document.write('<li><a href="http://www.bitway.ne.jp/cgi-bin/gateway/enter.cgi?CID=3P0170001&PID=1012" target="_parent"><img src="./cmn/img/month/account.gif" alt="登録内容の確認・変更" /></a></li>');
	document.write('<li><a href="./cancel/cancel.html"><img src="./cmn/img/month/dissolve.gif" alt="登録の解除" /></a></li>');
	document.write('</ul>');
}

function menu_strictly_sample() {
	document.write('<dl>');
	document.write('<dt><span class="kakaku">月額');
	document.write(
		"<strong>"+ new kakaku(sabra_teika.strictly, new get_isp().isp, "br=on").hyoki.replace("円", "</strong>円")
	);
	document.write('</span></dt>');
	document.write('<dd><a href="http://www.bitway.ne.jp/cgi-bin/gateway/subscribe.cgi?CID=3P0170001&PID=1012"><img src="../../cmn/img/month/regist.gif" alt="会員登録はこちら" /></a></dd>');
	document.write('</dl>');
}

function oneday_search() {
	document.write('<form class="search" method="get" action="http://www.google.co.jp/search">');
	document.write('<p>Google 検索</p>');
	document.write('<div class="field"><input type="text" name="q" maxlength="255" value="" /></div>');
	document.write('<input type="hidden" name="ie" value="Shift_JIS" />');
	document.write('<input type="hidden" name="oe" value="Shift_JIS" />');
	document.write('<input type="hidden" name="hl" value="ja" />');
	document.write('<div class="button"><input type="submit" name="btnG" value="Google 検索" /></div>');
	document.write('<div class="site">');
	document.write('<input type="hidden" name="domains" value="bitway.ne.jp/sabra/biglobe/ticket/idol/" />');
	document.write('<input type="radio" name="sitesearch" value=""> WWW を検索 ');
	document.write('<input type="radio" name="sitesearch" value="bitway.ne.jp/sabra/biglobe/ticket/idol/" checked="checked"> sabra 1day ticket を検索');
	document.write('</div>');
	document.write('</form>');
}

function bb_search() {
	document.write('<form class="search" method="get" action="http://www.google.co.jp/search">');
	document.write('<p>Google 検索</p>');
	document.write('<div class="field"><input type="text" name="q" maxlength="255" value="" /></div>');
	document.write('<input type="hidden" name="ie" value="Shift_JIS" />');
	document.write('<input type="hidden" name="oe" value="Shift_JIS" />');
	document.write('<input type="hidden" name="hl" value="ja" />');
	document.write('<div class="button"><input type="submit" name="btnG" value="Google 検索" /></div>');
	document.write('<div class="site">');
	document.write('<input type="hidden" name="domains" value="bitway.ne.jp/sabra/biglobe/easy/bb/" />');
	document.write('<input type="radio" name="sitesearch" value=""> WWW を検索 ');
	document.write('<input type="radio" name="sitesearch" value="bitway.ne.jp/sabra/biglobe/easy/bb/" checked="checked"> sabra net BB を検索');
	document.write('</div>');
	document.write('</form>');
}

/*
 * easy kakaku
 */
function menu_easy_1(price, isp) {
	var k = "<strong>"+ new kakaku(price, isp).hyoki.replace("円", "</strong>円");
	
	var template = '<dl>';
	template += '<dt><span class="kakaku">30日間見放題'+ k +'</span></dt>';
	template += '<dd><a href="$BUY"><img src="../../cmn/img/easy/buy.gif" alt="購入する" /></a></dd>';
	template += '<dd><a href="$ENTER"><img src="../../cmn/img/easy/enter.gif" alt="再入場する" /></a></dd>';
	template += '</dl>';
	
	menu_print(template);
}

function menu_easy_2(price, isp) {
	var k = "<strong>"+ new kakaku(price, isp).hyoki.replace("円", "</strong>円");
	
	var template = '<div class="inner"><table style="margin:0 auto;"><tr>';
	template += '<td><span class="kakaku">30日間見放題'+ k +'</span></td>';
	template += '<td><a href="$BUY"><img src="../../cmn/img/easy/buy.gif" alt="購入する" /></a></td>';
	template += '</tr></table></div>';
	
	menu_print(template);
}


/*
 * bb kakaku
 */
function menu_bb_1(price, isp) {
	var k = "<strong>"+ new kakaku(price, isp).hyoki.replace("円", "</strong>円");
	
	var template = '<dl>';
	template += '<dt><span class="kakaku">2day '+ k +'</span></dt>';
	template += '<dd><a href="$BUY"><img src="../../../cmn/img/bb/buy.gif" alt="購入する" /></a></dd>';
	template += '<dd><a href="$ENTER"><img src="../../../cmn/img/bb/enter.gif" alt="再入場する" /></a></dd>';
	template += '</dl>';
	
	menu_print(template);
}

/*
 * oneday kakaku
 */
function menu_oneday_1(price, isp) {
	var k = "<strong>"+ new kakaku(price, isp).hyoki.replace("円", "</strong>円");
	
	var template = '<dl>';
	template += '<dt><span class="kakaku">1day '+ k +'</span></dt>';
	template += '<dd><a href="$BUY"><img src="../../../cmn/img/oneday/buy.gif" alt="購入する" /></a></dd>';
	template += '<dd><a href="$ENTER"><img src="../../../cmn/img/oneday/enter.gif" alt="再入場する" /></a></dd>';
	template += '</dl>';
	
	menu_print(template);
}


/* Menu Buttons
----------------------------------------------------------*/
(function($) {
	
	//constant param
	var CONST_LINK = {
		REGIST: "entrance.html",
		MEMBER: "entrance.html",
		ACCOUNT: "entrance.html",
		CANCEL: "cancel/cancel.html"
	};

	/*
	 * template engin
	 */
	if (!window.sabra) window.menu = {};
	
	window.menu_print = function (template){
		if (template.indexOf("$REGIST")>=0) {
			template = template
			.replace("$REGIST", CONST_LINK.REGIST)
			.replace("$MEMBER", CONST_LINK.MEMBER)
			.replace("$ACCOUNT", CONST_LINK.ACCOUNT)
			.replace("$CANCEL", CONST_LINK.CANCEL);
		}
		
		if (template.indexOf("$BUY")>=0) {
			CONST_LINK.BUY = 'http://www.bitway.ne.jp/cgi-bin/gateway/sub_period.cgi?CID='+sabra.CONTENTS_ID+'&PID=1012';
			CONST_LINK.ENTER = 'http://www.bitway.ne.jp/cgi-bin/gateway/ent_period.cgi?CID='+sabra.CONTENTS_ID+'&PID=1012';
			
			template = template
			.replace("$BUY", CONST_LINK.BUY)
			.replace("$ENTER", CONST_LINK.ENTER);
		}
		
		document.write(template);
	}
	
	
})();

//-->
