//ÀÌ¹ÌÁö¸µÅ©
//function bluring(){ 
//if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
//} 
//document.onfocusin=bluring; 


//·Ñ¿À¹ö
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

//»õÃ¢
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



/***********************************************************
*	Banner Scroll Start
***********************************************************/

/* Go Top  */
function GoTop() {
//	if (document.body.scrollTop == 0) {
//		window.scrollTo(0,document.body.scrollHeight);
//	} else {
		window.scrollTo(0,0);
//	}
}

function GoTop_Call() {
	document.body.ondblclick = Top;	
}


/***********************************************************
*	Banner Scroll End
***********************************************************/

function newwin(url) {
POP = window.open( url, "WIN_SUB", "status=0,scrollbars=yes,resizable=0,width=760,height=600" );
POP.focus();
}

/***********************************************************************************
	NAME : blind.js
	AUTH : ±è¿Á³â (nyunny@am.co.kr)
	CREATE DATE : 2003.11.11
	COMMENT : ½Ã°¢Àå¾ÖÀÎÀ» À§ÇÑ È¨ÆäÀÌÁö¿¡ ÇÊ¿äÇÑ ½ºÅ©¸³Æ®µéÀÔ´Ï´Ù.
***********************************************************************************/


/***********************************************
	ÆùÆ® Å©±â º¯ÇÏ´Â ½ºÅ©¸³Æ®
	ÄíÅ°¿¡ fontSize¸¦ ÀúÀåÇÑ´Ù.
************************************************/
	var fontSize = 1;
	var style;
    
	function fontPlus() {
		if (fontSize < 5) {
			fontSize = fontSize + 1;
			setFaceSize();
			//table_width();
		}
	}

	function fontMinus() {
		if (fontSize > 1) {
			fontSize = fontSize - 1;
			setFaceSize();
			//table_width();
		}
	}

	function setFaceSize(){
		style = " td {color:#6E6E6E; font-size:" + (12 + (fontSize-1)*2) +"px; line-height:20px;font-family:\"±¼¸²,seoul,helvetica,verdana\"; }  "
			  + " A:link {font-size:" + (12 + (fontSize-1)*2) +"px;  color:#000000; text-decoration: none;}  "
			  + " A:visited {font-size:" + (12 + (fontSize-1)*2) +"px;  color:#525252; text-decoration: none;} "
			  + " A:hover {font-size:" + (12 + (fontSize-1)*2) +"px; color:#FF8000; text-decoration: none;}  "
              + ".s1 {font-family:\"Verdana\"; font-size:" + (11 + (fontSize-1)*2) +"px; color:#939393;}"
			  + ".s2 {font-family:\"Verdana\"; font-size:" + (11 + (fontSize-1)*2) +"px; color:#000000;}"
			  + ".s3 {font-family:\"Verdana\"; font-size:" + (11 + (fontSize-1)*2) +"px; color:#CF2C16;}"
			  + ".tl {font-family: \"vernada\"; font-size:" + (11 + (fontSize-1)*2) +"px; color:#000000; font-weight:bold;}"
			  + ".t2 {font-family:\"±¼¸²\"; font-size:" + (12 + (fontSize-1)*2) +"px; color:#FFFFFF; line-height:18px}"
  			  + ".t3 {font-family:\"±¼¸²\"; font-size:" + (12 + (fontSize-1)*2) +"px; color:#FF8000; line-height:18px}"
			  + ".t4 {font-family:\"±¼¸²\"; font-size:" + (12 + (fontSize-1)*2) +"px; color:#CF2C16; line-height:18px}"
			  + ".faq {font-family:\"±¼¸²\"; font-size:" + (12 + (fontSize-1)*2) +"px; color:#FF8000; line-height:18px; font-weight:bold;}"		  
			  + ".b {font-family:\"±¼¸²\"; font-size:" + (12 + (fontSize-1)*2) +"px; color:#BF8615;font-weight:bold;}"
			  + ".bb {font-family:\"±¼¸²\"; font-size:" + (12 + (fontSize-1)*2) +"px; color:#499CBB;font-weight:bold;}"
 			  + ".tt {font-family:\"±¼¸²\"; font-size:" + (12 + (fontSize-1)*2) +"px; color:#333333;font-weight:bold;}"
		 	  + ".eng {font-family:\"Verdana\"; font-size:" + (11 + (fontSize-1)*2) +"px; color:#000000; line-height:18px}"
              + ".select  {	font-family: \"±¼¸²\", Verdana, Arial, Helvetica, geneva, sns-serif;font-size:9pt; color:#ffffff; background-color:#6CC6E0;}";

		document.styleSheets[0].cssText = style;
		SetCookie("sitefontsize",fontSize,"","/","");
	}

	function setFontCookie(){
		if(GetCookie("sitefontsize") == null)
		{
			fontSize = 1;
		}
		else
		{
			fontSize= GetCookie("sitefontsize");
		}

		if (fontSize==0)
		{
			fontSize = 1;
		}

		//table_width();

		fontSize = fontSize * 1;
		//alert(fontSize)	;
		setFaceSize();
	}

	function SetCookie (name,value,expires,path,domain) {
		var expires = new Date();
		expires.setDate(expires.getDate() + 365);

		document.cookie = name + "=" + escape (value) +
		((expires) ? "; expires=" + expires.toGMTString() : "") +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "");
	}

	function GetCookie (name) {
		var arg = name + "=";
		var alen = arg.length;
		var clen = document.cookie.length;
		var i = 0;
		while (i < clen) {
			var j = i + alen;
			if (document.cookie.substring(i, j) == arg)
			 return getCookieVal (j);
			i = document.cookie.indexOf(" ", i) + 1;
			if (i == 0) break;
		}
		return null;
	}

	function getCookieVal (offset) {
		var endstr = document.cookie.indexOf (";", offset);
		if (endstr == -1)
			endstr = document.cookie.length;
		return unescape(document.cookie.substring(offset, endstr));
	}

	function DeleteCookie (name,path,domain) {
		if (GetCookie(name)) {
			document.cookie = name +
			"=" +((path) ? "; path=" + path : "") +
			((domain) ? "; domain=" + domain : "") +
			"; expires=Thu, 01-Jan-70 00:00:01 GMT";
		}
	}

/**************************************************
	ÆùÆ® Å©±â º¯ÇÏ´Â ½ºÅ©¸³Æ®
	ÄíÅ°¿¡ fontSize¸¦ ÀúÀåÇÑ´Ù. ------- ½ºÅ©¸³Æ® ³¡
***************************************************/

