// png 이미지 function setPng24(obj) { obj.width=obj.height=1; obj.style.width = obj.width + "px"; obj.style.height = obj.height + "px"; obj.className=obj.className.replace(/\bpng24\b/i,''); obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" obj.src=''; return ''; } // 기본 플래시 function flashObj(URL,SizeX,SizeY,LnkId,Frm,Flag) // quick { document.write(' '); document.write(' '); document.write(' '); if ( Flag == null || Flag != 'N' ) { document.write(' '); } document.write(' '); document.write(' '); document.write(' '); document.write(' '); if ( Frm == 'Y' ) { // form 태그 들어가는 페이지에 적용 eval("window." + LnkId + " = document.forms[0]."+ LnkId +"; "); } } //quick_top function initMoving(target, position, topLimit, btmLimit) { if (!target) return false; var obj = target; obj.initTop = position; obj.topLimit = topLimit; obj.bottomLimit = document.documentElement.scrollHeight - btmLimit; obj.style.position = "absolute"; obj.style.zIndex= "10"; obj.top = obj.initTop; obj.left = obj.initLeft; if (typeof(window.pageYOffset) == "number") { obj.getTop = function() { return window.pageYOffset; } } else if (typeof(document.documentElement.scrollTop) == "number") { obj.getTop = function() { return document.documentElement.scrollTop; } } else { obj.getTop = function() { return 0; } } if (self.innerHeight) { obj.getHeight = function() { return self.innerHeight; } } else if(document.documentElement.clientHeight) { obj.getHeight = function() { return document.documentElement.clientHeight; } } else { obj.getHeight = function() { return 1000; } } obj.move = setInterval(function() { if (obj.initTop > 0) { pos = obj.getTop() + obj.initTop; } else { pos = obj.getTop() + obj.getHeight() + obj.initTop; //pos = obj.getTop() + obj.getHeight() / 2 - 15; } if (pos > 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"; }, 30) } function selfReLoad() { location.reload(); } //팝업띄우기 스크롤 있는 거 function popsn(url,trgt,w,h) { window.open(url,trgt,'width='+w+',height='+h+',scrollbars=no,resizable=no,copyhistory=no,toolbar=no,status=no'); } //팝업띄우기 스크롤 없는 거 function popsy(url,trgt,w,h) { window.open(url,trgt,'width='+w+',height='+h+',scrollbars=yes,resizable=no,copyhistory=no,toolbar=no,status=no,left=0,top=0'); } //탭 function imgOver(imgName) { imgName.src = imgName.src.replace(/(_on.gif|.gif)$/i, "_on.gif"); imgName.src = imgName.src.replace(/(_on.jpg|.jpg)$/i, "_on.jpg"); } function imgOut(imgName) { imgName.src = imgName.src.replace(/(_on.gif|.gif)$/i, ".gif"); imgName.src = imgName.src.replace(/(_on.jpg|.jpg)$/i, ".jpg"); } function tabOver(tabName){ tabName = tabName.className = "on"; } function tabOut(tabName){ tabName = tabName.className = ""; } function layer_events() { if (document.layers) { document.layers['gnb_area'].captureEvents(Event.MOUSEOVER|Event.MOUSEOUT|Event.MOUSEUP); document.layers['gnb_area'].onmouseout = new Function("this.style.height='115'"); document.layers['gnb_area'].onmouseover = new Function("this.style.height='260'"); } } /* function display_open(n) { div_name = document.getElementById(n); if(div_name.style.display == "block"){ div_name.style.display ="none"; }else{ div_name.style.display ="block"; } } */ function display_open(n) { //div_name = document.all.customCnts_ifrm.getElementById(n); div_name = document.getElementById('customCnts_ifrm').contentWindow.document.getElementById(n); if(div_name.style.display == "block"){ div_name.style.display ="none"; }else{ div_name.style.display ="block"; } } function display_layer_menu(n) { div_name = document.getElementById(n); if(div_name.style.display == "block"){ div_name.style.display ="none"; }else{ div_name.style.display ="block"; } } //help_faq function faq_list(n) { for(i = 1; i <= 10; i++){ faq = document.getElementById("faq"+i); if(i == n){ faq.style.display = "block"; }else{ faq.style.display = ""; } } } function point_tab(n) { for(i = 1; i <= 2; i++){ tab_img = document.getElementById("img0"+i); con_div = document.getElementById("con"+i); if(i == n){ tab_img.src="../images/myenprani/point_tab0"+i+"_on.gif"; con_div.style.display ="block"; }else{ tab_img.src="../images/myenprani/point_tab0"+i+".gif"; con_div.style.display ="none"; } } } //기관소개 function org_list(n) { var i = 1; do { var org = document.getElementById("org"+i); var tab = document.getElementById("tab"+i); if ( i == n ) { org.style.display = "block"; tab.className = "on"; } else { org.style.display = "none"; tab.className = ""; } i++; } while ( document.getElementById("org"+i) ); } function point_tab(n) { for(i = 1; i <= 2; i++){ tab_img = document.getElementById("img0"+i); con_div = document.getElementById("con"+i); if(i == n){ tab_img.src="../images/myenprani/point_tab0"+i+"_on.gif"; con_div.style.display ="block"; }else{ tab_img.src="../images/myenprani/point_tab0"+i+".gif"; con_div.style.display ="none"; } } } //세계속상명인 if (document.getElementById){ document.write('\n') } /* function SwitchMenu(obj){ if(document.getElementById){ var el = document.getElementById(obj); var ar = document.getElementById("maindiv").getElementsByTagName("span"); if(el.style.display != "block"){ for (var i=0; i- 아트센터갤러리 -" htmlString += "" htmlString += "닫기" htmlString += "" winHandle.document.open() winHandle.document.write(htmlString) winHandle.document.close() } if(winHandle != null) winHandle.focus() return winHandle } function MM_popupMsg(msg) { //v1.0 alert(msg); } // 검색페이지 호출 함수 function searchBtn(skeyword) { //location.href="./sub.jsp?menuId=102425&searchKeyword=" + skeyword; document.sForm.menuId.value = "102425"; document.sForm.searchKeyword.value = skeyword; document.sForm.submit(); } //////print////////////// var initBody function beforePrint(){ initBody = document.body.innerHTML; iFrmPrint.innerHTML = customCnts_ifrm.document.body.innerHTML; document.body.innerHTML = contents.innerHTML; } function afterPrint(){ document.body.innerHTML = initBody; } function printArea() { window.print(); location.reload(); } //window.onbeforeprint = beforePrint; //window.onafterprint = afterPrint; //////////////////