	// 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 = 5000;
	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-weight: bold; color: #ffffff;  }');
	document.writeln('#IDX-slideshow { text-align: center; background-color: #3b1c62; border-width: 4px; border-style: groove; width: 210px; height: 215px;  }');
	document.writeln('.IDX-image { width: 207px; height: 160px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 7 - 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-courtesyLine" 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-courtesyLine').innerHTML = urlVar+properties[cwi][10]+'</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 >= 7)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 7 - 1;
	} // end genPrev

	var properties = new Array(8);
	properties[0] = new Array('477,752','408 River Street ','Greenville, SC 29601 ','http://greenville.fnismls.com/Paragon/ListingPictures/GREENVILLE/7/GREENVILLE1235337.jpg','1235337','134','http://search.greenvillerealestatehub.com/idx/6826/details.php?listingID=1235337&idxID=134','2','2','Great opportunity to own one of only few Live/Work condos in...','Listing courtesy of VICTOR AMADI, PRODUCER Realty LLC&nbsp;&nbsp;');
	properties[1] = new Array('329,857','218 Quarterdeck Ct. ','Chesnee, SC 29323 ','http://greenville.fnismls.com/Paragon/ListingPictures/GREENVILLE/4/GREENVILLE1232494.jpg','1232494','134','http://search.greenvillerealestatehub.com/idx/6826/details.php?listingID=1232494&idxID=134','3','3','Pride of ownership shines through at every turn in this beau...','Listing courtesy of VICTOR AMADI, PRODUCER Realty LLC&nbsp;&nbsp;');
	properties[2] = new Array('259,857','494 S Oakley Lane ','Spartanburg, SC 29301 ','http://greenville.fnismls.com/Paragon/ListingPictures/GREENVILLE/3/GREENVILLE1232173.jpg','1232173','134','http://search.greenvillerealestatehub.com/idx/6826/details.php?listingID=1232173&idxID=134','4','2','Custom built home located in one of Spartanburg\\\\\\\'s most de...','Listing courtesy of VICTOR AMADI, PRODUCER Realty LLC&nbsp;&nbsp;');
	properties[3] = new Array('229,857','17 Beason Farm Lane ','Simpsonville, SC 29681 ','http://greenville.fnismls.com/Paragon/ListingPictures/GREENVILLE/6/GREENVILLE1234806.jpg','1234806','134','http://search.greenvillerealestatehub.com/idx/6826/details.php?listingID=1234806&idxID=134','4','3','Located off Woodruff Road in the sought-after Whitehall Plan...','Listing courtesy of VICTOR AMADI, PRODUCER Realty LLC&nbsp;&nbsp;');
	properties[4] = new Array('184,000','412 Caperton Way ','Duncan, SC 29334 ','http://greenville.fnismls.com/Paragon/ListingPictures/GREENVILLE/3/GREENVILLE1232363.jpg','1232363','134','http://search.greenvillerealestatehub.com/idx/6826/details.php?listingID=1232363&idxID=134','4','2','Large cul-de-sac home with lots of storage space. Home featu...','Listing courtesy of VICTOR AMADI, PRODUCER Realty LLC&nbsp;&nbsp;');
	properties[5] = new Array('119,957','20 Jenkins Farm Way ','Simpsonville, SC 29680 ','http://greenville.fnismls.com/Paragon/ListingPictures/GREENVILLE/0/GREENVILLE1221620.jpg','1221620','134','http://search.greenvillerealestatehub.com/idx/6826/details.php?listingID=1221620&idxID=134','','','A rare find in Simpsonville! 6.34 acre residential lot locat...','Listing courtesy of VICTOR AMADI, PRODUCER Realty LLC&nbsp;&nbsp;');
	properties[6] = new Array('89,857','307 Tradd Street ','Mauldin, SC 29662 ','http://greenville.fnismls.com/Paragon/ListingPictures/GREENVILLE/3/GREENVILLE1232683.jpg','1232683','134','http://search.greenvillerealestatehub.com/idx/6826/details.php?listingID=1232683&idxID=134','2','2','This move-in ready, one level updated home offers many recen...','Listing courtesy of VICTOR AMADI, PRODUCER Realty LLC&nbsp;&nbsp;');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

