<!--
var clipTop = 80;
var clipWidth = 535;
var clipBottom = 533;
var topper = 75;
var lyrheight = 0;
var time,amount,theTime,theHeight,DHTML;

var clipTopOvr = 0;
var clipWidthOvr = 94;
var clipBottomOvr = 75;
var topperOvr = 6;
var lyrheightOvr = 0;
var timeOvr,amountOvr,theTimeOvr,theHeightOvr;

function init()
{
	DHTML = (document.getElementById || document.all || document.layers)
	if (!DHTML) return;
	var x = new getObj('homesMap');
	if (document.layers)
	{
		lyrheight = x.style.clip.bottom;
		lyrheight += 20;
		x.style.clip.top = clipTop;
		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;
		var clipstring = 'rect('+clipTop+'px,'+clipWidth+'px,'+clipBottom+'px,0)';
		x.style.clip = clipstring;
	}
}
function initOvr()
{
	DHTML = (document.getElementById || document.all || document.layers)
	if (!DHTML) return;
	var x = new getObj('gminiMapMask');
	if (document.layers)
	{
		lyrheightOvr = 75;//x.style.clip.bottom;
		lyrheightOvr += 20;
		x.style.clip.top = clipTopOvr;
		x.style.clip.left = 0;
		x.style.clip.right = clipWidthOvr;
		x.style.clip.bottom = clipBottomOvr;
	}
	else if (document.getElementById || document.all)
	{
		lyrheightOvr = 75; //x.obj.offsetHeight;
		var clipstring = 'rect(0px,'+clipWidthOvr+'px,148px,0)';
		x.style.clip = clipstring;
	}
}

function scrollayer(layername,amt,tim)
{
	if (!DHTML) return;
	thelayer = new getObj(layername);
	if (!thelayer) return;
	amount = amt;
	theTime = tim;
	realscroll();
}
function scrollOvr(layername,amt,tim)
{
	if (!DHTML) return;
	thelayerOvr = new getObj(layername);
	if (!thelayerOvr) return;
	amountOvr = amt;
	theTimeOvr = tim;
	realscrollOvr();
}

function stopScroll()
{
	if (time) clearTimeout(time);
}
function stopScrollOvr()
{
	if (timeOvr) clearTimeout(timeOvr);
}

function realscroll()
{
	if (!DHTML) return;
	// Set the new position of the element
	clipTop += amount;
	clipBottom += amount;
	topper -= amount;
	// Reset position if it is past the boundries
	if (clipTop < 0 || clipBottom > lyrheight)
	{
		clipTop -= amount;
		clipBottom -= amount;
		topper += amount;
		return;
	}
	// Reposition the element
	if (document.getElementById || document.all)
	{
		clipstring = 'rect('+clipTop+'px,'+clipWidth+'px,'+clipBottom+'px,0)'
		thelayer.style.clip = clipstring;
		thelayer.style.top = topper + 'px';
	}
	else if (document.layers)
	{
		thelayer.style.clip.top = clipTop;
		thelayer.style.clip.bottom = clipBottom;
		thelayer.style.top = topper;
	}
	// Repeat the call
  time = setTimeout('realscroll()',theTime);
}

function realscrollOvr()
{
	if (!DHTML) return;

  clipTopOvr -= amountOvr;
  clipBottomOvr = clipTopOvr+154;
	topperOvr += amountOvr;
  if (clipBottomOvr==171 || ((clipBottomOvr-23) < lyrheightOvr))
	{
    clipTopOvr += amountOvr;
    clipBottomOvr = clipTopOvr+154;
	  topperOvr -= amountOvr;
		return;
	}
	if (document.getElementById || document.all)
	{
		clipstring = 'rect('+clipTopOvr+'px,'+clipWidthOvr+'px,'+clipBottomOvr+'px,0)'
    thelayerOvr.style.clip = clipstring;
		thelayerOvr.style.top = topperOvr + 'px';
	}
	else if (document.layers)
	{
		thelayerOvr.style.clip.top = clipTopOvr;
		thelayerOvr.style.clip.bottom = clipBottomOvr;
		thelayerOvr.style.top = topperOvr;
	}
  timeOvr = setTimeout('realscrollOvr()',theTimeOvr);
}

function getObj(name)
{
  if (document.getElementById)
  {
    this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
    this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

// -->

