//
//
function menuOver(id) {
	var btn_menu = document.getElementById(id);
	btn_menu.style.backgroundImage = "url('images/menu_over.gif')";
}

function menuOut(id) {
	var btn_menu = document.getElementById(id);
	btn_menu.style.backgroundImage = "url('images/menu_out.gif')";
}

function menuDown(id) {
	var btn_menu = document.getElementById(id);
	btn_menu.style.backgroundImage = "url('images/menu_down.gif')";
}

function menuCur(id) {
	var btn_menu = document.getElementById(id);
	btn_menu.style.backgroundImage = "url('images/menu_over.gif')";
}

function btnMenu(m, s) {
	if(m == 1 && s == 0) {
		location.href = 'products.shtml';
	}
	else if(m == 1 && s == 1) {
		location.href = 'products.shtml';
	}
	else if(m == 1 && s == 2) {
		location.href = 'products_list.shtml';
	}
	else if(m == 2 && s == 0) {
		location.href = 'factory.shtml';
	}
	else if(m == 3 && s == 0) {
		location.href = 'outline_president.shtml';
	}
	else if(m == 3 && s == 1) {
		location.href = 'outline_president.shtml';
	}
	else if(m == 3 && s == 2) {
		location.href = 'outline_company.shtml';
	}
	else if(m == 3 && s == 3) {
		location.href = 'outline_history.shtml';
	}
	else if(m == 4 && s == 0) {
		location.href = 'staff.shtml';
	}
	else if(m == 5 && s == 0) {
		location.href = 'mailto:k_d_k@nifty.com?Subject==?ISO-2022-JP?B?GyRCJCpMZCQkOWckbyQ7GyhC?=';
	}
}

function productsMore(i) {
	var no = '';
	if(i == 1) { no =  '01'; }
	else if(i == 2) { no = '02'; }
	else if(i == 3) { no = '03'; }
	else if(i == 4) { no = '04'; }
	else if(i == 5) { no = '05'; }
	else if(i == 6) { no = '06'; }
	else if(i == 7) { no = '07'; }

	var url = 'products_item_' + no + '.shtml';
	var w = window.open(url, 'products_item', 'scrollbars=0, resize=0, width=800, height=470');
	w.focus();
}

function accessMap(i) {
	var no = '';
	if(i == 1) { no =  '01'; }
	else if(i == 2) { no = '02'; }

	var url = 'factory_map_' + no + '.shtml';
	var w = window.open(url, 'factory_map', 'scrollbars=0, resize=0, width=800, height=470');
	w.focus();
}

function staffMenu() {
	var w = window.open('staff_menu.shtml', 'staff_menu', 'scrollbars=0, resize=0, width=800, height=600');
	w.focus();
}

function staffMore(i) {
	var no = '';
	if(i == 1) { no =  '01'; }
	else if(i == 2) { no = '02'; }
	else if(i == 3) { no = '03'; }
	else if(i == 4) { no = '04'; }

	var url = 'staff_' + no + '.shtml';
	var w = window.open(url, 'staff', 'scrollbars=0, resize=0, width=800, height=600');
	w.focus();
}

