<!-- タブメニュー背景入替 -->
<!-- デスクトップ、アプリケーション用 -->

isNS6 = navigator.appName.charAt(0) == "N" && navigator.appVersion.charAt(0) == 5;
cursortype = isNS6?'pointer':'hand';
	
function bgimgch1(on,id1,id2,id3){
	if(document.getElementById){ // IE5,IE6,NN6
		if(on){
			document.getElementById(id1).style.backgroundImage='url('+ tabUrl +'tab_on.jpg)';
			document.getElementById(id2).style.backgroundImage='url('+ tabUrl +'tab_on.jpg)';
			document.getElementById(id3).style.backgroundImage='url('+ tabUrl +'tab_on.jpg)';
			document.getElementById(id1).style.cursor=cursortype;
			document.getElementById(id2).style.cursor=cursortype;
			document.getElementById(id3).style.cursor=cursortype;
		}else{
			document.getElementById(id1).style.backgroundImage='url('+ tabUrl +'tab_off.jpg)';
			document.getElementById(id2).style.backgroundImage='url('+ tabUrl +'tab_off.jpg)';
			document.getElementById(id3).style.backgroundImage='url('+ tabUrl +'tab_off.jpg)';
			document.getElementById(id1).style.cursor="default";
			document.getElementById(id2).style.cursor="default";
			document.getElementById(id3).style.cursor="default";
		}
	} else if (document.all){ // IE4
		if(on){
			document.all(id1).style.backgroundImage='url('+ tabUrl +'tab_on.jpg)';
			document.all(id2).style.backgroundImage='url('+ tabUrl +'tab_on.jpg)';
			document.all(id3).style.backgroundImage='url('+ tabUrl +'tab_on.jpg)';
			document.all(id1).style.cursor="hand";
			document.all(id2).style.cursor="hand";
			document.all(id3).style.cursor="hand";
		}else{
			document.all(id1).style.backgroundImage='url('+ tabUrl +'tab_off.jpg)';
			document.all(id2).style.backgroundImage='url('+ tabUrl +'tab_off.jpg)';
			document.all(id3).style.backgroundImage='url('+ tabUrl +'tab_off.jpg)';
			document.getElementById(id1).style.cursor="default";
			document.getElementById(id2).style.cursor="default";
			document.getElementById(id3).style.cursor="default";
		}
	}
}

<!-- デスクトップ管理／アプリケーション管理部用 -->
function bgimgch2(on,id1,id2,id3){
	if(document.getElementById){ // IE5,IE6,NN6
		if(on){
			document.getElementById(id1).style.backgroundImage='url('+ tabUrl +'tab_on2.jpg)';
			document.getElementById(id2).style.backgroundImage='url('+ tabUrl +'tab_on2.jpg)';
			document.getElementById(id3).style.backgroundImage='url('+ tabUrl +'tab_on2.jpg)';
			document.all(id1).style.cursor=cursortype;
			document.all(id2).style.cursor=cursortype;
			document.all(id3).style.cursor=cursortype;
		}else{
			document.getElementById(id1).style.backgroundImage='url('+ tabUrl +'tab_off2.jpg)';
			document.getElementById(id2).style.backgroundImage='url('+ tabUrl +'tab_off2.jpg)';
			document.getElementById(id3).style.backgroundImage='url('+ tabUrl +'tab_off2.jpg)';
			document.getElementById(id1).style.cursor="default";
			document.getElementById(id2).style.cursor="default";
			document.getElementById(id3).style.cursor="default";
		}
	} else if (document.all){ // IE4
		if(on){
			document.all(id1).style.backgroundImage='url('+ tabUrl +'tab_on2.jpg)';
			document.all(id2).style.backgroundImage='url('+ tabUrl +'tab_on2.jpg)';
			document.all(id3).style.backgroundImage='url('+ tabUrl +'tab_on2.jpg)';
			document.all(id1).style.cursor="hand";
			document.all(id2).style.cursor="hand";
			document.all(id3).style.cursor="hand";
		}else{
			document.all(id1).style.backgroundImage='url('+ tabUrl +'tab_off2.jpg)';
			document.all(id2).style.backgroundImage='url('+ tabUrl +'tab_off2.jpg)';
			document.all(id3).style.backgroundImage='url('+ tabUrl +'tab_off2.jpg)';
			document.getElementById(id1).style.cursor="default";
			document.getElementById(id2).style.cursor="default";
			document.getElementById(id3).style.cursor="default";
		}
	}
}