	// 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 = 7000;
	var cwi = 0;
	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-slideshow { text-align: center; width: 240px; height: 240px;  }');
	document.writeln('.IDX-image { width: 220px; height: 180px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 3 - 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 >= 3)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 3 - 1;
	} // end genPrev

	var properties = new Array(3);
	properties[0] = new Array('13,949,000','525 Harris Rd ','Bedford, NY 10507 ','http://photos-2.idxco.com/0382215f2b003242a16bb07318579e6895d2836920','2836920','038','http://www.richardpeterstotalrealty.idxco.com/idx/3202/details.php?listingID=2836920&idxID=038','5','8','Magnificent Clover Hill Farm, a 7,000 sq. ft estate on 20+ a...');
	properties[1] = new Array('7,450,000','70 Meeting House Rd ','Bedford, NY 10549 ','http://media.rapmls.com/wpmls/listingpics/bigphoto/046/2834346.jpg','2834346','038','http://www.richardpeterstotalrealty.idxco.com/idx/3202/details.php?listingID=2834346&idxID=038','5','8','Hillcrest enjoys an extraordinary hilltop setting with count...');
	properties[2] = new Array('5,795,000','205 Old Post Rd ','Bedford, NY 10506 ','http://media.rapmls.com/wpmls/listingpics/bigphoto/011/2736711.jpg','2736711','038','http://www.richardpeterstotalrealty.idxco.com/idx/3202/details.php?listingID=2736711&idxID=038','5','7','Incredible architectural details in this stone and shingle s...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
