	// 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 = 7000;
	var cwi = 0;
	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-slideshow { text-align: center; width: 150px; height: 150px;  }');
	document.writeln('.IDX-image { width: 150px; height: 150px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 3 - 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 >= 3)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 3 - 1;
	} // end genPrev

	var properties = new Array(4);
	properties[0] = new Array('352,000','405 ANNABERG ','YOUNGSVILLE, LA 70592 ','http://lbrmls.com/LAFReports/media/L11225384_0767714.jpg','L11225384','270','http://www.sugarmillpond.idxco.com/idx/4256/details.php?listingID=L11225384&idxID=270','4','3','The residents of this French Style home will enjoy welcoming...','Glenda Bryan','SUGAR MILL POND REALTY');
	properties[1] = new Array('299,000','417 HARBOR ROAD ','YOUNGSVILLE, LA 70592 ','http://lbrmls.com/LAFReports/media/L11230045_437500.jpg','L11230045','270','http://www.sugarmillpond.idxco.com/idx/4256/details.php?listingID=L11230045&idxID=270','3','3','Beautiful Caribbean style home in immaculate condition, a re...','Glenda Bryan','SUGAR MILL POND REALTY');
	properties[2] = new Array('238,500','205 PALFREY PKWY ','YOUNGSVILLE, LA 70592 ','http://lbrmls.com/LAFReports/media/L11230573_0456250.jpg','L11230573','270','http://www.sugarmillpond.idxco.com/idx/4256/details.php?listingID=L11230573&idxID=270','3','2','This charming cottage with a contemporary flair has a great ...','Glenda Bryan','SUGAR MILL POND REALTY');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

