	// IDX Broker Slideshow version 1.0
	// Copyright ¿2012 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('a.IDX-ssLinkText, a.IDX-ssLinkText:active, a.IDX-ssLinkText:link, a.IDX-ssLinkText:visited, a.IDX-ssLinkText:hover { font-size: 14px;  }');
	document.writeln('#IDX-slideshow { text-align: center; width: 255px; height: 239px;  }');
	document.writeln('.IDX-image { width: 255px; height: 239px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 7 - 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 >= 7)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 7 - 1;
	} // end genPrev

	var properties = new Array(7);
	properties[0] = new Array('775,000','7849 NW BLUE POINTE LN ','Portland, OR 97229 ','http://photos-2.idxco.com/037bc71875f2e6f7e9d93015a89ec1b406d11377760','11377760','037','http://kuehlteam.idxco.com/idx/2365/details.php?listingID=11377760&idxID=037','3','2','Sophistication and style with a valley view, high quality cr...');
	properties[1] = new Array('699,000','2343 S Edgewood ','Seaside, OR 97138 ','http://photos-2.idxco.com/037aa3b57ce8a6b2111be5dd8470169b3dc8066333','8066333','037','http://kuehlteam.idxco.com/idx/2365/details.php?listingID=8066333&idxID=037','4','2','Beautiful Custom built home on the Golf course.Extensive til...');
	properties[2] = new Array('599,000','5755 SW ABERNATHY CT ','Portland, OR 97221 ','http://photos-2.idxco.com/037fb6708df41a4899bded26f9977f7f71011688958','11688958','037','http://kuehlteam.idxco.com/idx/2365/details.php?listingID=11688958&idxID=037','4','3','A secluded treasure located at the end of the road in Wilcox...');
	properties[3] = new Array('399,000','4326 N MISSISSIPPI AVE ','Portland, OR 97217 ','http://app.rmlsweb.com/webphotos/09000000/70000/5000/9075334-1.jpg','9075334','037','http://kuehlteam.idxco.com/idx/2365/details.php?listingID=9075334&idxID=037','2','1','Right in the heart of Mississippi St,50x100 lot Zoned Commer...');
	properties[4] = new Array('399,000','','Portland, OR 97217 ','http://app.rmlsweb.com/webphotos/09000000/20000/5000/9025693-1.jpg','9025693','037','http://kuehlteam.idxco.com/idx/2365/details.php?listingID=9025693&idxID=037','','','2 Bedroom residence in good condition Zoned Commercial Store...');
	properties[5] = new Array('339,000','','Beaverton, OR 97005 ','http://app.rmlsweb.com/webphotos/11100000/90000/4000/11194732-1.jpg','11194732','037','http://kuehlteam.idxco.com/idx/2365/details.php?listingID=11194732&idxID=037','','','Desirable 4 plex nestled in the heart of old town Bvtn,mins ...');
	properties[6] = new Array('175,000','34494 VAIL CT ','St. Helens, OR 97051 ','http://photos.rmlsweb.com/webphotos/12500000/80000/5000/12585436-1.jpg','12585436','037','http://kuehlteam.idxco.com/idx/2365/details.php?listingID=12585436&idxID=037','3','2','Charming home on a quiet culdesac,hwd floors,vaulted ceiling...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

