// メインナビにあるサブメニュー表示機能var submenuIO = 0;var default_submenu = null;var current_menu = null;var current_submenu = null;function menusOff() {	current_submenu.style.display = 'none';	submenuIO = 0;}function showSubmenu(menuID) {	if (browser_test != 1) return;	var menu = document.getElementById(menuID);	if (submenuIO == 1 && current_submenu != null) {		menusOff();	}	var submenuID = menuID + '-submenu';	if (document.getElementById(submenuID) != null) {		current_submenu = document.getElementById(submenuID);		current_submenu.style.display = 'block';	} else if (default_submenu != null) {		default_submenu.style.display = 'block';		current_submenu = default_submenu;	}	submenuIO = 1;	current_menu = menu;	return;}function browserCheck() {	var app = navigator.appName.toLowerCase();	var app_v = parseInt(navigator.appVersion);	var ua = navigator.userAgent.toLowerCase();	var plt = navigator.platform.toLowerCase();	var check;	if (window.opera) {		if (ua.indexOf('opera 7') != -1 || ua.indexOf('opera/7') != -1) {			check = 1;		} else if (app.indexOf('opera') != -1 && app_v <= 7) {			check = 0;		} else {			check = 0;		}	} else {		check = 1;	}	return check;}var browser_test;function initNav(submenuID) {	browser_test = browserCheck();	default_submenu = document.getElementById(submenuID);	current_submenu = default_submenu;	submenuIO = 1;}function initPage() {	// do nothing}// カテゴリリストの開閉機能if (!document.getElementById)    document.getElementById = function() { return null; }function initializeMenu(menuId, actuatorId, open) {    var menu = document.getElementById(menuId);    var actuator = document.getElementById(actuatorId);    if (menu == null || actuator == null) return;    if (window.opera) return;    if (open == true) {	menu.style.display = "block";    	actuator.parentNode.style.backgroundImage = "url(../media/i_minus.gif)";    }    actuator.onclick = function() {        var display = menu.style.display;        this.parentNode.style.backgroundImage =            (display == "block") ? "url(../media/i_plus.gif)" : "url(../media/i_minus.gif)";        menu.style.display = (display == "block") ? "none" : "block";        return false;    }}
