var isDOM = (document.getElementById ? true : false); var isIE4 = ((document.all && !isDOM) ? true : false); var isNS4 = (document.layers ? true : false); var isNS = navigator.appName == "Netscape"; function getRef(id) { if (isDOM) return document.getElementById(id); if (isIE4) return document.all[id]; if (isNS4) return document.layers[id]; } function getSty(id) { x = getRef(id); return (isNS4 ? getRef(id) : getRef(id).style); } function moveRightEdge() { var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck; if (isNS4) { yMenuFrom = btn_top.top; yMenuTo = windows.pageYOffset + 400; } else if (isDOM) { yMenuFrom = parseInt (btn_top.style.top, 10); yMenuTo = (isNS ? window.pageYOffset : document.body.scrollTop) + 301; //°íÁ¤³ôÀÌÁöÁ¤°ª [È­¸éÅ©±â±âÁÖÀÏ‹š »ç¿ë ->(screen.height - 320)] } timeoutNextCheck = 500; if (yMenuFrom != yMenuTo) { yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20); if (yMenuTo < yMenuFrom) yOffset = -yOffset; if (isNS4) btn_top.top += yOffset; else if (isDOM) btn_top.style.top = parseInt (btn_top.style.top, 10) + yOffset; timeoutNextCheck = 10; } setTimeout ("moveRightEdge()", timeoutNextCheck); } function initPage() { if (isNS4) { } else if (isDOM) { var divMenu = getRef('btn_top'); btn_top.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 400; btn_top.style.visibility = "visible"; moveRightEdge(); } } // Extend 1th Menu & Highlight 2nd Menu function initMenu( firstImg, firstTd, secondImg ) { // Highlight 1st Menu if( firstImg ) highlightMenuImg( firstImg ); // Extend 1th Menu if( firstTd ) subMenu( firstTd ); // Highlight 2nd Menu if( secondImg ) highlightMenuImg( secondImg ); } function highlightMenuImg( img ) { var imgSrc = document.all[ img ].src; var re = /\w+:\/\/[^/:]+(:\d*)?([^# ]*).gif/; if( img ) { if( imgSrc.match( re ) ) { document.all[ img ].src = RegExp.$2 + "_over.gif"; } } } function ChangeTitle(imgsrc,imgurl) { var imgTarget = eval("document."+imgurl); imgTarget.src = imgsrc ; } function contactUS() { window.open('/test/renewal/contact.html','contact','scrollbars=yes,resizable=no,width=420,height=324,left=20,top=20'); } document.attachEvent ("onreadystatechange", function() { if (document.readyState=="complete") { if (window.objectPatch) window.objectPatch(); } } ) function objectPatch() { var os = document.getElementsByTagName("object"); for (var i=0; i < os.length; i++) { var peer = os[i]; var clsid = peer.getAttribute("classid"); if (!clsid) continue; switch (clsid.toLowerCase()) { case "clsid:bb4533a0-85e0-4657-9bf2-e8e7b100d47e" : // combo case "clsid:71e7aca0-ef63-4055-9894-229b056e9c31" : // grid case "clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" : // media player case "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" : // flash var html = peer.outerHTML; peer.outerHTML = html; break; default: break; } } }