	// 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-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8px; font-weight: bold; color: #F87E04;  }');
	document.writeln('#IDX-slideshow { text-align: center; background-color: #F7FABE; border-width: 2px; border-style: outset; border-color: #7AB328; width: 150px; height: 188px;  }');
	document.writeln('.IDX-image { width: 150px; height: 150px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 6 - 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 >= 6)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 6 - 1;
	} // end genPrev

	var properties = new Array(6);
	properties[0] = new Array('469,000','25877 E BRIGHT AVE ','Welches, OR 97067 ','http://app.rmlsweb.com/webphotos/12500000/70000/8000/12578098-1.jpg','12578098','037','http://www2.blythecreek.com/idx/2364/details.php?listingID=12578098&idxID=037','3','3','One of a Kind Quality Built Custom home close to Mt Hood Win...');
	properties[1] = new Array('259,500','22381 E AUTUMN LN ','Rhododendron, OR 97049 ','http://photos-2.idxco.com/037568487d22562b834c5f36678c618b7cd11414273','11414273','037','http://www2.blythecreek.com/idx/2364/details.php?listingID=11414273&idxID=037','2','1','Remodeled Home on private,gated Road located on the Sandy Ri...');
	properties[2] = new Array('249,000','64969 E MOUNTAIN MEADOW LN ','Rhododendron, OR 97049 ','http://photos-2.idxco.com/03767df9f5386a923d1257da31c39f25ad511239328','11239328','037','http://www2.blythecreek.com/idx/2364/details.php?listingID=11239328&idxID=037','3','2','Beautiful Remodeled Mt Hood Home with custom Craftsman touch...');
	properties[3] = new Array('217,500','69368 E ISLAND RD ','Welches, OR 97067 ','http://app.rmlsweb.com/webphotos/11400000/20000/0000/11420179-1.jpg','11420179','037','http://www2.blythecreek.com/idx/2364/details.php?listingID=11420179&idxID=037','1','0','Fisherman\\\\\\\'s cabin with no indoor Bath. May rebuild curren...');
	properties[4] = new Array('217,500','69368 Island Drive ','Welches, OR 97067 ','http://app.rmlsweb.com/webphotos/11300000/10000/2000/11312716-1.jpg','11312716','037','http://www2.blythecreek.com/idx/2364/details.php?listingID=11312716&idxID=037','','','Great building site ready to go on the Salmon River. Quiet n...');
	properties[5] = new Array('185,000','30764 E Still Creek RD 141 ','Rhododendron, OR 97049 ','http://photos-2.idxco.com/037f820ec7e1ed32e0e79970cfe367168be11432906','11432906','037','http://www2.blythecreek.com/idx/2364/details.php?listingID=11432906&idxID=037','3','1','Floor to Ceiling Windows overlooking Still Creek and surroun...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

