chMenu=0;subMenu=0;
function subopen(tName){
	tMenu=(document.all)?document.all(tName).style:document.getElementById(tName).style;
	if(tName.substring(0, 3)!="sub"){
	  if(chMenu)chMenu.display="none";
	  if(subMenu){subMenu.display="none";subMenu=0;}
	  if(chMenu==tMenu){chMenu=0;}
	  else{chMenu=tMenu;
	  tMenu.display="block";}
	}else{
	  if(subMenu)subMenu.display="none";
	  if(subMenu==tMenu){subMenu=0;}
	  else{subMenu=tMenu;
	  tMenu.display="block";}
	}
}

//IFrameの切り替え(02)
function ifraChange(mapId,imgfilename,ifraId,imgId) {
	if(document.getElementById) {
		document.getElementById(ifraId).src = mapId + '.html';
		document.getElementById(imgId).src= imgfilename;
	}
}


//背景色・イメージを変える----------------------------------------------
function overBackground(t_id,maru) {
	if(document.getElementById){
		  document.getElementById(t_id+1).src="../img/menu_t1_a.gif";
		  document.getElementById(t_id+2).style.backgroundImage ='url(../img/menu_t1_b.gif)';
		  document.getElementById(t_id+3).src="../img/menu_t1_c.gif";
		  document.getElementById(maru).src="../img/maru_on.gif";
	}
}
function outBackground(t_id,maru) {
	if(document.getElementById){
		  document.getElementById(t_id+1).src="../img/menu_t0_a.gif";
		  document.getElementById(t_id+2).style.backgroundImage ='url(../img/menu_t0_b.gif)';
		  document.getElementById(t_id+3).src="../img/menu_t0_c.gif";
		  document.getElementById(maru).src="../img/maru.gif";
	}
}

//------------------------------------------------------------
function openWin(WO){
 	var newWin;
	newWin = window.open(WO,"","titlebar=no,toolbar=no,location=no,directories=no,scrollbars=yes,resizable=yes,statusbars=no,status=no,menubar=no,width=818");
}
function MM_openBrWindow(theURL) { //v2.0
  window.open(theURL,'sub','scrollbars=yes,resizable=yes,width=300,height=400');
}
