	// IDX Broker Slideshow version 1.0
	// Copyright ©2009 All rights reserved.
	// This script exists soley for the purposes of allowing real estate professionals to display
	// their property information easily on their own web site. All other use prohibited.
	
	var c;
	var timeout = 3000;
	var cwi = 0;
	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-slideshow { text-align: center; width: 160px; height: 160px;  }');
	document.writeln('.IDX-image { width: 150px; height: 113px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 9 - 1;

	document.writeln('<div id="IDX-slideshow">');
	document.writeln('<div id="IDX-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-ssImageURL" class="IDX-ssLinkText"><img id="IDX-ssImage" name="ssImage" alt="Slideshow image" border="0"  class="IDX-image" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-priceLine"></div>');
	document.writeln('<div id="IDX-addressLine"></div>');
	document.writeln('<div id="IDX-cszLine"></div>');
	document.writeln('<div id="IDX-bedsLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-bathsLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-remarksLine" style="display:none;"></div>');

	document.writeln('</div>');

	function play()
	{
		urlVar = '<a href="'+properties[cwi][6]+'" class="IDX-ssLinkText">';
		document.images.ssImage.src = preLoad.src;
		document.getElementById('IDX-ssImageURL').href = properties[cwi][6];
		document.getElementById('IDX-priceLine').innerHTML = urlVar+'$'+properties[cwi][0]+'</a>';
		document.getElementById('IDX-addressLine').innerHTML =  urlVar+properties[cwi][1]+'</a>';
		document.getElementById('IDX-cszLine').innerHTML = urlVar+properties[cwi][2]+'</a>';
		document.getElementById('IDX-bedsLine').innerHTML = urlVar+'Beds: '+properties[cwi][7]+'</a>';
		document.getElementById('IDX-bathsLine').innerHTML = urlVar+'Baths: '+properties[cwi][8]+'</a>';
		document.getElementById('IDX-remarksLine').innerHTML = urlVar+properties[cwi][9]+'</a>';
		preLoad = new Image();
		preLoad.src = properties[next][3];
		update();
		c = setTimeout('play()', timeout)
	} // end play()
	function update()
	{
		cwi = next;
		genNext();
		genPrev();
	}
	function genNext()
	{
		next = cwi + 1;
		if (next >= 9)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 9 - 1;
	} // end genPrev

	var properties = new Array(9);
	properties[0] = new Array('272,000','2306 Creekside Bend ','San Antonio, TX 78259 ','http://photos-4.idxco.com/080bc3342900d403f7e9ed2a080f9d51f76795095','795095','080','http://www.mysahomeresource.idxco.com/idx/3411/details.php?listingID=795095&idxID=080','5','3','...');
	properties[1] = new Array('245,000','11310 Begonia Rock ','San Antonio, TX 78245 ','http://photos-4.idxco.com/0808a3495c524712c3960b34ee3c17b2176808357','808357','080','http://www.mysahomeresource.idxco.com/idx/3411/details.php?listingID=808357&idxID=080','4','2','...');
	properties[2] = new Array('240,000','11238 Begonia Rock ','San Antonio, TX 78245 ','http://photos-4.idxco.com/0808ab781eb78ff72e2468ee3a5be242a04808330','808330','080','http://www.mysahomeresource.idxco.com/idx/3411/details.php?listingID=808330&idxID=080','4','3','...');
	properties[3] = new Array('195,000','11314 Begonia Rock ','San Antonio, TX 78245 ','http://photos-4.idxco.com/080c3e0ca401c3d25e74d9b041ac666b60c808351','808351','080','http://www.mysahomeresource.idxco.com/idx/3411/details.php?listingID=808351&idxID=080','4','2','...');
	properties[4] = new Array('185,000','8710 Sage Brush Lane ','San Antonio, TX 78217 ','http://photos-4.idxco.com/080accc5999f6daf36920292eebe243baf6741938','741938','080','http://www.mysahomeresource.idxco.com/idx/3411/details.php?listingID=741938&idxID=080','3','2','...');
	properties[5] = new Array('137,000','9119 Laguna Hills ','Selma, TX 78154 ','http://photos-4.idxco.com/080e49f1fea82438ae015f1fa6d6b844369809652','809652','080','http://www.mysahomeresource.idxco.com/idx/3411/details.php?listingID=809652&idxID=080','3','2','...');
	properties[6] = new Array('85,000','244 Rosewood Dr ','LA VERNIA, TX 78121 ','http://photos-4.idxco.com/080b96b4b3d4f54d8c1c95dbc3141ee7b08791798','791798','080','http://www.mysahomeresource.idxco.com/idx/3411/details.php?listingID=791798&idxID=080','','','...');
	properties[7] = new Array('85,000','348 Rose Meadow Dr ','LA VERNIA, TX 78121 ','http://photos-4.idxco.com/080529858dd1a0273f6282efb3fed326806791791','791791','080','http://www.mysahomeresource.idxco.com/idx/3411/details.php?listingID=791791&idxID=080','','','...');
	properties[8] = new Array('56,000','1038 Wildflower ','Floresville, TX 78114 ','http://photos-4.idxco.com/0803a67ff7fc85bed42bf19e4ca23e09720741398','741398','080','http://www.mysahomeresource.idxco.com/idx/3411/details.php?listingID=741398&idxID=080','','','...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
