	// IDX Broker Slideshow version 1.0
	// Copyright ¿2010 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: 320px; height: 300px;  }');
	document.writeln('.IDX-image { width: 320px; height: 240px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 8 - 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 >= 8)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 8 - 1;
	} // end genPrev

	var properties = new Array(8);
	properties[0] = new Array('789,000','268 Chestnut Ave ','Boston, MA 02130 ','http://media.mlspin.com/photo.aspx?mls=71054271&w=512&h=400&n=0','71054271','107','http://thesurrealtors.idxco.com/idx/2749/details.php?listingID=71054271&idxID=107','6','','...');
	properties[1] = new Array('399,900','279 Chestnut Ave ','Boston, MA 02130 ','http://media.mlspin.com/photo.aspx?mls=71083566&w=512&h=400&n=0','71083566','107','http://thesurrealtors.idxco.com/idx/2749/details.php?listingID=71083566&idxID=107','2','1','...');
	properties[2] = new Array('379,000','7 Blanvon Rd ','Boston, MA 02130 ','http://media.mlspin.com/photo.aspx?mls=71065088&w=512&h=400&n=0','71065088','107','http://thesurrealtors.idxco.com/idx/2749/details.php?listingID=71065088&idxID=107','3','2.1','...');
	properties[3] = new Array('379,000','7 Blanvon Rd ','Boston, MA 02130 ','http://media.mlspin.com/photo.aspx?mls=71069878&w=512&h=400&n=0','71069878','107','http://thesurrealtors.idxco.com/idx/2749/details.php?listingID=71069878&idxID=107','3','2.1','...');
	properties[4] = new Array('299,900','15 Glencliff Rd ','Boston, MA 02131 ','http://media.mlspin.com/photo.aspx?mls=71063847&w=512&h=400&n=0','71063847','107','http://thesurrealtors.idxco.com/idx/2749/details.php?listingID=71063847&idxID=107','2','1.1','...');
	properties[5] = new Array('299,900','15 Glencliff Rd ','Boston, MA 02131 ','http://media.mlspin.com/photo.aspx?mls=71064915&w=512&h=400&n=0','71064915','107','http://thesurrealtors.idxco.com/idx/2749/details.php?listingID=71064915&idxID=107','2','1.1','...');
	properties[6] = new Array('294,000','35 Eldridge Rd ','Boston, MA 02130 ','http://media.mlspin.com/photo.aspx?mls=71113272&w=512&h=400&n=0','71113272','107','http://thesurrealtors.idxco.com/idx/2749/details.php?listingID=71113272&idxID=107','2','2','...');
	properties[7] = new Array('184,900','171 South St ','Boston, MA 02130 ','http://media.mlspin.com/photo.aspx?mls=71084203&w=512&h=400&n=0','71084203','107','http://thesurrealtors.idxco.com/idx/2749/details.php?listingID=71084203&idxID=107','1','1','...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
