//============================================================================0
//================================ ±â»ç ÆùÆ®ÇÔ¼ö ==============================0
function setCookie (name,value,expires,path,domain,secure) {
  document.cookie = name + "=" + escape (value) +
    ((expires) ? "; expires=" + expires.toGMTString() : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
}

function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}

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;
}
		
	var article_fontSize = parseInt(getCookie("law717_article_fontSize")); 		


	function initFont() { 

		if ( (article_fontSize < 11) || (article_fontSize > 18) || (isNaN(article_fontSize) == true)) {
			article_fontSize =11;	
		}

		setFont(article_fontSize);
	}
	
	function setFont(article_fontSize) { 		
		document.getElementById("articleBody").style.fontSize = article_fontSize+"pt";
		//document.getElementById("articleBody2").style.fontSize = article_fontSize+"pt";
		//document.getElementById("articleBody3").style.fontSize = article_fontSize+"pt";
		//document.getElementById("articleBody4").style.fontSize = article_fontSize+"pt";
		//document.getElementById("articleBody5").style.fontSize = article_fontSize+"pt";
	
		setFontCookie(article_fontSize);
	}	
	
	function setFontCookie(article_fontSize)
	{
		var expiry = new Date();
		var path = "/";
		var domain = "tryweb.co.kr";
		var secure = "";


		expiry.setTime(expiry.getTime() + 1);

		setCookie("law717_article_fontSize",article_fontSize,expiry,path,domain,secure);
	}	
	
	function fontPlus() {		
		if (article_fontSize < 17) {
			article_fontSize = article_fontSize + 1; 
			setFont(article_fontSize); 
		}
	}

	function fontMinus() {
		if (article_fontSize > 9) {
			article_fontSize = article_fontSize - 1; 
			setFont(article_fontSize); 
		}
	}	

// ============================ ±â»ç ÆùÆ®ÇÔ¼ö==============================
//============================================================================