//--------------------------------------------
// COMMON
//--------------------------------------------

// gnavi
function gnavi(){
document.write(
'<ul id="gnavi" class="pkg">',
'<li id="home"><a href="http://kono-tora.com/" title="ホームへ">ホーム</a></li>',
'<li id="toko"><a href="https://secure.yoshimoto.co.jp/konotora/main_pc.html" title="投稿へ" class="selected">投稿</a></li>',
'<li id="waiwai"><a href="http://waiwai.map.yahoo.co.jp/smap?mid=ZViefvHEmNC0GRC8RSV1Z3jTwASyzvz5iBgWaI4-" title="このへん!!トラベラー全国版 このトラちゃん公式おススメマップ">このへん!!トラベラー全国版 このトラちゃん公式おススメマップ</a></li>',
'<li id="offshot"><a href="http://kono-tora.laff.jp/offshot/" title="このへん!!トラベラー収録現場オフショットブログ">このへん!!トラベラー 収録現場オフショットブログ</a></li>',
'<li id="travel"><a href="http://travelers.laff.jp/" title="ザ！！トラベラーズ リリース記念ブログ">ザ！！トラベラーズ リリース記念ブログ</a></li>',
'</ul>'
);
}



// sidebar
function sidebar(){
document.write(
'<div id="side-bnr">',
'<h2><a href="http://kono-tora.com/cd_info.html#cd-shicho"><img src="http://kono-tora.com/common/images/r_bnr_tr.jpg" alt ="ザ・トラベラーズ 『ＨＯＭＥ ＴＯＷＮ』発売中!!" width="350" height="276" /></a><p class="bnr-text"><a href="./cd_info.html#cd-shicho">全国６地域それぞれの芸人たちが歌う<br />「HOME TOWN」が聞けちゃうよ!!お聴き逃しなく！</a></p></h2>',
'</div>',
'<div id="side-bnr">',
'<h2><a href="http://kono-tora.fc.yahoo.co.jp/" target="_blank"><img src="http://kono-tora.com/common/images/r_bnr_mihoudai.gif" alt ="このへん!!トラベラー - よしもと見ホーダイ" width="350" height="68" /></a><p class="bnr-text"><a href="http://kono-tora.fc.yahoo.co.jp/" target="_blank">各地域の番組総集編が見られる！<br />ザ!!トラベラーズのインタビューも公開中！</a></p></h2>',
'</div>'
);
}



//--------------------------------------------
// library
//--------------------------------------------


// pulldown menu

function MM_jumpMenu(targ,selObj,restore){ //v3.0
 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
 if (restore) selObj.selectedIndex=0;
 }



// ROLLOVER

function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}


