	// 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;  }');
	document.writeln('.IDX-image { width: 245px; height: 180px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 6 - 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 >= 6)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 6 - 1;
	} // end genPrev

	var properties = new Array(7);
	properties[0] = new Array('349,950','845 Broad Street Road ','Manakin Sabot, VA 23103 ','http://photos-12.idxco.com/237ff50decf7e85e6662a7649e44c97b5c71124083','1124083','237','http://www.rickstockel.idxco.com/idx/12689/details.php?listingID=1124083&idxID=237','3','3','\\\\\\&quot;REDUCED $50,000!! Fantastic Value!! Incredible Pric...','Rick F Stockel','Neumann & Dunn Real Estate');
	properties[1] = new Array('274,950','9016 Morella Place ','Mechanicsville, VA 23116 ','http://photos-12.idxco.com/237992751221f589c1c54d109b93da7bc161203153','1203153','237','http://www.rickstockel.idxco.com/idx/12689/details.php?listingID=1203153&idxID=237','4','2','\\\\\\&quot;If you are looking to buy a home in Hanover County ...','Rick F Stockel','Neumann & Dunn Real Estate');
	properties[2] = new Array('177,950','1954 Celia Crescent ','Chesterfield, VA 23236 ','http://photos-12.idxco.com/237567d371bfcfb7c1a571808a4df02e2861122597','1122597','237','http://www.rickstockel.idxco.com/idx/12689/details.php?listingID=1122597&idxID=237','3','2','There is a $7500 Grant being offered on this home. Special R...','Rick F Stockel','Neumann & Dunn Real Estate');
	properties[3] = new Array('169,950','10543 Mountain Gate Way - ','Glen Allen, VA 23060 ','http://photos-12.idxco.com/237fa5a4ce9e6cf17e704d01dab0b01faa71204543','1204543','237','http://www.rickstockel.idxco.com/idx/12689/details.php?listingID=1204543&idxID=237','3','2','THIS IS NOT A SHORT SALE JUST AN INCREDIBLE NEW PRICE FOR TH...','Rick F Stockel','Neumann & Dunn Real Estate');
	properties[4] = new Array('134,950','6317 Monument Avenue ','Richmond, VA 23226 ','http://photos-12.idxco.com/23701e43f4fee8ed4ff93ef8c8fd019389c1127642','1127642','237','http://www.rickstockel.idxco.com/idx/12689/details.php?listingID=1127642&idxID=237','3','1','This slate roofed Rancher sits on a large Fenced Rear Yard L...','Rick F Stockel','Neumann & Dunn Real Estate');
	properties[5] = new Array('69,000','Bailey Road ','Providence Forge, VA 23140 ','http://photos-12.idxco.com/237d04fdfc64822213555276031373181a71125888','1125888','237','http://www.rickstockel.idxco.com/idx/12689/details.php?listingID=1125888&idxID=237','','','Fantastic Value for 15 acres in New Kent Located near Royal ...','Rick F Stockel','Neumann & Dunn Real Estate');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

