	// 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 = 6000;
	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: 250px;  }');
	document.writeln('.IDX-NewSlideShowName-image { width: 262px;  }');
	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-5.idxco.com/0967de0ea70f42c77dda4815a531ad9bbb34107757" ></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('6,200,000','755 Brickyard','Colchester, VT 05446 ','http://photos-5.idxco.com/0967de0ea70f42c77dda4815a531ad9bbb34107757','4107757','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4107757&idxID=096','3','3','One of the most spectacular properties on Lake Champlain. Th...');
	propertiesNewSlideShowName[1] = new Array('2,295,000','720 Brickyard','Colchester, VT 05446 ','http://photos-5.idxco.com/096703277a4fcc1ad90ed3675c2df27c2aa4022550','4022550','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4022550&idxID=096','3','3','Exceptional quality is found throughout this very special la...');
	propertiesNewSlideShowName[2] = new Array('1,950,000','931 Red Rock Road','Colchester, VT 05446 ','http://photos-5.idxco.com/096741aaddd946118f31314897b999dad9f4105530','4105530','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4105530&idxID=096','4','5','Live the good life from this distinctive Vermont sanctuary o...');
	propertiesNewSlideShowName[3] = new Array('1,895,000','115 Moonlight Ridge Road','Colchester, VT 05446 ','http://photos-5.idxco.com/0963ca3e271aa0cbf666c8938b6f1105cac4085867','4085867','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4085867&idxID=096','3','2','You might want to see this presentation in 3D! Panoramic 180...');
	propertiesNewSlideShowName[4] = new Array('1,675,000','822 Braeloch Road','Colchester, VT 05446 ','http://photos-5.idxco.com/09614c791a5c927aaad52c0c90b1079d66a3106636','3106636','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=3106636&idxID=096','2','3','This is truly one of the rarest pieces of Lake Frontage in C...');
	propertiesNewSlideShowName[5] = new Array('634,900','1212 Sunset View Drive','Colchester, VT 05446 ','http://photos-5.idxco.com/09639618d5265a89a382e372435b127d09b4118417','4118417','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4118417&idxID=096','4','4','Incredible house and setting at an incredible price! Central...');
	propertiesNewSlideShowName[6] = new Array('590,000','1396 Marble Island Road','Colchester, VT 05446 ','http://photos-5.idxco.com/09655f3fa1a2caccdf9d9edff5b9f287d4f4075954','4075954','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4075954&idxID=096','2','2','Knock out Lakefront townhome at Marble Island! Fantastic 3 l...');
	propertiesNewSlideShowName[7] = new Array('575,000','1414 Marble Island Road','Colchester, VT 05446 ','http://photos-5.idxco.com/09643c8ae00fdf7305bc40cbf99f4db00be4072120','4072120','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4072120&idxID=096','2','2','Views Views Views, from all three levels, waterfront condomi...');
	propertiesNewSlideShowName[8] = new Array('535,000','1514 Grandview Road','Colchester, VT 05446 ','http://photos-5.idxco.com/096951f3d45cd990f7b3f7b32550ddcfb6f4030399','4030399','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4030399&idxID=096','2','2','Sailor\\\\\\\'s delight - protected harbor with 100 feet of deep...');
	propertiesNewSlideShowName[9] = new Array('525,000','197 West Red Rock Road','Colchester, VT 05446 ','http://photos-5.idxco.com/096c54ce8a19ce2a4500b417fd7da4e666f4098277','4098277','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4098277&idxID=096','2','0','Fabulous lakefront with newly built decks, railing and stair...');
	propertiesNewSlideShowName[10] = new Array('499,400','Lot 12 Colden Rd','Colchester, VT 05446 ','http://photos-5.idxco.com/09678635a1da4ee24db48314d15a32215a03107041','3107041','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=3107041&idxID=096','4','2','Once in a lifetime opportunity to build in Colchester\\\\\\\'s n...');
	propertiesNewSlideShowName[11] = new Array('498,500','133 Arbor Lane','Colchester, VT 05446 ','http://photos-5.idxco.com/0963586b6743c425f6cdc11c55dcec9c3884126105','4126105','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4126105&idxID=096','4','2','4 bedroom custom colonial in one of Colchester\\\\\\\'s establis...');
	propertiesNewSlideShowName[12] = new Array('494,950','702 Poor Farm Road','Colchester, VT 05446 ','http://photos-5.idxco.com/096b25e9d1acda5d41f985abbef3888e7cb4042202','4042202','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4042202&idxID=096','3','2','This home has everything to offer and nothing to lose! Strik...');
	propertiesNewSlideShowName[13] = new Array('475,000','304 Porters Point Road','Colchester, VT 05446 ','http://photos-5.idxco.com/096ad847ef150ab9472f29d0c317f1a999c4101177','4101177','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4101177&idxID=096','3','1','This home is immaculate and well cared for. 3 bedrooms upsta...');
	propertiesNewSlideShowName[14] = new Array('471,800','Lot 9 Colden Rd','Colchester, VT 05446 ','http://photos-5.idxco.com/096288236d3a2426d69800c4145e2a436aa3107036','3107036','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=3107036&idxID=096','3','2','Once in a lifetime opportunity to build in Colchester\\\\\\\'s n...');
	propertiesNewSlideShowName[15] = new Array('469,900','263 Colchester Pond Road','Colchester, VT 05446 ','http://photos-5.idxco.com/096da3a639f673a8835fc1b53623789968c4082802','4082802','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4082802&idxID=096','4','3','Brand new construction, by reputable, meticulous, hands on b...');
	propertiesNewSlideShowName[16] = new Array('456,319','Lot 16 Marble Island Road','Colchester, VT 05446 ','http://photos-5.idxco.com/096679ebd0f526b3f26ddd9ea90d420b7f54095351','4095351','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4095351&idxID=096','3','2','Great opportunity to get into an amazing lakefront community...');
	propertiesNewSlideShowName[17] = new Array('452,900','Lot 6 Colden Rd','Colchester, VT 05446 ','http://photos-5.idxco.com/09678635a1da4ee24db48314d15a32215a03107039','3107039','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=3107039&idxID=096','3','2','Once in a lifetime opportunity to build in Colchester\\\\\\\'s n...');
	propertiesNewSlideShowName[18] = new Array('449,000','2260 Porters Point Road','Colchester, VT 05446 ','http://photos-5.idxco.com/0969255514896a764a817844e3d12d60adb4078812','4078812','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4078812&idxID=096','2','0','The ultimate spot on Mallett\\\\\\\'s Bay, set on a bluff overlo...');
	propertiesNewSlideShowName[19] = new Array('415,000','800 Middle Road','Colchester, VT 05446 ','http://photos-5.idxco.com/096af9a4bcbeec37d8f1e52cb0d8df5fd434072407','4072407','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4072407&idxID=096','3','2','10+ acre horse paradise with an 80x80 barn, 14 stalls and a ...');
	propertiesNewSlideShowName[20] = new Array('415,000','219 North Harbor Road','Colchester, VT 05446 ','http://photos-5.idxco.com/096f96081bf01015968181561e2c561bc614058447','4058447','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4058447&idxID=096','3','2','This charming, light-filled home is located on a .7 acre lot...');
	propertiesNewSlideShowName[21] = new Array('409,999','51 Pine Meadow Drive','Colchester, VT 05446 ','http://photos-5.idxco.com/09633ec906d3e38977dea9a39d6b54250114074907','4074907','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4074907&idxID=096','3','3','Long-term owners have tastefully remodeled this large house ...');
	propertiesNewSlideShowName[22] = new Array('405,900','Lot 6 Haskins Woods','Colchester, VT 05446 ','http://photos-5.idxco.com/096124e2e5229f09cec1bfce6fe26a821b64041289','4041289','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4041289&idxID=096','3','2','Colchester\\\\\\\'s newest neighborhood by \\\\\\&quot;Sheppard Cus...');
	propertiesNewSlideShowName[23] = new Array('399,900','1422 Clay Point Road','Colchester, VT 05446 ','http://photos-5.idxco.com/096a52e513377851fb8481a1eb61c979f144075060','4075060','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4075060&idxID=096','4','4','One of kind property! Built in 2004, this 4000+ sq ft contem...');
	propertiesNewSlideShowName[24] = new Array('399,900','Lot 4 Colden Rd','Colchester, VT 05446 ','http://photos-5.idxco.com/096be6465de71fef196279115185f371a054057584','4057584','096','http://idx.colchestervermonthomes.com/idx/5461/details.php?listingID=4057584&idxID=096','3','2','Once in a lifetime opportunity to build in Colchester\\\\\\\'s n...');
	var urlVarNewSlideShowName;
	var preLoadNewSlideShowName = new Image();
	preLoadNewSlideShowName.src = propertiesNewSlideShowName[cNewSlideShowNamewi][3];
	onLoad = playNewSlideShowName();

