	// 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('.IDX-image { width: 575px;  }');
	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-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 >= 5)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 5 - 1;
	} // end genPrev

	var properties = new Array(5);
	properties[0] = new Array('149,900','11 Starview Rd. ','Travelers Rest, SC 29690 ','http://greenville.fnismls.com/Paragon/ListingPictures/GREENVILLE/1/GREENVILLE1203431.jpg','1203431','134','http://www.carolinahomesrealty.idxco.com/idx/6777/details.php?listingID=1203431&idxID=134','3','2','Beautiful home on almost 3/4 of an acre.New Roof Aug 2011....');
	properties[1] = new Array('97,400','409 State Park Road ','Greenville, SC 29609 ','http://greenville.fnismls.com/Paragon/ListingPictures/GREENVILLE/2/GREENVILLE1234742.jpg','1234742','134','http://www.carolinahomesrealty.idxco.com/idx/6777/details.php?listingID=1234742&idxID=134','','','Zoned commercial C1. Owner currently uses house as a counsel...');
	properties[2] = new Array('97,400','409 State Park Road ','Greenville, SC 29609 ','http://greenville.fnismls.com/Paragon/ListingPictures/GREENVILLE/5/GREENVILLE1203555.jpg','1203555','134','http://www.carolinahomesrealty.idxco.com/idx/6777/details.php?listingID=1203555&idxID=134','3','1','Recently remodeled home with granite counter tops in kitchen...');
	properties[3] = new Array('79,000','2 Chipley Ln ','Greenville, SC 29605 ','http://greenville.fnismls.com/Paragon/ListingPictures/GREENVILLE/0/GREENVILLE1225690.jpg','1225690','134','http://www.carolinahomesrealty.idxco.com/idx/6777/details.php?listingID=1225690&idxID=134','3','2','Full Brick home with hardwood floors.All bedrooms are a go...');
	properties[4] = new Array('50,000','18 E Welcome Rd ','Greenville, SC 29611 ','http://greenville.fnismls.com/Paragon/ListingPictures/GREENVILLE/0/GREENVILLE1225780.jpg','1225780','134','http://www.carolinahomesrealty.idxco.com/idx/6777/details.php?listingID=1225780&idxID=134','2','1','Nice two bedroom home with upgraded kitchen.Newer kitchen ...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

