
var menu_flag=1;
var menulength = 10;
if (document.images) {
menu_1_on=new Image(); menu_1_on.src="contents/images/home_btn_b.gif";
menu_2_on=new Image(); menu_2_on.src="contents/images/web_btn_b.gif";
menu_3_on=new Image(); menu_3_on.src="contents/images/prg_btn_b.gif";
menu_4_on=new Image(); menu_4_on.src="contents/images/brband_btn_b.gif";
menu_5_on=new Image(); menu_5_on.src="contents/images/graph_btn_b.gif";
menu_6_on=new Image(); menu_6_on.src="contents/images/profile_btn_b.gif";
menu_7_on=new Image(); menu_7_on.src="contents/images/recruit_btn_b.gif";
menu_8_on=new Image(); menu_8_on.src="contents/images/contact_btn_b.gif";
menu_9_on=new Image(); menu_9_on.src="contents/images/people_btn_b.gif";
menu_10_on=new Image(); menu_10_on.src="contents/images/bbs_btn_b.gif";

menu_1=new Image(); menu_1.src="contents/images/home_btn.gif";
menu_2=new Image(); menu_2.src="contents/images/web_btn.gif";
menu_3=new Image(); menu_3.src="contents/images/prg_btn.gif";
menu_4=new Image(); menu_4.src="contents/images/brband_btn.gif";
menu_5=new Image(); menu_5.src="contents/images/graph_btn.gif";
menu_6=new Image(); menu_6.src="contents/images/profile_btn.gif";
menu_7=new Image(); menu_7.src="contents/images/recruit_btn.gif";
menu_8=new Image(); menu_8.src="contents/images/contact_btn.gif";
menu_9=new Image(); menu_9.src="contents/images/people_btn.gif";
menu_10=new Image(); menu_10.src="contents/images/bbs_btn.gif";

tomenu_1=new Image(); tomenu_1.src="contents/images/to_home.gif";
tomenu_2=new Image(); tomenu_2.src="contents/images/to_web.gif";
tomenu_3=new Image(); tomenu_3.src="contents/images/to_program.gif";
tomenu_4=new Image(); tomenu_4.src="contents/images/to_brband.gif";
tomenu_5=new Image(); tomenu_5.src="contents/images/to_graph.gif";
tomenu_6=new Image(); tomenu_6.src="contents/images/to_profile.gif";
tomenu_7=new Image(); tomenu_7.src="contents/images/to_recruit.gif";
tomenu_8=new Image(); tomenu_8.src="contents/images/to_contact.gif";
tomenu_9=new Image(); tomenu_9.src="contents/images/to_people.gif";
tomenu_10=new Image(); tomenu_10.src="contents/images/to_bbs.gif";

}

if (document.layers) {
	visible = 'show';
	hidden = 'hiden';n=1;ie=0;
} else if (document.all) {
	visible = 'visible';
	hidden = 'hidden';n=0;ie=1;
}


function fuck(menuno){
menu_flag = menuno;
refreshmenu(menu_flag);
}
function refreshmenu(menu_flag){
	for(i=1;i<11;i++){
	Name = 'menu_' + i;
		if(menu_flag != i){
			document[Name].src=eval(Name+".src");
			reveal('contents',menu_flag);
		}
	}
}

function mover(Name,menuno){
	document[Name].src=eval(Name+"_on.src");
	document.tomenu.src=eval("to"+Name+".src");
	reveal('contents',menuno);
}

function mout(Name,menuno){
	if(menu_flag != menuno){
		document[Name].src=eval(Name+".src");
		document.tomenu.src=eval("tomenu_"+menu_flag+".src");
		reveal('contents',menu_flag);
	}
//status = 'falg=' + menu_flag + ':' + 'menuno=' + menuno;
}

function reveal (menunameit,mennum)
{
	if (navigator.appName.indexOf ("Microsoft") == 0 || navigator.appName.indexOf ("Netscape") == 0) {
		if (parseInt (navigator.appVersion) >= 4) {

			var loop = 0;
			for (loop = 1; loop <= menulength; loop++) {
				var menucycle = menunameit +loop;
				var menuon = menunameit + mennum;

				if (ie) {
					if (menucycle == menuon){
						document.all(menuon).style.visibility = visible;
					}else{
						document.all(menucycle).style.visibility = hidden;
					}
				}

				if (n) {
					if (menucycle == menuon){
						document.layers[menuon].visibility = visible;
					}else{
						document.layers[menucycle].visibility = hidden;
					}
				}

			}
		}
	}
}

var ver = parseFloat (navigator.appVersion);

if ((navigator.appName.indexOf ("Netscape") == 0) && (ver >= 4.08)) {
} else if ((navigator.appName.indexOf ("Mozilla") == 0) && (ver >= 5)) {
} else if ((navigator.appName.indexOf ("Microsoft") == 0) && (ver >= 4)) {
} else {
	location="oldbrowser.html";
}

