	// 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 = 5000;
	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;  }');
	document.writeln('#IDX-NewSlideShowName-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextNewSlideShowName = 1;
	prevNewSlideShowName = 25 - 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-14.idxco.com/266b9067413d7cf0bbe7fde29216553e550487335" ></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 >= 25)
			nextNewSlideShowName = 0;
	} // end genNext
	function genPrevNewSlideShowName()
	{
		prevNewSlideShowName = cNewSlideShowNamewi - 1;
		if (prevNewSlideShowName < 0)
			prevNewSlideShowName = 25 - 1;
	} // end genPrev

	var propertiesNewSlideShowName = new Array(25);
	propertiesNewSlideShowName[0] = new Array('16,000,000','355 ALBEMARLE HOUSE DR','CHARLOTTESVILLE (ALBEMARLE), VA 22902 ','http://photos-14.idxco.com/266b9067413d7cf0bbe7fde29216553e550487335','487335','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=487335&idxID=266','8','13','Albemarle\\\\\\\'s finest country estate of nearly 100 acres nea...');
	propertiesNewSlideShowName[1] = new Array('11,950,000','741 WOODLANDS RD B','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://www.caarmls.com/CAARReports/media/449168.jpg','449168','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=449168&idxID=266','5','6','Close to town and only 9 min to airport. Dramatic entry lead...');
	propertiesNewSlideShowName[2] = new Array('10,300,000','1921 GEORGETOWN FARM','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/2666a8c2ef6478664307636c51744af30e9471601','471601','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=471601&idxID=266','5','6','Georgetown Farm, spectacular 635 acre farming estate, offeri...');
	propertiesNewSlideShowName[3] = new Array('9,950,000','1000 IVY CREEK DR (ALBEMARLE) M','CHARLOTTESVILLE (ALBEMARLE), VA 22903 ','http://www.caarmls.com/CAARReports/media/463641_0906250.jpg','463641','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=463641&idxID=266','3','3','\\\\\\&quot;Keepers\\\\\\&quot; 62+ acres in Ivy Creek with three ...');
	propertiesNewSlideShowName[4] = new Array('9,950,000','1000 IVY CREEK DR (ALBEMARLE)','CHARLOTTESVILLE (ALBEMARLE), VA 22903 ','http://www.caarmls.com/CAARReports/media/463544_1241250.jpg','463544','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=463544&idxID=266','3','3','Keepers- 62 acres with three divisions and a 4,000+ sq. ft. ...');
	propertiesNewSlideShowName[5] = new Array('6,950,000','2529 IVY CREEK FARM RD','CHARLOTTESVILLE (ALBEMARLE), VA 22903 ','http://photos-14.idxco.com/26616d8af53634d18f8e967fd3d5583a6e6482639','482639','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=482639&idxID=266','7','7','Spectacular 105-acre estate with vineyard, guest cottage, po...');
	propertiesNewSlideShowName[6] = new Array('6,875,000','1304 VIEWMONT FARM','CHARLOTTESVILLE (ALBEMARLE), VA 22902 ','http://photos-14.idxco.com/266bab5a6f3234ee70e250f5263db8d5459493192','493192','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=493192&idxID=266','4','3','Dating back to 1874,historic Viewmont Farm is 875+ acres of ...');
	propertiesNewSlideShowName[7] = new Array('6,800,000','3365 MORROWDALE FARM','CHARLOTTESVILLE (ALBEMARLE), VA 22902 ','http://photos-14.idxco.com/2663b2c6941392ca4d96bda836b5b660d61492414','492414','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=492414&idxID=266','3','2','Morrowdale Farm, the quintessential Virginia horse property,...');
	propertiesNewSlideShowName[8] = new Array('6,500,000','1209 THOMAS JEFFERSON PKWY','CHARLOTTESVILLE (ALBEMARLE), VA 22902 ','http://photos-14.idxco.com/26648f3ddec3bb0c94c9adaf753073aac7a473425','473425','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=473425&idxID=266','5','6','Fully renovated and historically significant home, previousl...');
	propertiesNewSlideShowName[9] = new Array('6,100,000','1132 SUNSET AVENUE EXT (ALBEMARLE)','CHARLOTTESVILLE (ALBEMARLE), VA 22902 ','http://photos-14.idxco.com/266052bf7ccce42a8d80875c00bafe29db8483154','483154','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=483154&idxID=266','4','3','Farm borders Redfields Subdivision and Mosby Mountain Subdiv...');
	propertiesNewSlideShowName[10] = new Array('5,950,000','1921 GEORGETOWN FARM B','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/2668ad1f5e7fd7d5c974b07211c8bdad5fb483770','483770','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=483770&idxID=266','5','6','Georgetown Farm, spectacular 271 acre farming estate, offeri...');
	propertiesNewSlideShowName[11] = new Array('4,400,000','1701 BENTIVAR DR','CHARLOTTESVILLE (ALBEMARLE), VA 22911 ','http://photos-14.idxco.com/2660253cac0b695995ebab3d40d171f4af2486024','486024','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=486024&idxID=266','7','9','Exquisite 11,692 square foot Federal brick manor with 7 bedr...');
	propertiesNewSlideShowName[12] = new Array('4,200,000','1000 IVY CREEK DR (ALBEMARLE) M(M)','CHARLOTTESVILLE (ALBEMARLE), VA 22903 ','http://photos-14.idxco.com/266ce7afa7e065d71f0990f087c8f6d01e5473254','473254','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=473254&idxID=266','3','3','\\\\\\&quot;Keepers\\\\\\&quot; 12+ acres (subject to county appro...');
	propertiesNewSlideShowName[13] = new Array('3,900,000','2621 COOPERS LN ALL','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/26658ab89d8219fd42ec750369938deb275490767','490767','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=490767&idxID=266','5','5','Glen Love sits on approximately 125+/- acres in an estate ar...');
	propertiesNewSlideShowName[14] = new Array('3,750,000','1921 S GEORGETOWN FARM','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/2666a8c2ef6478664307636c51744af30e9482785','482785','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=482785&idxID=266','5','6','Georgetown Farm, spectacular 119 acre farming estate, with u...');
	propertiesNewSlideShowName[15] = new Array('3,450,000','1921 GEORGETOWN FARM FT','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/266faf48d7da5f770fd1a3c13ff622b295c485694','485694','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=485694&idxID=266','4','2','Lovely pastoral 185 acre \\\\\\&quot;Farm Tract,\\\\\\&quot; part ...');
	propertiesNewSlideShowName[16] = new Array('3,350,000','485 OAK CIR (ALBEMARLE)','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/2669622865986280a7ce2608d42916b9240481092','481092','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=481092&idxID=266','5','4','Exceptional 1930\\\\\\\'s Arts &amp; Crafts home, private settin...');
	propertiesNewSlideShowName[17] = new Array('3,250,000','','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/266faa55d7fd0c1a5e20ce23dc390a16b26483855','483855','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=483855&idxID=266','4','3','Never before available to the public, Shack Mountain is arch...');
	propertiesNewSlideShowName[18] = new Array('2,975,000','680 IVY LN (ALBEMARLE)','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/26675003dcc90f84dd0392a0b2366e12cd5482902','482902','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=482902&idxID=266','3','3','This distinctive home is a Jefferson inspired interpretation...');
	propertiesNewSlideShowName[19] = new Array('2,950,000','1705 LAMBS RD','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/266626690b61ca1d875abbd5d6f2567ffda489444','489444','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=489444&idxID=266','4','3','Incredible 80 acre Albemarle estate just a stone\\\\\\\'s throw ...');
	propertiesNewSlideShowName[20] = new Array('2,750,000','1382 GARTH RD (ALBEMARLE)','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/266dc2557dd667df83d31fa0a80e208cf07484561','484561','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=484561&idxID=266','6','4','Imagine owning this magnificent home only minutes from Charl...');
	propertiesNewSlideShowName[21] = new Array('2,495,000','1622 BECKONING RIDGE RD','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/266609b891d42d797769643b3e27e4ef05b485463','485463','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=485463&idxID=266','5','6','Threes Springs Farm features a custom 7000 sq.ft. brick Gree...');
	propertiesNewSlideShowName[22] = new Array('2,387,000','3864 GARTH RD (ALBEMARLE) A','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/266386f2a3427b2969163a2c2700d94052c482937','482937','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=482937&idxID=266','5','4','Public OPEN HOUSE - Sun, Nov 27, 1-4 pm, Windermere Farm, a ...');
	propertiesNewSlideShowName[23] = new Array('2,295,000','','CHARLOTTESVILLE (ALBEMARLE), VA 22901 ','http://photos-14.idxco.com/26600dec5239df96986438a9d021e6aa317493277','493277','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=493277&idxID=266','5','5','Lower price offering for 7.112 acres (2 lots) &amp; custom h...');
	propertiesNewSlideShowName[24] = new Array('2,295,000','10 LINK EVANS LN','CHARLOTTESVILLE (ALBEMARLE), VA 22936 ','http://photos-14.idxco.com/266150494cd2edf6716b2f9ae6cdc5ca1cc490623','490623','266','http://www.KevinHoltRealty.idxco.com/idx/4210/details.php?listingID=490623&idxID=266','4','5','Open, light-flooded J. Dalgliesh-designed home of uncompromi...');
	var urlVarNewSlideShowName;
	var preLoadNewSlideShowName = new Image();
	preLoadNewSlideShowName.src = propertiesNewSlideShowName[cNewSlideShowNamewi][3];
	onLoad = playNewSlideShowName();

