
var clipTop3 = 0;
var clipWidth3 = 300;
var clipBottom3 = 430;
var topper3 = 40;
var lyrheight3 = 0;
var time,amount,theTime,theHeight,DHTML;

function init3()
{
	DHTML = (document.getElementById || document.all || document.layers)
	if (!DHTML) return;
	var x = new getObj('hotelsz');
	if (document.layers)
	{
		lyrheight3= x.style.clip.bottom;
		lyrheight3 += 20;
		x.style.clip.top = clipTop3;
		x.style.clip.left = 0;
		x.style.clip.right = clipWidth3;
		x.style.clip.bottom = clipBottom3;

	}
	else if (document.getElementById || document.all)
	{
		lyrheight3= x.obj.offsetHeight;
		x.style.clip = 'rect('+clipTop3+' '+clipWidth3+' '+clipBottom3+' 0)'
	}
}

function scrollayer3(layername,amt,tim)
{
	if (!DHTML) return;
	thelayer = new getObj(layername);
	if (!thelayer) return;
	amount = amt;
	theTime = tim;
	realscroll3();
}

function realscroll3()
{
	if (!DHTML) return;
	clipTop3 += amount;
	clipBottom3 += amount;
	topper3 -= amount;
	if (clipTop3 < 0 || clipBottom3 > lyrheight3)
	{
		clipTop3 -= amount;
		clipBottom3 -= amount;
		topper3 += amount;
		return;
	}
	if (document.getElementById || document.all)
	{
		clipstring = 'rect('+clipTop3+' '+clipWidth3+' '+clipBottom3+' 0)'
		thelayer.style.clip = clipstring;
		thelayer.style.top = topper3;
	}
	else if (document.layers)
	{
		thelayer.style.clip.top = clipTop3;
		thelayer.style.clip.bottom = clipBottom3;
		thelayer.style.top = topper3;
	}
	time = setTimeout('realscroll3()',theTime);
}



