function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&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&&i0) && (useragent.indexOf('MSIE 7')==-1)){ obj.width=obj.height=1; obj.className=obj.className.replace(/\bpng24\b/i,''); obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" obj.src=''; return ''; } } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } /* 탭메뉴 토글 */ function tabNavToggle(num) { document.getElementById('tabNav01').style.display = "none"; document.getElementById('tabNav02').style.display = "none"; document.getElementById('tabNav03').style.display = "none"; document.getElementById('tabNav0' + num).style.display = "block"; } //서브메뉴 토글 /*var openMenuID=""; // 열려있는 ID를 저장함 function toggleSubMenu(idStr){ mObj=document.getElementById(idStr); if(mObj){ if (mObj.style.display=="none"){ if(openMenuID){ document.getElementById(openMenuID).style.display="none"; } mObj.style.display="block"; openMenuID=idStr; }else if (mObj.style.display=="block"){ mObj.style.display="none"; openMenuID=""; } } } */ // 서브메뉴 보기 var sMenu_launch = ""; function detailSubMenu(name) { submenu = document.getElementById(name).style; if(sMenu_launch != submenu) { if(sMenu_launch != "") { sMenu_launch.display = "block"; } submenu.display = "block"; sMenu_launch = submenu; } else { submenu.display = "none"; sMenu_launch = ""; } } /* 글자확대축소 */ var currentFontSize = 2; function zoomUtil(state){ var idx = currentFontSize; var arrFontSize = new Array(); arrFontSize[0] = "9px"; arrFontSize[1] = "11px"; arrFontSize[2] = "12px"; arrFontSize[3] = "13px"; arrFontSize[4] = "14px"; arrFontSize[5] = "15px"; arrFontSize[6] = "16px"; if(state == "plus"){ if(currentFontSize < 6 ){ idx = currentFontSize + 1; currentFontSize = idx; } }else if (state == "default"){ idx = 2; currentFontSize = idx; }else if (state == "minus"){ if( currentFontSize >= 1){ idx = currentFontSize - 1; currentFontSize = idx; } } if(navigator.userAgent.indexOf("MSIE") != -1){ document.body.style.fontSize = arrFontSize[idx]; }else{ document.getElementsByTagName("BODY").style.fontSize = arrFontSize[idx]; } return false; } String.prototype.toInteger = function() { return this.replace(/[^0-9]/g, '') * 1; } //퀵메뉴 스크립트 function followBanner(div_id, origin_top, limit_top, margin_top){ var d, t, s, g, target_height; origin_top *= 1; limit_top *= 1; margin_top *= 1; d = document.getElementById(div_id); s = document.documentElement.scrollTop + ""; target_height = s.toInteger() + margin_top; if(target_height < limit_top) { target_height = origin_top; } t = d.style.top.toInteger(); if(t != target_height) { g = Math.ceil((t - target_height) / 5); if(g > 50) { g = 50; } else if (g < -50) { g = -50; } d.style.top = (t - g) + "px"; } setTimeout("followBanner('"+div_id+"', '"+origin_top+"', '"+limit_top+"', '"+margin_top+"');", 1); } // gnb menu function initNavigation(seq) { nav = document.getElementById("gnb"); nav.menu = new Array(); nav.current = null; nav.menuseq = 0; navLen = nav.childNodes.length; allA = nav.getElementsByTagName("a") for(k = 0; k < allA.length; k++) { allA.item(k).onmouseover = allA.item(k).onfocus = function () { nav.isOver = true; } allA.item(k).onmouseout = allA.item(k).onblur = function () { nav.isOver = false; setTimeout(function () { if (nav.isOver == false) { if (nav.menu[seq]) nav.menu[seq].onmouseover(); else if(nav.current) { menuImg = nav.current.childNodes.item(0); menuImg.src = menuImg.src.replace("_on.gif", ".gif"); if (nav.current.submenu) nav.current.submenu.style.display = "none"; nav.current = null; } } }, 500); } } for (i = 0; i < navLen; i++) { navItem = nav.childNodes.item(i); if (navItem.tagName != "LI") continue; navAnchor = navItem.getElementsByTagName("a").item(0); navAnchor.submenu = navItem.getElementsByTagName("ul").item(0); navAnchor.onmouseover = navAnchor.onfocus = function () { if (nav.current) { menuImg = nav.current.childNodes.item(0); menuImg.src = menuImg.src.replace("_on.gif", ".gif"); if (nav.current.submenu) nav.current.submenu.style.display = "none"; nav.current = null; } if (nav.current != this) { menuImg = this.childNodes.item(0); menuImg.src = menuImg.src.replace(".gif", "_on.gif"); if (this.submenu) this.submenu.style.display = "block"; nav.current = this; } nav.isOver = true; } nav.menuseq++; nav.menu[nav.menuseq] = navAnchor; } if (nav.menu[seq]) nav.menu[seq].onmouseover(); } // 탭 메뉴 function initTabMenu (tabContainerID) { var tabContainer = document.getElementById(tabContainerID); var tabAnchor = tabContainer.getElementsByTagName("a"); for (var i=0; i