<!--
var delay = 3000;
var run;
var iImg1 = 4
var iImg2 = 2
var iImg3 = 3
var iLastRnd = -1

function chgImg()
{
	var oSlideshow
	var iRnd
	var iImg

	for (var counter = 0; counter <= 50; counter++)
	{
		iRnd = Math.round(75 * Math.random()) + 1
		if (iRnd != iImg1 && iRnd != iImg2 && iRnd != iImg3) {break}
	}

	iImg = iRnd

	for (var counter = 0; counter <= 50; counter++)
	{
		iRnd = Math.round(2 * Math.random())
		if (iRnd != iLastRnd) {break}
	}

	iLastRnd = iRnd

	if (iRnd == 0) {oSlideshow = document.getElementById("renimg"); iImg1 = iImg}
	if (iRnd == 1) {oSlideshow = document.getElementById("salimg"); iImg2 = iImg}
	if (iRnd == 2) {oSlideshow = document.getElementById("obximg"); iImg3 = iImg}

	if (document.images)
	{
		if (document.all)
		{
			oSlideshow.style.filter = "blendTrans(duration=2)"
			oSlideshow.filters.blendTrans.Apply()
		}
		oSlideshow.src = 'http://www.villagerealtyobx.com/images/hps_' + iImg + '.jpg';
		if (document.all) {oSlideshow.filters.blendTrans.Play()}
	}
}

function auto()
{
	run = setInterval("chgImg()", delay)
}

function moveArrow(iLeft, oShow)
{
	document.getElementById('ob').style.display = 'none'
	document.getElementById('re').style.display = 'none'
	document.getElementById('vr').style.display = 'none'

	document.getElementById('ar').style.left = iLeft
	document.getElementById(oShow).style.display = 'block'
}

auto()
-->