/*--- Pull-down Menu ---*/

function jump() {
	aaa=document.menu
			.submenu.selectedIndex;
	bbb=document.menu.submenu
			.options[aaa].value;
	window.location.href=bbb;
	}


function show() {
	document.getElementById("pd_submenu1")
			.style.visibility="visible";
	}
function shut() {
	document.getElementById("pd_submenu1")
			.style.visibility="hidden";
	}

function show2() {
	document.getElementById("pd_submenu2")
			.style.visibility="visible";
	}
function shut2() {
	document.getElementById("pd_submenu2")
			.style.visibility="hidden";
	}
function show3() {
	document.getElementById("pd_submenu3")
			.style.visibility="visible";
	}
function shut3() {
	document.getElementById("pd_submenu3")
			.style.visibility="hidden";
	}
function show4() {
	document.getElementById("pd_submenu4")
			.style.visibility="visible";
	}
function shut4() {
	document.getElementById("pd_submenu4")
			.style.visibility="hidden";
	}

 var brwCheck = false;
if ((document.all && document.selection) ||
    (navigator.product && navigator.product == "Gecko") ||
    (window.opera && document.createEvent)) {
  brwCheck = true;
  document.write("<style type='text/css'> .none { display:none;} <\/style>");
}

/*--- Category Menu ---*/
 function clickMenu(idName, spanObj) {
  if (brwCheck) {
    with (document.all ? document.all(idName).style : document.getElementById(idName).style) {
      if (display == "block") {
        display = "none";
        if (idName == "side1") { spanObj.innerHTML = "<img src='http://www.tachi-s.co.jp/imgs/smenu_newsr01_off.gif' width='194' height='31' alt='ニュースリリース'>"; }
        if (idName == "side2") { spanObj.innerHTML = "<img src='http://www.tachi-s.co.jp/imgs/smenu_company01_off.gif' width='194' height='31' alt='会社情報'>"; }
        if (idName == "side3") { spanObj.innerHTML = "<img src='http://www.tachi-s.co.jp/imgs/smenu_product01_off.gif' width='194' height='31' alt='製品と技術'>"; }
        if (idName == "side4") { spanObj.innerHTML = "<img src='http://www.tachi-s.co.jp/imgs/smenu_ir01_off.gif' width='194' height='31' alt='株主・投資家の皆様へ'>"; }
      } else {
        display = "block";
        if (idName == "side1") { spanObj.innerHTML = "<img src='http://www.tachi-s.co.jp/imgs/smenu_newsr01_on.gif' width='194' height='31' alt='ニュースリリース'>"; }
        if (idName == "side2") { spanObj.innerHTML = "<img src='http://www.tachi-s.co.jp/imgs/smenu_company01_on.gif' width='194' height='31' alt='会社情報'>"; }
        if (idName == "side3") { spanObj.innerHTML = "<img src='http://www.tachi-s.co.jp/imgs/smenu_product01_on.gif' width='194' height='31' alt='製品と技術'>"; }
        if (idName == "side4") { spanObj.innerHTML = "<img src='http://www.tachi-s.co.jp/imgs/smenu_ir01_on.gif' width='194' height='31' alt='株主・投資家の皆様へ'>"; }
      }
    }
  }
}
 