/* ---- それぞれトップページまでのパスを設定 ---- */
/* ---- トップページからのパス ---- */
var top_path = "http://www.rushball.com/2009/";


/* ---- スタッフダイアリーからのパス ---- */
var staff_path = "http://www.rushball.com/2009/";


/* ---- ライブレポートからのパス ---- */
var live_path = "http://www.rushball.com/2009/";

/* ---- 他ページからのパス ---- */
var page_path = "../";

/* ---- スタッフダイアリーURL（要変更） ---- */
var staff_url = "http://blog.rushball.com/diary/";

/* ---- 公開ページ設定 公開時trueに変更---- */
var artit_page = true;
var timetable_page = true;
var areamap_page = true;
var notice_page = true;
var goods_page = true;







function navi_write() {

var path;
/* ---- bodyclass取得 ---- */
if(navigator.userAgent.indexOf("MSIE") != -1){
	var class_name = document.body.getAttribute("class");
}else{
	var class_name = document.body.getAttribute("class");
}

if(class_name=='home') { path=top_path; }
else if(class_name=='roomblog') { path=staff_path; }
else if(class_name=='staffdiary') { path=staff_path; }
else if(class_name=='livereport') { path=live_path; }

else { path=page_path; }


/* ---- staffdiaryメニュー ---- */
 document.open();
 document.writeln(' <ul><li id="staff_menu"><a href="' + staff_url + '"><img src="' + path + 'images/t_menu_std_03_off.gif" width="115" height="20" alt="STAFFDIARY" /></a></li></ul> ');
 
 document.writeln(' <div id="toc_container"><ul id="root_toc"> ');
 
 document.writeln(' <li class="plist" id="n_home"><a href="' + path + '"><img src="' + path + 'images/t_menu_00_off.gif" width="76" height="38" alt="HOME" /></a></li> ');


/* ---- guidelineメニュー ---- */
 if(class_name=='home') {
	 document.writeln(' <li class="plist"><a href="' + path + 'guideline/index.html"><img src="' + path + 'images/t_menu_01_off.gif" width="76" height="38" alt="GUIDELINE" /></a> ');

} else {
	 if(class_name=='guideline') {
	 document.writeln(' <li class="plist"><a href="' + path + 'guideline/index.html"><img src="' + path + 'images/t_menu_0101_on.gif" width="76" height="38" alt="GUIDELINE" /></a> ');
	} else {
	 document.writeln(' <li class="plist"><a href="' + path + 'guideline/index.html"><img src="' + path + 'images/t_menu_0101_off.gif" width="76" height="38" alt="GUIDELINE" /></a> ');
	}	
}
 document.writeln(' <ul><li><a href="' + path + 'guideline/index.html#rb09"><img src="' + path + 'images/sub_menu_04_off.gif" width="76" height="20" alt="RB09" /></a></li><li><a href="' + path + 'guideline/index.html#rbr"><img src="' + path + 'images/sub_menu_01_off.gif" width="76" height="20" alt="RB☆R" /></a></li><li><a href="' + path + 'guideline/index.html#greeting"><img src="' + path + 'images/sub_menu_02_off.gif" width="76" height="20" alt="ごあいさつ" /></a></li><li><a href="' + path + 'guideline/index03.html"><img src="' + path + 'images/sub_menu_03_off.gif" width="76" height="20" alt="HISTORY" /></a></li></ul></li> ');
 
 
/* ---- artistメニュー ---- */
 if(class_name=='artist') {
 document.writeln(' <li class="plist"><a href="' + path + 'artist/"><img src="' + path + 'images/t_menu_02_on.gif" width="76" height="38" alt="ARTIST" /></a> ');
}else {
 document.writeln(' <li class="plist"><a href="' + path + 'artist/"><img src="' + path + 'images/t_menu_02_off.gif" width="76" height="38" alt="ARTIST" /></a> ');	
}
 document.writeln(' <ul><li><a href="' + path + 'artist/index.html#rb09"><img src="' + path + 'images/sub_menu_04_off.gif" width="76" height="20" alt="RB09" /></a></li><li><a href="' + path + 'artist/index.html#rbr"><img src="' + path + 'images/sub_menu_01_off.gif" width="76" height="20" alt="RB☆R" /></a></li></ul></li> ');

/* ---- ticketメニュー ---- */
 if(class_name=='ticket') {
 document.writeln(' <li class="plist"><a href="' + path + 'ticket/"><img src="' + path + 'images/t_menu_03_on.gif" width="76" height="38" alt="TICKET" /></a> ');
 }else {
 document.writeln(' <li class="plist"><a href="' + path + 'ticket/"><img src="' + path + 'images/t_menu_03_off.gif" width="76" height="38" alt="TICKET" /></a> ');
 }
 document.writeln(' <ul><li><a href="' + path + 'ticket/index.html#rb09"><img src="' + path + 'images/sub_menu_04_off.gif" width="76" height="20" alt="RB09" /></a></li><li><a href="' + path + 'ticket/index.html#rbr"><img src="' + path + 'images/sub_menu_01_off.gif" width="76" height="20" alt="RB☆R" /></a></li></ul></li> ');

/* ---- timetableメニュー ---- */
  if(class_name=='timetable') {
 	document.writeln(' <li class="plist"><a href="' + path + 'timetable/"><img src="' + path + 'images/t_menu_04_on.gif" width="76" height="38" alt="TIMETABLE" /></a></li> ');
}	else if(!timetable_page) {
 	document.writeln(' <li class="plist"><img src="' + path + 'images/t_menu_04_false.gif" width="76" height="38" alt="TIMETABLE" /></li> ');	
} else {
 	document.writeln(' <li class="plist"><a href="' + path + 'timetable/"><img src="' + path + 'images/t_menu_04_off.gif" width="76" height="38" alt="TIMETABLE" /></a></li> ');
	}


/* ---- areamapメニュー ---- */
  if(class_name=='areamap') {
 	document.writeln(' <li class="plist"><a href="' + path + 'areamap/"><img src="' + path + 'images/t_menu_05_on.gif" width="76" height="38" alt="AREAMAP" /></a></li> ');
}	else if(!areamap_page) {
 	document.writeln(' <li class="plist"><img src="' + path + 'images/t_menu_05_false.gif" width="76" height="38" alt="AREAMAP" /></li> ');	
} else {
 	document.writeln(' <li class="plist"><a href="' + path + 'areamap/"><img src="' + path + 'images/t_menu_05_off.gif" width="76" height="38" alt="AREAMAP" /></a></li> ');
	}


/* ---- accessメニュー ---- */
 if(class_name=='access') {
 document.writeln(' <li class="plist"><a href="' + path + 'access/"><img src="' + path + 'images/t_menu_06_on.gif" width="76" height="38" border="0" alt="ACCESS" /></a> ');
 }else {
 document.writeln(' <li class="plist"><a href="' + path + 'access/"><img src="' + path + 'images/t_menu_06_off.gif" width="76" height="38" border="0" alt="ACCESS" /></a> ');
 }
document.writeln(' <ul><li><a href="' + path + 'access/index.html#rb09"><img src="' + path + 'images/sub_menu_04_off.gif" width="76" height="20" alt="RB09" /></a></li><li><a href="' + path + 'access/index.html#rbr"><img src="' + path + 'images/sub_menu_01_off.gif" width="76" height="20" alt="RB☆R" /></a></li></ul></li> ');


/* ---- noticeメニュー ---- */
   if(class_name=='notice') {
 	document.writeln(' <li class="plist"><a href="' + path + 'notice/"><img src="' + path + 'images/t_menu_07_on.gif" width="76" height="38" alt="NOTICE" /></a> ');
}	else if(!notice_page) {
 	document.writeln(' <li class="plist"><img src="' + path + 'images/t_menu_07_false.gif" width="76" height="38" alt="NOTICE" /> ');
} else {
 	document.writeln(' <li class="plist"><a href="' + path + 'notice/"><img src="' + path + 'images/t_menu_07_off.gif" width="76" height="38" alt="NOTICE" /></a> ');
	}
document.writeln(' <ul><<li><a href="' + path + 'notice/index.html#rb09"><img src="' + path + 'images/sub_menu_04_off.gif" width="76" height="20" alt="RB09" /></a></li><li><a href="' + path + 'notice/index.html#rbr"><img src="' + path + 'images/sub_menu_01_off.gif" width="76" height="20" alt="RB☆R" /></a></li></ul></li> ');


/* ---- goodsメニュー ---- */
	 if(class_name=='goods') {
 	document.writeln(' <li class="plist"><a href="' + path + 'goods/"><img src="' + path + 'images/t_menu_08_on.gif" width="76" height="38" alt="GOODS" /></a> ');
}	else if(!goods_page) {
 	document.writeln(' <li class="plist"><img src="' + path + 'images/t_menu_08_false.gif" width="76" height="38" alt="GOODS" /></li> ');
} else {
 	document.writeln(' <li class="plist"><a href="' + path + 'goods/"><img src="' + path + 'images/t_menu_08_off.gif" width="76" height="38" alt="GOODS" /></a> ');
	}
document.writeln(' <ul><li><a href="' + path + 'goods/index.html#rb09"><img src="' + path + 'images/sub_menu_04_off.gif" width="76" height="20" alt="RB09" /></a></li><li><a href="' + path + 'goods/index.html#rbr"><img src="' + path + 'images/sub_menu_01_off.gif" width="76" height="20" alt="RB☆R" /></a></li></ul></li> ');


 document.writeln(' </ul></div> ');
 document.close();

}
















