var topTextBanners = [['http://www.gmarket.co.kr/challenge/neo_coupon/dangol_chance.asp?pos_class_cd=900000006&pos_class_kind=T','´Ü°ñÀÌ¶ó¸é? ´Ü°ñÂù½º!','ico_special.gif']
,['http://www.gmarket.co.kr/challenge/neo_coupon/event_main.asp?pos_shop_cd=EC&pos_class_cd=900000011&pos_class_kind=T','G¸¶ÄÏÀÇ ÇýÅÃ! ÃÑÁýÇÕ!','ico_event.gif']
,['http://www.gmarket.co.kr/challenge/neo_event/today_event/today_event_main.asp?pos_shop_cd=EC&pos_class_cd=900000012&pos_class_kind=T','¿À´ÃÇÏ·ç¸¸! ¿øµ¥ÀÌÆ¯°¡','ico_sale.gif']
,['http://www.gmarket.co.kr/challenge/neo_sangsul/plan_display.asp?sid=78210&pos_shop_cd=EC&pos_class_cd=900000013&pos_class_kind=T','G½ºÅÆÇÁÁÖ¸é¡Ú¼±¹°ÇÏ³ª','ico_hot.gif']
,['http://www.gmarket.co.kr/challenge/neo_sangsul/plan_display.asp?sid=64202&pos_shop_cd=EC&pos_class_cd=900000014&pos_class_kind=T','´ëÇÐ»ý¸¸ÀÇ ÇýÅÃ! Ä·ÆÛ½ºÁ¸','ico_special.gif']
,];

var iScrollerHeight = 20;		// ½ºÅ©·Ñ·¯ÀÇ ¼¼·Î
var iTotalArea = 0;
var bWait = true;
var bMouseOver = false;
var iScrollSpeed = 1;			// Scrolling ¼Óµµ
var iWaitTime = 4000;			// ¸ØÃß´Â ½Ã°£
var iTemp = 0;
var iMovingAmount = 20;
var arrScrollContent = new Array();
var i;

function startscroll() 			// ½ºÅ©·Ñ ½ÃÀÛ
{
	for (i = 0; i < arrScrollContent.length; i++)
	{
		insert_area(iTotalArea, iTotalArea++); // area »ðÀÔ
	}
	
	window.setTimeout("scrolling()", iWaitTime);
}

function scrolling()				// ½ÇÁ¦·Î ½ºÅ©·Ñ ÇÏ´Â ºÎºÐ
{
	if (!bMouseOver && bWait)
	{
		for (i = 0; i < iTotalArea; i++)
		{
			tmp = document.getElementById('scroll_area' + i).style;
			tmp.top = parseInt(tmp.top) - iScrollSpeed;

			if (parseInt(tmp.top) <= -iScrollerHeight)
			{
				tmp.top = iScrollerHeight * (iTotalArea - 1);
			}

			if (iTemp++ == ((iMovingAmount - 1) * arrScrollContent.length + 1))
			{
				bWait = false;
				window.setTimeout("bWait=true; iTemp=0;", iWaitTime);
			}
		}
	}

	window.setTimeout("scrolling()", 0);
}

function next_scrolling()				// ½ÇÁ¦·Î ½ºÅ©·Ñ ÇÏ´Â ºÎºÐ
{
	for (i = 0; i < iTotalArea; i++)
	{
		tmp = document.getElementById('scroll_area' + i).style;
		tmp.top = parseInt(tmp.top) - iScrollerHeight;

		if (parseInt(tmp.top) <= -iScrollerHeight)
		{
			tmp.top = iScrollerHeight * (iTotalArea - 1);
		}
	}
}

function insert_area(idx, n)
{
	var strContent
	strContent = '<div style="left: 0px; width: 179px; height: 20px; position: absolute; top: ' + (iScrollerHeight * n) + 'px" id="scroll_area' + n + '">';
	strContent += arrScrollContent[idx];
	strContent += '</div>';
	document.write(strContent);
}

function checkMouseOver()
{
	var count
	
	count = 0
	for (i = 0; i < iTotalArea; i++)
	{
		tmp = document.getElementById('scroll_area' + i).style;
		
		if (parseInt(tmp.top) % iScrollerHeight != 0)
			count++;
	}
	
	if(count == 0)
		bMouseOver = true;
}

for(i=0; i<5; i++)
{
	arrScrollContent[i] = "<table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr><td width='39' align='center'><img src='http://image.gmarket.co.kr/challenge/neo_image/newmain3/" + topTextBanners[i][2] + "' width='39' height='14'></td><td width='140' class='texttopAD'><font color='#FFFFFF'><a href='" + topTextBanners[i][0] + "'><font color=#FFFFFF>" + topTextBanners[i][1] + "</font></a></font></td></tr></table>";
}

<!--2010-03-26 19:10:00-->