var htmlstr    = "";
var flag       = true;
var imgflag    = false;
var mouse      = 1;
var speed      = 1;
var wait       = 2500;
var temp       = 0;
var height     = 17;
var amount     = 17;
var startPanel = 0;
var n_panel    = 0;
var i          = 0;
var j          = 0;
var count      = 1;

function startText()
{
	for(i=0; i<ctnt.length; i++)
		insertText(i);

	window.setTimeout("scroll()",wait);
}
function scroll()
{
	if( mouse && flag )
	{
		for( i=0;i<ctnt.length;i++ )
		{
			temp++;
			tmp     = document.getElementById('scroll_area'+i).style;
			tmp.top = parseInt(tmp.top)-speed;

			if( parseInt(tmp.top) <= height*(-1) )
				tmp.top = height*(ctnt.length-1);

			if( temp>(amount-1)*ctnt.length )
			{
				flag=false;
				temp=0;
				window.setTimeout("flag=true;temp=0;imgflag=true;",wait);
			}
		}
	}
	window.setTimeout("scroll()",1);
}
function insertText(i)
{
	var str = ctnt[i];
		str.replace(/&#39;/gi, "'");

	htmlstr  = '<li id="scroll_area'+i+'" style="top:'+(height*i+2)+'px">\n';
	htmlstr += ctnt[i]+'\n'+'</li>\n';
	if( i==0 )
	{
		document.write('<ul onMouseover="mouse=0" onMouseout="mouse=1">');
	}

	document.write(htmlstr);

	if( i==9 )
	{
		document.write('</ul>');
	}
}
