	// 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('a.IDX-ssLinkText, a.IDX-ssLinkText:active, a.IDX-ssLinkText:link, a.IDX-ssLinkText:visited, a.IDX-ssLinkText:hover { font-family: Arial, Helvetica, sans-serif;  }');
	document.writeln('#IDX-slideshow { text-align: center; width: 185px;  }');
	document.writeln('.IDX-image { width: 160px; height: 120px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 9 - 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 >= 9)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 9 - 1;
	} // end genPrev

	var properties = new Array(9);
	properties[0] = new Array('659,000','136 SW Washington Av #501 ','Corvallis, OR 97333 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/3/WVMLS615403.jpg','615403','139','http://www.soldbydava.idxco.com/idx/4274/details.php?listingID=615403&idxID=139','2','2','Enjoy the downtown vibe - central to all that Corvallis has ...');
	properties[1] = new Array('659,000','136 SW Washington Av #501 ','Corvallis, OR 97333 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/1/WVMLS615401.jpg','615401','139','http://www.soldbydava.idxco.com/idx/4274/details.php?listingID=615401&idxID=139','2','2','Enjoy the downtown vibe - central to all that Corvallis has ...');
	properties[2] = new Array('569,000','4105 NW Elmwood Dr ','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/1/WVMLS613341.jpg','613341','139','http://www.soldbydava.idxco.com/idx/4274/details.php?listingID=613341&idxID=139','4','3.5','Spacious home in desirable neighborhood is a haven for daily...');
	properties[3] = new Array('465,000','1840 NW Juniper Pl ','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/4/WVMLS609864.jpg','609864','139','http://www.soldbydava.idxco.com/idx/4274/details.php?listingID=609864&idxID=139','3','2.5','Sophisticated and charming, architecturally designed, dramat...');
	properties[4] = new Array('375,000','3045 NW Johnson Av ','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/2/WVMLS614282.jpg','614282','139','http://www.soldbydava.idxco.com/idx/4274/details.php?listingID=614282&idxID=139','3','2','Gorgeously updated while retaining vintage character in Coll...');
	properties[5] = new Array('257,000','3009 Maplewood Ct ','Philomath, OR 97370 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/3/WVMLS619883.jpg','619883','139','http://www.soldbydava.idxco.com/idx/4274/details.php?listingID=619883&idxID=139','3','2.5','Exceptional  views, outstanding outdoor spaces &amp; floor p...');
	properties[6] = new Array('224,900','3006 NW Morning Glory Dr ','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/5/WVMLS616575.jpg','616575','139','http://www.soldbydava.idxco.com/idx/4274/details.php?listingID=616575&idxID=139','3','2.5','High style &amp; low maintenance living in the light, bright...');
	properties[7] = new Array('199,900','6298 SW Grand Oaks (G-204) Dr ','Corvallis, OR 97333 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/9/WVMLS607999.jpg','607999','139','http://www.soldbydava.idxco.com/idx/4274/details.php?listingID=607999&idxID=139','3','2','Welcome to this fantastic 3 bedroom, 2 bath one-level unit. ...');
	properties[8] = new Array('199,900','6298 SW Grand Oaks (G-204) Dr ','Corvallis, OR 97333 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/7/WVMLS607997.jpg','607997','139','http://www.soldbydava.idxco.com/idx/4274/details.php?listingID=607997&idxID=139','3','2','Welcome to this fantastic 3 bedroom, 2 bath one-level unit. ...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
