function sidemenu_link(url){
var sub_dir;
if(sub_num == 0){sub_dir="./";}
if(sub_num >= 1){sub_dir="../";for(i=0; i<sub_num-1; i++){sub_dir="../"+sub_dir;}}
if(url=='tohyama_himitu'){window.parent.location=sub_dir+'himitu/index.htm';}		//遠山さん・ひみつ
if(url=='tohyama_mikata'){window.parent.location=sub_dir+'mikata.htm';}				//遠山さん・見かた
if(url=='tohyama_megane'){window.parent.location=sub_dir+'megane/index.htm';}		//遠山さん・めがね
if(url=='tohyama_illust'){window.parent.location=sub_dir+'illust/index.htm';}		//遠山さん・イラスト
if(url=='tohyama_dnikki'){window.parent.location=sub_dir+'nikki/100227_workshop/index.htm';}		//遠山さん・日記


if(url=='ickey_gakkou'){window.parent.location=sub_dir+'gakkou.htm';}			//一木さん・学校
if(url=='ickey_hogosya'){window.parent.location=sub_dir+'hogosya.htm';}			//一木さん・保護者
if(url=='ickey_camera'){window.parent.location=sub_dir+'camera.htm';}			//一木さん・カメラ貸し出し

if(url=='takepom_camera'){window.parent.location=sub_dir+'camera/index.htm';}			//竹本さん・写真教室

if(url=='karsima_megane'){window.parent.location=sub_dir+'megane_sale.htm';}			//川島さん・メガネ販売

if(url=='shibata_megane_made'){window.parent.location=sub_dir+'../tohyama/megane/index.htm';}			//シバタ
if(url=='shibata_megane_sell'){window.parent.location=sub_dir+'../karsima/megane_sale.htm';}					//シバタ

if(url=='babatti_back'){window.parent.location=sub_dir+'bn000000.html';}					//ばばっち・バックナンバー

if(url=='kahaku_back'){window.parent.location=sub_dir+'bn000000.html';}					//国立科学博物館・バックナンバー
if(url=='kahaku_view'){window.parent.location=sub_dir+'../view_kahaku/view_museum_10.htm';}					//国立科学博物館・展示室
if(url=='kahaku_comic'){wopen_s('hayanon.htm',570,600)}					//国立科学博物館・まんが

if(url=='banner_camera'){window.parent.location=sub_dir+'../ickey/camera.htm';}		//バナー・カメラ貸し出しフォーム


}




function sidemenu_tohyama(sub_num){
var sub_dir;
if(sub_num == 0){sub_dir="./";}
if(sub_num >= 1){sub_dir="../";for(i=0; i<sub_num-1; i++){sub_dir="../"+sub_dir;}}

document.write('    <DIV class="side_menu_00"><DIV style="padding:5px;">');
document.write('    <DIV class="side_menu_02">');
document.write('<A href="'+sub_dir+'index.htm"><IMG src="'+sub_dir+'../image/title_tohyama.jpg" border="0"></A><BR>');
document.write('<BR>');

document.write('<SCRIPT>Flash("'+sub_dir+'../flash/sidebar_tohyama.swf",139,300)</SCRIPT><BR>');


document.write('<BR>');
document.write('<A href="'+sub_dir+'../../labo/kahaku/index.html"><IMG src="'+sub_dir+'../image/banner_kahaku_c08.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<A href="'+sub_dir+'../../labo/inquiry/campaign/index.html"><IMG src="'+sub_dir+'../image/banner_campaign.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<SCRIPT>Flash("'+sub_dir+'../flash/banner_camera.swf",139,50)</SCRIPT><BR>');
document.write('<BR>');
document.write('    </DIV>');
document.write('    </DIV></DIV>');
}







function sidemenu_takepom(sub_num){
var sub_dir;
if(sub_num == 0){sub_dir="./";}
if(sub_num >= 1){sub_dir="../";for(i=0; i<sub_num-1; i++){sub_dir="../"+sub_dir;}}
document.write('    <DIV class="side_menu_00"><DIV style="padding:5px;">');
document.write('    <DIV class="side_menu_02">');
document.write('<A href="'+sub_dir+'index.htm"><IMG src="'+sub_dir+'../image/title_takepom.jpg" border="0"></A><BR>');
document.write('<BR>');

document.write('<SCRIPT>Flash("'+sub_dir+'../flash/sidebar_takepom.swf",139,300)</SCRIPT><BR>');

document.write('<BR>');
document.write('<A href="'+sub_dir+'../../labo/kahaku/index.html"><IMG src="'+sub_dir+'../image/banner_kahaku_c08.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<A href="'+sub_dir+'../../labo/inquiry/campaign/index.html"><IMG src="'+sub_dir+'../image/banner_campaign.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<SCRIPT>Flash("'+sub_dir+'../flash/banner_camera.swf",139,50)</SCRIPT><BR>');
document.write('<BR>');
document.write('    </DIV>');
document.write('    </DIV></DIV>');
}





function sidemenu_watari(sub_num){
var sub_dir;
if(sub_num == 0){sub_dir="./";}
if(sub_num >= 1){sub_dir="../";for(i=0; i<sub_num-1; i++){sub_dir="../"+sub_dir;}}
document.write('    <DIV class="side_menu_00"><DIV style="padding:5px;">');
document.write('    <DIV class="side_menu_02">');
document.write('<A href="'+sub_dir+'index.htm"><IMG src="'+sub_dir+'../image/title_watari.jpg" border="0"></A><BR>');
document.write('<BR>');

document.write('<SCRIPT>Flash("'+sub_dir+'../flash/sidebar_watari.swf",139,300)</SCRIPT><BR>');
document.write('<BR>');
document.write('<A href="'+sub_dir+'../../labo/kahaku/index.html"><IMG src="'+sub_dir+'../image/banner_kahaku_c08.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<A href="'+sub_dir+'../../labo/inquiry/campaign/index.html"><IMG src="'+sub_dir+'../image/banner_campaign.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<SCRIPT>Flash("'+sub_dir+'../flash/banner_camera.swf",139,50)</SCRIPT><BR>');
document.write('<BR>');
document.write('    </DIV>');
document.write('    </DIV></DIV>');
}













function sidemenu_ickey(sub_num){
var sub_dir;
if(sub_num == 0){sub_dir="./";}
if(sub_num >= 1){sub_dir="../";for(i=0; i<sub_num-1; i++){sub_dir="../"+sub_dir;}}
document.write('    <DIV class="side_menu_00"><DIV style="padding:5px;">');
document.write('    <DIV class="side_menu_02">');
document.write('<A href="'+sub_dir+'index.htm"><IMG src="'+sub_dir+'../image/title_ickey.jpg" border="0"></A><BR>');
document.write('<BR>');
document.write('<SCRIPT>Flash("'+sub_dir+'../flash/sidebar_ickey.swf",139,300)</SCRIPT><BR>');

document.write('<BR>');
document.write('<A href="'+sub_dir+'../../labo/kahaku/index.html"><IMG src="'+sub_dir+'../image/banner_kahaku_c08.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<A href="'+sub_dir+'../../labo/inquiry/campaign/index.html"><IMG src="'+sub_dir+'../image/banner_campaign.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<SCRIPT>Flash("'+sub_dir+'../flash/banner_camera.swf",139,50)</SCRIPT><BR>');
document.write('<BR>');
document.write('    </DIV>');
document.write('    </DIV></DIV>');
}







function sidemenu_karsima(sub_num){
var sub_dir;
if(sub_num == 0){sub_dir="./";}
if(sub_num >= 1){sub_dir="../";for(i=0; i<sub_num-1; i++){sub_dir="../"+sub_dir;}}
document.write('    <DIV class="side_menu_00"><DIV style="padding:5px;">');
document.write('    <DIV class="side_menu_02">');
document.write('<A href="'+sub_dir+'index.htm"><IMG src="'+sub_dir+'../image/title_karsima.jpg" border="0"></A><BR>');
document.write('<BR>');

document.write('<SCRIPT>Flash("'+sub_dir+'../flash/sidebar_karsima.swf",139,300)</SCRIPT><BR>');
document.write('<BR>');
document.write('<A href="'+sub_dir+'../../labo/kahaku/index.html"><IMG src="'+sub_dir+'../image/banner_kahaku_c08.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<A href="'+sub_dir+'../../labo/inquiry/campaign/index.html"><IMG src="'+sub_dir+'../image/banner_campaign.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<SCRIPT>Flash("'+sub_dir+'../flash/banner_camera.swf",139,50)</SCRIPT><BR>');
document.write('<BR>');
document.write('    </DIV>');
document.write('    </DIV></DIV>');
}





function sidemenu_megane(sub_num){
var sub_dir;
if(sub_num == 0){sub_dir="./";}
if(sub_num >= 1){sub_dir="../";for(i=0; i<sub_num-1; i++){sub_dir="../"+sub_dir;}}
document.write('    <DIV class="side_menu_00"><DIV style="padding:5px;">');
document.write('    <DIV class="side_menu_02">');
document.write('<A href="'+sub_dir+'index.htm"><IMG src="'+sub_dir+'../image/title_shibata.jpg" border="0"></A><BR>');
document.write('<BR>');

document.write('<SCRIPT>Flash("'+sub_dir+'../flash/sidebar_shibata.swf",139,300)</SCRIPT><BR>');
document.write('<BR>');
document.write('<A href="'+sub_dir+'../../labo/kahaku/index.html"><IMG src="'+sub_dir+'../image/banner_kahaku_c08.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<A href="'+sub_dir+'../../labo/inquiry/campaign/index.html"><IMG src="'+sub_dir+'../image/banner_campaign.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<SCRIPT>Flash("'+sub_dir+'../flash/banner_camera.swf",139,50)</SCRIPT><BR>');
document.write('<BR>');
document.write('    </DIV>');
document.write('    </DIV></DIV>');
}







function sidemenu_babatti(sub_num){
var sub_dir;
if(sub_num == 0){sub_dir="./";}
if(sub_num >= 1){sub_dir="../";for(i=0; i<sub_num-1; i++){sub_dir="../"+sub_dir;}}
document.write('    <DIV class="side_menu_00"><DIV style="padding:5px;">');
document.write('    <DIV class="side_menu_02">');
document.write('<A href="'+sub_dir+'index.html"><IMG src="'+sub_dir+'../image/title_babatti.jpg" border="0"></A><BR>');
document.write('<BR>');

document.write('<SCRIPT>Flash("'+sub_dir+'../flash/sidebar_babatti.swf",139,300)</SCRIPT><BR>');
document.write('<BR>');
document.write('<A href="'+sub_dir+'../../labo/kahaku/index.html"><IMG src="'+sub_dir+'../image/banner_kahaku_c08.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<A href="'+sub_dir+'../../labo/inquiry/campaign/index.html"><IMG src="'+sub_dir+'../image/banner_campaign.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<SCRIPT>Flash("'+sub_dir+'../flash/banner_camera.swf",139,50)</SCRIPT><BR>');
document.write('<BR>');
document.write('    </DIV>');
document.write('    </DIV></DIV>');
}



function sidemenu_babatti_index(sub_num){
var sub_dir;
if(sub_num == 0){sub_dir="./";}
if(sub_num >= 1){sub_dir="../";for(i=0; i<sub_num-1; i++){sub_dir="../"+sub_dir;}}
document.write('    <DIV class="side_menu_00"><DIV style="padding:5px;">');
document.write('    <DIV class="side_menu_02">');
document.write('<A href="'+sub_dir+'index.html"><IMG src="'+sub_dir+'../image/title_babatti.jpg"></A><BR>');
document.write('<BR>');

document.write('<SCRIPT>Flash("'+sub_dir+'../flash/sidebar_babatti.swf",139,300)</SCRIPT><BR>');
document.write('<BR>');
document.write('<A href="'+sub_dir+'../../labo/kahaku/index.html"><IMG src="'+sub_dir+'../image/banner_kahaku_c08.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<A href="'+sub_dir+'../../labo/inquiry/campaign/index.html"><IMG src="'+sub_dir+'../image/banner_campaign.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<SCRIPT>Flash("'+sub_dir+'../flash/banner_camera.swf",139,50)</SCRIPT><BR>');
document.write('<BR>');
document.write('    </DIV>');
document.write('    </DIV></DIV>');
}




function sidemenu_kahaku(sub_num){
var sub_dir;
if(sub_num == 0){sub_dir="./";}
if(sub_num >= 1){sub_dir="../";for(i=0; i<sub_num-1; i++){sub_dir="../"+sub_dir;}}
document.write('    <DIV class="side_menu_00"><DIV style="padding:5px;">');
document.write('    <DIV class="side_menu_02">');
document.write('<A href="'+sub_dir+'index.html"><IMG src="'+sub_dir+'../image/title_kahaku.jpg" border="0"></A><BR>');
document.write('<BR>');

document.write('<SCRIPT>Flash("'+sub_dir+'../flash/sidebar_kahaku.swf",139,300)</SCRIPT><BR>');
document.write('<BR>');
document.write('<A href="'+sub_dir+'../../labo/kahaku/index.html"><IMG src="'+sub_dir+'../image/banner_kahaku_c08.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<A href="'+sub_dir+'../../labo/inquiry/campaign/index.html"><IMG src="'+sub_dir+'../image/banner_campaign.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<SCRIPT>Flash("'+sub_dir+'../flash/banner_camera.swf",139,50)</SCRIPT><BR>');
document.write('<BR>');
document.write('    </DIV>');
document.write('    </DIV></DIV>');
}






function sidemenu_kahaku_index(sub_num){
var sub_dir;
if(sub_num == 0){sub_dir="./";}
if(sub_num >= 1){sub_dir="../";for(i=0; i<sub_num-1; i++){sub_dir="../"+sub_dir;}}
document.write('    <DIV class="side_menu_00"><DIV style="padding:5px;">');
document.write('    <DIV class="side_menu_02">');
document.write('<A href="'+sub_dir+'index.html"><IMG src="'+sub_dir+'../image/title_kahaku.jpg" border="0"></A><BR>');
document.write('<BR>');

document.write('<SCRIPT>Flash("'+sub_dir+'../flash/sidebar_kahaku.swf",139,300)</SCRIPT><BR>');
document.write('<BR>');
document.write('<A href="'+sub_dir+'../../labo/kahaku/index.html"><IMG src="'+sub_dir+'../image/banner_kahaku_c08.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<A href="'+sub_dir+'../../labo/inquiry/campaign/index.html"><IMG src="'+sub_dir+'../image/banner_campaign.png" border="0" style="margin:1px 0px 2px 0px;"></A><BR>');
document.write('<SCRIPT>Flash("'+sub_dir+'../flash/banner_camera.swf",139,50)</SCRIPT><BR>');
document.write('<BR>');
document.write('    </DIV>');
document.write('    </DIV></DIV>');
}









// 呼び出しは、<SCRIPT>sidemenu_xxxxxx()</SCRIPT>で
// ↓↓↓テンプレート↓↓↓


function sidemenu_(){
document.write('    <DIV class="side_menu_00">');
document.write('    <DIV class="side_menu_01">所長室<BR>遠山博士のお話し</DIV>');
document.write('    <HR noshade size="1">');
document.write('    <DIV class="side_menu_02">');
document.write('<BR>');

document.write('<BR>');
document.write('    </DIV>');
document.write('    </DIV>');
}










