if(navigator.appVersion.charAt(0) >=3){
	var hmenuimg = new Array();
	var menuimg = new Array();
	
	for( i = 0 ; i < 14 ; i++ ){
		hmenuimg[i] = new Image();
	}
	for( i = 0 ; i < 10 ; i++ ){
		menuimg[i] = new Image();
	}
	
	hmenuimg[0].src= directory + "common/images/hmenu01_off.gif";
	hmenuimg[1].src= directory + "common/images/hmenu01_on.gif";
	hmenuimg[2].src= directory + "common/images/hmenu02_off.gif";
	hmenuimg[3].src= directory + "common/images/hmenu02_on.gif";
	hmenuimg[4].src= directory + "common/images/hmenu03_off.gif";
	hmenuimg[5].src= directory + "common/images/hmenu03_on.gif";
	hmenuimg[6].src= directory + "common/images/hmenu04_off.gif";
	hmenuimg[7].src= directory + "common/images/hmenu04_on.gif";
	hmenuimg[8].src= directory + "common/images/hmenu05_off.gif";
	hmenuimg[9].src= directory + "common/images/hmenu05_on.gif";
	hmenuimg[10].src= directory + "common/images/hmenu06_off.gif";
	hmenuimg[11].src= directory + "common/images/hmenu06_on.gif";
	hmenuimg[12].src= directory + "common/images/hmenu07_off.gif";
	hmenuimg[13].src= directory + "common/images/hmenu07_on.gif";
	
	menuimg[0].src= directory + "common/images/menu01_off.gif";
	menuimg[1].src= directory + "common/images/menu01_on.gif";
	menuimg[2].src= directory + "common/images/menu02_off.gif";
	menuimg[3].src= directory + "common/images/menu02_on.gif";
	menuimg[4].src= directory + "common/images/menu03_off.gif";
	menuimg[5].src= directory + "common/images/menu03_on.gif";
	menuimg[6].src= directory + "common/images/menu04_off.gif";
	menuimg[7].src= directory + "common/images/menu04_on.gif";
	menuimg[8].src= directory + "common/images/menu05_off.gif";
	menuimg[9].src= directory + "common/images/menu05_on.gif";
	
}

function hmenu(dim,cnt){
	if(navigator.appVersion.charAt(0) >= 3 ){
		document.images[dim].src=hmenuimg[cnt].src;
	}
}
function menu(dim,cnt){
	if(navigator.appVersion.charAt(0) >= 3 ){
		document.images[dim].src=menuimg[cnt].src;
	}
}

//window scroll(IE only)
var scrj = 1;
function softScrollBack() {
	if(navigator.appName == "Microsoft Internet Explorer" && document.compatMode == "CSS1Compat") {
		var scdist = document.body.parentNode.scrollTop;
	} else {
		var scdist = document.body.scrollTop;
	}
	if(scrj<50 && scdist) {
		scdist = (scdist>2) ? Math.ceil(scdist*.2) : 1;
		scrj++;
		scrollBy(0,-scdist);
		setTimeout("softScrollBack()",20);
	} else {
		scrollTo(0,0);
		scrj = 1;
	}
}
