= maxRate)) ||
((how == "out") && (curRate <= minRate))
) ) {
return; /* ¹üÀ§ Ãʰú½Ã ¸®ÅÏÇÑ´Ù */
}
if (how == "in") {
if(bIE) {
curRate = curRate + zoomRate;
document.body.style.zoom = curRate + '%'; /* ȸé È®´ë */
}
else {
scaleFont(+1);
}
}
else if (how == "def"){
if(bIE) {
document.body.style.zoom = 1;
curRate = 100;
}
else {
scaleFont(0);
}
}
else{
if(bIE) {
curRate = curRate + (-1)*zoomRate;
document.body.style.zoom = curRate + '%'; /* ȸé Ãà¼Ò */
}
else {
scaleFont(-1);
}
}
}
var fSize = 11;
function scaleFont( n )
{
if(n == 0) fSize = 11;
else fSize = fSize + n;
if(fSize > 20) { fSize = 20; return; }
if(fSize < 11) { fSize = 11; return; }
var objTd = document.getElementsByTagName( "td" );// | , | ÀÇ ³»¿ëÀ» ¸ðµÎ Àоî¿È
var objSpan = document.getElementsByTagName( "span" );
var objA = document.getElementsByTagName( "a" );
var objP = document.getElementsByTagName( "p" );
//var objFont = document.getElementsByTagName( "font" );
for( i=0; i < objTd.length; i++ )
{
objTd[i].style.fontSize = fSize + "px";
if(fSize > 15)
objTd[i].style.lineHeight = "1.5";
}
for( i=0; i < objSpan.length; i++ )
{
objSpan[i].style.fontSize = fSize + "px";
if(fSize > 15)
objSpan[i].style.lineHeight = "1.5";
}
for( i=0; i < objA.length; i++ )
{
objA[i].style.fontSize = fSize + "px";
if(fSize > 15)
objA[i].style.lineHeight = "1.5";
}
for( i=0; i < objP.length; i++ )
{
objP[i].style.fontSize = fSize + "px";
if(fSize > 15)
objP[i].style.lineHeight = "1.5";
}
/*for( i=0; i < objFont.length; i++ )
{
objFont[i].style.fontSize = fSize + "px";
if(fSize > 15)
objFont[i].style.lineHeight = "1.5";
}*/
}
function RefreshStaticMenu() {
var stmnStartPoint, stmnEndPoint;
stmnStartPoint = parseInt(stmnObject.style.top, 10);
stmnEndPoint = Math.max(document.documentElement.scrollTop, document.body.scrollTop) + stmnGAP2;
stmnHeight = stmnObject.offsetHeight + stmnObject.offsetTop;
if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;
if (stmnStartPoint != stmnEndPoint) {
stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
if( eval(stmnEndPoint) < eval(stmnStartPoint) ){
stmnScrollAmount = eval("-"+"stmnScrollAmount");
}
stmnObject.style.top = parseInt(stmnObject.style.top, 10) + stmnScrollAmount + 'px';
stmnRefreshTimer = stmnScrollSpeed;
}
//}
stmnTimer = setTimeout("RefreshStaticMenu();", stmnActivateSpeed);
}
function initTabMenu(tabContainerID,index) {
var tabContainer = document.getElementById(tabContainerID);
var tabAnchor = tabContainer.getElementsByTagName("a");
var i = 0;
for(i=0; i 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}
function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
}
function delCookie (name,path,domain) {
if (getCookie(name)) {
document.cookie = name + "=" +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
document.location.reload();
}
var article_fontSize = 12;
function setFont(article_fontSize)
{
document.getElementById("bbs_body").style.fontSize = article_fontSize+"px";
}
function initFont() {
if ( (article_fontSize < 12) || (article_fontSize > 18) || (isNaN(article_fontSize) == true) ) {
article_fontSize = 10;
}
setFont(article_fontSize);
}
function fontPlus()
{
if (article_fontSize < 17)
{
article_fontSize = article_fontSize + 1;
setFont(article_fontSize);
}
}
function fontMinus()
{
if (article_fontSize > 8)
{
article_fontSize = article_fontSize - 1;
setFont(article_fontSize);
}
}
function initNavigation(seq) {
var nav = document.getElementById("topmenu");
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;
//alert(event.button);
setTimeout(function () {
if (nav.isOver == false) {
if (nav.menu[seq]) {
nav.menu[seq].onmouseover();
} else if(nav.current) {
if( seq != 0)
this.current.parentNode.className = this.current.parentNode.className.replace(" over","");
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) {
if( seq !=0)
nav.current.parentNode.className = nav.current.parentNode.className.replace("over","");
if (nav.current.submenu)
nav.current.submenu.style.display = "none";
nav.current = null;
}
if (nav.current != this) {
if( seq !=0)
this.submenu.parentNode.className +=" over";
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 onNoticeShow(n) {
for(i=1;i<=5;i++) {
if(document.getElementById('notice0'+i+'_list') != null) {
if(n == i) {
document.getElementById('notice0'+i+'_list').style.display = 'block';
if(document.getElementById('notice0'+i) != null) {
var re = new RegExp('_off');
document.getElementById('notice0'+i).className = document.getElementById('notice0'+i).className.replace(re,'_on');
}
}else{
document.getElementById('notice0'+i+'_list').style.display = 'none';
if(document.getElementById('notice0'+i) != null) {
var re = new RegExp('_on');
document.getElementById('notice0'+i).className = document.getElementById('notice0'+i).className.replace(re,'_off');
}
}
}
}
}
// Tab Content
function initTabMenu2(tabContainerID) {
var tabContainer = document.getElementById(tabContainerID);
var tabAnchor = tabContainer.getElementsByTagName("a");
var i = 0;
for(i=0; i |