
// 화면 확대 축소
var zoomRate = 10;
var curRate = 100;
var minRate = 100;
var maxRate = 200;

function zoomInOut(value) {
	var browserEl = navigator.userAgent.toLowerCase();
	if(browserEl.indexOf('firefox')!=-1) { alert("익스플로러전용기능입니다. 보기메뉴 - 크기조정 - 확대/축소를 이용하세요."); }
	else if(browserEl.indexOf('opera')!=-1) { alert("익스플로러전용기능입니다. 보기메뉴 - zoom을 이용하세요."); }
	else if(browserEl.indexOf('safari')!=-1) { alert("익스플로러전용기능입니다. 보기메뉴 - 텍스트크게/작게를 이용하세요."); }
	if (((value == "plus")&&(curRate >= maxRate))||((value == "minus") && (curRate <= minRate))) {
	    return;
	}
	if (value == "plus") {
		curRate = parseInt(curRate) + parseInt(zoomRate);
	} else if (value == "minus") {
		curRate = parseInt(curRate) - parseInt(zoomRate);
	} else {
		curRate = 100;
	}
	document.body.style.zoom = curRate + '%';

}

function open_mov()	{
	window.open('/korea/MediaPopup.php','cfpop','width=410, height=560')
}

function closeMov() {
	self.close();
}

// 셀렉트 박스 이동
function MM_jumpMenuGo(objId,targ,restore){ //v9.0
	var selObj = null;
	with (document) {
		if (getElementById) selObj = getElementById(objId);
		if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
	}
}


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='about:blank;';
	return '';
}






// ------------
// 팝업창
// ------------
function notice_getCookie(name)
{
	var nameOfCookie = name + "=";
	var x = 0;
	while( x <= document.cookie.length )
	{
		var y = (x+nameOfCookie.length);
		if( document.cookie.substring( x, y ) == nameOfCookie )
		{
			if( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
			{
				endOfCookie = document.cookie.length;
			}
			return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		if ( x == 0 )
		{
			break;
		}
	}
	return "";
}
function notice_setCookie(name, value, expiredays)
{
    var todayDate = new Date();
    todayDate.setDate( todayDate.getDate() + expiredays );
    document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + todayDate.toGMTString() + ';'
}
function notice_layer_closeWin(frm)
{
    var popfrm = eval("document.popfrm_"+frm);
    if ( popfrm.Notice1.checked )
    notice_setCookie(frm, 'done', 2); // 1 = 하룻동안 공지창 열지 않음
    document.getElementById(frm).style.display = 'none'
}
