<!--
var time,amount,theTime,theHeight,DHTML, heightHidden;

function init(_myObj)
{
	DHTML = (document.getElementById || document.all || document.layers)
	if (!DHTML) return;
	var x = new getObj(_myObj);
	if (document.layers)
	{
		lyrheight = x.style.clip.bottom;
		
		lyrheight += 20;
		x.style.clip.top = 0;
		x.style.clip.left = 0;
		x.style.clip.right = clipWidth;
		x.style.clip.bottom = clipBottom;
	}
	else if (document.getElementById || document.all)
	{
		lyrheight = x.obj.offsetHeight;
		x.style.clip = 'rect('+clipTop+'px,'+clipWidth+'px,'+clipBottom+'px,0px)';
	}
		heightHidden = lyrheight - clipBottom;
}

function scrollayer(layername,amt,tim)
{
	if (!DHTML) return;
	thelayer = new getObj(layername);
	if (!thelayer) return;
	amount = amt;
	theTime = tim;
	realscroll();
}


function realscroll()
{
	if (!DHTML) return;
	
	var _cur = new getObj("sliderCursor");
	
	clipTop += amount;
	clipBottom += amount;
	topper -= amount;
	if (clipTop < 0 || clipBottom > lyrheight)
	{
		_cur.style.top = (clipTop < 0)?'0px':(sliderCursorRun-_cur.style.pixelHeight)+'px'
		clipTop -= amount;
		clipBottom -= amount;
		topper += amount;
		return;
	}
	if (document.getElementById || document.all)
	{
		clipstring = 'rect('+clipTop+'px,'+clipWidth+'px,'+clipBottom+'px,0)';
		thelayer.style.clip = clipstring;
		thelayer.style.top = topper + 'px';
		if (clipTop > 0 && clipBottom < lyrheight){
			var _pos =  ( Math.ceil((-1*topper/heightHidden)*sliderCursorRun)) ;
			//debug(_pos)
			if(_pos>=0 && _pos<=sliderCursorRun)
				_cur.style.top = _pos+ 'px'
			else{
				_cur.style.top = (_pos<0)?'0px':sliderCursorRun+'px';
			}
		}
	}
	else if (document.layers)
	{
		thelayer.style.clip.top = clipTop;
		thelayer.style.clip.bottom = clipBottom;
		thelayer.style.top = topper;
	}
	time = setTimeout('realscroll()',theTime);
}

function stopScroll()
{
	if (time) clearTimeout(time);
}


function debug(_str){
	var x = document.getElementById("debug");
	x.innerHTML += _str  +"<br>"
}
//-->