
	//
	var flag = true;

	//
	var mouse = 1;

	// sliding ¼Óµµ
	var hsbSpeed = 1;

	// Ã³À½ ±â´Ù¸®´Â ½Ã°£
	var firstWait = 2000;

	//
	var temp = 0;

	// ¹è³Ê width
	var hsbWidth = 0;

	// ¹è³Ê height
	var hsbHeight = 0;

	// »óÇ° °¢°¢ div width
	var hsbEachWidth = 0;

	// »óÇ° °¢°¢ div height
	var hsbEachHeight = 0;

	//
	var hsbDebug = false;



	var hsbContents = new Array(), i = 0, j = 0;


	/**
	 * width - ÀüÃ¼ ¹è³Ê °¡·Î±æÀÌ
	 * height = ÀüÃ¼ ¹è³Ê ¼¼·Î±æÀÌ
	 * eachWidth - »óÇ° ÇÏ³ª °¡·Î±æÀÌ
	 * eachHeight - »óÇ° ÇÏ³ª ¼¼·Î±æÀÌ
	 * speed - ÀÌµ¿¼Óµµ (ms)
	 */
	function startBanner(width, height, eachWidth, eachHeight, speed, debug) 
	{
		//
		hsbWidth =  width;
		hsbHeight =  height;

		hsbEachWidth = eachWidth;
		hsbEachHeight = eachHeight;

		hsbSpeed = speed;

		hsbDebug = debug;

		var debugStr = '';

		if (hsbDebug)
		{
			debugStr = 'border: thin solid red; ';
		}

		document.write('<div id="scroll_div" onmouseover="mouse=0" style="' + debugStr + 'overflow: hidden; width: ' + hsbWidth + 'px; position: relative; height: ' + hsbHeight + 'px" onmouseout="mouse=2">');

		for (i = 0; i < hsbContents.length; i++) 
			insertText_m(i);

		document.write('</div>');

		window.setTimeout("scroll_m()", firstWait);
	}


	//
	function scroll_m() 
	{
		if (mouse && flag) 
		{
			for (i = 0; i < hsbContents.length; i++) 
			{
				temp++;

				divStyle = document.getElementById('scroll_area' + i).style;

				divStyle.left = parseInt(divStyle.left) - 1;

				if (parseInt(divStyle.left) <= hsbEachWidth*(-1)) 
				{
					divStyle.left = hsbEachWidth * (hsbContents.length - 1);
				}

				if (temp > (hsbEachWidth - 1) * hsbContents.length) 
				{
					flag=false;

					temp=0;

					// »óÇ°ÀÌ ¸Ç ¾ÕÀ¸·Î ¿À¸é Àá±ñ½Ä ±â´Ù¸°´Ù.
	//				window.setTimeout("flag=true;temp=0;", wait);
					window.setTimeout("flag=true;temp=0;", hsbSpeed);
				}
			}
		}

		window.setTimeout("scroll_m()", hsbSpeed);
	}



	function insertText_m(i) 
	{
		var left = hsbEachWidth * i;
		var divID = 'scroll_area' + i;

		var debugStr = '';

		if (hsbDebug)
		{
			debugStr = 'border: thin solid green; ';
		}

		var htmlstr_m = '<div valign="middle" style="' + debugStr + 'left:' + left + 'px; width:' + hsbEachWidth + 'px; position: absolute; top: 0px; padding:0 0 0 0;" id="' + divID + '">\n';
		htmlstr_m += hsbContents[i]+'\n';
		htmlstr_m +=  '</div>\n';

		document.write(htmlstr_m);

	//  alert(ctnt[i]);

	}

