	// 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 timeNewCaryListingsSlideshowout = 6000;
	var cNewCaryListingsSlideshowwi = 0;
	
	// iNewCaryListingsSlideshowsf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iNewCaryListingsSlideshowsf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapNewCaryListingsSlideshowfade setup function
	function swapNewCaryListingsSlideshowfade()
	{
		//if the timer is not already going
		if(iNewCaryListingsSlideshowsf.clock == null)
		{
			//copy the image object 
			iNewCaryListingsSlideshowsf.obj = arguments[0];
			
			//copy the image src argument 
			iNewCaryListingsSlideshowsf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iNewCaryListingsSlideshowsf.obj.style.opacity != 'undefined')
			{
				iNewCaryListingsSlideshowsf.type = 'w3c';
			}
			else if(typeof iNewCaryListingsSlideshowsf.obj.style.MozOpacity != 'undefined')
			{
				iNewCaryListingsSlideshowsf.type = 'moz';
			}
			else if(typeof iNewCaryListingsSlideshowsf.obj.style.KhtmlOpacity != 'undefined')
			{
				iNewCaryListingsSlideshowsf.type = 'khtml';
			}
			else if(typeof iNewCaryListingsSlideshowsf.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
				iNewCaryListingsSlideshowsf.type = (iNewCaryListingsSlideshowsf.obj.filters.length > 0 && typeof iNewCaryListingsSlideshowsf.obj.filters.alpha == 'object' && typeof iNewCaryListingsSlideshowsf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iNewCaryListingsSlideshowsf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iNewCaryListingsSlideshowsf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iNewCaryListingsSlideshowsf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapNewCaryListingsSlideshowfade is two distinct transitions
				iNewCaryListingsSlideshowsf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iNewCaryListingsSlideshowsf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iNewCaryListingsSlideshowsf.clock = setInterval('iNewCaryListingsSlideshowsf.swapNewCaryListingsSlideshowfade()', iNewCaryListingsSlideshowsf.length/iNewCaryListingsSlideshowsf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iNewCaryListingsSlideshowsf.obj.src = iNewCaryListingsSlideshowsf.src;
			}
			
		}
	};
	
	
	//swapNewCaryListingsSlideshowfade timer function
	iNewCaryListingsSlideshowsf.swapNewCaryListingsSlideshowfade = function()
	{
		//increase or reduce the counter on an exponential scale
		iNewCaryListingsSlideshowsf.count = (iNewCaryListingsSlideshowsf.fade) ? iNewCaryListingsSlideshowsf.count * 0.9 : (iNewCaryListingsSlideshowsf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iNewCaryListingsSlideshowsf.count < (1 / iNewCaryListingsSlideshowsf.resolution))
		{
			//clear the timer
			clearInterval(iNewCaryListingsSlideshowsf.clock);
			iNewCaryListingsSlideshowsf.clock = null;
	
			//do the image swap
			iNewCaryListingsSlideshowsf.obj.src = iNewCaryListingsSlideshowsf.src;
	
			//reverse the fade direction flag
			iNewCaryListingsSlideshowsf.fade = false;
			
			//restart the timer
			iNewCaryListingsSlideshowsf.clock = setInterval('iNewCaryListingsSlideshowsf.swapNewCaryListingsSlideshowfade()', iNewCaryListingsSlideshowsf.length/iNewCaryListingsSlideshowsf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iNewCaryListingsSlideshowsf.count > (1 - (1 / iNewCaryListingsSlideshowsf.resolution)))
		{
			//clear the timer
			clearInterval(iNewCaryListingsSlideshowsf.clock);
			iNewCaryListingsSlideshowsf.clock = null;
	
			//reset the fade direction flag
			iNewCaryListingsSlideshowsf.fade = true;
			
			//reset the counter
			iNewCaryListingsSlideshowsf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iNewCaryListingsSlideshowsf.type)
		{
			case 'ie' :
				iNewCaryListingsSlideshowsf.obj.filters.alpha.opacity = iNewCaryListingsSlideshowsf.count * 100;
				break;
				
			case 'khtml' :
				iNewCaryListingsSlideshowsf.obj.style.KhtmlOpacity = iNewCaryListingsSlideshowsf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iNewCaryListingsSlideshowsf.obj.style.MozOpacity = (iNewCaryListingsSlideshowsf.count == 1 ? 0.9999999 : iNewCaryListingsSlideshowsf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iNewCaryListingsSlideshowsf.obj.style.opacity = (iNewCaryListingsSlideshowsf.count == 1 ? 0.9999999 : iNewCaryListingsSlideshowsf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-NewCaryListingsSlideshow-slideshow { text-align: center; border-width: 1px; width: 550px;  }');
	document.writeln('.IDX-NewCaryListingsSlideshow-image { width: 550px; height: 325px;  }');
	document.writeln('#IDX-NewCaryListingsSlideshow-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextNewCaryListingsSlideshow = 1;
	prevNewCaryListingsSlideshow = 25 - 1;

	document.writeln('<div id="IDX-NewCaryListingsSlideshow-slideshow">');
	document.writeln('<div id="IDX-NewCaryListingsSlideshow-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-NewCaryListingsSlideshow-ssImageURL" class="IDX-NewCaryListingsSlideshow-ssLinkText"><img id="IDX-NewCaryListingsSlideshow-ssImage" name="NewCaryListingsSlideshow-ssImage" alt="Slideshow image" border="0"  class="IDX-NewCaryListingsSlideshow-image" src="http://photos-10.idxco.com/200eca9bb738139e9f2b6fa61c7214429981817799" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-NewCaryListingsSlideshow-priceLine"></div>');
	document.writeln('<div id="IDX-NewCaryListingsSlideshow-addressLine"></div>');
	document.writeln('<div id="IDX-NewCaryListingsSlideshow-cszLine"></div>');
	document.writeln('<div id="IDX-NewCaryListingsSlideshow-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-NewCaryListingsSlideshow-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-NewCaryListingsSlideshow-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playNewCaryListingsSlideshow()
	{
		
		
		urlVarNewCaryListingsSlideshow = '<a href="'+propertiesNewCaryListingsSlideshow[cNewCaryListingsSlideshowwi][6]+'" class="IDX-NewCaryListingsSlideshow-ssLinkText">';
		swapNewCaryListingsSlideshowfade(document.getElementById('IDX-NewCaryListingsSlideshow-ssImage'), preLoadNewCaryListingsSlideshow.src, '1', ' ');
		document.getElementById('IDX-NewCaryListingsSlideshow-ssImageURL').href = propertiesNewCaryListingsSlideshow[cNewCaryListingsSlideshowwi][6];
		document.getElementById('IDX-NewCaryListingsSlideshow-priceLine').innerHTML = urlVarNewCaryListingsSlideshow+'$'+propertiesNewCaryListingsSlideshow[cNewCaryListingsSlideshowwi][0]+'</a>';
		document.getElementById('IDX-NewCaryListingsSlideshow-addressLine').innerHTML =  urlVarNewCaryListingsSlideshow+propertiesNewCaryListingsSlideshow[cNewCaryListingsSlideshowwi][1]+'</a>';
		document.getElementById('IDX-NewCaryListingsSlideshow-cszLine').innerHTML = urlVarNewCaryListingsSlideshow+propertiesNewCaryListingsSlideshow[cNewCaryListingsSlideshowwi][2]+'</a>';
		document.getElementById('IDX-NewCaryListingsSlideshow-bedLine').innerHTML = urlVarNewCaryListingsSlideshow+'Beds: '+propertiesNewCaryListingsSlideshow[cNewCaryListingsSlideshowwi][7]+'</a>';
		document.getElementById('IDX-NewCaryListingsSlideshow-bathLine').innerHTML = urlVarNewCaryListingsSlideshow+'Baths: '+propertiesNewCaryListingsSlideshow[cNewCaryListingsSlideshowwi][8]+'</a>';
		document.getElementById('IDX-NewCaryListingsSlideshow-remarkLine').innerHTML = urlVarNewCaryListingsSlideshow+propertiesNewCaryListingsSlideshow[cNewCaryListingsSlideshowwi][9]+'</a>';
		
		preLoadNewCaryListingsSlideshow = new Image();
		preLoadNewCaryListingsSlideshow.src = propertiesNewCaryListingsSlideshow[nextNewCaryListingsSlideshow][3];
		
		updateNewCaryListingsSlideshow();
		
		cNewCaryListingsSlideshow = setTimeout('playNewCaryListingsSlideshow()', timeNewCaryListingsSlideshowout);	
		
		
	} // end play()
	function updateNewCaryListingsSlideshow()
	{		
		cNewCaryListingsSlideshowwi = nextNewCaryListingsSlideshow;		
		genNextNewCaryListingsSlideshow();
		genPrevNewCaryListingsSlideshow();
		
	}
	function genNextNewCaryListingsSlideshow()
	{
		nextNewCaryListingsSlideshow = cNewCaryListingsSlideshowwi + 1;
		if (nextNewCaryListingsSlideshow >= 25)
			nextNewCaryListingsSlideshow = 0;
	} // end genNext
	function genPrevNewCaryListingsSlideshow()
	{
		prevNewCaryListingsSlideshow = cNewCaryListingsSlideshowwi - 1;
		if (prevNewCaryListingsSlideshow < 0)
			prevNewCaryListingsSlideshow = 25 - 1;
	} // end genPrev

	var propertiesNewCaryListingsSlideshow = new Array(25);
	propertiesNewCaryListingsSlideshow[0] = new Array('934,780','7036 Copperleaf Place','Cary, NC 27519 ','http://photos-10.idxco.com/200eca9bb738139e9f2b6fa61c7214429981817799','1817799','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817799&idxID=200','5','5','Handsome brick detailing &amp; stonework creates a stunning ...');
	propertiesNewCaryListingsSlideshow[1] = new Array('839,900','6849 Palaver Lane','Cary, NC 27519 ','http://photos-10.idxco.com/200fce0f878a759440a54a0f176eaf486451818159','1818159','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1818159&idxID=200','5','4','Classically designed exterior offers timeless &amp; stately ...');
	propertiesNewCaryListingsSlideshow[2] = new Array('669,900','224 Turquoise Creek Drive','Cary, NC 27513 ','http://photos-10.idxco.com/20038a7a4299864a36ff252e9bda7e33d3e1807466','1807466','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1807466&idxID=200','4','4','Preston Low Country 1st floor MBR, 2nd floor has 3 BR suites...');
	propertiesNewCaryListingsSlideshow[3] = new Array('599,900','204 Caviston Way','Cary, NC 27519 ','http://photos-10.idxco.com/20050615ac3f7b7da9b7246dfa9356c9dfa1817632','1817632','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817632&idxID=200','6','5','Seller wants property sold! $82,000 below recent appraisal. ...');
	propertiesNewCaryListingsSlideshow[4] = new Array('565,000','100 Doric Court','Cary, NC 27519 ','http://photos-10.idxco.com/200d9d736c0dbbfd383349c4d30457c47f61818121','1818121','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1818121&idxID=200','4','4','Custom-built on large lot w/ lovely WATER VIEW in PRESTON VI...');
	propertiesNewCaryListingsSlideshow[5] = new Array('539,900','337 Melvin Jackson Drive','Cary, NC 27519 ','http://photos-10.idxco.com/20070f66d25e62caac9fcb5664849004c9e1818277','1818277','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1818277&idxID=200','5','4','Beautiful and spacious custom home with a wonderful floor pl...');
	propertiesNewCaryListingsSlideshow[6] = new Array('524,995','840 Katahdin Way','Cary, NC 27519 ','http://sweb1.idxco.com/images/noHousePhoto.png','1817858','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817858&idxID=200','5','4','Beautiful 5 Bedroom 4 Bath on a Cul-de-Sac home site.  This ...');
	propertiesNewCaryListingsSlideshow[7] = new Array('509,900','307 Brodie Lloyd Court','Cary, NC 27519 ','http://photos-10.idxco.com/200bb11884a37d2efd40b23556adaf04ae01817957','1817957','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817957&idxID=200','4','3','1st flr is all hrdwds. Formal LR w/French drs &amp; office o...');
	propertiesNewCaryListingsSlideshow[8] = new Array('509,900','304 Melvin Jackson Drive','Cary, NC 27519 ','http://photos-10.idxco.com/200973cbca487b03dc1ab086f69d84ff16e1817689','1817689','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817689&idxID=200','5','4','Gorgeous custom home featuring exterior stonework, shake and...');
	propertiesNewCaryListingsSlideshow[9] = new Array('499,990','100 Silver Bow Court','Cary, NC 27519 ','http://photos-10.idxco.com/200f27bf1cdde50694df9d32b4896c4ca451817600','1817600','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817600&idxID=200','4','3','Santa Maria A:  Foyer opens to Family Room w/ stunning windo...');
	propertiesNewCaryListingsSlideshow[10] = new Array('499,950','200 Listening Ridge Lane','Cary, NC 27519 ','http://photos-10.idxco.com/200379a19910f5a5a15e9c8f42ae475423c1817739','1817739','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817739&idxID=200','5','4','The Siena A: Spacious open floor plan features LR &amp; DR p...');
	propertiesNewCaryListingsSlideshow[11] = new Array('495,000','211 Glebe Way','Cary, NC 27519 ','http://photos-10.idxco.com/200f4e42e415613e5b4f68a11f0196942dc1818055','1818055','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1818055&idxID=200','4','3','A big WOW on the WOW meter for this stunning, cul-de-sac hom...');
	propertiesNewCaryListingsSlideshow[12] = new Array('469,990','5937 Terrington Lane','Cary, NC 27606 ','http://photos-10.idxco.com/200725f1151337381cd685a572a631367381795274','1795274','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1795274&idxID=200','5','4','Price includes screened porch, fully sodded yard and in-grou...');
	propertiesNewCaryListingsSlideshow[13] = new Array('445,000','1009 Chalk Maple Drive','Cary, NC 27519 ','http://photos-10.idxco.com/200667ad4f2032ef47d3f4d515c4722ded71817775','1817775','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817775&idxID=200','4','3','Energy Star certified custom home w/4 bds, 3 full &amp; 2 ha...');
	propertiesNewCaryListingsSlideshow[14] = new Array('429,900','1211 Chalk Maple Drive','Cary, NC 27519 ','http://photos-10.idxco.com/200135adac04753d76828147b837c8857271817870','1817870','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817870&idxID=200','4','4','This house should win an architectural award for its use of ...');
	propertiesNewCaryListingsSlideshow[15] = new Array('424,900','1100 Ventnor Place','Cary, NC 27519 ','http://photos-10.idxco.com/200f5aa3e64c6442e2f87da3581d955be2b1817608','1817608','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817608&idxID=200','3','4','Lovely Ranch in 55+ Del Webb community, built on a full Base...');
	propertiesNewCaryListingsSlideshow[16] = new Array('419,900','304 Painted Fall Way','Cary, NC 27513 ','http://photos-10.idxco.com/2004426d07cbc3a14f03ab016205040166b1798209','1798209','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1798209&idxID=200','4','2','Beautifully Updated &amp; Move-In Ready! Gorgeous hdwds 1st ...');
	propertiesNewCaryListingsSlideshow[17] = new Array('400,000','215 Brookridge Drive','Cary, NC 27518-8904 ','http://photos-10.idxco.com/200a5d27ec7f2d2a834caa0a05c7f6751681818162','1818162','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1818162&idxID=200','2','2','Unique Home on an incredible Homesite! Feels like a mountain...');
	propertiesNewCaryListingsSlideshow[18] = new Array('399,900','209 Cole Valley Drive','Cary, NC 27513 ','http://sweb1.idxco.com/images/noHousePhoto.png','1818429','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1818429&idxID=200','4','3','The Bradley - Another award winning floor plan from Drees Ho...');
	propertiesNewCaryListingsSlideshow[19] = new Array('399,900','812 Tranquil Sound Drive','Cary, NC 27519 ','http://photos-10.idxco.com/200d3b7180fdf0d2bbadba907dde602aa3d1818323','1818323','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1818323&idxID=200','5','3','Excellent price for this lovely home in excellent location o...');
	propertiesNewCaryListingsSlideshow[20] = new Array('379,900','1219 Chalk Maple Drive','Cary, NC 27519 ','http://photos-10.idxco.com/200ef7cabdf996872006b430ad6fc9703be1817726','1817726','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817726&idxID=200','3','3','Immaculate home that is better than new in Village Square at...');
	propertiesNewCaryListingsSlideshow[21] = new Array('367,500','124 Palace Green Drive','Cary, NC 27518 ','http://photos-10.idxco.com/2005961109e4ed8c7857c0ad9463f633e4e1818265','1818265','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1818265&idxID=200','3','2','Old world charm with modern updates, open floor plan with Va...');
	propertiesNewCaryListingsSlideshow[22] = new Array('325,000','119 Parkcrest Drive','Cary, NC 27519 ','http://photos-10.idxco.com/200b2e44f7dc4a0f6820c2e97949e41dba31806559','1806559','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1806559&idxID=200','4','2','A room for everyone! Four Bedrooms-Huge Bonus Room-1st Floor...');
	propertiesNewCaryListingsSlideshow[23] = new Array('319,000','209 Bog Hill Lane','Cary, NC 27519 ','http://photos-10.idxco.com/2002dc022917ec631c49c68ef7471a55f6e1817720','1817720','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817720&idxID=200','4','2','Immaculate Home In Desirable Twin Lakes Subdiv. Open Floor P...');
	propertiesNewCaryListingsSlideshow[24] = new Array('305,000','105 ParkGrove Court','Cary, NC 27519 ','http://photos-10.idxco.com/2009a35d646cc164e58a436aadb6e65eb0a1817508','1817508','200','http://homesforsale.caryrealestate.com/idx/6179/details.php?listingID=1817508&idxID=200','4','2','Fabulous family home in desirable Westpark. Kitchen updated ...');
	var urlVarNewCaryListingsSlideshow;
	var preLoadNewCaryListingsSlideshow = new Image();
	preLoadNewCaryListingsSlideshow.src = propertiesNewCaryListingsSlideshow[cNewCaryListingsSlideshowwi][3];
	onLoad = playNewCaryListingsSlideshow();

