var menu1_items = [
	['Home', 'http://www.gckorea.co.kr/korean/index.asp', ''],
	['È¸»ç¼Ò°³', 'http://www.gckorea.co.kr/korean/company/index.asp', '',
		['È¸»ç°³¿ä', 'http://www.gckorea.co.kr/korean/company/index01.asp',''],
		['¿¬ Çõ', 'http://www.gckorea.co.kr/korean/company/index02.asp',''],
		['ÀÎ»ç¸»', 'http://www.gckorea.co.kr/korean/company/index03.asp',''],
		['È¯°æ°øÇå', 'http://www.gckorea.co.kr/korean/company/index04.asp',''],
		['»çÈ¸°øÇå', 'http://www.gckorea.co.kr/korean/company/index05.asp',''],
		['Global Network', 'http://www.gckorea.co.kr/korean/company/index06.asp',''],
		['°æ¿µÃ¶ÇÐ', 'http://www.gckorea.co.kr/korean/company/index07.asp',''],
		['Ç°Áú°æ¿µ', 'http://www.gckorea.co.kr/korean/company/index08.asp',''],
		['°í°´¼­ºñ½º', 'http://www.gckorea.co.kr/korean/company/index09.asp',''],
	],
            ['Á¦Ç°¼Ò°³', 'http://www.gckorea.co.kr/korean/product/product01.asp', '',
                        ['½ÅÁ¦Ç°', 'http://www.gckorea.co.kr/korean/product/product01.asp',''],
                        ['¿¹¹æÁ¦Ç°', 'http://www.gckorea.co.kr/korean/product/index02.asp', '',
				['GC Tooth Mousse', 'http://www.gckorea.co.kr/korean/product/product01_2.asp', '',
				],
				['GC Tooth Mousse Plus', 'http://www.gckorea.co.kr/korean/product/product01_2_1.asp', '',
				],
				['Sailva Check Series', 'http://www.gckorea.co.kr/korean/product/product01_03.asp', '',
				],
				['Ruscello Ä©¼Ö', 'http://www.gckorea.co.kr/korean/product/B10ms_c.asp', '',
					['Ä©¼ÖÅ¸ÀÔ¼±ÅÃ', 'http://www.gckorea.co.kr/korean/product/selec.asp',''],
					['Å¸ÀÔº°Æ¯Â¡', 'http://www.gckorea.co.kr/korean/product/b10ms_c.asp',''],
					['Á¦Ç°Æ¯Â¡¹×µðÀÚÀÎ', 'http://www.gckorea.co.kr/korean/product/design.asp',''],
					['¶óÀÎ¾÷', 'http://www.gckorea.co.kr/korean/product/variation.asp',''],
				],
				['Ruscello floss', 'http://www.gckorea.co.kr/korean/product/product01_2_2.asp', '',
				],
				['FUJI VII', 'http://www.gckorea.co.kr/korean/product/product02_1_6_7.asp', '',
				],
				],
		['Ä¡°ú¿ëÁ¦Ç°', 'http://www.gckorea.co.kr/korean/product/index03.asp', '',
				['ÀÎ°øÄ¡¾Æ', 'http://www.gckorea.co.kr/korean/product/product02.asp', '',
				],
				['º¹ÇÕ·¹Áø', 'http://www.gckorea.co.kr/korean/product/product02_11_4.asp', '',
				],
				['ÃæÀüÀç', 'http://www.gckorea.co.kr/korean/product/product02_1_7.asp', '',
				],
				['¶óÀÌ´×Àç', 'http://www.gckorea.co.kr/korean/product/product02_2.asp', '',
				],
				['Á¢ÂøÀç', 'http://www.gckorea.co.kr/korean/product/product02_3_3.asp', '',
				],
				['ÇÕÂøÀç', 'http://www.gckorea.co.kr/korean/product/product02_4.asp', '',
				],
				['±âÅ¸Àç·á ¹× ±â±¸', 'http://www.gckorea.co.kr/korean/product/product02_5_11.asp', '',
				],
				['ÀÎ»óÀç·á', 'http://www.gckorea.co.kr/korean/product/product02_6_9.asp', '',
				],
				['ÀÎ»ó±â±¸', 'http://www.gckorea.co.kr/korean/product/product02_7.asp', '',
				],
				['ÀÓ½ÃÄ¡°üÀç·á', 'http://www.gckorea.co.kr/korean/product/product02_8.asp', '',
				],
				['ÀÓ½Ã°¡ÂøÀç ¹× ÃæÀüÀç', 'http://www.gckorea.co.kr/korean/product/product02_9_4.asp', '',
				],
				['¸±¶óÀÎÀç', 'http://www.gckorea.co.kr/korean/product/product02_10.asp', '',
				],
				['¼®°í', 'http://www.gckorea.co.kr/korean/product/product02_12.asp', '',
				],
					],
		['Ä¡°ú±â°ø¿ëÁ¦Ç°', 'http://www.gckorea.co.kr/korean/product/index04.asp', '',
                                               ['µµÀç', 'http://www.gckorea.co.kr/korean/product/product07_21.asp', '',
				],
				['±â°ø¿ë ·¹Áø', 'http://www.gckorea.co.kr/korean/product/product07.asp', '',
				],
				['¼®°í', 'http://www.gckorea.co.kr/korean/product/product07_1.asp', '',
				],
				['¸Å¸ôÀç', 'http://www.gckorea.co.kr/korean/product/product07_2_7.asp', '',
				],
				['Ä¡°ú¿ë ¿Î½º', 'http://www.gckorea.co.kr/korean/product/product07_3.asp', '',
				],
				['±âÅ¸Àç·á ¹× ±â±¸', 'http://www.gckorea.co.kr/korean/product/product07_4.asp', '',
				],
],
		['MSDS','http://www.gckorea.co.kr/korean/product/msds.asp','',]

	],

	['»õ¼Ò½Ä', 'http://www.gckorea.co.kr/korean/customer/index01.asp', '',
	],

	['Clinical Updates', 'http://www.gckorea.co.kr/korean/clinical/column/index01.asp', '',
		['ÀÓ»óÄ®·³', 'http://www.gckorea.co.kr/korean/clinical/column/index01.asp', '',
					],

                        ['µ¿¿µ»óÀÓ»ó°­¿¬È¸', 'http://www.gckorea.co.kr/korean/clinical/seminar/index02.asp',''],
		['Case Presentation', 'http://www.gckorea.co.kr/korean/clinical/product/index03.asp', ''],
		['Ä¡°úÀç·áÇÚµåºÏ', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook01.asp', '',
				['ÀÎ»óÀç', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook02.asp', '',

                                                          ['AlginateÀÎ»óÀç', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook02_1.asp', '',
				          ],
				          ['ÇÑÃµÀÎ»óÀç', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook02_2.asp', '',
				          ],
				          ['Silicone ÀÎ»óÀç', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook02_3.asp', '',
				          ],
				],
				['½Ã¸àÆ®', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook03.asp', '',
				          ['ÇÕÂø Á¢ÂøÀç', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook03_1.asp', '',
				          ],
				          ['ÃæÀüÀç', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook03_2.asp', '',
				          ],
				          ['¿¹¹æÀü»öÀç·á', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook03_3.asp', '',
				          ],
				          ['ÀÌÀåÀç', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook03_4.asp', '',
				          ],
				],
				['·¹Áø', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook04.asp', '',
				],
				['¼®°í', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook05.asp', '',
				          ['°æ¼®°í', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook05_1.asp', '',
				          ],
				          ['ÃÊ°æ¼®°í', 'http://www.gckorea.co.kr/korean/clinical/handbook/handbook05_2.asp', '',
				          ],
				],
					],
	],
	['¼¼¹Ì³ª¾È³»', 'http://www.gckorea.co.kr/korean/event/index01.asp', '',
		['¼¼¹Ì³ª½ÅÃ»', 'http://www.gckorea.co.kr/korean/seminar/seminar01_write.asp?req_sequence=200809',''],
	],
	['GC Green Society', 'http://www.gckorea.co.kr/korean/society/index04.asp', '',
		['È¸¿ø°¡ÀÔ¾È³»', 'http://www.gckorea.co.kr/korean/society/index03_1.asp',''],
		['È¸¿øÀü¿ëÇÒÀÎÇà»ç', 'http://www.gckorea.co.kr/korean/society/index04.asp',''],
	],
	['Contact', 'http://www.gckorea.co.kr/korean/contact/index01.asp', '',
		['°í°´¼­ºñ½º¼¾ÅÍ', 'http://www.gckorea.co.kr/korean/contact/index01.asp',''],
		['Æ¯¾àÁ¡¾È³»', 'http://www.gckorea.co.kr/korean/contact/index02.asp', '',
				['ÁßºÎÁö¿ª', 'http://www.gckorea.co.kr/korean/contact/index02.asp', '',
				],
				['µ¿ºÎÁö¿ª', 'http://www.gckorea.co.kr/korean/contact/index02_02.asp', '',
				],
				['¼­ºÎÁö¿ª', 'http://www.gckorea.co.kr/korean/contact/index02_03.asp', '',
				],
				['Æ¯¾àÁ¡¹®ÀÇ', 'http://www.gckorea.co.kr/korean/contact/index02_04.asp', '',
				],
		],
		['°ü·Ã»çÀÌÆ®', 'http://www.gckorea.co.kr/korean/contact/index03.asp',''],
		['Ã£¾Æ¿À½Ã´Â±æ', 'http://www.gckorea.co.kr/korean/contact/index05.asp',''],
	],


];

function addLoadEvent(func) {		// menu uses onLoad event - to have another onLoad event, add it right after BODY tag (eg <SCRIPT>addLoadEvent(function() { javascript:alert('yebagogo'); });</SCRIPT> or <SCRIPT>addLoadEvent(init);</SCRIPT>)
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {
				oldonload();
			}
		func();
		}
	}
}

var menu_layers = new Array(); var ol = ''; var or = ''; renderMenu('1');
function renderMenu(mnr) {
	window['menu' + mnr + '_old_main_pos'] = 0; window['menu' + mnr + '_new_main_pos'] = 0; window['menu' + mnr + '_to']; window['menu' + mnr + '_opened'];
	menu_start(mnr);		// make position relative
	menu_read(mnr, '', '');		// read menu and build layers
	menu_resize(mnr, '');		// give all relevant layers equal width
	menu_resize(mnr, 'andPosition');	// twice since layers prior to widest may not have been resized yet + place layers at the right position
	menu_end();		// close menu container layer
	ol += "document.getElementById('menu" + mnr + "_container').style.left = document.getElementById('menu" + mnr + "_ref').offsetLeft; document.getElementById('menu" + mnr + "_container').style.top = document.getElementById('menu" + mnr + "_ref').offsetTop; ";
	or += "document.getElementById('menu" + mnr + "_container').style.left = document.getElementById('menu" + mnr + "_ref').offsetLeft; document.getElementById('menu" + mnr + "_container').style.top = document.getElementById('menu" + mnr + "_ref').offsetTop; ";
	if (typeof(menu2_items) != 'undefined' && typeof(menu2_new_main_pos) == 'undefined') renderMenu('2');
}
addLoadEvent(function() { eval(ol); }); 	// if the menu will be placed inside a table, it must be created outside the table
window.onresize= function() { eval(or); }	// if not, all menu layers will have a width of 0px (layer.offsetWidth)

function menu_start(mnr) {
	document.write('<DIV ID="menu' + mnr + '_container" STYLE="position:relative; top:-40px; width:0px; height:0px; z-index:1">');
}

function menu_read(mnr, level, rm_main) {
	if (!level) { level = 'menu' + mnr + '_items'; menu_layers[mnr] = new Array(); }
	var i = 0; var rm_sub = 0;
	while (i < eval(level).length) {
		if (typeof(eval(level)[i]) == 'object') {
			rm_sub++; rm_pos = (rm_main)?(rm_main + '_' + rm_sub):(rm_sub + '');
			document.write('<DIV ID="menu' + mnr + '_' + rm_pos + '" STYLE="position:absolute; padding:3px 2px; border-left:1px solid #FFFFFF; ' + ((rm_main)?('background-color:#139C83; '):(''))  + 'cursor:' + ((eval(level)[i][1] != '')?('pointer'):('default')) + '" onMouseOver="menu_open(\'' + mnr + '\', \'' + rm_pos + '\', \'1\'); menu_highlight(\'' + mnr + '\', \'on\', \'' + rm_pos + '\')" onMouseOut="menu_close(\'' + mnr + '\', \'' + rm_pos + '\', \'delayed\'); menu_highlight(\'' + mnr + '\', \'off\', \'' + rm_pos + '\')"' + ((eval(level)[i][1] != '')?(' onClick="menu_open_link(\'' + eval(level)[i][1] + '\', \'' + eval(level)[i][2] + '\')"'):('')) + '><NOBR STYLE="font-size:15px; color:#FFFFFF">&nbsp;' + eval(level)[i][0] + '&nbsp;</NOBR></DIV>');
			var mll = menu_layers[mnr].length; menu_layers[mnr][mll] = new Array(); 	menu_layers[mnr][mll]['pos'] = rm_pos; menu_layers[mnr][mll]['width'] = document.getElementById('menu' + mnr + '_' + rm_pos).offsetWidth;
			if (eval(level)[i].length != 3) menu_read(mnr, level + '[' + i + ']', rm_pos);
		}
	i++;
	}
}

function menu_resize(mnr, position) {
	for (i=0; i<menu_layers[mnr].length; i++) {
		var mparent = menu_layers[mnr][i]['pos'].substring(0, menu_layers[mnr][i]['pos'].lastIndexOf('_'));
		if (mparent != '') {
			if (window['m' + mnr + '_' + mparent] >= menu_layers[mnr][i]['width']) {
				menu_layers[mnr][i]['width'] = window['m' + mnr + '_' + mparent];
				document.getElementById('menu' + mnr + '_' + menu_layers[mnr][i]['pos']).style.width = menu_layers[mnr][i]['width'] + 'px';
			}
			window['m' + mnr + '_' + mparent] = menu_layers[mnr][i]['width'];
		} else {
			if (menu_layers[mnr][i]['width'] > window['m' + mnr + '_' + menu_layers[mnr][i]['pos']]) window['m' + mnr + '_' + menu_layers[mnr][i]['pos']]  = menu_layers[mnr][i]['width'];
		}
		if (position) menu_position(mnr, menu_layers[mnr][i]['pos']);
	}
}

function menu_position(mnr, position) {
	var pos_split = position.split('_');
	if (pos_split.length == 1) {
		document.getElementById('menu' + mnr + '_' + position).style.left = window['menu' + mnr + '_new_main_pos'];
		document.getElementById('menu' + mnr + '_' + position).style.top = '0';
		window['menu' + mnr + '_old_main_pos'] = window['menu' + mnr + '_new_main_pos'];
		window['menu' + mnr + '_new_main_pos'] += document.getElementById('menu' + mnr + '_' + position).offsetWidth;
	} else {
		document.getElementById('menu' + mnr + '_' + position).style.visibility = 'hidden';
		if (pos_split.length ==2) {
			document.getElementById('menu' + mnr + '_' + position).style.left = window['menu' + mnr + '_old_main_pos'];
		} else {
			var one_up = position.substring(0, position.lastIndexOf('_'));
			document.getElementById('menu' + mnr + '_' + position).style.left = document.getElementById('menu' + mnr + '_' + one_up).offsetLeft + document.getElementById('menu' + mnr + '_' + one_up).offsetWidth;
		}
		var sumt = 0; for (j=1; j<pos_split.length; j++) { sumt += (pos_split[j]*1); }
		document.getElementById('menu' + mnr + '_' + position).style.top = document.getElementById('menu' + mnr + '_' + position).offsetHeight * (sumt-(pos_split.length-2));
	}
}

function menu_end() {
	document.write('</DIV>');
}

function menu_open(mnr, position, cnt) {
	if (window['menu' + mnr + '_to']) clearTimeout(window['menu' + mnr + '_to']);
	if (document.getElementById('menu' + mnr + '_' + position + '_' + cnt)) {
		document.getElementById('menu' + mnr + '_' + position + '_' + cnt).style.visibility = 'visible';
		cnt++; menu_open(mnr, position, cnt);
	} else menu_close(mnr, position, 'direct');
}

function menu_close(mnr, position, timing) {
	if (timing == 'delayed') { if (window['menu' + mnr + '_to']) clearTimeout(window['menu' + mnr + '_to']); window['menu' + mnr + '_to'] = setTimeout('menu_close(\'' + mnr + '\', \'0\', \'direct\')', 2000); }
	else {
		for (i=0; i<menu_layers[mnr].length; i++) {
			if (menu_layers[mnr][i]['pos'].indexOf('_') != '-1') {
				if (position == '0') document.getElementById('menu' + mnr + '_' + menu_layers[mnr][i]['pos']).style.visibility = 'hidden';
				else {
					if (position.indexOf('_') != -1) { if ((menu_layers[mnr][i]['pos'].split('_').length > position.split('_').length) && (menu_layers[mnr][i]['pos'].indexOf(position) != 0)) document.getElementById('menu' + mnr + '_' + menu_layers[mnr][i]['pos']).style.visibility = 'hidden'; }
					else { if (menu_layers[mnr][i]['pos'].substring(0, menu_layers[mnr][i]['pos'].indexOf('_')) != position) document.getElementById('menu' + mnr + '_' + menu_layers[mnr][i]['pos']).style.visibility = 'hidden'; }
				}
			}
		}
	}
}

function menu_open_link(link, target) {
	link = this.location.href.substring(0, this.location.href.indexOf('')) + '' + link;

	if (!target || target == '_self') document.location.href = link;
	else {
		if (window.parent.frames[target]) window.parent.frames[target].location.href = link;
		else if (target == '_top') top.location.href = link;
		else if (target == '_parent') parent.location.href = link;
		else window.open (link);
	}
}

function menu_highlight(mnr, status, position) {
	var menu_bgc = (position.indexOf('_') != '-1')?('#139C83'):('');
	document.getElementById('menu' + mnr + '_' + position).style.backgroundColor = (status == 'on')?('#6BBBA9'):(menu_bgc);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
