/* roll over-out image */ function menuOver() { if(this.src.substring(this.src.length-7) != "_on.gif") this.src = this.src.replace(".gif", "_on.gif"); } function menuClick() { if(this.id.indexOf("menu-image") > -1) { var submenu = document.getElementById("menu" + this.id.substring(10)); var uls = submenu.getElementsByTagName("ul"); if(uls.length>0){ if(uls[0].style.display == "none") uls[0].style.display = "block"; else uls[0].style.display = "none"; } } } function menuOut() { this.src = this.src.replace("_on.gif", ".gif"); } /* Tab over,out */ function initImgEffect(ImgEls,SelImg) { MenuImg = document.getElementById(ImgEls).getElementsByTagName("img"); MenuImgLen = MenuImg.length; for (i=0; i 0 ) { im.item(0).src = im.item(0).src.replace(".gif", "_on.gif"); } else { var anchor = menuEl.item(i).getElementsByTagName("a"); anchor(0).style.fontWeight = "bold"; anchor(0).style.textDecoration = "underline"; } } else { var im = menuEl.item(i).getElementsByTagName("img"); if( im == null || im.length == 0) continue; im.item(0).onmouseover = menuOver; im.item(0).onmouseout = menuOut; im.item(0).onfocus = menuOver; im.item(0).onblur = menuOut; im.item(0).onclick = menuClick; if (menuEl.item(i).getElementsByTagName("ul").item(0)) { menuEl.item(i).getElementsByTagName("ul").item(0).style.display = "none"; } } } menuId = "menu" + depth1; initTopmenuByMenuId(depth1,depth2,depth3,depth4,menuId); } function initTopMenu(el,depth1) { topMenuOut(el.getElementsByTagName("img").item(0)); if(el.id == "top-menu" + depth1) { topMenuOver(el.getElementsByTagName("img").item(0)); } } function topMenuOver(img) { img.src = img.src.replace(".gif", "_on.gif"); } function topMenuOut(img) { img.src = img.src.replace("_on.gif", ".gif"); } function selectTopmenuByMenuId() { var depth1 = this.id.substring("top-menu-head".length,this.id.length); var menuId = "sub-menu" + depth1; var selectDepth1 = "top-" + depth1 + "-1"; var topnav = document.getElementById("lnb"); if(!topnav) return; var topEl = topnav.getElementsByTagName("ul"); for(i = 0 ; i < topEl.length ; i++){ if(topEl[i].id.substring(0,12) == "top-sub-menu") { topEl[i].style.display = "none"; } } var topEl2 = topnav.getElementsByTagName("li"); for(i = 0 , seq = 1; i < topEl2.length ; i++){ if(topEl2[i].id.substring(0,8) == "top-menu") { initTopMenu(topEl2[i],depth1); } } var nav = document.getElementById("top-" + menuId); if(!nav) return; nav.style.display = "block"; menuEl = nav.getElementsByTagName("li"); for(i = 0; i < menuEl.length; i++) { var imgEl = menuEl.item(i).getElementsByTagName("img") if(imgEl != null && imgEl.length>0) { if(imgEl.item(0).src.substring(imgEl.item(0).src.length-7) == "_on.gif") { imgEl.item(0).onmouseover = menuOver; imgEl.item(0).onmouseout = null; imgEl.item(0).onfocus = menuOver; imgEl.item(0).onblur = null; } else { imgEl.item(0).onmouseover = menuOver; imgEl.item(0).onmouseout = menuOut; imgEl.item(0).onfocus = menuOver; imgEl.item(0).onblur = menuOut; } } } } function initTopmenuByMenuId(depth1, depth2, depth3, depth4, menuId) { var selectDepth1 = "top-" + depth1 + "-" + depth2; var selectDepth2 = "top-" + depth1 + "-" + depth2 + "-" + depth3; var selectDepth3 = "top-" + depth1 + "-" + depth2 + "-" + depth3 + "-" + depth4; var topnav = document.getElementById("lnb"); if(!topnav) return; var topEl = topnav.getElementsByTagName("ul"); for(var i = 0 ; i < topEl.length ; i++){ if(topEl[i].id.substring(0,12) == "top-sub-menu") { topEl[i].style.display = "none"; } } var topEl2 = topnav.getElementsByTagName("a"); for(i = 0 ; i < topEl2.length ; i++){ if(topEl2[i].id.substring(0,13) == "top-menu-head" ) { topEl2[i].onmouseover = selectTopmenuByMenuId; topEl2[i].onfocus = selectTopmenuByMenuId; if ( topEl2[i].id.substring(13) == depth1 ) { topEl2[i].onmouseover(); topEl2[i].onfocus(); } } } var nav = document.getElementById("top-" + menuId); if(!nav) return; nav.style.display = "block"; menuEl = nav.getElementsByTagName("li"); for(i = 0; i < menuEl.length; i++) { var menuElItm = menuEl.item(i); var imgEl = menuElItm.getElementsByTagName("img"); if(imgEl == null || imgEl.length == 0) continue; var itm = imgEl.item(0); if (menuElItm.id == selectDepth1 || menuElItm.id == selectDepth2 || menuElItm.id == selectDepth3 ) { itm.src = itm.src.replace(".gif", "_on.gif"); itm.onmouseover = null; itm.onmouseout = null; itm.onfocus = null; itm.onblur = null; } else { itm.onmouseover = menuOver; itm.onmouseout = menuOut; itm.onfocus = menuOver; itm.onblur = menuOut; } } } /* 메인 화면 게시판 마우스 이벤트 처리 */ function initTabMenu(tabContainerID) { var tabContainer = document.getElementById(tabContainerID); var tabAnchor = tabContainer.getElementsByTagName("a"); var i = 0; for(i=0; i obj.bottomLimit) pos = obj.bottomLimit if (pos < obj.topLimit) pos = obj.topLimit interval = obj.top - pos; obj.top = obj.top - interval / 3; obj.style.top = obj.top + "px"; }, 40) } /***************************************************************************************************/ //IE Flicker Bug (function(){ /*Use Object Detection to detect IE6*/ var m = document.uniqueID /*IE*/ && document.compatMode /*>=IE6*/ && !window.XMLHttpRequest /*<=IE6*/ && document.execCommand ; try{ if(!!m){ m("BackgroundImageCache", false, true) /* = IE6 only */ } }catch(oh){}; })(); //png function setPng24(obj) { 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 setPng24(obj) { obj.width=obj.height=1; obj.className=obj.className.replace(/\bpng24\b/i,"/eng/images/common/blank.gif"); obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\""+ obj.src +"\",sizingMethod=\"image\");" obj.src="/eng/images/common/blank.gif"; return ""; } // 프린트스크립트 function contentPrint() { var windowLeft = (screen.width-665)/2; // var windowTop = (screen.height-480)/2; var windowTop = 20; var printURL = "/include/printpage.html"; window.open(printURL,"content",'width=665, height=620, menubar=yes, scrollbars=yes,status=no,resizable=yes,top=' + windowTop + ',left=' + windowLeft + ''); } //바로가기 function goUri(uri,target) { if(uri!="") { window.open(uri,target); } } //목록상자바로가기 function goSelect(form,target) { var myindex=form.uri.selectedIndex myUri = form.uri.options[myindex].value; if(myUri!="") window.open(myUri,target); } //목록상자바로가기2 function goSelectAction(form,target) { var myUri = form.uri.value; if(myUri!="") { form.action=myUri; form.target=target; form.submit(); } } function getvodWMV7(murl,mw,mh) //WMPlayer ver7 이상 { (mw)? mw = mw : mw = 280; (mh)? mh = mh : mh = 280; document.writeln('');//IE : 크기를 %로 하면 마우스 오버해야 보임. document.writeln(' '); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln('');//IE 조건주석문 - 없으면 IE6에서 2번 보임. document.writeln('');//FF,Op,Sf 사용.. parameter 부분지원 document.writeln(''); document.writeln(''); //Vista FF, Op WMP11 지원 document.writeln('
동영상파일 : '+ murl +'
');//대체콘텐츠 document.writeln('
'); document.writeln(''); document.writeln('');//여기에 대체콘텐츠를 두면 안됨 document.writeln('
'); } // 팝업 스크립트 function attachFile(winURL){ window.open(winURL,"newWin","width=442px, height=396px");} //통합 function sFocus(i) { (i).style.border='1px solid #0958a5'; (i).style.background='#fff none'; (i).style.letterSpacing='normal'; } function sBlur(i) { (i).style.border='1px solid #bbb'; } function mainBoardChange(idx) { var obj; var obj2; for (var z=1; z<=3; z++) { obj = document.getElementById('mainBoard' + z); obj2 = document.getElementById('mainBoardMore' + z); obj3 = document.getElementById('bImg' + z); if ( obj && obj2 && obj3 ) { ln1 = obj3.src.substring(0,obj3.src.lastIndexOf(".") -1) + "2.gif"; ln2 = obj3.src.substring(0,obj3.src.lastIndexOf(".") -1) + "1.gif"; if (z == idx){ obj.className=""; obj2.className="more"; obj3.src = ln1; } else { obj.className="hid"; obj2.className="more_hid"; obj3.src = ln2; } } } } //팝업 function popup_img(url,w,h,s) { if(s=="y" || s == "Y"){ s="yes"; }else{ s="no"; } window.open("/jap/include/popup_img.jsp?url="+url+"&width="+w+"&height="+h,"kma_pop","toolbar=no,scrollbars="+s); } //글로벌 외국어 //보이기감추기 여러개 function displayOn() {//보이기 var i,j,a=displayOn.arguments; for(var i=0;i