function bluring() { try{ if(event.srcElement.tagName=='A'||event.srcElement.tagName=='IMG') { document.body.focus(); } }catch( e ) { } } try{ document.onfocusin=bluring; }catch( e ) { } var rurl = location.href; var purl = getUrl(rurl); function getUrl(url_str) { var real_url; if (url_str.indexOf('/') > 0) { real_url = url_str.split('/'); real_url = real_url[0]+'//'+real_url[2]+'/'+real_url[3]+'/'; } return real_url; } function goLocate(go_url) { document.location = purl + go_url; } /*******************************Äü¸Þ´º ¹«ºù°ü·Ã ****************************/ function jpub_OpenWindow(url,intWidth,intHeight) { var intLeft = (screen.width-(screen.availWidth/2)-intWidth/2); var intTop = (screen.height-(screen.availHeight/2)-intHeight/2); window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=false,scrollbars=false,left="+intLeft+",top="+intTop); } if (isNS4) { var divMenu = document["divMenu"]; divMenu.top = top.pageYOffset + 0; divMenu.visibility = "visible"; moveRightEdge(); } else if (isDOM) { var divMenu = getRef('divMenu'); divMenu.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 0; divMenu.style.visibility = "visible"; moveRightEdge(); } var isDOM = (document.getElementById ? true : false); var isIE4 = ((document.all && !isDOM) ? true : false); var isNS4 = (document.layers ? true : false); function getRef(id) { if (isDOM) return document.getElementById(id); if (isIE4) return document.all[id]; if (isNS4) return document.layers[id]; } var isNS = navigator.appName == "Netscape"; var topHeight = 150; var imgHeight = 300; var botHeight = 100; function moveRightEdge() { var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck; if (parseInt(document.body.clientHeight,10) < (topHeight + imgHeight)) { var noSize = topHeight + imgHeight - parseInt(document.body.clientHeight,10); } else { var noSize = 0; } if (isNS4) { yMenuFrom = divMenu.top; yMenuTo = windows.pageYOffset - noSize; } else if (isDOM) { yMenuFrom = parseInt(divMenu.style.top, 10); yMenuTo = (isNS ? window.pageYOffset : document.body.scrollTop) - noSize; if (document.body.scrollTop > ((document.body.clientHeight+document.body.scrollTop)-(topHeight+imgHeight+botHeight))) { yMenuTo = (document.body.clientHeight+document.body.scrollTop) - (topHeight+imgHeight+botHeight); } if (yMenuTo < 0) yMenuTo = 0; } timeoutNextCheck = 30; if (yMenuFrom != yMenuTo) { yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20); if (yMenuTo < yMenuFrom) yOffset = -yOffset; if (isNS4) { divMenu.top += yOffset; } else if (isDOM) { divMenu.style.top = yMenuFrom + yOffset; timeoutNextCheck = 5; } } setTimeout ("moveRightEdge()", timeoutNextCheck); }