	// 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 timeNewListings-StoweAreaout = 3000;
	var cNewListings-StoweAreawi = 0;
	
	// iNewListings-StoweAreasf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iNewListings-StoweAreasf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapNewListings-StoweAreafade setup function
	function swapNewListings-StoweAreafade()
	{
		//if the timer is not already going
		if(iNewListings-StoweAreasf.clock == null)
		{
			//copy the image object 
			iNewListings-StoweAreasf.obj = arguments[0];
			
			//copy the image src argument 
			iNewListings-StoweAreasf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iNewListings-StoweAreasf.obj.style.opacity != 'undefined')
			{
				iNewListings-StoweAreasf.type = 'w3c';
			}
			else if(typeof iNewListings-StoweAreasf.obj.style.MozOpacity != 'undefined')
			{
				iNewListings-StoweAreasf.type = 'moz';
			}
			else if(typeof iNewListings-StoweAreasf.obj.style.KhtmlOpacity != 'undefined')
			{
				iNewListings-StoweAreasf.type = 'khtml';
			}
			else if(typeof iNewListings-StoweAreasf.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
				iNewListings-StoweAreasf.type = (iNewListings-StoweAreasf.obj.filters.length > 0 && typeof iNewListings-StoweAreasf.obj.filters.alpha == 'object' && typeof iNewListings-StoweAreasf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iNewListings-StoweAreasf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iNewListings-StoweAreasf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iNewListings-StoweAreasf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapNewListings-StoweAreafade is two distinct transitions
				iNewListings-StoweAreasf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iNewListings-StoweAreasf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iNewListings-StoweAreasf.clock = setInterval('iNewListings-StoweAreasf.swapNewListings-StoweAreafade()', iNewListings-StoweAreasf.length/iNewListings-StoweAreasf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iNewListings-StoweAreasf.obj.src = iNewListings-StoweAreasf.src;
			}
			
		}
	};
	
	
	//swapNewListings-StoweAreafade timer function
	iNewListings-StoweAreasf.swapNewListings-StoweAreafade = function()
	{
		//increase or reduce the counter on an exponential scale
		iNewListings-StoweAreasf.count = (iNewListings-StoweAreasf.fade) ? iNewListings-StoweAreasf.count * 0.9 : (iNewListings-StoweAreasf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iNewListings-StoweAreasf.count < (1 / iNewListings-StoweAreasf.resolution))
		{
			//clear the timer
			clearInterval(iNewListings-StoweAreasf.clock);
			iNewListings-StoweAreasf.clock = null;
	
			//do the image swap
			iNewListings-StoweAreasf.obj.src = iNewListings-StoweAreasf.src;
	
			//reverse the fade direction flag
			iNewListings-StoweAreasf.fade = false;
			
			//restart the timer
			iNewListings-StoweAreasf.clock = setInterval('iNewListings-StoweAreasf.swapNewListings-StoweAreafade()', iNewListings-StoweAreasf.length/iNewListings-StoweAreasf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iNewListings-StoweAreasf.count > (1 - (1 / iNewListings-StoweAreasf.resolution)))
		{
			//clear the timer
			clearInterval(iNewListings-StoweAreasf.clock);
			iNewListings-StoweAreasf.clock = null;
	
			//reset the fade direction flag
			iNewListings-StoweAreasf.fade = true;
			
			//reset the counter
			iNewListings-StoweAreasf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iNewListings-StoweAreasf.type)
		{
			case 'ie' :
				iNewListings-StoweAreasf.obj.filters.alpha.opacity = iNewListings-StoweAreasf.count * 100;
				break;
				
			case 'khtml' :
				iNewListings-StoweAreasf.obj.style.KhtmlOpacity = iNewListings-StoweAreasf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iNewListings-StoweAreasf.obj.style.MozOpacity = (iNewListings-StoweAreasf.count == 1 ? 0.9999999 : iNewListings-StoweAreasf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iNewListings-StoweAreasf.obj.style.opacity = (iNewListings-StoweAreasf.count == 1 ? 0.9999999 : iNewListings-StoweAreasf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-NewListings-StoweArea-slideshow { text-align: center;  }');
	document.writeln('#IDX-NewListings-StoweArea-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextNewListings-StoweArea = 1;
	prevNewListings-StoweArea = 13 - 1;

	document.writeln('<div id="IDX-NewListings-StoweArea-slideshow">');
	document.writeln('<div id="IDX-NewListings-StoweArea-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-NewListings-StoweArea-ssImageURL" class="IDX-NewListings-StoweArea-ssLinkText"><img id="IDX-NewListings-StoweArea-ssImage" name="NewListings-StoweArea-ssImage" alt="Slideshow image" border="0"  class="IDX-NewListings-StoweArea-image" src="http://photos-8.idxco.com/1529369120d4e4f388cedfb7f7f944b9f7021001046" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-NewListings-StoweArea-priceLine"></div>');
	document.writeln('<div id="IDX-NewListings-StoweArea-addressLine"></div>');
	document.writeln('<div id="IDX-NewListings-StoweArea-cszLine"></div>');
	document.writeln('<div id="IDX-NewListings-StoweArea-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-NewListings-StoweArea-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-NewListings-StoweArea-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playNewListings-StoweArea()
	{
		
		
		urlVarNewListings-StoweArea = '<a href="'+propertiesNewListings-StoweArea[cNewListings-StoweAreawi][6]+'" class="IDX-NewListings-StoweArea-ssLinkText">';
		swapNewListings-StoweAreafade(document.getElementById('IDX-NewListings-StoweArea-ssImage'), preLoadNewListings-StoweArea.src, '1', ' ');
		document.getElementById('IDX-NewListings-StoweArea-ssImageURL').href = propertiesNewListings-StoweArea[cNewListings-StoweAreawi][6];
		document.getElementById('IDX-NewListings-StoweArea-priceLine').innerHTML = urlVarNewListings-StoweArea+'$'+propertiesNewListings-StoweArea[cNewListings-StoweAreawi][0]+'</a>';
		document.getElementById('IDX-NewListings-StoweArea-addressLine').innerHTML =  urlVarNewListings-StoweArea+propertiesNewListings-StoweArea[cNewListings-StoweAreawi][1]+'</a>';
		document.getElementById('IDX-NewListings-StoweArea-cszLine').innerHTML = urlVarNewListings-StoweArea+propertiesNewListings-StoweArea[cNewListings-StoweAreawi][2]+'</a>';
		document.getElementById('IDX-NewListings-StoweArea-bedLine').innerHTML = urlVarNewListings-StoweArea+'Beds: '+propertiesNewListings-StoweArea[cNewListings-StoweAreawi][7]+'</a>';
		document.getElementById('IDX-NewListings-StoweArea-bathLine').innerHTML = urlVarNewListings-StoweArea+'Baths: '+propertiesNewListings-StoweArea[cNewListings-StoweAreawi][8]+'</a>';
		document.getElementById('IDX-NewListings-StoweArea-remarkLine').innerHTML = urlVarNewListings-StoweArea+propertiesNewListings-StoweArea[cNewListings-StoweAreawi][9]+'</a>';
		
		preLoadNewListings-StoweArea = new Image();
		preLoadNewListings-StoweArea.src = propertiesNewListings-StoweArea[nextNewListings-StoweArea][3];
		
		updateNewListings-StoweArea();
		
		cNewListings-StoweArea = setTimeout('playNewListings-StoweArea()', timeNewListings-StoweAreaout);	
		
		
	} // end play()
	function updateNewListings-StoweArea()
	{		
		cNewListings-StoweAreawi = nextNewListings-StoweArea;		
		genNextNewListings-StoweArea();
		genPrevNewListings-StoweArea();
		
	}
	function genNextNewListings-StoweArea()
	{
		nextNewListings-StoweArea = cNewListings-StoweAreawi + 1;
		if (nextNewListings-StoweArea >= 13)
			nextNewListings-StoweArea = 0;
	} // end genNext
	function genPrevNewListings-StoweArea()
	{
		prevNewListings-StoweArea = cNewListings-StoweAreawi - 1;
		if (prevNewListings-StoweArea < 0)
			prevNewListings-StoweArea = 13 - 1;
	} // end genPrev

	var propertiesNewListings-StoweArea = new Array(13);
	propertiesNewListings-StoweArea[0] = new Array('1,295,000','0 Battle Row Road','Hyde Park, VT 05655 ','http://photos-8.idxco.com/1529369120d4e4f388cedfb7f7f944b9f7021001046','21001046','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=21001046&idxID=152','4','2','Goose Farm is a handsome and peaceful home  designed from th...');
	propertiesNewListings-StoweArea[1] = new Array('839,000','74 North Pinnacle Ridge Road','Waterbury, VT 05676 ','http://photos-8.idxco.com/152a82b8d4e148a5a3bb722ddb2f8ab61a821001144','21001144','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=21001144&idxID=152','4','3','Lovely family home in high-end subdivision.  Great views of ...');
	propertiesNewListings-StoweArea[2] = new Array('569,000','33 McAllister Road','Stowe, VT 05672 ','http://photos-8.idxco.com/1521bdaad7a7f41c48b54448ba4d6975c212909146','2909146','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=2909146&idxID=152','3','3','Idyllic, but not remote, 3 BR, 3 BA unique to Stowe one stor...');
	propertiesNewListings-StoweArea[3] = new Array('415,000','251 Luce Hill Road','Stowe, VT 05672 ','http://photos-8.idxco.com/152ebf7783b0c89d02c772dd1c063f3178421001228','21001228','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=21001228&idxID=152','3','2','Stowe\\\\\\\'s popular condominium project with attractive lands...');
	propertiesNewListings-StoweArea[4] = new Array('375,000','87 BIRCH HILL ROAD','Stowe, VT 05672 ','http://photos-8.idxco.com/152a2e3b775f5b4f3f63de5ad84f85ee3e421001173','21001173','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=21001173&idxID=152','3','3','WELL BUILT CONDO WITH LOW FEES IN A GREAT LOCATION OFF OF TH...');
	propertiesNewListings-StoweArea[5] = new Array('299,000','18 Memory','Wolcott, VT 05680 ','http://photos-8.idxco.com/152b05b21613b013f4c16cea8675e5bf0a421001159','21001159','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=21001159&idxID=152','3','2','40\\\\\\\'x 50\\\\\\\' New England Homecrafters ranch style home wit...');
	propertiesNewListings-StoweArea[6] = new Array('289,000','734 Stagecoach','Morristown, VT 05661 ','http://photos-8.idxco.com/152fe0def85aa1e5a6c42eb16b9d3c3409921001084','21001084','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=21001084&idxID=152','3','1','Beautiful home perched on a hill with great mountain views a...');
	propertiesNewListings-StoweArea[7] = new Array('269,000','66 Mary Deuso','Eden, VT 05652 ','http://photos-8.idxco.com/152a3a9163b017f568c2f31af5e6437db5421001176','21001176','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=21001176&idxID=152','3','2','Structurally speaking, this home is over-built. Truss floor ...');
	propertiesNewListings-StoweArea[8] = new Array('199,000','191 Church St.','Hyde Park, VT 05655 ','http://photos-8.idxco.com/152f4d25366d7fb6e3f86c29a6fb509fbd721001128','21001128','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=21001128&idxID=152','3','2','You WILL fall in love! This charming vintage cape offers war...');
	propertiesNewListings-StoweArea[9] = new Array('196,000','123 Mountain Road','Stowe, VT 05672 ','http://photos-8.idxco.com/15204f4d7b41f408406338f69abd75bf9d121001198','21001198','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=21001198&idxID=152','1','1','Great Village location allowing you to walk to several fanta...');
	propertiesNewListings-StoweArea[10] = new Array('149,000','119 Eden St.','Hyde Park, VT 05655 ','http://photos-8.idxco.com/152f070b43154278aa93f22a3f52043d9f621001140','21001140','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=21001140&idxID=152','3','2','Great Potential! This vintage home is ready for some TLC. Br...');
	propertiesNewListings-StoweArea[11] = new Array('149,000','171 Cottage Club','Stowe, VT 05672 ','http://photos-8.idxco.com/152e1150b5ad4b403cdc120cd6c0deb9aff21001041','21001041','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=21001041&idxID=152','1','2','Excellent rental history. Owner created huge living room wit...');
	propertiesNewListings-StoweArea[12] = new Array('125,000','120 Dukes','Johnson, VT 05656 ','http://photos-8.idxco.com/1520e176f9335daff4f371ddfddfb083d0321001070','21001070','152','http://www.stoweusa.idxco.com/idx/4298/details.php?listingID=21001070&idxID=152','3','2','1999 28\\\\\\\'x 60\\\\\\\' Marlette double wide home on country lot...');
	var urlVarNewListings-StoweArea;
	var preLoadNewListings-StoweArea = new Image();
	preLoadNewListings-StoweArea.src = propertiesNewListings-StoweArea[cNewListings-StoweAreawi][3];
	onLoad = playNewListings-StoweArea();
