	// IDX Broker Slideshow version 1.0
	// Copyright ©2008 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 = 5000;
	var cwi = 0;
	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-slideshow { text-align: center; width: 180px; height: 200px;  }');
	document.writeln('.IDX-image { width: 170px; height: 120px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 5 - 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>');

	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>';
		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 >= 5)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 5 - 1;
	} // end genPrev

	var properties = new Array(5);
	properties[0] = new Array('166,825','125 Jules Lane ','Ashford, AL 36312 ','http://www.dothanhomesearch.idxco.com/images/noHousePhoto.png','129980','159','http://www.dothanhomesearch.idxco.com/idx/3090/details.php?listingID=129980&idxID=159');
	properties[1] = new Array('158,615','113 Michigan ','Dothan, AL 36301 ','http://photos-8.idxco.com/159a1623090873642d7cee7ecc4c86abcd6130057','130057','159','http://www.dothanhomesearch.idxco.com/idx/3090/details.php?listingID=130057&idxID=159');
	properties[2] = new Array('152,000','1401 Tacoma Street ','Dothan, AL 36303 ','http://photos-8.idxco.com/15968f3537d3a0a6454abd71ffe7d4cefb1130068','130068','159','http://www.dothanhomesearch.idxco.com/idx/3090/details.php?listingID=130068&idxID=159');
	properties[3] = new Array('152,000','212 W. Roxbury ','Dothan, AL 36305 ','http://photos-8.idxco.com/1594d83eb87e9349e83e29aaf88bb785eeb130052','130052','159','http://www.dothanhomesearch.idxco.com/idx/3090/details.php?listingID=130052&idxID=159');
	properties[4] = new Array('62,900','280 Jones Avenue ','Newton, AL 36352 ','http://www.dothanhomesearch.idxco.com/images/noHousePhoto.png','129994','159','http://www.dothanhomesearch.idxco.com/idx/3090/details.php?listingID=129994&idxID=159');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
