	function newsfixlayout()
	{

	}

	function WriteEmbed(emb_id)
	{ 
		document.write(document.getElementById(emb_id).value);
	}
	//NEWSIS ÇÃ·¡½¬ ´º½º popup
	function openwin(sURL)
	{
		window.open(sURL,"GraphicNews","width=720,height=490,scrollbars=no,resizable=no,status=no,menubar=no,toolbar=no,status=no,directories=no");
	}

	//MBNVOD ´º½º popup
	function openplayer(sURL)
	{
		window.open(sURL,"MBNNews","width=720,height=490,scrollbars=no,resizable=no,status=no,menubar=no,toolbar=no,status=no,directories=no");
	}

	//ÀÎ¼âÇÏ±â
	function printpop(aid)
	{	
		window.open("http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^news00^newshome^view^print&hdurl=http://news.hanafos.com/etc/print.asp?id=" + aid, "print", "menubar=0,toolbar=0,scrollbars=yes, width=650, hight=300");
	}

	function News_Nav(id)
	{ 
		id=eval(id);
		PartNewsList1.style.display='none';
		PartNewsList2.style.display='none';
		id.style.display='';
	}
	function News_MainNav(id)
	{ 
		id=eval(id);
		MainNewsList1.style.display='none';
		MainNewsList2.style.display='none';
		id.style.display='';
	}

	function setCookie(name,value,expires) 
	{ 
		document.cookie=name + "=" + escape(value) + ((expires == null)? "" : (" ; expires=" + expires.toGMTString())); 
	}
	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)
			{ 
				var end = document.cookie.indexOf(";",j); 
				if(end == -1) end = document.cookie.length; 
				return unescape(document.cookie.substring(j,end)); 
			} 
			i=document.cookie.indexOf(" ",i)+1; 
			if (i==0) break; 
		} 
		return null; 
	}

	function setCookie2(name, value, expiredays, domain)
	{
		var todayDate = new Date();
		todayDate.setDate( todayDate.getDate() + expiredays );	
		todayDate.setHours(0);
		todayDate.setMinutes(0);
		todayDate.setSeconds(0);
		parent.document.cookie = name + "=" + escape( value ) + "; path=/;domain="+ domain +"; expires=" + todayDate.toGMTString() + ";"
	}

	function getFontCookie() 
	{ 
		var cookie = getCookie("hf_NewsFontSize"); 
		if ( cookie == null ) return 16; 
		if ( cookie.length ) return cookie; 
		else return 16; 
	}
	function NewsFontSize(val) {
		var content, lineHeight; 
		content = document.getElementById("NewsContent"); 
		if (val > 0) 
		{ 
			if (fontSize < 20) 
			{ 
				fontSize = fontSize + val; 
				lineHeight = fontSize+Math.round(1.1*fontSize); 
				content.style.fontSize = fontSize + "px"; 
			} 
		} 
		else 
		{ 
			if (fontSize > 12) 
			{ 
				fontSize = fontSize + val; 
				lineHeight = fontSize+Math.round(1.1*fontSize); 
				content.style.fontSize = fontSize + "px"; 
			} 
		} 
		var mydate = new Date; 
		mydate.setDate(mydate.getDate()+1000); 
		setCookie("hf_NewsFontSize", fontSize, mydate); 
	}

	//´ñ±Û Ã³¸®
	function SetRBoardShow ()
	{
		var lReplyList = document.getElementById("replyList");
		if (lReplyList.style.display == "none")
			lReplyList.style.display = "block"
		else
			lReplyList.style.display = "none"
	}

	function ShowCategory(no)
	{
		for (i=1;i<10;i++)
		{
			if (i != no)
			{
				document.getElementById("newsblock_" + i + "").style.display = "none";
			}
			else
			{
				document.getElementById("newsblock_" + i).style.display = "block";
			}
		}
	}
