//カテゴリーナビ用ボタン
var img_btn_sp = '/common/images/btn_sp_off.gif';
var img_btn_sp_on = '/common/images/btn_sp_on.gif';
var img_btn_dra = '/common/images/btn_dra_off.gif';
var img_btn_dra_on = '/common/images/btn_dra_on.gif';
var img_btn_anime = '/common/images/btn_anime_off.gif';
var img_btn_anime_on = '/common/images/btn_anime_on.gif';
var img_btn_news = '/common/images/btn_news_off.gif';
var img_btn_news_on = '/common/images/btn_news_on.gif';
var img_btn_talk = '/common/images/btn_talk_off.gif';
var img_btn_talk_on = '/common/images/btn_talk_on.gif';
var img_btn_cook = '/common/images/btn_cook_off.gif';
var img_btn_cook_on = '/common/images/btn_cook_on.gif';
var img_btn_doc = '/common/images/btn_doc_off.gif';
var img_btn_doc_on = '/common/images/btn_doc_on.gif';
var img_btn_spo = '/common/images/btn_spo_off.gif';
var img_btn_spo_on = '/common/images/btn_spo_on.gif';
var img_btn_earth = '/common/images/btn_earth_off.gif';
var img_btn_earth_on = '/common/images/btn_earth_on.gif';

var BSDomain = document.domain;
var URLhead;
if (BSDomain.match(/ssl/i))
	{
		URLhead = "http://www.bs-asahi.co.jp";
	}
else{URLhead = "http://"+BSDomain;}

var html;

//枠テーブル（AD以降）
html = '<\/td>\n';
html += '<\/tr>\n';
html += '<td class="globalNav">\n';
html += '<table border="0" cellspacing="2" cellpadding="0" id="globalNavRight">\n';
html += '<tr>\n';
html += '<td><form action="'+URLhead+'/apps/search_engine/www/search.php" method="post">\n';
html += '<table border="0" cellspacing="2" cellpadding="0" id="globalNavRight2">\n';
html += '<tr>\n';
html += '<td><a href="'+URLhead+'/bangumi/" onfocus="this.blur()"><img src="/common/images/btn_bangumi.gif" alt="番組表" width="65" height="19" border="0" \/><\/a><\/td>\n';
html += '<td><a href="'+URLhead+'/ichiran/index.html" onfocus="this.blur()"><img src="/common/images/btn_list.gif" alt="番組一覧" width="65" height="19" border="0" \/><\/a><\/td>\n';
html += '<td><a href="'+URLhead+'/sitemap/index.html" onfocus="this.blur()"><img src="/common/images/btn_site.gif" alt="サイトマップ" width="65" height="19" border="0" \/><\/a><\/td>\n';
html += '<\/tr>\n';
html += '<tr>\n';
html += '<td colspan="3"><input type="hidden" value="sjis" name="cs" \/>\n';
html += '<input type="hidden" value="s" name="ord" \/>\n';
html += '<input type="hidden" value="10042" name="id" \/>\n';
html += '<table border="0" cellspacing="0" cellpadding="0">\n';
html += '<tr>\n';
html += '<td><input type="text" name="kw" id="kw" style="border:#c3c3c3 solid 1px; text-align:left; margin:2px; padding:1px; color:#999999;" value="" \/><\/td>\n';
html += '<td><input type="image" src="/common/images/btn_search.gif" alt="検索" width="37" height="19" \/>\n';
html += '<\/td>\n';
html += '<\/tr>\n';
html += '<\/table></td>\n';
html += '<\/tr>\n';
html += '<\/table>\n';
html += '<\/form>\n';
html += '<\/td>\n';
html += '<\/tr>\n';
html += '<\/table>\n';
html += '<\/td>\n';
html += '<\/tr>\n';
html += '<tr>\n';
html += '<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">\n';
html += '<tr>\n';
//カテゴリーナビ
//スペシャル/特番
html += '<td><a href="'+URLhead+'/ichiran/index.html#special" onFocus="this.blur()">';
html += '<img src="/common/images/btn_sp_off.gif" alt="スペシャル\/特番" onMouseOver="this.src=' + '\'' + img_btn_sp_on + '\'" onMouseOut="this.src=' + '\'' + img_btn_sp + '\'" \/>';
html += '<\/a><\/td>\n';
//ドラマ
html += '<td><a href="'+URLhead+'/ichiran/index.html#drama" onFocus="this.blur()">';
html += '<img src="/common/images/btn_dra_off.gif" alt="ドラマ/映画" onMouseOver="this.src=' + '\'' + img_btn_dra_on + '\'" onMouseOut="this.src=' + '\'' + img_btn_dra + '\'" \/>';
html += '<\/a><\/td>\n';
//アニメ
html += '<td><a href="'+URLhead+'/ichiran/index.html#anime" onFocus="this.blur()">';
html += '<img src="/common/images/btn_anime_off.gif" alt="アニメ" onMouseOver="this.src=' + '\'' + img_btn_anime_on + '\'" onMouseOut="this.src=' + '\'' + img_btn_anime + '\'" \/>';
html += '<\/a><\/td>\n';
//ニュース/情報
html += '<td><a href="'+URLhead+'/ichiran/index.html#news" onFocus="this.blur()">';
html += '<img src="/common/images/btn_news_off.gif" alt="ニュース\/情報" onMouseOver="this.src=' + '\'' + img_btn_news_on + '\'" onMouseOut="this.src=' + '\'' + img_btn_news + '\'" \/>';
html += '<\/a><\/td>\n';
//トーク/音楽
html += '<td><a href="'+URLhead+'/ichiran/index.html#talk" onFocus="this.blur()">';
html += '<img src="/common/images/btn_talk_off.gif" alt="トーク\/音楽" onMouseOver="this.src=' + '\'' + img_btn_talk_on + '\'" onMouseOut="this.src=' + '\'' + img_btn_talk + '\'" \/>';
html += '<\/a><\/td>\n';
//料理/食
html += '<td><a href="'+URLhead+'/ichiran/index.html#cooking" onFocus="this.blur()">';
html += '<img src="/common/images/btn_cook_off.gif" alt="料理\/食" onMouseOver="this.src=' + '\'' + img_btn_cook_on + '\'" onMouseOut="this.src=' + '\'' + img_btn_cook + '\'" \/>';
html += '<\/a><\/td>\n';
//紀行/ドキュメンタリー
html += '<td><a href="'+URLhead+'/ichiran/index.html#travel" onFocus="this.blur()">';
html += '<img src="/common/images/btn_doc_off.gif" alt="紀行\/ドキュメンタリー" onMouseOver="this.src=' + '\'' + img_btn_doc_on + '\'" onMouseOut="this.src=' + '\'' + img_btn_doc + '\'" \/>';
html += '<\/a><\/td>\n';
//スポーツ
html += '<td><a href="'+URLhead+'/ichiran/index.html#sport" onFocus="this.blur()">';
html += '<img src="/common/images/btn_spo_off.gif" alt="スポーツ" onMouseOver="this.src=' + '\'' + img_btn_spo_on + '\'" onMouseOut="this.src=' + '\'' + img_btn_spo + '\'" \/>';
html += '<\/a><\/td>\n';
//環境/EARTH FRIENDLY MEDIA
html += '<td><a href="'+URLhead+'/ichiran/index.html#earth" onFocus="this.blur()">';
html += '<img src="/common/images/btn_earth_off.gif" alt="環境\/EARTH FRIENDLY MEDIA" onMouseOver="this.src=' + '\'' + img_btn_earth_on + '\'" onMouseOut="this.src=' + '\'' + img_btn_earth + '\'" \/>';
html += '<\/a><\/td>\n';

html += '<\/tr>\n';
html += '<\/table><\/td>\n';
html += '<\/tr>\n';
html += '<\/table>\n';
html += '<\/div>\n';

document.write(html);