
    sAgent = navigator.userAgent;
    bIsMac = sAgent.indexOf("Mac") > -1;    
    bIsIE = sAgent.indexOf("MSIE") > -1;
    bIsIE4 = sAgent.indexOf("IE 4") > -1;
    bIsIE5 = sAgent.indexOf("IE 5")  > -1;
	bIsIE6 = sAgent.indexOf("IE 6")  > -1;
	bIsNav = sAgent.indexOf("Mozilla") > -1 && !bIsIE;

// IE7,8用変数追加
	bIsIE7 = sAgent.indexOf("IE 7")  > -1;
	bIsIE8 = sAgent.indexOf("IE 8")  > -1;
	bDoesAll = (bIsIE4 || bIsIE5 || bIsIE6 || bIsIE7 || bIsIE8) && !bIsMac;

//	bDoesAll = (bIsIE4 || bIsIE5 || bIsIE6) && !bIsMac;

	if (bDoesAll){
		document.write("<LINK REL=STYLESHEET HREF=\"/css/b01.css\" TYPE=\"text/css\">");
		document.write("<STYLE>");
		document.write("<<!-->");
		document.write("<A:hover        {color: FF0000}>");
		document.write("<//-->>");
		document.write("</STYLE>");
	}else{
		if (bIsMac){
			document.write("<LINK REL=STYLESHEET HREF=\"/css/b01.css\" TYPE=\"text/css\">");
		}else{
			;
		}   
	}

function tier1Menu(objMenu,objImage) {
	if (bDoesAll | bIsMac) {
		if (objMenu.style.display == "none") {
			objMenu.style.display = "";
//imageフォルダの指定方法に注意(　「/」は入れない)
			objImage.src = "image/buhin/minus2.gif";
		}else {
			objMenu.style.display = "none";
			objImage.src = "image/buhin/plus2.gif";
		}
	}
}

function tier1Menu2(objMenu,objImage) {
	if (bDoesAll | bIsMac) {
		if (objMenu.style.display == "none") {
			objMenu.style.display = "";
			objImage.src = "image/buhin/minus.gif";
		}else {
			objMenu.style.display = "none";
			objImage.src = "image/buhin/plus.gif";
		}
	}
}


