//JAVASCRIPが使えるかチェックここからb_name = navigator.appName;b_ver = parseInt(navigator.appVersion);js_flag = "no";if (b_name == "Netscape" && b_ver >= 3) js_flag = "yes";else if (b_name == "Microsoft Internet Explorer" && b_ver >= 4) js_flag = "yes";//JAVASCRIPが使えるかチェックここまで//サブウィンドウ生成用の共通スクリプトここからfunction subwindow(url,name,winsize) {	open_window = window.open(url, name,winsize + ",toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no");	open_window.focus();}//サブウィンドウ生成用の共通スクリプトここまで//ウィンドウ生成用の共通スクリプトここからfunction submainwindow(url,name,winsize) {	open_window = window.open(url, name,winsize + ",toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,resizable=yes,menubar=yes");	open_window.focus();}//ウィンドウ生成用の共通スクリプトここまで//ウィンドウcloseの共通スクリプトここからfunction windowCloser(){window.close()}//ウィンドウcloseの共通スクリプトここまで//共通仕様の表示画像の準備スクリプトここからfunction PreloadImages(length, path, type) {    for(var i = 1; i<=length; i++) {        this[i]= new Image()        this[i].src= path + i + type    }    return this}//共通仕様の表示画像の準備スクリプトここまで//ボタン反転用スクリプト群 ここから	var initFlg = false;	var onMenu;	var onGmenu;	function init() {		// メニュー分		menu = new Array(10);		menu[1] = new Buttons("mmb01", document.mmb01, "images/menu_b01_on.gif", "images/menu_b01_off.gif");		menu[2] = new Buttons("mmb02", document.mmb02, "images/menu_b02_on.gif", "images/menu_b02_off.gif");		menu[3] = new Buttons("mmb03", document.mmb03, "images/menu_b03_on.gif", "images/menu_b03_off.gif");		menu[4] = new Buttons("mmb04", document.mmb04, "images/menu_b04_on.gif", "images/menu_b04_off.gif");		menu[5] = new Buttons("mmb05", document.mmb05, "images/menu_b05_on.gif", "images/menu_b05_off.gif");		menu[6] = new Buttons("mmb06", document.mmb06, "images/menu_b06_on.gif", "images/menu_b06_off.gif");		menu[7] = new Buttons("mmb07", document.mmb07, "images/menu_b07_on.gif", "images/menu_b07_off.gif");		menu[8] = new Buttons("mmb08", document.mmb08, "images/menu_b08_on.gif", "images/menu_b08_off.gif");		menu[9] = new Buttons("mmb09", document.mmb09, "images/menu_b09_on.gif", "images/menu_b09_off.gif");		menu[10] = new Buttons("mmb10", document.mmb010, "images/menu_b010_on.gif", "images/menu_b010_off.gif");		// 現在のメニュー反転用		ButtonOn(menu[now_menu]);		menu[0] = menu[now_menu];}// ボタン定義function Buttons(name, object, onimage, offimage) {	this.name = name;	this.object = object;	this.onImage = new Image();	this.onImage.src = onimage;	this.offImage = new Image();	this.offImage.src = offimage;}// ボタンオン処理function ButtonOn(button) {//	alert(object);	button.object.src = button.onImage.src;}// ボタンオフ処理function ButtonOff(button) {//	alert(object);	button.object.src = button.offImage.src;}// ボタン全クリア処理function ButtonClear(buttonArray) {	for (i = 1; i <= buttonArray.length; i ++) {		if (buttonArray[i] && (!buttonArray[0] || buttonArray[0].object.name != buttonArray[i].object.name)) {			buttonArray[i].object.src = buttonArray[i].offImage.src;		}	}}//ボタン反転用スクリプト群 ここまで//TOPボタンの反転スクリプトここからtbon=new PreloadImages(10,'images/t_bt0','_on.gif')tboff=new PreloadImages(10,'images/t_bt0','_off.gif')function t_bt_off(num){if (js_flag == "yes" && num>0) {document.images["TBT_0"+num].src=tboff[num].src;}}function t_bt_on(num){if (js_flag == "yes" && num>0) {document.images["TBT_0"+num].src=tbon[num].src;}}//TOPボタンの反転スクリプトここまで//レンタカー01ボタンの反転スクリプトここからm01bon=new PreloadImages(4,'images/m01_bt0','_on.gif')m01boff=new PreloadImages(4,'images/m01_bt0','_off.gif')function m01_bt_off(num){if (js_flag == "yes" && num>0) {document.images["M01BT_0"+num].src=m01boff[num].src;}}function m01_bt_on(num){if (js_flag == "yes" && num>0) {document.images["M01BT_0"+num].src=m01bon[num].src;}}//レンタカー01ボタンの反転スクリプトここまで//レンタカー02ボタンの反転スクリプトここからm02bon=new PreloadImages(4,'images/m01_bt0','_on.gif')m02boff=new PreloadImages(4,'images/m01_bt0','_off.gif')function m02_bt_off(num){if (js_flag == "yes" && num>0) {document.images["M02BT_0"+num].src=m02boff[num].src;}}function m02_bt_on(num){if (js_flag == "yes" && num>0) {document.images["M02BT_0"+num].src=m02bon[num].src;}}//レンタカー02ボタンの反転スクリプトここまで
