	// IDX Broker Slideshow version 1.0
	// Copyright ©2010 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 = 4000;
	var cwi = 0;
	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-slideshow { text-align: center; width: 156px; height: 134px;  }');
	document.writeln('.IDX-image { width: 140px; height: 100px;  }');
	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 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 >= 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('409,900','2634 Franklin Ave E 106 ','Seattle, WA 98102 ','http://photos-3.idxco.com/04182a1f629cd01a2f139b653a56490900413875','13875','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=13875&idxID=041','2','2','Amazing short sale opportunity. This condo is what living in...');
	properties[1] = new Array('329,950','10611 170th Ct NE ','Redmond, WA 98052 ','http://photos-3.idxco.com/041bd378dfb194bb2279d6b23349db9901f13869','13869','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=13869&idxID=041','3','1','Tremendous value in this 3 bedroom rambler. Great Education ...');
	properties[2] = new Array('285,000','7024 155th Pl NE 7024 ','Redmond, WA 98052 ','http://photos-3.idxco.com/041ada4df8eeab1ff22293501dc29c1946617310','17310','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=17310&idxID=041','2','1.75','Incredible view, tremendous value in this 2 bedroom 2 bath R...');
	properties[3] = new Array('164,950','11115 NE 124th Ln  C210 ','Kirkland, WA 98034 ','http://photos-3.idxco.com/041ae952f7b6e9ae8c2bf18a993f825aaa629090107','29090107','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29090107&idxID=041','2','2','Short Sale - Hot new price - Bring offers! Awesome 2 bed, 2 ...');
	properties[4] = new Array('100,000','4803 180 St SW A101 ','Lynnwood, WA 98037 ','http://photos-3.idxco.com/0411fe9887ab45d9d28f03be639b317bbfe29166707','29166707','041','http://ezdigs.idxco.com/idx/2538/details.php?listingID=29166707&idxID=041','2','1','Fully remodeled condo with all new flooring, tile tub surrou...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
