	// IDX Broker Slideshow version 1.0
	// Copyright ©2008 All rights reserved.
	// This script exists soley for the purposes of allowinf 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 = 17 - 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>');

	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>';
		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 >= 17)
			next = 0;
	} // end genNext
	function genPrev()
	{
		prev = cwi - 1;
		if (prev < 0)
			prev = 17 - 1;
	} // end genPrev

	var properties = new Array(17);
	properties[0] = new Array('2,795,000','405 JEFFERIES ','Beach Haven Borough, NJ 08008 ','http://lbidirect.idxco.com/images/noHousePhoto.png','3023955','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3023955&idxID=056');
	properties[1] = new Array('1,949,999','4411 OCEAN ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056afde47de8c01dd49e2bddc7c408fe17d3022200','3022200','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3022200&idxID=056');
	properties[2] = new Array('1,849,000','37 BAYVIEW ','Long Beach Twp, NJ 08008 ','http://www.jerseyshoremls.net/njs/jpg/3020175.jpg','3020175','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3020175&idxID=056');
	properties[3] = new Array('1,500,000','901 N BAY ','Beach Haven Borough, NJ 08008 ','http://photos-3.idxco.com/05630ebf51e6bc46ffcac786a07d5f66e583015148','3015148','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3015148&idxID=056');
	properties[4] = new Array('1,450,000','29 E 23RD ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056d139c60f5539695a9a478b85f2fc488c3022267','3022267','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3022267&idxID=056');
	properties[5] = new Array('1,329,000','1400 S Beach ','Beach Haven Borough, NJ 08008 ','http://photos-3.idxco.com/056de5f65531f80e3850cc1eba5395273473022506','3022506','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3022506&idxID=056');
	properties[6] = new Array('1,299,000','106 E HOBART ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056e6f14c16491af0695e43f73b97891d6e3019410','3019410','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3019410&idxID=056');
	properties[7] = new Array('1,199,000','816 W BAY CLUB ','Beach Haven Borough, NJ 08008 ','http://photos-3.idxco.com/05618ff6faf66e097b10295d1fa0ebe5aee3018950','3018950','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3018950&idxID=056');
	properties[8] = new Array('899,000','130 BELVOIR ','Beach Haven Borough, NJ 08008 ','http://photos-3.idxco.com/056ba8947694de3cdd92e483880ff95b9573024995','3024995','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3024995&idxID=056');
	properties[9] = new Array('799,000','32 W S 32 ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056b3a5d92b2693bd8c57d9e4b27ff692933019645','3019645','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3019645&idxID=056');
	properties[10] = new Array('799,000','117 E DELAWARE ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056b5d5acadb102896ec834e459a1c4d0ad3022160','3022160','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3022160&idxID=056');
	properties[11] = new Array('799,000','104 W LAVENIA ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/05645088e8ec2d2c5b2148b881ee7b749a23025044','3025044','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3025044&idxID=056');
	properties[12] = new Array('699,000','12 E MASSACHUSETTS ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/056f06d8284c10a24b012c41d8519b4e6e03020045','3020045','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3020045&idxID=056');
	properties[13] = new Array('699,000','1 E BAYBERRY ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/05607998f6b812b68e8db52c6701820bbfb3020057','3020057','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3020057&idxID=056');
	properties[14] = new Array('599,000','1505 WAVERLY ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/0564edaf27aacdc8e1c65aa845299118a723019346','3019346','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3019346&idxID=056');
	properties[15] = new Array('579,000','5 E DELAWARE ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/05629c93873e0c3c35933d2b408a7bc735a3018980','3018980','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3018980&idxID=056');
	properties[16] = new Array('499,000','1815 WAVERLY ','Long Beach Twp, NJ 08008 ','http://photos-3.idxco.com/05635a2cb04124dfabb345ea7ff439ff84f3022264','3022264','056','http://lbidirect.idxco.com/idx/2488/details.php?listingID=3022264&idxID=056');
	var urlVar;
	var preLoad = new Image();
	preLoad.src = properties[cwi][3];
	onLoad = play();
