<!--

////////////////////////////////////////////////////////////////////////////////////////////
//	¹öÀü   : Ver 1.0.0
//	ÀÛ¼ºÀÏ : 20070115
//	¼³¸í   : Á¦Ç° ¸®½ºÆ® ¼¼·Î ½ºÅ©·Ñ _New
////////////////////////////////////////////////////////////////////////////////////////////

var iScrollerHeight_top = 19;		// ½ºÅ©·Ñ·¯ÀÇ ¼¼·Î
var iTotalArea_top = 0;
var bWait_top = true;
var bMouseOver_top = false;
var iScrollSpeed_top = 5;			// Scrolling ¼Óµµ
var iWaitTime_top = 3000;			// ¸ØÃß´Â ½Ã°£
var iTemp_top = 0;
var iMovingAmount_top = 19;
var arrScrollContent_top = new Array();
var i;

function startscroll_top() 			// ½ºÅ©·Ñ ½ÃÀÛ
{
	for (i = 0; i < arrScrollContent_top.length; i++)
	{
		insert_area_top(iTotalArea_top, iTotalArea_top++); // area »ðÀÔ
	}
	
	window.setTimeout("scrolling_top()", iScrollSpeed_top);
}

function scrolling_top()				// ½ÇÁ¦·Î ½ºÅ©·Ñ ÇÏ´Â ºÎºÐ
{
	if (!bMouseOver_top && bWait_top)
	{


		for (i = 0; i < iTotalArea_top; i++)
		{
			tmp_top = document.getElementById('scroll_area_top' + i).style;
			tmp_top.top = parseInt(tmp_top.top) - 1//iScrollerHeight_top;

			if (parseInt(tmp_top.top) <= -iScrollerHeight_top)
			{
				tmp_top.top = iScrollerHeight_top * (iTotalArea_top - 1);
			}

			if (parseInt(tmp_top.top) == 0)
			{
				bWait_top = false;
				window.setTimeout("bWait_top=true; iTemp_top=0;", iWaitTime_top);
			}
				
				
		}
	}

	window.setTimeout("scrolling_top()", iScrollSpeed_top);
}

function next_scrolling_top()				// ´ÙÀ½ ½ºÅ©·Ñ
{
	for (i = 0; i < iTotalArea_top; i++)
	{
		tmp_top = document.getElementById('scroll_area_top' + i).style;
		tmp_top.top = parseInt(tmp_top.top) - iScrollerHeight_top;

		if (parseInt(tmp_top.top) <= -iScrollerHeight_top)
		{
			tmp_top.top = iScrollerHeight_top * (iTotalArea_top - 1);
		}
	}
}

function before_scrolling_top()				// ÀÌÀü ½ºÅ©·Ñ
{
	for (i = 0; i < iTotalArea_top; i++)
	{
		tmp_top = document.getElementById('scroll_area_top' + i).style;
//		alert(parseInt(tmp.top));
		tmp_top.top = parseInt(tmp_top.top) + iScrollerHeight_top;

		if (parseInt(tmp_top.top) >=iScrollerHeight_top * iTotalArea_top)
		{
			tmp_top.top = 0;//iScrollerHeight ;//* (iTotalArea);
		}
	}
}

function insert_area_top(idx, n)
{
	var strContent_top
	strContent_top = '<div style="left:0px; width:167px; height:19px; position: absolute; top: ' + (iScrollerHeight_top * n) + 'px;" id="scroll_area_top' + n + '">';
	strContent_top += arrScrollContent_top[idx];
	strContent_top += '</div>';
	document.write(strContent_top);
}

function checkMouseOver_top()
{
	var count_top
	
	count_top = 0
	for (i = 0; i < iTotalArea_top; i++)
	{
		tmp_top = document.getElementById('scroll_area_top' + i).style;
		
		if (parseInt(tmp_top.top) % iScrollerHeight_top != 0)
			count_top++;
	}
	
	if(count_top == 0)
		bMouseOver_top = true;
}
//-->         

