	// 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 timeNewSlideShowNameout = 3000;
	var cNewSlideShowNamewi = 0;
	
	// iNewSlideShowNamesf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iNewSlideShowNamesf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapNewSlideShowNamefade setup function
	function swapNewSlideShowNamefade()
	{
		//if the timer is not already going
		if(iNewSlideShowNamesf.clock == null)
		{
			//copy the image object 
			iNewSlideShowNamesf.obj = arguments[0];
			
			//copy the image src argument 
			iNewSlideShowNamesf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iNewSlideShowNamesf.obj.style.opacity != 'undefined')
			{
				iNewSlideShowNamesf.type = 'w3c';
			}
			else if(typeof iNewSlideShowNamesf.obj.style.MozOpacity != 'undefined')
			{
				iNewSlideShowNamesf.type = 'moz';
			}
			else if(typeof iNewSlideShowNamesf.obj.style.KhtmlOpacity != 'undefined')
			{
				iNewSlideShowNamesf.type = 'khtml';
			}
			else if(typeof iNewSlideShowNamesf.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
				iNewSlideShowNamesf.type = (iNewSlideShowNamesf.obj.filters.length > 0 && typeof iNewSlideShowNamesf.obj.filters.alpha == 'object' && typeof iNewSlideShowNamesf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iNewSlideShowNamesf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iNewSlideShowNamesf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iNewSlideShowNamesf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapNewSlideShowNamefade is two distinct transitions
				iNewSlideShowNamesf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iNewSlideShowNamesf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iNewSlideShowNamesf.clock = setInterval('iNewSlideShowNamesf.swapNewSlideShowNamefade()', iNewSlideShowNamesf.length/iNewSlideShowNamesf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iNewSlideShowNamesf.obj.src = iNewSlideShowNamesf.src;
			}
			
		}
	};
	
	
	//swapNewSlideShowNamefade timer function
	iNewSlideShowNamesf.swapNewSlideShowNamefade = function()
	{
		//increase or reduce the counter on an exponential scale
		iNewSlideShowNamesf.count = (iNewSlideShowNamesf.fade) ? iNewSlideShowNamesf.count * 0.9 : (iNewSlideShowNamesf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iNewSlideShowNamesf.count < (1 / iNewSlideShowNamesf.resolution))
		{
			//clear the timer
			clearInterval(iNewSlideShowNamesf.clock);
			iNewSlideShowNamesf.clock = null;
	
			//do the image swap
			iNewSlideShowNamesf.obj.src = iNewSlideShowNamesf.src;
	
			//reverse the fade direction flag
			iNewSlideShowNamesf.fade = false;
			
			//restart the timer
			iNewSlideShowNamesf.clock = setInterval('iNewSlideShowNamesf.swapNewSlideShowNamefade()', iNewSlideShowNamesf.length/iNewSlideShowNamesf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iNewSlideShowNamesf.count > (1 - (1 / iNewSlideShowNamesf.resolution)))
		{
			//clear the timer
			clearInterval(iNewSlideShowNamesf.clock);
			iNewSlideShowNamesf.clock = null;
	
			//reset the fade direction flag
			iNewSlideShowNamesf.fade = true;
			
			//reset the counter
			iNewSlideShowNamesf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iNewSlideShowNamesf.type)
		{
			case 'ie' :
				iNewSlideShowNamesf.obj.filters.alpha.opacity = iNewSlideShowNamesf.count * 100;
				break;
				
			case 'khtml' :
				iNewSlideShowNamesf.obj.style.KhtmlOpacity = iNewSlideShowNamesf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iNewSlideShowNamesf.obj.style.MozOpacity = (iNewSlideShowNamesf.count == 1 ? 0.9999999 : iNewSlideShowNamesf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iNewSlideShowNamesf.obj.style.opacity = (iNewSlideShowNamesf.count == 1 ? 0.9999999 : iNewSlideShowNamesf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-NewSlideShowName-slideshow { text-align: center; width: 600px;  }');
	document.writeln('.IDX-NewSlideShowName-image { width: 600px; height: 400px;  }');
	document.writeln('#IDX-NewSlideShowName-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextNewSlideShowName = 1;
	prevNewSlideShowName = 17 - 1;

	document.writeln('<div id="IDX-NewSlideShowName-slideshow">');
	document.writeln('<div id="IDX-NewSlideShowName-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-NewSlideShowName-ssImageURL" class="IDX-NewSlideShowName-ssLinkText"><img id="IDX-NewSlideShowName-ssImage" name="NewSlideShowName-ssImage" alt="Slideshow image" border="0"  class="IDX-NewSlideShowName-image" src="http://photos-10.idxco.com/194abf768e010ceb96642bc4fc264b39344A3954940" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-NewSlideShowName-priceLine"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-addressLine"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-cszLine"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-NewSlideShowName-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playNewSlideShowName()
	{
		
		
		urlVarNewSlideShowName = '<a href="'+propertiesNewSlideShowName[cNewSlideShowNamewi][6]+'" class="IDX-NewSlideShowName-ssLinkText">';
		swapNewSlideShowNamefade(document.getElementById('IDX-NewSlideShowName-ssImage'), preLoadNewSlideShowName.src, '1', ' ');
		document.getElementById('IDX-NewSlideShowName-ssImageURL').href = propertiesNewSlideShowName[cNewSlideShowNamewi][6];
		document.getElementById('IDX-NewSlideShowName-priceLine').innerHTML = urlVarNewSlideShowName+'$'+propertiesNewSlideShowName[cNewSlideShowNamewi][0]+'</a>';
		document.getElementById('IDX-NewSlideShowName-addressLine').innerHTML =  urlVarNewSlideShowName+propertiesNewSlideShowName[cNewSlideShowNamewi][1]+'</a>';
		document.getElementById('IDX-NewSlideShowName-cszLine').innerHTML = urlVarNewSlideShowName+propertiesNewSlideShowName[cNewSlideShowNamewi][2]+'</a>';
		document.getElementById('IDX-NewSlideShowName-bedLine').innerHTML = urlVarNewSlideShowName+'Beds: '+propertiesNewSlideShowName[cNewSlideShowNamewi][7]+'</a>';
		document.getElementById('IDX-NewSlideShowName-bathLine').innerHTML = urlVarNewSlideShowName+'Baths: '+propertiesNewSlideShowName[cNewSlideShowNamewi][8]+'</a>';
		document.getElementById('IDX-NewSlideShowName-remarkLine').innerHTML = urlVarNewSlideShowName+propertiesNewSlideShowName[cNewSlideShowNamewi][9]+'</a>';
		
		preLoadNewSlideShowName = new Image();
		preLoadNewSlideShowName.src = propertiesNewSlideShowName[nextNewSlideShowName][3];
		
		updateNewSlideShowName();
		
		cNewSlideShowName = setTimeout('playNewSlideShowName()', timeNewSlideShowNameout);	
		
		
	} // end play()
	function updateNewSlideShowName()
	{		
		cNewSlideShowNamewi = nextNewSlideShowName;		
		genNextNewSlideShowName();
		genPrevNewSlideShowName();
		
	}
	function genNextNewSlideShowName()
	{
		nextNewSlideShowName = cNewSlideShowNamewi + 1;
		if (nextNewSlideShowName >= 17)
			nextNewSlideShowName = 0;
	} // end genNext
	function genPrevNewSlideShowName()
	{
		prevNewSlideShowName = cNewSlideShowNamewi - 1;
		if (prevNewSlideShowName < 0)
			prevNewSlideShowName = 17 - 1;
	} // end genPrev

	var propertiesNewSlideShowName = new Array(17);
	propertiesNewSlideShowName[0] = new Array('4,599,000','1224 N CASEY KEY RD','OSPREY, FL 34229 ','http://photos-10.idxco.com/194abf768e010ceb96642bc4fc264b39344A3954940','A3954940','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3954940&idxID=194','5','4','Casey Key Gulf to Bay at the exclusive North end on the priv...');
	propertiesNewSlideShowName[1] = new Array('4,400,000','136 OSPREY POINT DR','OSPREY, FL 34229 ','http://photos-10.idxco.com/1940560a87ca86c534772d695090b563a63A3954912','A3954912','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3954912&idxID=194','5','6','Stunning Georgian Estate Home meticulously renovated and mai...');
	propertiesNewSlideShowName[2] = new Array('949,000','411 WALLS WAY','OSPREY, FL 34229 ','http://photos-10.idxco.com/1945539b85e92048bee0b4324fb071f8169A3954877','A3954877','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3954877&idxID=194','3','3','Situated on one of the best lots in all the Oaks is this bea...');
	propertiesNewSlideShowName[3] = new Array('794,000','303 LONGBOW TRL','OSPREY, FL 34229 ','http://photos-10.idxco.com/194028a7a1434865f424eebea1e121d2f79A3954837','A3954837','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3954837&idxID=194','3','3','Close-in \\\\\\&quot;country\\\\\\&quot; living! Within walking di...');
	propertiesNewSlideShowName[4] = new Array('720,000','385 N POINT RD # 803','OSPREY, FL 34229 ','http://photos-10.idxco.com/194107fa8eb8cd0e307703d36c875d5e72eA3954974','A3954974','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3954974&idxID=194','3','3','Beautiful Penthouse unit in the highly sought after Meridian...');
	propertiesNewSlideShowName[5] = new Array('485,000','409 N POINT RD # 303','OSPREY, FL 34229 ','http://photos-10.idxco.com/1948fd42d362bb2359161a99e894152d59aA3954986','A3954986','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3954986&idxID=194','3','3','Seller is crediting Buyers $ 42,500.00 to offset membership....');
	propertiesNewSlideShowName[6] = new Array('479,900','303 SEA ANCHOR DR','OSPREY, FL 34229 ','http://photos-10.idxco.com/194072b5f560e62950183b9ea315690cf41A3954777','A3954777','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3954777&idxID=194','4','2','Absolutely stunning in every detail, no expense was spared i...');
	propertiesNewSlideShowName[7] = new Array('450,000','913 MACEWEN DR','OSPREY, FL 34229 ','http://photos-10.idxco.com/194d699ce71c6d1e792922cf2566ba3d6e1A3944287','A3944287','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3944287&idxID=194','4','4','Short sale.  Spectacular Oaks Clubside home located in a gat...');
	propertiesNewSlideShowName[8] = new Array('434,900','524 HABITAT BLVD','OSPREY, FL 34229 ','http://photos-10.idxco.com/194953bffa2759bd1d9b6ae9ea453ef1204A3955016','A3955016','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3955016&idxID=194','4','3','Beautiful home great location...');
	propertiesNewSlideShowName[9] = new Array('349,900','759 SHADOW BAY WAY','OSPREY, FL 34229 ','http://photos-10.idxco.com/194615e4aa9c41e537d4a66627e65b95f34A3954845','A3954845','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3954845&idxID=194','3','2','This is one of those special homes in Rivendell with great c...');
	propertiesNewSlideShowName[10] = new Array('299,000','1275 WINDWARD DR','OSPREY, FL 34229 ','http://photos-10.idxco.com/19465e0acee3bd553820c1df08cac50d023A3944568','A3944568','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3944568&idxID=194','3','2','Prestigious Southbay Yacht and Racquet Club.  The perfect ho...');
	propertiesNewSlideShowName[11] = new Array('289,900','263 PARK TRACE BLVD','OSPREY, FL 34229 ','http://photos-10.idxco.com/194562f1f7212dad2e43d9c0e11bc30ca47N5774896','N5774896','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=N5774896&idxID=194','3','2','This is a quality built, lightly lived in home that offers a...');
	propertiesNewSlideShowName[12] = new Array('289,000','401 N POINT RD # 303','OSPREY, FL 34229 ','http://photos-10.idxco.com/194113892905976a07cfc0e84e446150f62A3949944','A3949944','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3949944&idxID=194','3','3','LUXURIOUS LIVING WITH WATERFRONT PRESERVE VIEWS!  From the m...');
	propertiesNewSlideShowName[13] = new Array('287,700','376 EL GRECO DR','OSPREY, FL 34229 ','http://photos-10.idxco.com/1942cd25055272818eacfbe43ba2c5f7a66N5775167','N5775167','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=N5775167&idxID=194','3','2','Great Value on sailboat water - there are no fixed bridges t...');
	propertiesNewSlideShowName[14] = new Array('285,000','1237 FLYING BRIDGE LN','OSPREY, FL 34229 ','http://photos-10.idxco.com/194aea7e3479e76abdb7f2f5083804c851cA3952702','A3952702','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3952702&idxID=194','3','2','Create a Lovely Haven Here - Sensible Split Plan * Family Ro...');
	propertiesNewSlideShowName[15] = new Array('269,900','7304 JESSIE HARBOR DR # 7304','OSPREY, FL 34229 ','http://photos-10.idxco.com/194c9278530bf36539b19204a0ff785eebfA3952262','A3952262','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3952262&idxID=194','3','2','Relax! Just bring your Bathing Suit and Toothbrush! The comp...');
	propertiesNewSlideShowName[16] = new Array('264,900','449 S SHORE DR','OSPREY, FL 34229 ','http://photos-10.idxco.com/194367506f0e90ee816d41b06791ff2953fA3949441','A3949441','194','http://valuesarasotahomes.idxco.com/idx/4720/details.php?listingID=A3949441&idxID=194','3','3','Short Sale.  Only a block away from the intercoastal waterwa...');
	var urlVarNewSlideShowName;
	var preLoadNewSlideShowName = new Image();
	preLoadNewSlideShowName.src = propertiesNewSlideShowName[cNewSlideShowNamewi][3];
	onLoad = playNewSlideShowName();

