var 

    htmlstr_m = "", 

    flag=true, 

    mouse=1, 

    speed=20, 

    wait=1000, 

    temp=0, 

    m_amount=695, 

    m_left=695;



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


//
function startText_m() 
{
	for (i = 0; i < ctnt.length; i++) 
		insertText_m(i);

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


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

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

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

			if (parseInt(tmp.left) <= m_left * (-1)) 
			{
				tmp.left = m_left * (ctnt.length - 1);

			}

			if (temp > (m_amount - 1) * ctnt.length) 
			{
				flag = false;

				temp = 0;

				window.setTimeout("flag=true;temp=0;", wait);
			}
		}
	}

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


//
function insertText_m(i) 
{
	htmlstr_m = '<div style="left:' + ((m_left)*i) + 'px; width:' + (m_amount + 0) + 'px; position: absolute; top: 0px;padding:0 0 0 0" id="scroll_area' + i + '">\n';

	htmlstr_m += ctnt[i] + '\n' + '</div>\n';

	document.write(htmlstr_m);

	//alert(i + " " + htmlstr_m);
}

function popup3(url) 
{
	window.open(url,'open_event_b','width=800,height=750,top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');
	return;
}