function dummyClick(me)
{
	if(me)
		me.blur();
	return false;
}

var time,thelayer,amount,maxlayeroffset;
var theTime = 100;
var mytop = 0;

function initscroll()
{
	thelayer = document.getElementById('lefttext');
	maxlayeroffset = 0;
	var cbox = document.getElementById('cbox');
	var cheight = cbox ? cbox.clientHeight : 460;
	if(thelayer)
	{
		maxlayeroffset = -(thelayer.clientHeight-cheight+25);
		if(maxlayeroffset > 0)
			maxlayeroffset = 0;
	}
}

function scrollayer(amt)
{
	initscroll();
	if(thelayer)
	{
		amount = amt * 15;
		realscroll();
	}
}

function realscroll()
{
	mytop += amount;
	if(mytop>0)
		mytop = 0;
	if(mytop < maxlayeroffset)
		mytop = maxlayeroffset;
	thelayer.style.top = mytop + 'px';
	time = setTimeout('realscroll()',theTime);
}

function stopscroll()
{
	if (time) clearTimeout(time);
}
