// JavaScript Document

BASEHREF = ".."	;

function submenuhead(target){
	if($(target+"_sub").style.display != "block"){
		$(target+"_head").style.background = "url("+BASEHREF+"/common/images/navi_"+target+"_on.jpg)";
	}
}
function submenuheadout(target){
	if($(target+"_sub").style.display != "block"){
		if(target != def){
			$(target+"_head").style.background = "url("+BASEHREF+"/common/images/navi_"+target+".jpg)";
		}
	}
}

function submenudisp(target){
	if($(target+"_sub").style.display == "block"){
		$(target+"_sub").style.display = "none";
		$(target+"_head").style.background = "url("+BASEHREF+"/common/images/navi_"+target+"_on.jpg)";
		if(def&&def!="jk"&&def!="top"&&def!="tps"&&def!="prv"&&def!="cnt"&&def!="smp"){
			$(def+"_sub").style.display = "block";
			$(def+"_head").style.background = "url("+BASEHREF+"/common/images/navi_"+def+"_h.jpg)";
		}
	}else{
		$("biz_sub").style.display = "none";
		$("case_sub").style.display = "none";
		$("company_sub").style.display = "none";
		$("recruit_sub").style.display = "none";
		$("haken_sub").style.display = "none";
		$("soho_sub").style.display = "none";
		$("biz_head").style.background = "url("+BASEHREF+"/common/images/navi_biz.jpg)";
		$("case_head").style.background = "url("+BASEHREF+"/common/images/navi_case.jpg)";
		$("company_head").style.background = "url("+BASEHREF+"/common/images/navi_company.jpg)";
		$("recruit_head").style.background = "url("+BASEHREF+"/common/images/navi_recruit.jpg)";
		$("haken_head").style.background = "url("+BASEHREF+"/common/images/navi_haken.jpg)";
		$("soho_head").style.background = "url("+BASEHREF+"/common/images/navi_soho.jpg)";
		if(def&&def!="jk"&&def!="top"&&def!="tps"&&def!="prv"&&def!="cnt"&&def!="smp"){
			$(def+"_head").style.background = "url("+BASEHREF+"/common/images/navi_"+def+"_on.jpg)";
		}
		$(target+"_head").style.background = "url("+BASEHREF+"/common/images/navi_"+target+"_h.jpg)";
		$(target+"_sub").style.display = "block";
	}
}

function changename(btn){
	$("act").value=btn;
}
function changename2(btn3){
	$("act2").value=btn3;
}
function btnover(btn2){
		$(btn2+"_btn").style.background = "url("+BASEHREF+"/common/images/on_"+btn2+".gif)";
}
function btnout(btn2){
		$(btn2+"_btn").style.background = "url("+BASEHREF+"/common/images/btn_"+btn2+".gif)";
}