	// IDX Broker Slideshow version 2.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 timebafdefb031out = 3000;
	var cbafdefb031wi = 0;
	
	// ibafdefb031sf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var ibafdefb031sf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapbafdefb031fade setup function
	function swapbafdefb031fade()
	{
		//if the timer is not already going
		if(ibafdefb031sf.clock == null)
		{
			//copy the image object 
			ibafdefb031sf.obj = arguments[0];
			
			//copy the image src argument 
			ibafdefb031sf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof ibafdefb031sf.obj.style.opacity != 'undefined')
			{
				ibafdefb031sf.type = 'w3c';
			}
			else if(typeof ibafdefb031sf.obj.style.MozOpacity != 'undefined')
			{
				ibafdefb031sf.type = 'moz';
			}
			else if(typeof ibafdefb031sf.obj.style.KhtmlOpacity != 'undefined')
			{
				ibafdefb031sf.type = 'khtml';
			}
			else if(typeof ibafdefb031sf.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
				ibafdefb031sf.type = (ibafdefb031sf.obj.filters.length > 0 && typeof ibafdefb031sf.obj.filters.alpha == 'object' && typeof ibafdefb031sf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				ibafdefb031sf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				ibafdefb031sf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(ibafdefb031sf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapbafdefb031fade is two distinct transitions
				ibafdefb031sf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				ibafdefb031sf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				ibafdefb031sf.clock = setInterval('ibafdefb031sf.swapbafdefb031fade()', ibafdefb031sf.length/ibafdefb031sf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				ibafdefb031sf.obj.src = ibafdefb031sf.src;
			}
			
		}
	};
	
	
	//swapbafdefb031fade timer function
	ibafdefb031sf.swapbafdefb031fade = function()
	{
		//increase or reduce the counter on an exponential scale
		ibafdefb031sf.count = (ibafdefb031sf.fade) ? ibafdefb031sf.count * 0.9 : (ibafdefb031sf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(ibafdefb031sf.count < (1 / ibafdefb031sf.resolution))
		{
			//clear the timer
			clearInterval(ibafdefb031sf.clock);
			ibafdefb031sf.clock = null;
	
			//do the image swap
			ibafdefb031sf.obj.src = ibafdefb031sf.src;
	
			//reverse the fade direction flag
			ibafdefb031sf.fade = false;
			
			//restart the timer
			ibafdefb031sf.clock = setInterval('ibafdefb031sf.swapbafdefb031fade()', ibafdefb031sf.length/ibafdefb031sf.resolution);
	
		}
		
		//if the counter has reached the top
		if(ibafdefb031sf.count > (1 - (1 / ibafdefb031sf.resolution)))
		{
			//clear the timer
			clearInterval(ibafdefb031sf.clock);
			ibafdefb031sf.clock = null;
	
			//reset the fade direction flag
			ibafdefb031sf.fade = true;
			
			//reset the counter
			ibafdefb031sf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(ibafdefb031sf.type)
		{
			case 'ie' :
				ibafdefb031sf.obj.filters.alpha.opacity = ibafdefb031sf.count * 100;
				break;
				
			case 'khtml' :
				ibafdefb031sf.obj.style.KhtmlOpacity = ibafdefb031sf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				ibafdefb031sf.obj.style.MozOpacity = (ibafdefb031sf.count == 1 ? 0.9999999 : ibafdefb031sf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				ibafdefb031sf.obj.style.opacity = (ibafdefb031sf.count == 1 ? 0.9999999 : ibafdefb031sf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-bafdefb031-slideshow { text-align: center; width: 300px;  }');
	document.writeln('.IDX-bafdefb031-image { width: 300px; height: 200px;  }');
	document.writeln('#IDX-bafdefb031-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextbafdefb031 = 1;
	prevbafdefb031 = 25 - 1;

	document.writeln('<div id="IDX-bafdefb031-slideshow">');
	document.writeln('<div id="IDX-bafdefb031-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-bafdefb031-ssImageURL" class="IDX-bafdefb031-ssLinkText"><img id="IDX-bafdefb031-ssImage" name="bafdefb031-ssImage" alt="Slideshow image" border="0"  class="IDX-bafdefb031-image" src="http://www.carolinaphotos.com/photos/945354.jpg" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-bafdefb031-priceLine"></div>');
	document.writeln('<div id="IDX-bafdefb031-addressLine"></div>');
	document.writeln('<div id="IDX-bafdefb031-cszLine"></div>');
	document.writeln('<div id="IDX-bafdefb031-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-bafdefb031-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-bafdefb031-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playbafdefb031()
	{
		
		
		urlVarbafdefb031 = '<a href="'+propertiesbafdefb031[cbafdefb031wi][6]+'" class="IDX-bafdefb031-ssLinkText">';
		swapbafdefb031fade(document.getElementById('IDX-bafdefb031-ssImage'), preLoadbafdefb031.src, '1', ' ');
		document.getElementById('IDX-bafdefb031-ssImageURL').href = propertiesbafdefb031[cbafdefb031wi][6];
		document.getElementById('IDX-bafdefb031-priceLine').innerHTML = urlVarbafdefb031+'$'+propertiesbafdefb031[cbafdefb031wi][0]+'</a>';
		document.getElementById('IDX-bafdefb031-addressLine').innerHTML =  urlVarbafdefb031+propertiesbafdefb031[cbafdefb031wi][1]+'</a>';
		document.getElementById('IDX-bafdefb031-cszLine').innerHTML = urlVarbafdefb031+propertiesbafdefb031[cbafdefb031wi][2]+'</a>';
		document.getElementById('IDX-bafdefb031-bedLine').innerHTML = urlVarbafdefb031+'Beds: '+propertiesbafdefb031[cbafdefb031wi][7]+'</a>';
		document.getElementById('IDX-bafdefb031-bathLine').innerHTML = urlVarbafdefb031+'Baths: '+propertiesbafdefb031[cbafdefb031wi][8]+'</a>';
		document.getElementById('IDX-bafdefb031-remarkLine').innerHTML = urlVarbafdefb031+propertiesbafdefb031[cbafdefb031wi][9]+'</a>';
		
		preLoadbafdefb031 = new Image();
		preLoadbafdefb031.src = propertiesbafdefb031[nextbafdefb031][3];
		
		updatebafdefb031();
		
		cbafdefb031 = setTimeout('playbafdefb031()', timebafdefb031out);	
		
		
	} // end play()
	function updatebafdefb031()
	{		
		cbafdefb031wi = nextbafdefb031;		
		genNextbafdefb031();
		genPrevbafdefb031();
		
	}
	function genNextbafdefb031()
	{
		nextbafdefb031 = cbafdefb031wi + 1;
		if (nextbafdefb031 >= 25)
			nextbafdefb031 = 0;
	} // end genNext
	function genPrevbafdefb031()
	{
		prevbafdefb031 = cbafdefb031wi - 1;
		if (prevbafdefb031 < 0)
			prevbafdefb031 = 25 - 1;
	} // end genPrev

	var propertiesbafdefb031 = new Array(25);
	propertiesbafdefb031[0] = new Array('9,500,000','127  Thurstons WAY','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/945354.jpg','945354','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=945354&idxID=032','4','4','Panoramic views of beautiful Lake Norman, with this one of a...');
	propertiesbafdefb031[1] = new Array('3,999,000','178  Mariner Pointe LN','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/970925.jpg','970925','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=970925&idxID=032','6','6','Your Caribbean resort @Lake Norman! Truly magnificent privat...');
	propertiesbafdefb031[2] = new Array('3,850,000','153  Falmouth RD','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/968038.jpg','968038','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=968038&idxID=032','5','4','NEW CONSTRUCTION ! Magnificent \\\\\\&quot;Nantucket\\\\\\&quot; s...');
	propertiesbafdefb031[3] = new Array('3,750,000','124  Iron Gate CIR','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/942468.jpg','942468','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=942468&idxID=032','6','6','Craftsman-Coastal masterpiece, seamless fusion of simplicity...');
	propertiesbafdefb031[4] = new Array('3,399,999','191  Shelbourne PL','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/943002.jpg','943002','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=943002&idxID=032','5','6','Perched on a Lake Norman Peninsula, this cedar shake and sto...');
	propertiesbafdefb031[5] = new Array('3,000,000','158  Points End DR','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/964919.jpg','964919','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=964919&idxID=032','5','4','WATERFRONT ELEGANCE  is what you will find in this European ...');
	propertiesbafdefb031[6] = new Array('2,999,000','167  Falmouth RD','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/714175.jpg','714175','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=714175&idxID=032','5','5','Incredible French country estate with a breath-taking 270 de...');
	propertiesbafdefb031[7] = new Array('2,999,000','108  Kingsbury CT','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/915202.jpg','915202','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=915202&idxID=032','5','6','European Splendor! WF home designed for luxury lake living! ...');
	propertiesbafdefb031[8] = new Array('2,975,000','110  Ventana CT','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/912405.jpg','912405','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=912405&idxID=032','4','4','Designed for luxury lake living with the privacy of an exclu...');
	propertiesbafdefb031[9] = new Array('2,899,000','120  Island Cove LN','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/915853.jpg','915853','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=915853&idxID=032','5','6','***10G***Exquisite Waterfront home w/350\\\\\\\' shoreline. Gour...');
	propertiesbafdefb031[10] = new Array('2,800,000','141  Union Chapel DR','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/932980.jpg','932980','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=932980&idxID=032','5','5','WOW! Incredible details adorn this quality custom Augusta ho...');
	propertiesbafdefb031[11] = new Array('2,750,000','135  Falmouth RD','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/890850.jpg','890850','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=890850&idxID=032','4','5','Waterfront living at its finest! Exquisite Dienst custom hom...');
	propertiesbafdefb031[12] = new Array('2,749,000','195  Mayfair RD','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/851654.jpg','851654','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=851654&idxID=032','6','6','One year home warranty. Elegant Lakefront Estate, Waterviews...');
	propertiesbafdefb031[13] = new Array('2,590,000','208  Cape Cod WAY','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/938902.jpg','938902','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=938902&idxID=032','5','5','***10G***Lake Living at It\\\\\\\'s Best with this European styl...');
	propertiesbafdefb031[14] = new Array('2,500,000','146  Whitby LN','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/944250.jpg','944250','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=944250&idxID=032','5','3','This exquisite custom European English Manor style home is l...');
	propertiesbafdefb031[15] = new Array('2,449,000','189  Brawley Harbor PL','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/943683.jpg','943683','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=943683&idxID=032','5','6','Great Home for Entertaining and Fun! Priviate pier with deep...');
	propertiesbafdefb031[16] = new Array('2,389,000','242  Pinnacle Shores DR','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/970944.jpg','970944','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=970944&idxID=032','5','5','Spectacular Lake Norman Waterfront Estate! Gracious elegance...');
	propertiesbafdefb031[17] = new Array('2,225,000','116  Sumter DR','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/947258.jpg','947258','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=947258&idxID=032','4','5','Gorgeous Full Brick Home! Hrdwds on Main! Kich has Built-In ...');
	propertiesbafdefb031[18] = new Array('2,195,000','195  Brawley Harbor PL','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/971390.jpg','971390','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=971390&idxID=032','5','5','ALL BRICK AND CEDAR SHAKE LOW MAINENTANCE HOME ON BIG WATER....');
	propertiesbafdefb031[19] = new Array('2,190,000','111  Wellfleet LN','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/897015.jpg','897015','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=897015&idxID=032','6','6','Magnificent home in the Point with all of the upgrades. Priv...');
	propertiesbafdefb031[20] = new Array('1,975,000','118  Hadley Harbor CT','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/930211.jpg','930211','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=930211&idxID=032','6','5','Beautiful WATERFRONT ESTATE in The Point. This stone and stu...');
	propertiesbafdefb031[21] = new Array('1,920,000','144  Union Chapel RD','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/947284.jpg','947284','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=947284&idxID=032','5','4','Impeccable waterfront home with exceptional views and the ul...');
	propertiesbafdefb031[22] = new Array('1,899,000','109  Sea Hide CT','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/940336.jpg','940336','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=940336&idxID=032','5','4','Witness the best waterfront/sunset view on Lake Norman. The ...');
	propertiesbafdefb031[23] = new Array('1,800,000','  Stonewall Beach LN','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/960245.jpg','960245','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=960245&idxID=032','5','5','Custom Golf course home with deeded boatslip areound the cor...');
	propertiesbafdefb031[24] = new Array('1,739,900','111  Thurstons WAY','Mooresville, NC 28117 ','http://www.carolinaphotos.com/photos/932699.jpg','932699','032','http://idx.lakenormanhomeconnection.com/idx/4061/details.php?listingID=932699&idxID=032','5','5','Huge Resort Style waterfront European Villa with Amazing Wat...');
	var urlVarbafdefb031;
	var preLoadbafdefb031 = new Image();
	preLoadbafdefb031.src = propertiesbafdefb031[cbafdefb031wi][3];
	onLoad = playbafdefb031();
