	// IDX Broker Slideshow version 1.0
	// Copyright ©2010 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 = 22 - 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 >= 22)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 22 - 1;
	} // end genPrev

	var properties = new Array(22);
	properties[0] = new Array('1,749,000','105 E Surf Ave ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/0564235198c19750d70ca44a33c800ede263036208','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,599,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,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[3] = new Array('1,299,000','4306 S Long Beach Blvd (VIEWS!) ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056e992166085aa3ec6834ca0ef918e99c63039006','3039006','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3039006&idxID=056','5','3','One off of the ocean with fantastic views and amazing roof t...');
	properties[4] = 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[5] = new Array('1,199,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[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('799,000','2 E California Ave B ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/05669412575e94e436382100f8be99323e73039314','3039314','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3039314&idxID=056','3','2','Second in off of the Blvd., this lovely townhome has a large...');
	properties[9] = new Array('799,000','104 E Marine Ln ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056f5da235db5449aadfba19fca8e686c723039197','3039197','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3039197&idxID=056','4','1','Just step from the beach, and located in the Dunes!  Large l...');
	properties[10] = new Array('799,000','2 E California Ave B ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/05673b1d1530eb370acedf150f8887aaf153039139','3039139','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3039139&idxID=056','3','2','Second in off of the Blvd, this lovely home has a large livi...');
	properties[11] = 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[12] = new Array('529,000','11 Sea Gull Ave ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056d5fe7291e84accc40a55bdd04f2c7e693038940','3038940','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3038940&idxID=056','4','2','This multifamily property has an interior staircase for easy...');
	properties[13] = new Array('529,000','11 Sea Gull Ave ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056d5fe7291e84accc40a55bdd04f2c7e693038755','3038755','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3038755&idxID=056','','','Nicely renovated duplex with interior staircase!  Non-stop b...');
	properties[14] = new Array('499,000','5 E Delaware Ave ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/05610f4ddca0fd7c2df4460873857d2329a3039093','3039093','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3039093&idxID=056','3','1','Turnkey oceanside ranch located on the oceanside close to re...');
	properties[15] = new Array('499,000','20th ','Long Beach Twp, NJ 08008 ','http://lbidirect.idxco.com/images/noHousePhoto.png','3038278','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3038278&idxID=056','','','7000 sq vacant property currently used for boat storage.  Ad...');
	properties[16] = new Array('499,000','20th ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056350a9bb073415c2d46d36c7845e3cd983038277','3038277','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3038277&idxID=056','','','7000 sq lot adjacent to two successful restaurants.  Options...');
	properties[17] = new Array('495,000','1 W Cohasset Rd (1 from beach U2 ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/0560859532a58f9c7b6fe0585cab63bf7473039210','3039210','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3039210&idxID=056','3','2','ONE FROM THE BEACH with views!  Second floor unit with great...');
	properties[18] = new Array('479,000','430 Dock Rd ','Beach Haven Borough, NJ 08008 ','http://photos-3.idxco.com/0569224c6945804a74e79ef9665a6a453093038754','3038754','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3038754&idxID=056','6','2','What an opportunity!  Six bedrooms, with three on each floor...');
	properties[19] = new Array('475,000','7301 Long Beach Blvd ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/0568e459900871aafc671bab7eab856464f3039519','3039519','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3039519&idxID=056','2','2','Coveted \\\\\\&quot;d\\\\\\&quot; unit in the Ocean Club with roof...');
	properties[20] = new Array('449,000','7301 Long Beach Blvd END UNIT ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056d2cae5d7b2568327a98d90359e861fc83038865','3038865','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3038865&idxID=056','2','2','Squeaky clean and ready for your beach memories.  This well ...');
	properties[21] = 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();
