	// 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: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; font-style: normal; text-decoration: none; color: ##44444;  }');
	document.writeln('#IDX-slideshow { text-align: center; border-width: 1px; width: 300px; height: 300px;  }');
	document.writeln('.IDX-image { width: 280px;  }');
	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-listingIdLine" style="display:none;"></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 id="IDX-listingAgent" style="display:none;"></div>');
	document.writeln('<div id="IDX-listingOffice" 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-listingIdLine').innerHTML = urlVar+'Listing #'+properties[cwi][4]+'</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>';
		document.getElementById('IDX-listingAgent').innerHTML = urlVar+properties[cwi][10]+'</a>';
		document.getElementById('IDX-listingOffice').innerHTML = urlVar+properties[cwi][11]+'</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(6);
	properties[0] = new Array('1,250,000','47938 Estrellita island ','Alexandria, NY 13607 ','http://photos-24.idxco.com/4724f8858b138453308d5c5bc98c449c38eS239525','S239525','472','http://listings.prudential1000realty.com/idx/10258/details.php?listingID=S239525&idxID=472','8','5.1','Estrellita island** Reflective of the Golden Era of the late...','Fitelson, Trude B','Prudential 1000 Realty');
	properties[1] = new Array('628,000','45088 Point Vivian Rd ','Alexandria, NY 13607 ','http://supplemental.idxco.com/10258-13124350428184681','S256273','472','http://listings.prudential1000realty.com/idx/10258/details.php?listingID=S256273&idxID=472','3','2','ALL EQUESTRIAN PEOPLE!!!What a great opportunity to own t...','Plantz, Lesa Marie','Prudential 1000 Realty');
	properties[2] = new Array('625,000','32519 Tibbetts Point Road ','Cape Vincent, NY 13618 ','http://photos-24.idxco.com/472df431af80e3f30559f14a00bdf0983abS236230','S236230','472','http://listings.prudential1000realty.com/idx/10258/details.php?listingID=S236230&idxID=472','3','3','Architect designed to replicate a 19th century farmhouse, th...','Fitelson, Trude B','Prudential 1000 Realty');
	properties[3] = new Array('535,000','15226 Bluff Island ','Clayton, NY 13624 ','http://photos-24.idxco.com/472c602e81f5d75ab75ac44052847014387S256291','S256291','472','http://listings.prudential1000realty.com/idx/10258/details.php?listingID=S256291&idxID=472','','','Beautiful building lot on Bluff Island***1.2 acres***views o...','Stopper, JackF','Prudential 1000 Realty');
	properties[4] = new Array('285,000','9181 Shady Shores Rd ','Clayton, NY 13624 ','http://photos-24.idxco.com/472074aab5b0cf80dafc7793cb8c89700baS251143','S251143','472','http://listings.prudential1000realty.com/idx/10258/details.php?listingID=S251143&idxID=472','3','1','SERENITY ON SAWMILL BAY***VIEW OF SHIPPING CHANNEL***GOOD SW...','Stopper, Lora A','Prudential 1000 Realty');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

