	// IDX Broker Slideshow version 1.0
	// Copyright ©2009 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-family: Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal;  }');
	document.writeln('#IDX-slideshow { text-align: right; width: 130px; height: 120px;  }');
	document.writeln('.IDX-image { width: 120px; height: 80px;  }');
	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-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 >= 7)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 7 - 1;
	} // end genPrev

	var properties = new Array(7);
	properties[0] = new Array('499,000','78  PARK SHARON DR ','San Jose, CA 95136 ','http://supplemental.idxco.com/3346-124367810744935','IDX-1243678013','999','http://www.athenspro.com.idxco.com/idx/3346/details.php?listingID=IDX-1243678013&supp=1','4','2','This property is a short sale. It\\\\\\\'s not REO/Bank Owned. P...');
	properties[1] = new Array('280,000','8081  N 6th Street ','Fresno, CA 93720 ','http://supplemental.idxco.com/3346-124375657486100','IDX-1243756472','999','http://www.athenspro.com.idxco.com/idx/3346/details.php?listingID=IDX-1243756472&supp=1','4','3','Subject has sparkling pebble tech inground pool and onground...');
	properties[2] = new Array('199,000','2728  DUBLIN DR ','San Jose, CA 95127 ','http://supplemental.idxco.com/3346-124367842846815','IDX-1243677514','999','http://www.athenspro.com.idxco.com/idx/3346/details.php?listingID=IDX-1243677514&supp=1','3','2','This property is a short sale. It\\\\\\\'s not REO/Bank Owned. P...');
	properties[3] = new Array('198,000','2122  RIO BARRANCA CT ','San Jose, CA 95116 ','http://supplemental.idxco.com/3346-124367835357230','IDX-1243678238','999','http://www.athenspro.com.idxco.com/idx/3346/details.php?listingID=IDX-1243678238&supp=1','3','2','THIS PROPERTY IS A SHORT SALE, NOT REO/BANK OWNED. PLEASE AL...');
	properties[4] = new Array('0','3180 Landess Ave B ','San Jose, CA 95132 ','http://supplemental.idxco.com/3346-124946358738567','IDX-1249462994','999','http://www.athenspro.com.idxco.com/idx/3346/details.php?listingID=IDX-1249462994&supp=1','2','1','Comming Soon!...');
	properties[5] = new Array('0','366 N 16th Street ','San Jose, CA 95112 ','http://supplemental.idxco.com/3346-124599743769860','IDX-1245996841','999','http://www.athenspro.com.idxco.com/idx/3346/details.php?listingID=IDX-1245996841&supp=1','','','Comming Soon!\\r\\nUnit A 3Bed/1Ba.  Unit B 2Bed/2Ba. \\r\\n2 Ca...');
	properties[6] = new Array('0','2973  FALLWOOD LN ','San Jose, CA 95132 ','http://supplemental.idxco.com/3346-124368030522595','IDX-1243679018','999','http://www.athenspro.com.idxco.com/idx/3346/details.php?listingID=IDX-1243679018&supp=1','5','3','Comming Soon!...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
