<!------------------------------------------------------------------------------ initialize ----------->
	if(navigator.appVersion.charAt(0)>=3){
		menuArrayOFF = new Array();
		menuArrayON = new Array();
		for(i=1; i<= 47; i++){
			menuArrayOFF[i] = new Image(); menuArrayOFF[i].src="/img/pref" + (i<10?"0"+i:i) + "0.gif";
			menuArrayON[i] = new Image(); menuArrayON[i].src="/img/pref" + (i<10?"0"+i:i) + "1.gif";
		};
	}	
	
	
function initProc(nMenu, nItem){
	if(navigator.appVersion.charAt(0)>=3){
		if(nItem > 0){
			smOFF = new Array();
			smON = new Array();
			for(i=1; i<= nItem; i++){
				smOFF[i] = new Image(); smOFF[i].src="/area/img/area" + (nMenu<10?"0"+nMenu:nMenu) + (i<10?"0"+i:i) + "0.gif";
				smON[i] = new Image(); smON[i].src="/area/img/area" + (nMenu<10?"0"+nMenu:nMenu) + (i<10?"0"+i:i) + "1.gif";
			};
		}	
	}	
}


<!------------------------------------------------------------------------------ functions ----------->
<!-- pref map -->
function pOver(nNum){
		cName = "pb" + (nNum<10?"0"+nNum:nNum);
		if(nNum >= 0){
			if(typeof(menuArrayON[nNum]) == "object"){
				document.getElementById(cName).src = menuArrayON[nNum].src
			}
		}
}

function pOut(nNum){
		cName = "pb" + (nNum<10?"0"+nNum:nNum);
		if(nNum >= 0){
			if(typeof(menuArrayOFF[nNum]) == "object"){
				document.getElementById(cName).src = menuArrayOFF[nNum].src
			}
		}
}

<!-- area map -->
function aOver(nMM, nSM){
		cName = "ab" + (nMM<10?"0"+nMM:nMM)+ (nSM<10?"0"+nSM:nSM);
		if(nSM > 0){
			if(typeof(smON[nSM]) == "object"){
				document.getElementById(cName).src = smON[nSM].src
			}
		}
}

function aOut(nMM, nSM){
		cName = "ab" + (nMM<10?"0"+nMM:nMM) + (nSM<10?"0"+nSM:nSM);
		if(nSM > 0){
			if(typeof(smOFF[nSM]) == "object"){
				document.getElementById(cName).src = smOFF[nSM].src
			}
		}
}

<!---- Add IRI-CT Kang 2007/10/29 ---->
<!---- pref select ---->
function selectJump(){
	var	idx = document.selectForm.selectList.selectedIndex;
	var	tmp = document.selectForm.selectList.options[idx].value;
	if (tmp != "0") {
		if (tmp == "26"){
			url = "kyoto/index.html";
			location = url;
		}
		else if (tmp == "39"){
			url = "kouchi/index.html";
			location = url;
		}
		else if (tmp == "47"){
			url = "okinawa/index.html";
			location = url;
		}
		else{
			url = "area/" + tmp + ".html";
			location = url;
		}
	}
}

<!---- area flash select ---->
function selectArea(){
	var	idx = document.selectForm.selectList.selectedIndex;
	var	tmp = document.selectForm.selectList.options[idx].value;
	if (tmp != "0") {
		url = "/" + tmp + "/index.html";
		location = url;
	}
}
