imgroot = "http://www.koreanforest.com/oak/kor/images/main/top/";

top_menu_buffer = new Array;
top_menu_buffer[0] = new Array;
top_menu_buffer[1] = new Array;

for(i = 0; i < 2; i++){
  for(j = 0; j < 5; j++){
    top_menu_buffer[i][j] = new Image;
  } 
}

top_menu_buffer[0][0].src = imgroot + "top_menu01.gif";
top_menu_buffer[1][0].src = imgroot + "top_menu01_r.gif";

top_menu_buffer[0][1].src = imgroot + "top_menu02.gif";
top_menu_buffer[1][1].src = imgroot + "top_menu02_r.gif"; 

top_menu_buffer[0][2].src = imgroot + "top_menu03.gif";
top_menu_buffer[1][2].src = imgroot + "top_menu03_r.gif"; 

top_menu_buffer[0][3].src = imgroot + "top_menu04.gif";
top_menu_buffer[1][3].src = imgroot + "top_menu04_r.gif"; 

top_menu_buffer[0][4].src = imgroot + "top_menu05.gif";
top_menu_buffer[1][4].src = imgroot + "top_menu05_r.gif"; 
document.write("<br><br>");
function ch_top_menu(obj, type, toggle) {
		obj.src = top_menu_buffer[toggle][type].src;
}

function show_sub_menu(num){
	var name = "sub_menu";

	if (num == 0)
	{
		for (i=1; i<6; i++){
			name = "sub_menu";
			name = name + i;
			document.all(name).style.visibility = 'hidden';
		}
	} else {
		for (i=1; i<6; i++){
			name = "sub_menu";
			name = name + i;
			if (num == i){
				document.all(name).style.visibility = 'visible';
			}else{
				document.all(name).style.visibility = 'hidden';

			}
		}
	}	
}