	// 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: 180px; height: 180px;  }');
	document.writeln('.IDX-image { width: 150px; height: 120px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 4 - 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 >= 4)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 4 - 1;
	} // end genPrev

	var properties = new Array(4);
	properties[0] = new Array('687,000','14137 W VIRGINIA DR ','LAKEWOOD, CO 80228 ','http://photos-6.idxco.com/1023a374148ba79027d3824f47fba11b62c824961','824961','102','http://nbaDenver.idxco.com/idx/2741/details.php?listingID=824961&idxID=102','6','4','$100,000+ REMODEL*INCREDIBLE VIEWS OF CITY FROM COUNTLESS NE...');
	properties[1] = new Array('329,500','456 S CLARKSON ST ','DENVER, CO 80209 ','http://photos-6.idxco.com/102b808acf909d17c875af8aa8396cd5e62828149','828149','102','http://nbaDenver.idxco.com/idx/2741/details.php?listingID=828149&idxID=102','2','1','GREAT WEST WASH PARK LOCATION ON QUIET CLARKSON*ENJOY THE HO...');
	properties[2] = new Array('294,500','4481 OSCEOLA  ','DENVER, CO 80212 ','http://photos-6.idxco.com/102769fdba040d3d549b194cd9cc473f2b4808592','808592','102','http://nbaDenver.idxco.com/idx/2741/details.php?listingID=808592&idxID=102','3','2','LOVINGLY CARED FOR HOME .5 MILES FROM SUNFLOWER MKT, BLKS TO...');
	properties[3] = new Array('128,997','148 S EMERSON ST ','DENVER, CO 80209 ','http://photos-6.idxco.com/102f5d53afbf763a43f116a1637433e733e827410','827410','102','http://nbaDenver.idxco.com/idx/2741/details.php?listingID=827410&idxID=102','1','1','NOW FHA WARRANTABLE - ENTIRE PREVIOUS LISTING WAS JUST TO IN...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
