	// 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: #0066cc;  }');
	document.writeln('#IDX-slideshow { text-align: center; width: 500px; height: 450px;  }');
	document.writeln('.IDX-image { width: 500px; height: 400px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 13 - 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 >= 13)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 13 - 1;
	} // end genPrev

	var properties = new Array(13);
	properties[0] = new Array('1,850,000','288 Macon Avenue #302 ','Asheville, NC 28804 ','http://photos-2.idxco.com/040dadc8a24a471eab05f0aeb44b594baa1506703','506703','040','http://search.trustkb.com/idx/3237/details.php?listingID=506703&idxID=040','3','3','Unit #302 at the Fitzgerald, Asheville\\\\\\\'s coveted resident...');
	properties[1] = new Array('1,350,000','288 Macon Avenue #305 ','Asheville, NC 28804 ','http://photos-2.idxco.com/040dc0addff9ff8fd3da795d6bf3e1d2df2487608','487608','040','http://search.trustkb.com/idx/3237/details.php?listingID=487608&idxID=040','3','3','-Less expensive condo in The Fitzgerald. Top floor unit with...');
	properties[2] = new Array('450,000','29 GREENWELLS GLORY DR. ','Biltmore Lake, NC 28715 ','http://photos-2.idxco.com/04099944f10c612b59ba929bac056747d55481336','481336','040','http://search.trustkb.com/idx/3237/details.php?listingID=481336&idxID=040','4','2','One level living at Biltmore Lake! Open floor plan, hardwood...');
	properties[3] = new Array('400,000','39 Hillcreek Drive ','Asheville, NC 28804 ','http://photos-2.idxco.com/04090f1beba01ab6617fcfdca3eecf9ccea492311','492311','040','http://search.trustkb.com/idx/3237/details.php?listingID=492311&idxID=040','3','3','-Gadzooks...A Perfect Home for Almost Everyone! Perfect for ...');
	properties[4] = new Array('385,000','77 STAMFORD STREET ','Asheville, NC 28803 ','http://photos-2.idxco.com/0408e83ed450220bd1a28ebf3b06396cab4454398','454398','040','http://search.trustkb.com/idx/3237/details.php?listingID=454398&idxID=040','2','2','-CLOSE IMMEDIATELY!Asheville\\\\\\\'sMixed-use community com...');
	properties[5] = new Array('319,900','36 Brookstone Place-T3 ','Candler, NC 28715 ','http://photos-2.idxco.com/040a086ae172e5f2401ae535909d94d48d8471264','471264','040','http://search.trustkb.com/idx/3237/details.php?listingID=471264&idxID=040','2','2','PRICES REDUCED!Sandburg Model. Incredible location offers ...');
	properties[6] = new Array('319,000','118 DEERLAKE DRIVE ','Asheville, NC 28803 ','http://photos-2.idxco.com/040d4a6dd23b0cf4ce4a06378deb1e17227453452','453452','040','http://search.trustkb.com/idx/3237/details.php?listingID=453452&idxID=040','3','3','Completely remodeled with high-end appointments. Oak HWDs on...');
	properties[7] = new Array('309,900','46 Westfield Way - J3 ','Candler, NC 28715 ','http://photos-2.idxco.com/040f88232e4afddfc5a4eb81b23d8a1f822463777','463777','040','http://search.trustkb.com/idx/3237/details.php?listingID=463777&idxID=040','3','2','PRICES REDUCED! Sandburg Model. Incredible location offers p...');
	properties[8] = new Array('304,900','62 CRAFTSMAN VIEW DRIVE ','Asheville, NC 28804 ','http://photos-2.idxco.com/0401b4030789706baba5799083b839dcda5505099','505099','040','http://search.trustkb.com/idx/3237/details.php?listingID=505099&idxID=040','3','2','Like new Arts &amp; Crafts 3BR/2BA Open &amp; bright floor p...');
	properties[9] = new Array('230,000','102 Crowfields Drive ','Asheville, NC 28803 ','http://photos-2.idxco.com/0406d6b65f53a7af0fe2695d3c28b948efd474571','474571','040','http://search.trustkb.com/idx/3237/details.php?listingID=474571&idxID=040','3','3','One-of-a-kind unit. LVRM w/18\\\\\\\' vaulted ceiling &amp; sun ...');
	properties[10] = new Array('230,000','40 BEEKEEPER TRAIL ','Swannanoa, NC 28778 ','http://photos-2.idxco.com/0408ae82e02b2f2d435a3241b58d82eecb7479419','479419','040','http://search.trustkb.com/idx/3237/details.php?listingID=479419&idxID=040','3','3','Beautiful garden home. Professional landscaped garden, hardw...');
	properties[11] = new Array('210,000','41 HONEYCOMBE CIRCLE ','Swannanoa, NC 28778 ','http://photos-2.idxco.com/0406cc50359b00025acee3f1ab3095fb5bc486317','486317','040','http://search.trustkb.com/idx/3237/details.php?listingID=486317&idxID=040','2','2','Pristine Garden Home with loads of upgrades for a fantastic ...');
	properties[12] = new Array('165,000','1102 HYDE PARK DRIVE ','Asheville, NC 28806 ','http://photos-2.idxco.com/040d8c68b9047d00f7aec1c0fe9d6ebc2ad486558','486558','040','http://search.trustkb.com/idx/3237/details.php?listingID=486558&idxID=040','2','2','Biltmore Commons - double carport with plenty of storage, pu...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

