
// ½ºÅ©·Ñ·¯¿¡ µé¾î°¥ ³»¿ëµéÀ» ÅÂ±×¿Í ÇÔ²² ³Ö¾î ÁÝ´Ï´Ù
var htmlstr_top = "", flag_top=true, imgflag_top=false, mouse_top=1, speed_top=1, wait_top=4000, temp_top=0, height_top=18, amount_top=18;
var ctnt_top=new Array(), ctnt_top_i=new Array(), startPanel=0, n_panel=0;

//ctnt_top[0]="<a href='http://www.e-himart.co.kr/package/templet.jsp?spcsectid=346' class='top_white'> <img src='/front/index/200803/ico_inline_event.gif' width='33' height='16' border='0' align='absmiddle'> °Ü¿ï°¡Àü ¹Ì¸®Àå¸¸ 7%ÄíÆùÁõÁ¤!</a>";-->

ctnt_top[0]="<a href='http://www.e-himart.co.kr/event/eventPage/itemReview.jsp?eventId=235' class='top_white'> <img src='/front/index/200803/icon_notice.gif' width='40' height='11' border='0' align='absmiddle'> »óÇ°Æò¸¸ ½áµµ »óÇ°ÀÌ ÆÎ!ÆÎ!</a>";

//ctnt_top[1]="<a href='http://www.e-himart.co.kr/package/templet16.jsp?spcsectid=348'> <img src='/front/index/200803/icon_news.gif' width='40' height='11' border='0' align='absmiddle'> ¼¼°èPC½ÃÀå 1À§! ÄÄÇ»ÅÍ Æ¯º°Àü!</a>";

ctnt_top[1]="<a href='http://www.e-himart.co.kr/customCenter/infoList.jsp'> <img src='/front/index/200803/icon_news.gif' width='40' height='11' border='0' align='absmiddle'> »óÇ°Æò ÀÌº¥Æ® ´çÃ·ÀÚ¸í´Ü ¹ßÇ¥!</a>";

function startTopText() {
	for (var i=0; i<ctnt_top.length; i++) {
		insertText(i);
	}
	window.setTimeout("f_nae_scroll_top()",wait_top);
}

function f_nae_scroll_top() {
	if (mouse_top && flag_top) {
		for (var i=0;i<ctnt_top.length;i++) {
		  temp_top++;
		  tmp = document.getElementById('top_scroll_area'+i).style;
		  tmp.top = parseInt(tmp.top)-speed_top;
		  if (parseInt(tmp.top) <= height_top*(-1)) {
			tmp.top = height_top*(ctnt_top.length-1);
		  }
		  if (temp_top>(amount_top-1)*ctnt_top.length) {
			flag_top=false;
			temp_top=0;
			window.setTimeout("flag_top=true;temp_top=0;imgflag_top=true;",wait_top);
		  }
		}
	}
	window.setTimeout("f_nae_scroll_top()",1);
}
function insertText(scroll_top_idx) {
	htmlstr_top='<div style="left: 0px; width: 250px; position: absolute; top: '+(height_top*scroll_top_idx+1)+'px" id="top_scroll_area'+scroll_top_idx+'">\n';
	htmlstr_top+=ctnt_top[scroll_top_idx]+'\n'+'</div>\n';
	document.write(htmlstr_top);
}