
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

var nowLAYER = false;			//$B:G8e$KI=<($7$?%l%$%d!<!JHsI=<(;~(J:false$B!K(J
var preLAYER = "";				//$B%l%$%d!<$N%R%9%H%j!<!J=i4|$O6u!K(J
var nowMENU = false;			//$B8=:_$N%a%K%e!<(J
var childLV = 0;				//$B;R6!%a%K%e!<$N?<EY!!?F!'(J0$B!!;R!'(J1$B!!B9!'(J2


ALLLAYER = new Array(
"subnavi02",
"subnavi03",
"subnavi04"
);


function getLayOj(layName){
	if(document.layers){ return document.layers[layName];}
	if(document.all){ return document.all(layName).style;}
	if(document.getElementById){ return document.getElementById(layName).style;}
}

function showLAYER(oj,oyako){
	
	if(childLV >= oyako){
		getLayOj(nowLAYER).visibility='hidden';
	}
	
	
	getLayOj(oj).visibility='visible';
	nowLAYER=oj	
	if(nowLAYER != oj){
		preLAYER = nowLAYER;
		nowLAYER = oj;	
		childLV = oyako;
	}
	
}

function showLAYER2(oj,oyako){
	
	if(childLV >= oyako){
		getLayOj(nowLAYER).visibility='hidden';
	}
	
	getLayOj(oj).visibility='visible';
	
	if(nowLAYER != oj){
		preLAYER = nowLAYER;
		nowLAYER = oj;
		childLV = oyako;
	}
	
}


function hideLAYER(){
	if(nowLAYER != false){
		getLayOj(nowLAYER).visibility='hidden';
	}

}


function allhideLAYER(){

	for(i = 0; i < ALLLAYER.length; i++){
		getLayOj(ALLLAYER[i]).visibility='hidden';
	}
	preLAYER = "";
	nowLAYER = false;
	childLV = 0;
	getLayOj('hiddenner').visibility='hidden';

}


function targethideLAYER(XXX){
		getLayOj(XXX).visibility='hidden';
		nowLAYER = preLAYER;

}

function subwinOpen(url,name,option){
	window.open(url, name, option);
}
