/**
 *	공지사항이 보여지는 부분을 구현한다.
 */
function notice_expose()
{
	this.getViews = function()
	{
		return [ "main", "section_right" ];
	}
	
	this.main = function(div, model)
	{
		var	htmlcode = "";
		htmlcode += '<div class="main_title_r">';
		htmlcode += '	<h1 class="title"><img src="http://image.chosun.com/keywui/img/main/main_title_notice.gif" title="공지사항"></h1>';
		htmlcode += '	<div class="title_more"><div class="bu02"><a href="/customer/customer_notice.keywui">더보기</a></div></div>	';
		htmlcode += '</div>';
		htmlcode += '<div class="box_notice">';
		htmlcode += '	<ul class="main_notice">';
		for ( var i = 0; i < 3 && i < model.length; i++ )
		{
			htmlcode += '	<li class="notice"><a href="/customer/customer_notice_view.keywui?seqnum=' + model[i].seqnum + '">' + model[i].title + '</a></li>';
		}

		htmlcode += '	</ul>';
		htmlcode += '</div>';
		htmlcode += '<div class="h_space20"></div>';
		div.innerHTML = htmlcode;
	}
	
	this.section_right = function(div, model)
	{
		var	htmlcode = "";
		htmlcode += '<div class="main_title_r">';
		htmlcode += '	<h1 class="title"><span>공지</span> 사항</h1>';
		htmlcode += '	<div class="title_more"><div class="bu02"><a href="/customer/customer_notice.keywui">더보기</a></div></div>';
		htmlcode += '</div>';
		htmlcode += '<ul class="list_box">';
		for ( var i = 0; i < model.length; i++ )
		{
			htmlcode += '	<li class="list"><a href="/customer/customer_notice_view.keywui?seqnum=' + model[i].seqnum + '">' + model[i].title + '</a></li>';
		}

		htmlcode += '	</ul>';
		
		div.innerHTML = htmlcode;
	}
}

/**
 *	서비스이용안내 보여지는 부분을 구현한다.
 */
function service_expose()
{
	this.getViews = function()
	{
		return [ "section_right" ];
	}
	
	this.section_right = function(div, model)
	{
		var	htmlcode = "";
		htmlcode += '<div class="main_title_r">';
		htmlcode += '	<h1 class="title"><span>서비스</span> 이용안내</h1>';
		htmlcode += '	<div class="title_more"><div class="bu02"><a href="/customer/customer_guide.keywui">더보기</a></div></div>';
		htmlcode += '</div>';
		htmlcode += '<ul class="list_box">';
		for ( var i = 0; i < model.length; i++ )
		{
			htmlcode += '	<li class="list"><a href="/customer/customer_guide_view.keywui?seqnum=' + model[i].seqnum + '">' + model[i].title + '</a></li>';
		}

		htmlcode += '	</ul>';
		
		div.innerHTML = htmlcode;
	}
}