	// 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-size: 12px;  }');
	document.writeln('#IDX-slideshow { border-width: 1px; border-style: solid; border-color: #bfb6ad; width: 202px;  }');
	document.writeln('.IDX-image { width: 196px;  }');
	document.writeln('</style>');
	var next = 1;
	prev = 8 - 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-courtesyLine" 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-courtesyLine').innerHTML = urlVar+properties[cwi][10]+'</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 >= 8)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 8 - 1;
	} // end genPrev

	var properties = new Array(9);
	properties[0] = new Array('975,000','228 Armadale Rd5 ','San Juan Island, WA 98250 ','http://photos-3.idxco.com/0418eb7116e813f079902d0de96ca5db596293905','293905','041','http://www.sanjuanconnection.idxco.com/idx/3441/details.php?listingID=293905&idxID=041','3','2','Boaters Paradise! Lounge on the deck of your gorgeous remode...','Listing courtesy of Island Grp Sotheby\'s Int Rlty  ');
	properties[1] = new Array('741,000','23 Blue Water','San Juan Island, WA 98250 ','http://photos-3.idxco.com/04136db45588704bf127c0935bacf5cf161316454','316454','041','http://www.sanjuanconnection.idxco.com/idx/3441/details.php?listingID=316454&idxID=041','3','2','Phenomenal buy on Pear Point contemporary home. Sited on 1.1...','Listing courtesy of Island Grp Sotheby\'s Int Rlty  ');
	properties[2] = new Array('549,000','149 Lost Wy','San Juan Island, WA 98250 ','http://photos-3.idxco.com/04158d142cea465373428d410186041dc28164639','164639','041','http://www.sanjuanconnection.idxco.com/idx/3441/details.php?listingID=164639&idxID=041','3','3','Custom craftsman home on 10 ac! 2600+/- sf with tasteful fin...','Listing courtesy of Island Grp Sotheby\'s Int Rlty  ');
	properties[3] = new Array('399,000','4840 Pear Point Rd','San Juan Island, WA 98250 ','http://photos-3.idxco.com/0414ecdee340bee0022a83a3fe452a66737316414','316414','041','http://www.sanjuanconnection.idxco.com/idx/3441/details.php?listingID=316414&idxID=041','5','3','South facing view home with MIL! Views over Griffin Bay to b...','Listing courtesy of Island Grp Sotheby\'s Int Rlty  ');
	properties[4] = new Array('360,000','111 Cordova Lane','San Juan Island, WA 98250 ','http://photos-3.idxco.com/041b42b24e9421289e2dc13f2eee03a8caf317647','317647','041','http://www.sanjuanconnection.idxco.com/idx/3441/details.php?listingID=317647&idxID=041','3','2','If you like a lot of sunlight this home is worth a look! Sin...','Listing courtesy of Island Grp Sotheby\'s Int Rlty  ');
	properties[5] = new Array('350,000','134 Deer Fern Lane','San Juan Island, WA 98250 ','http://photos-3.idxco.com/041c7963e613541a7678825f3e5224bbb8e258074','258074','041','http://www.sanjuanconnection.idxco.com/idx/3441/details.php?listingID=258074&idxID=041','3','2','Light filled home that feels like a tree house! Blt in 08 in...','Listing courtesy of Island Grp Sotheby\'s Int Rlty  ');
	properties[6] = new Array('324,900','230 Skyview Dr','San Juan Island, WA 98250 ','http://photos-3.idxco.com/0416bb0ab5500bbe0f132f64d06c942356b66145','66145','041','http://www.sanjuanconnection.idxco.com/idx/3441/details.php?listingID=66145&idxID=041','4','2.25','Well BELOW assessed value! An abundance of sq footage, 4 bdr...','Listing courtesy of Island Grp Sotheby\'s Int Rlty  ');
	properties[7] = new Array('59,990','1785 Douglas Rd73 ','San Juan Island, WA 98250 ','http://photos-3.idxco.com/041f92fad8365eafd9fa4c89a008aebba55143762','143762','041','http://www.sanjuanconnection.idxco.com/idx/3441/details.php?listingID=143762&idxID=041','2','2','A great opportunity for a handy person to purchase a home th...','Listing courtesy of Island Grp Sotheby\'s Int Rlty  ');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();

