	// 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('#IDX-slideshow { text-align: center; width: 200px; height: 160px;  }');
	document.writeln('.IDX-image { width: 200px; height: 130px;  }');
	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('2,750,000','19PROMONTORY RIDGE DR ','LAS VEGAS, NV 89135 ','http://supplemental.idxco.com/11213-13277090200653360','IDX-1327708852','999','http://www.wesellandlistvegashomes.idxco.com/idx/11213/details.php?idxID=999&listingID=IDX-1327708852&supp=1','5','7','SPECTACULAR CONTEMPORARY CUSTOM SINGLE STORY ESTATE AT PROMO...','','');
	properties[1] = new Array('159,000','2265 GEORGIA PINE CT ','Las Vegas, NV 89134 ','http://photos-2.idxco.com/03938c9adfc41abddd6a3d0090880bf8a531213054','1213054','039','http://www.wesellandlistvegashomes.idxco.com/idx/11213/details.php?listingID=1213054&idxID=039','3','2','...','Stephen Pierannunzi','SMG Realty');
	properties[2] = new Array('130,000','3759 FUNSTON WY ','Las Vegas, NV 89129 ','http://photos-2.idxco.com/0390b7535234b2b947c5a3f2e9df9ae67aa1179530','1179530','039','http://www.wesellandlistvegashomes.idxco.com/idx/11213/details.php?listingID=1179530&idxID=039','3','3','...','Stephen Pierannunzi','SMG Realty');
	properties[3] = new Array('2,500','4425 SAN CASCINA ST ','Las Vegas, NV 89135 ','http://photos-2.idxco.com/039e7b8e810a17d636f21554495799d67571212796','1212796','039','http://www.wesellandlistvegashomes.idxco.com/idx/11213/details.php?listingID=1212796&idxID=039','3','3','...','Stephen Pierannunzi','SMG Realty');
	properties[4] = new Array('975','9244 DENTARIA CT ','Las Vegas, NV 89149 ','http://photos-2.idxco.com/0397f3679b66888c02e71d3c7108b18466d1226689','1226689','039','http://www.wesellandlistvegashomes.idxco.com/idx/11213/details.php?listingID=1226689&idxID=039','2','2','...','Stephen Pierannunzi','SMG Realty');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

