
// ½ºÅ©·Ñ·¯¿¡ µé¾î°¥ ³»¿ëµéÀ» ÅÂ±×¿Í ÇÔ²² ³Ö¾î ÁÝ´Ï´Ù
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='#' class='top_white'> <img src='img/ic_notice.gif' width='34' height='14' border='0' align='absmiddle'> 2009³â ÇÏÀÌ¸¶Æ® È¨ÆäÀÌÁö°³Æí</a>";

ctnt_top[1]="<a href='#'> <img src='img/ic_event.gif' width='34' height='14' border='0' align='absmiddle'> 2009³â ÇÏÀÌ¸¶Æ® È¨ÆäÀÌÁö°³Æí</a>";

ctnt_top[2]="<a href='#'> <img src='img/ic_open.gif' width='34' height='14' 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);
}