	// 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-size: 14px;  }');
	document.writeln('#IDX-slideshow { text-align: center; width: 160px; height: 160px;  }');
	document.writeln('.IDX-image { width: 120px; height: 97px;  }');
	document.writeln('#IDX-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next = 1;
	prev = 11 - 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 >= 11)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 11 - 1;
	} // end genPrev

	var properties = new Array(11);
	properties[0] = new Array('1,799,000','105 E Surf Ave ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/05646899fc3c571106715d802501cba11a93036208','3036208','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3036208&idxID=056','6','3','Third from the ocean with SPECTACULAR VIEWS!  Six bedroom, w...');
	properties[1] = new Array('1,629,000','19 E Alabama Ave ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056beeeb28b01e5a23db1f3791d78b272413037504','3037504','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3037504&idxID=056','5','4','The perfect beach house!  Close to 3000sq of living space wi...');
	properties[2] = new Array('1,599,000','113 E 86th St (2nd from ocean!) ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056a7155e0d7fc3ce58b4ae23502b6cf4c03037959','3037959','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3037959&idxID=056','4','4','Just four years young, and sitting second from the beach, th...');
	properties[3] = new Array('1,349,999','901 N Bay Ave ','Beach Haven Borough, NJ 08008 ','http://photos-3.idxco.com/05630ebf51e6bc46ffcac786a07d5f66e583034636','3034636','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3034636&idxID=056','','','This is the best commercial location avaialable on LBI.  Sit...');
	properties[4] = new Array('1,299,000','117 Centre St ','Beach Haven Borough, NJ 08008 ','http://photos-3.idxco.com/056575d275192667c8efc186629f9ece2933034799','3034799','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3034799&idxID=056','','','Classic Victorian Beach House with 10 bedrooms and 8 baths. ...');
	properties[5] = new Array('1,199,000','29 E 23rd St ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056de99b05915bc70391d1dfa95e29bad1b3036627','3036627','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3036627&idxID=056','5','3','Over 3000sq of living space!  Beautifully rebuilt just a few...');
	properties[6] = new Array('1,199,000','117 Centre St ','Beach Haven Borough, NJ 08008 ','http://photos-3.idxco.com/056575d275192667c8efc186629f9ece2933034741','3034741','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3034741&idxID=056','10','8','Classic Victorian Beach House with 10 bedrooms and 8 baths. ...');
	properties[7] = new Array('999,000','605 N Atlantic Ave (oceanblock) ','Beach Haven Borough, NJ 08008 ','http://photos-3.idxco.com/056fe0ad3e927697477b4adff4336c0c7c73035083','3035083','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3035083&idxID=056','4','2','Nothing quite like it on LBI!!  Custom three level home with...');
	properties[8] = new Array('649,000','600 S Bay Ave ','Beach Haven Borough, NJ 08008 ','http://photos-3.idxco.com/05648834a971f64b027515a11fb782a25103038179','3038179','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3038179&idxID=056','4','2','Recently renovated home being offered furnished.  Fantastic ...');
	properties[9] = new Array('449,000','7301 Long Beach Blvd END UNIT C9 ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056d2cae5d7b2568327a98d90359e861fc83030132','3030132','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3030132&idxID=056','2','2','Turnkey and clean end unit in Ocean Club.  Enjoy the extra p...');
	properties[10] = new Array('440,000','1504 S Beach Ave 3 ','Beach Haven Borough, NJ 08008 ','http://photos-3.idxco.com/05658f874d238d24aa1489821516ba395e43036884','3036884','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3036884&idxID=056','2','1','This unique free-standing condo is located just five homes f...');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
