	// IDX Broker Slideshow version 2.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 timeFeaturedPropertiesout = 7000;
	var cFeaturedPropertieswi = 0;
	
	// iFeaturedPropertiessf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iFeaturedPropertiessf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapFeaturedPropertiesfade setup function
	function swapFeaturedPropertiesfade()
	{
		//if the timer is not already going
		if(iFeaturedPropertiessf.clock == null)
		{
			//copy the image object 
			iFeaturedPropertiessf.obj = arguments[0];
			
			//copy the image src argument 
			iFeaturedPropertiessf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iFeaturedPropertiessf.obj.style.opacity != 'undefined')
			{
				iFeaturedPropertiessf.type = 'w3c';
			}
			else if(typeof iFeaturedPropertiessf.obj.style.MozOpacity != 'undefined')
			{
				iFeaturedPropertiessf.type = 'moz';
			}
			else if(typeof iFeaturedPropertiessf.obj.style.KhtmlOpacity != 'undefined')
			{
				iFeaturedPropertiessf.type = 'khtml';
			}
			else if(typeof iFeaturedPropertiessf.obj.filters == 'object')
			{
				//weed out win/ie5.0 by testing the length of the filters collection (where filters is an object with no data)
				//then weed out mac/ie5 by testing first the existence of the alpha object (to prevent errors in win/ie5.0)
				//then the returned value type, which should be a number, but in mac/ie5 is an empty string
				iFeaturedPropertiessf.type = (iFeaturedPropertiessf.obj.filters.length > 0 && typeof iFeaturedPropertiessf.obj.filters.alpha == 'object' && typeof iFeaturedPropertiessf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iFeaturedPropertiessf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iFeaturedPropertiessf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iFeaturedPropertiessf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapFeaturedPropertiesfade is two distinct transitions
				iFeaturedPropertiessf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iFeaturedPropertiessf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iFeaturedPropertiessf.clock = setInterval('iFeaturedPropertiessf.swapFeaturedPropertiesfade()', iFeaturedPropertiessf.length/iFeaturedPropertiessf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iFeaturedPropertiessf.obj.src = iFeaturedPropertiessf.src;
			}
			
		}
	};
	
	
	//swapFeaturedPropertiesfade timer function
	iFeaturedPropertiessf.swapFeaturedPropertiesfade = function()
	{
		//increase or reduce the counter on an exponential scale
		iFeaturedPropertiessf.count = (iFeaturedPropertiessf.fade) ? iFeaturedPropertiessf.count * 0.9 : (iFeaturedPropertiessf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iFeaturedPropertiessf.count < (1 / iFeaturedPropertiessf.resolution))
		{
			//clear the timer
			clearInterval(iFeaturedPropertiessf.clock);
			iFeaturedPropertiessf.clock = null;
	
			//do the image swap
			iFeaturedPropertiessf.obj.src = iFeaturedPropertiessf.src;
	
			//reverse the fade direction flag
			iFeaturedPropertiessf.fade = false;
			
			//restart the timer
			iFeaturedPropertiessf.clock = setInterval('iFeaturedPropertiessf.swapFeaturedPropertiesfade()', iFeaturedPropertiessf.length/iFeaturedPropertiessf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iFeaturedPropertiessf.count > (1 - (1 / iFeaturedPropertiessf.resolution)))
		{
			//clear the timer
			clearInterval(iFeaturedPropertiessf.clock);
			iFeaturedPropertiessf.clock = null;
	
			//reset the fade direction flag
			iFeaturedPropertiessf.fade = true;
			
			//reset the counter
			iFeaturedPropertiessf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iFeaturedPropertiessf.type)
		{
			case 'ie' :
				iFeaturedPropertiessf.obj.filters.alpha.opacity = iFeaturedPropertiessf.count * 100;
				break;
				
			case 'khtml' :
				iFeaturedPropertiessf.obj.style.KhtmlOpacity = iFeaturedPropertiessf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iFeaturedPropertiessf.obj.style.MozOpacity = (iFeaturedPropertiessf.count == 1 ? 0.9999999 : iFeaturedPropertiessf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iFeaturedPropertiessf.obj.style.opacity = (iFeaturedPropertiessf.count == 1 ? 0.9999999 : iFeaturedPropertiessf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('a.IDX-FeaturedProperties-ssLinkText, a.IDX-FeaturedProperties-ssLinkText:active, a.IDX-FeaturedProperties-ssLinkText:link, a.IDX-FeaturedProperties-ssLinkText:visited, a.IDX-FeaturedProperties-ssLinkText:hover { color: ##ffffff;  }');
	document.writeln('#IDX-FeaturedProperties-slideshow { text-align: center; width: 200px;  }');
	document.writeln('.IDX-FeaturedProperties-image { width: 150px; height: 90px;  }');
	document.writeln('#IDX-FeaturedProperties-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextFeaturedProperties = 1;
	prevFeaturedProperties = 25 - 1;

	document.writeln('<div id="IDX-FeaturedProperties-slideshow">');
	document.writeln('<div id="IDX-FeaturedProperties-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-FeaturedProperties-ssImageURL" class="IDX-FeaturedProperties-ssLinkText"><img id="IDX-FeaturedProperties-ssImage" name="FeaturedProperties-ssImage" alt="Slideshow image" border="0"  class="IDX-FeaturedProperties-image" src="http://photos-10.idxco.com/18840a991846af046ac0f5363293c8ad831209036991" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-FeaturedProperties-priceLine"></div>');
	document.writeln('<div id="IDX-FeaturedProperties-addressLine"></div>');
	document.writeln('<div id="IDX-FeaturedProperties-cszLine"></div>');
	document.writeln('<div id="IDX-FeaturedProperties-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-FeaturedProperties-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-FeaturedProperties-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playFeaturedProperties()
	{
		
		
		urlVarFeaturedProperties = '<a href="'+propertiesFeaturedProperties[cFeaturedPropertieswi][6]+'" class="IDX-FeaturedProperties-ssLinkText">';
		swapFeaturedPropertiesfade(document.getElementById('IDX-FeaturedProperties-ssImage'), preLoadFeaturedProperties.src, '1', ' ');
		document.getElementById('IDX-FeaturedProperties-ssImageURL').href = propertiesFeaturedProperties[cFeaturedPropertieswi][6];
		document.getElementById('IDX-FeaturedProperties-priceLine').innerHTML = urlVarFeaturedProperties+'$'+propertiesFeaturedProperties[cFeaturedPropertieswi][0]+'</a>';
		document.getElementById('IDX-FeaturedProperties-addressLine').innerHTML =  urlVarFeaturedProperties+propertiesFeaturedProperties[cFeaturedPropertieswi][1]+'</a>';
		document.getElementById('IDX-FeaturedProperties-cszLine').innerHTML = urlVarFeaturedProperties+propertiesFeaturedProperties[cFeaturedPropertieswi][2]+'</a>';
		document.getElementById('IDX-FeaturedProperties-bedLine').innerHTML = urlVarFeaturedProperties+'Beds: '+propertiesFeaturedProperties[cFeaturedPropertieswi][7]+'</a>';
		document.getElementById('IDX-FeaturedProperties-bathLine').innerHTML = urlVarFeaturedProperties+'Baths: '+propertiesFeaturedProperties[cFeaturedPropertieswi][8]+'</a>';
		document.getElementById('IDX-FeaturedProperties-remarkLine').innerHTML = urlVarFeaturedProperties+propertiesFeaturedProperties[cFeaturedPropertieswi][9]+'</a>';
		
		preLoadFeaturedProperties = new Image();
		preLoadFeaturedProperties.src = propertiesFeaturedProperties[nextFeaturedProperties][3];
		
		updateFeaturedProperties();
		
		cFeaturedProperties = setTimeout('playFeaturedProperties()', timeFeaturedPropertiesout);	
		
		
	} // end play()
	function updateFeaturedProperties()
	{		
		cFeaturedPropertieswi = nextFeaturedProperties;		
		genNextFeaturedProperties();
		genPrevFeaturedProperties();
		
	}
	function genNextFeaturedProperties()
	{
		nextFeaturedProperties = cFeaturedPropertieswi + 1;
		if (nextFeaturedProperties >= 25)
			nextFeaturedProperties = 0;
	} // end genNext
	function genPrevFeaturedProperties()
	{
		prevFeaturedProperties = cFeaturedPropertieswi - 1;
		if (prevFeaturedProperties < 0)
			prevFeaturedProperties = 25 - 1;
	} // end genPrev

	var propertiesFeaturedProperties = new Array(25);
	propertiesFeaturedProperties[0] = new Array('4,000,000','11125 GULF SHORE DR #1005','NAPLES, FL 34108 ','http://photos-10.idxco.com/18840a991846af046ac0f5363293c8ad831209036991','209036991','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=209036991&idxID=188','3','3','Naples newest and finest beachfront condominium is an archit...');
	propertiesFeaturedProperties[1] = new Array('4,000,000','755 S 21ST AVE','NAPLES, FL 34102-7611 ','http://images2.living.net/ImagesHomeProd5/FL/idx/photos/naples/90/211501430.jpg','211501430','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211501430&idxID=188','4','6','The Landings boasts an open floor plan with an elevator for ...');
	propertiesFeaturedProperties[2] = new Array('3,999,000','17004 TREVISO WAY','NAPLES, FL 34110-2756 ','http://photos-10.idxco.com/188fbc4b094714653cb7efd449b7d8674e9210021592','210021592','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=210021592&idxID=188','5','6','Views! Views! Views! Expansive Long Lake and Golf Course Vie...');
	propertiesFeaturedProperties[3] = new Array('3,999,000','2835 SILVERLEAF LN','NAPLES, FL 34105 ','http://photos-10.idxco.com/188233ebca3bd181aff0a7b9c25cf4dd760211508627','211508627','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211508627&idxID=188','5','5','A rare opportunity to own a luxurious estate home beautifull...');
	propertiesFeaturedProperties[4] = new Array('3,999,000','579 S 15TH AVE','NAPLES, FL 34102-7438 ','http://photos-10.idxco.com/188f278d5f22f12ab6cd404baf977f4dc79211519033','211519033','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211519033&idxID=188','3','4','\\\\\\\'THE NAUTILUS.\\\\\\\' Welcome to the finest new home on the ...');
	propertiesFeaturedProperties[5] = new Array('3,995,000','605 E PALM CIR','NAPLES, FL 34102-5558 ','http://photos-10.idxco.com/1889963a148f92c28f26595a83487055699211006823','211006823','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211006823&idxID=188','4','4','Situated just 3-1/2 blocks from the beach in beautiful Olde ...');
	propertiesFeaturedProperties[6] = new Array('3,995,000','4300 BRYNWOOD DR','NAPLES, FL 34119-8411 ','http://photos-10.idxco.com/188df77ae269a5db48083b94e2f4b24427f211014882','211014882','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211014882&idxID=188','6','7','This magnificent, two-story home on a double lot in Quail We...');
	propertiesFeaturedProperties[7] = new Array('3,995,000','443 S 18TH AVE','NAPLES, FL 34102-7534 ','http://images2.living.net/ImagesHomeProd5/FL/idx/photos/naples/12/211511104.jpg','211511104','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211511104&idxID=188','6','5','H.6019- Elegant Aqualane Shores home featuring 6 bedroom, 5 ...');
	propertiesFeaturedProperties[8] = new Array('3,995,000','1825 S 6TH ST','NAPLES, FL 34102-7515 ','http://photos-10.idxco.com/188599f5e9e9d41fe37e5b640be0c8eab8f211522566','211522566','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211522566&idxID=188','4','4','H.6191 Aqualane Shores - Elegant architecture and gracious l...');
	propertiesFeaturedProperties[9] = new Array('3,995,000','308 TURTLE HATCH RD','NAPLES, FL 34103-8543 ','http://photos-10.idxco.com/188b83dfbbd00b34128c0275c2369ee33ec211522896','211522896','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211522896&idxID=188','5','6','A boater\\\\\\\'s dream awaits at this spacious single family ho...');
	propertiesFeaturedProperties[10] = new Array('3,995,000','1001 SPYGLASS LN','NAPLES, FL 34102-7734 ','http://photos-10.idxco.com/188e28970342c4970dc1c361ffceaff9ace211524250','211524250','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211524250&idxID=188','4','3','The family room and it\\\\\\\'s fireplace will be the focal poin...');
	propertiesFeaturedProperties[11] = new Array('3,995,000','155 S 20TH AVE','NAPLES, FL 34102 ','http://photos-10.idxco.com/188c1c447300aba915b43100e9d45e8569e212002205','212002205','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=212002205&idxID=188','5','5','If you are looking to be a block from the beach and a new cu...');
	propertiesFeaturedProperties[12] = new Array('3,995,000','384 MOORINGLINE DR','NAPLES, FL 34102-4743 ','http://photos-10.idxco.com/18835f4bd4516be93902eb46d98b64a6e1f212003616','212003616','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=212003616&idxID=188','5','5','This architecturally graceful 2-story home, located in a dis...');
	propertiesFeaturedProperties[13] = new Array('3,975,000','590 N GULF SHORE BLVD','NAPLES, FL 34102 ','http://images2.living.net/ImagesHomeProd5/FL/idx/photos/naples/09/211012603.jpg','211012603','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211012603&idxID=188','4','5','Spectacular lakefront home located only 2 houses from the be...');
	propertiesFeaturedProperties[14] = new Array('3,975,000','6427 DUNBERRY LN','NAPLES, FL 34119-8418 ','http://photos-10.idxco.com/18865080c82e00430284837e8aec30e8ffe211500135','211500135','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211500135&idxID=188','5','4','Constructed by award winning Newbury North Associates, &amp;...');
	propertiesFeaturedProperties[15] = new Array('3,950,000','3100 RUM ROW','NAPLES, FL 34102 ','http://photos-10.idxco.com/18879f244c6c2b4dcc1ce3c6aec49ec3164210002436','210002436','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=210002436&idxID=188','3','3','SUNSETS! THIS PROPERTY HAS ABSOLUTELY THE BEST EXPOSURE ! SO...');
	propertiesFeaturedProperties[16] = new Array('3,950,000','3530 FORT CHARLES DR','NAPLES, FL 34102-7931 ','http://photos-10.idxco.com/188cf15757ab3cbb549d6e0b707152a1d53210010853','210010853','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=210010853&idxID=188','6','6','H.3228- One of a kind Port Royal retreat feels like your own...');
	propertiesFeaturedProperties[17] = new Array('3,950,000','423 RIDGE CT','NAPLES, FL 34108 ','http://photos-10.idxco.com/1883ce845af2d6226ca9083ea1293c63ee0210036276','210036276','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=210036276&idxID=188','6','6','Superb SW setting in Pine Ridge Estates, this 16.940 total s...');
	propertiesFeaturedProperties[18] = new Array('3,950,000','181 EUGENIA DR','NAPLES, FL 34108-2929 ','http://photos-10.idxco.com/188909129893889e0b1c490ff6d38ccbe9a210037537','210037537','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=210037537&idxID=188','5','6','H.5411 - An architectural achievement ideally sited on one o...');
	propertiesFeaturedProperties[19] = new Array('3,950,000','2036 S 8TH ST','NAPLES, FL 34102-7526 ','http://images2.living.net/ImagesHomeProd5/FL/idx/photos/naples/02/211014234.jpg','211014234','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211014234&idxID=188','5','6','This unique Olde Florida home boast 205 ft. of water frontag...');
	propertiesFeaturedProperties[20] = new Array('3,950,000','1976 S 5TH ST','NAPLES, FL 34102-7512 ','http://images2.living.net/ImagesHomeProd5/FL/idx/photos/naples/44/211501448.jpg','211501448','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211501448&idxID=188','4','5','Overlooking the wide water of Ibis Cove with western exposur...');
	propertiesFeaturedProperties[21] = new Array('3,900,000','11125 GULF SHORE DR #506','NAPLES, FL 34108 ','http://photos-10.idxco.com/188479d2e5f57109df40dfc04fe927e8f55210035838','210035838','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=210035838&idxID=188','3','3','Naples newest and finest beachfront condominium! Winner of 1...');
	propertiesFeaturedProperties[22] = new Array('3,900,000','2614 BULRUSH LN','NAPLES, FL 34105-3024 ','http://photos-10.idxco.com/188a13212f884f80bb9b799fa3a8fabd4a0211500646','211500646','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211500646&idxID=188','4','4','Spectacular lake and lush 2nd fairway views of the champions...');
	propertiesFeaturedProperties[23] = new Array('3,895,000','6511 HIGHCROFT DR','NAPLES, FL 34119-8421 ','http://photos-10.idxco.com/188ba17228bda8b6d8b44cba029d2bb3d9e210041376','210041376','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=210041376&idxID=188','4','4','A remarkable recent remodel on a very unique and beautiful a...');
	propertiesFeaturedProperties[24] = new Array('3,895,000','6597 NICHOLAS BLVD #PH-14','NAPLES, FL 34108-7271 ','http://photos-10.idxco.com/1882e8141df399f08cb8c5f63a901608efa211014894','211014894','188','http://www.GLENNBRADLEYGROUP.idxco.com/idx/7362/details.php?listingID=211014894&idxID=188','4','4','SWEEPING SPECTACULAR GULF AND SUNSET VIEWS FROM THIS TOP OF ...');
	var urlVarFeaturedProperties;
	var preLoadFeaturedProperties = new Image();
	preLoadFeaturedProperties.src = propertiesFeaturedProperties[cFeaturedPropertieswi][3];
	onLoad = playFeaturedProperties();

