/**
 * @author murakami
 */
 
 /**
 * �O���[�o�����j���[�T�u���j���[�\���p
 */
 
 //���C�����j���[�Z�N�V����
 
 function mainMenuOpen01(id){
	 
	 document.getElementById(id).className = 'menu01_on';
	 
}

 function mainMenuClose01(id){
	 
	 if(!(location.pathname == "/index.html") && !(location.pathname == "/")){
	 	document.getElementById(id).className = 'menu01';
	 }
	 
}

 function mainMenuOpen02(id){
	 
	 document.getElementById(id).className = 'menu02_on';
	 if(document.getElementById(id).className == 'menu02_on'){
		document.getElementById('submenu01').className = 'submenu01_on';
	 }
	 
}

 function mainMenuClose02(id){
	 
	 if (!(location.pathname == "/price/tokorozawa.html") && !(location.pathname == "/price/musashikoganei.html")){
		 document.getElementById(id).className = 'menu02';
		 if(document.getElementById(id).className == 'menu02'){
			document.getElementById('submenu01').className = 'submenu01';
		 }
	 }
	 else if((location.pathname == "/price/tokorozawa.html") || (location.pathname == "/price/musashikoganei.html")){
		 document.getElementById(id).className = 'menu02_on';
		 if(document.getElementById(id).className == 'menu02_on'){
			document.getElementById('submenu01').className = 'submenu01';
		 }
	 }
	 
}

 function mainMenuOpen03(id){
	 
	 document.getElementById(id).className = 'menu03_on';
	 
}

 function mainMenuClose03(id){
	 
	 if (!(location.pathname == "/haircare.html")){
	 	document.getElementById(id).className = 'menu03';
	 }
	 
}

 function mainMenuOpen04(id){
	 
	 document.getElementById(id).className = 'menu04_on';
	 if(document.getElementById(id).className == 'menu04_on'){
		document.getElementById('submenu02').className = 'submenu02_on';
	 }
	 
}

 function mainMenuClose04(id){
	 
	 if (!(location.pathname == "/staff/tokorozawa.html") && !(location.pathname == "/staff/musashikoganei.html")){
		 document.getElementById(id).className = 'menu04';
		 if(document.getElementById(id).className == 'menu04'){
			document.getElementById('submenu02').className = 'submenu02';
		 }
	 }
	 else if((location.pathname == "/staff/tokorozawa.html") || (location.pathname == "/staff/musashikoganei.html")){
		 document.getElementById(id).className = 'menu04_on';
		 if(document.getElementById(id).className == 'menu04_on'){
			document.getElementById('submenu02').className = 'submenu02';
		 }
	 }
	 
}

 function mainMenuOpen05(id){
	 
	 document.getElementById(id).className = 'menu05_on';
	 if(document.getElementById(id).className == 'menu05_on'){
		document.getElementById('submenu03').className = 'submenu03_on';
	 }
	 
}

 function mainMenuClose05(id){
	 
	 if (!(location.pathname == "/shop/tokorozawa.html") && !(location.pathname == "/shop/musashikoganei.html")){
		 document.getElementById(id).className = 'menu05';
		 if(document.getElementById(id).className == 'menu05'){
			document.getElementById('submenu03').className = 'submenu03';
		 }
	 }
	 else if((location.pathname == "/shop/tokorozawa.html") || (location.pathname == "/shop/musashikoganei.html")){
		 document.getElementById(id).className = 'menu05_on';
		 if(document.getElementById(id).className == 'menu05_on'){
			document.getElementById('submenu03').className = 'submenu03';
		 }
	 }
	 
}

 //�T�u���j���[�Z�N�V����
 function subMenuOpen01(id){
	 
	 document.getElementById(id).className = 'sub_menu_item01_on';
	 
}

 function subMenuClose01(id){
	 
	 document.getElementById(id).className = 'sub_menu_item01';
	 
}

 function subMenuOpen02(id){
	 
	 document.getElementById(id).className = 'sub_menu_item02_on';
	 
}

 function subMenuClose02(id){
	 
	 document.getElementById(id).className = 'sub_menu_item02';
	 
}

 /**
 * �O���[�o�����j���[�y�[�W�J�ڎ��F�u���p
 */
 function menuDisp(){
	
	//�T�u���j���[��HTML�̏�������
	if ((location.pathname == "/index.html") || (location.pathname == "/")){
		document.getElementById('menu01').className = 'menu01_on';
	}
	else if ((location.pathname == "/price/tokorozawa.html") || (location.pathname == "/price/musashikoganei.html")){
		document.getElementById('menu02').className = 'menu02_on';
	}
	else if ((location.pathname == "/haircare.html")){
		document.getElementById('menu03').className = 'menu03_on';
	}
	else if ((location.pathname == "/staff/tokorozawa.html") || (location.pathname == "/staff/musashikoganei.html")){
		document.getElementById('menu04').className = 'menu04_on';
	}
	else if ((location.pathname == "/shop/tokorozawa.html") || (location.pathname == "/shop/musashikoganei.html")){
		document.getElementById('menu05').className = 'menu05_on';
	}

}