
var clipTop2 = 0;
var clipWidth2 = 120;
var clipBottom2 = 430;
var topper2 = 40;
var lyrheight2 = 0;
var time,amount,theTime,theHeight,DHTML;

function init2()
{
	DHTML = (document.getElementById || document.all || document.layers)
	if (!DHTML) return;
	var x = new getObj('Kepek');
	if (document.layers)
	{
		lyrheight2= x.style.clip.bottom;
		lyrheight2 += 20;
		x.style.clip.top = clipTop2;
		x.style.clip.left = 0;
		x.style.clip.right = clipWidth2;
		x.style.clip.bottom = clipBottom2;

	}
	else if (document.getElementById || document.all)
	{
		lyrheight2= x.obj.offsetHeight;
		x.style.clip = 'rect('+clipTop2+' '+clipWidth2+' '+clipBottom2+' 0)'
	}
}

function scrollayer2(layername,amt,tim)
{
	if (!DHTML) return;
	thelayer = new getObj(layername);
	if (!thelayer) return;
	amount = amt;
	theTime = tim;
	realscroll2();
}

function realscroll2()
{
	if (!DHTML) return;
	clipTop2 += amount;
	clipBottom2 += amount;
	topper2 -= amount;
	if (clipTop2 < 0 || clipBottom2 > lyrheight2)
	{
		clipTop2 -= amount;
		clipBottom2 -= amount;
		topper2 += amount;
		return;
	}
	if (document.getElementById || document.all)
	{
		clipstring = 'rect('+clipTop2+' '+clipWidth2+' '+clipBottom2+' 0)'
		thelayer.style.clip = clipstring;
		thelayer.style.top = topper2;
	}
	else if (document.layers)
	{
		thelayer.style.clip.top = clipTop2;
		thelayer.style.clip.bottom = clipBottom2;
		thelayer.style.top = topper2;
	}
	time = setTimeout('realscroll2()',theTime);
}



