	// 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 time9ec892baf4out = 7000;
	var c9ec892baf4wi = 0;
	
	// i9ec892baf4sf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var i9ec892baf4sf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swap9ec892baf4fade setup function
	function swap9ec892baf4fade()
	{
		//if the timer is not already going
		if(i9ec892baf4sf.clock == null)
		{
			//copy the image object 
			i9ec892baf4sf.obj = arguments[0];
			
			//copy the image src argument 
			i9ec892baf4sf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof i9ec892baf4sf.obj.style.opacity != 'undefined')
			{
				i9ec892baf4sf.type = 'w3c';
			}
			else if(typeof i9ec892baf4sf.obj.style.MozOpacity != 'undefined')
			{
				i9ec892baf4sf.type = 'moz';
			}
			else if(typeof i9ec892baf4sf.obj.style.KhtmlOpacity != 'undefined')
			{
				i9ec892baf4sf.type = 'khtml';
			}
			else if(typeof i9ec892baf4sf.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
				i9ec892baf4sf.type = (i9ec892baf4sf.obj.filters.length > 0 && typeof i9ec892baf4sf.obj.filters.alpha == 'object' && typeof i9ec892baf4sf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				i9ec892baf4sf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				i9ec892baf4sf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(i9ec892baf4sf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swap9ec892baf4fade is two distinct transitions
				i9ec892baf4sf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				i9ec892baf4sf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				i9ec892baf4sf.clock = setInterval('i9ec892baf4sf.swap9ec892baf4fade()', i9ec892baf4sf.length/i9ec892baf4sf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				i9ec892baf4sf.obj.src = i9ec892baf4sf.src;
			}
			
		}
	};
	
	
	//swap9ec892baf4fade timer function
	i9ec892baf4sf.swap9ec892baf4fade = function()
	{
		//increase or reduce the counter on an exponential scale
		i9ec892baf4sf.count = (i9ec892baf4sf.fade) ? i9ec892baf4sf.count * 0.9 : (i9ec892baf4sf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(i9ec892baf4sf.count < (1 / i9ec892baf4sf.resolution))
		{
			//clear the timer
			clearInterval(i9ec892baf4sf.clock);
			i9ec892baf4sf.clock = null;
	
			//do the image swap
			i9ec892baf4sf.obj.src = i9ec892baf4sf.src;
	
			//reverse the fade direction flag
			i9ec892baf4sf.fade = false;
			
			//restart the timer
			i9ec892baf4sf.clock = setInterval('i9ec892baf4sf.swap9ec892baf4fade()', i9ec892baf4sf.length/i9ec892baf4sf.resolution);
	
		}
		
		//if the counter has reached the top
		if(i9ec892baf4sf.count > (1 - (1 / i9ec892baf4sf.resolution)))
		{
			//clear the timer
			clearInterval(i9ec892baf4sf.clock);
			i9ec892baf4sf.clock = null;
	
			//reset the fade direction flag
			i9ec892baf4sf.fade = true;
			
			//reset the counter
			i9ec892baf4sf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(i9ec892baf4sf.type)
		{
			case 'ie' :
				i9ec892baf4sf.obj.filters.alpha.opacity = i9ec892baf4sf.count * 100;
				break;
				
			case 'khtml' :
				i9ec892baf4sf.obj.style.KhtmlOpacity = i9ec892baf4sf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				i9ec892baf4sf.obj.style.MozOpacity = (i9ec892baf4sf.count == 1 ? 0.9999999 : i9ec892baf4sf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				i9ec892baf4sf.obj.style.opacity = (i9ec892baf4sf.count == 1 ? 0.9999999 : i9ec892baf4sf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-9ec892baf4-slideshow { text-align: center; width: 170px;  }');
	document.writeln('.IDX-9ec892baf4-image { width: 135px; height: 117px;  }');
	document.writeln('#IDX-9ec892baf4-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next9ec892baf4 = 1;
	prev9ec892baf4 = 24 - 1;

	document.writeln('<div id="IDX-9ec892baf4-slideshow">');
	document.writeln('<div id="IDX-9ec892baf4-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-9ec892baf4-ssImageURL" class="IDX-9ec892baf4-ssLinkText"><img id="IDX-9ec892baf4-ssImage" name="9ec892baf4-ssImage" alt="Slideshow image" border="0"  class="IDX-9ec892baf4-image" src="http://media.mlspin.com/photo.aspx?mls=71071679&w=512&h=400&n=0" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-9ec892baf4-priceLine"></div>');
	document.writeln('<div id="IDX-9ec892baf4-addressLine"></div>');
	document.writeln('<div id="IDX-9ec892baf4-cszLine"></div>');
	document.writeln('<div id="IDX-9ec892baf4-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-9ec892baf4-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-9ec892baf4-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function play9ec892baf4()
	{
		
		
		urlVar9ec892baf4 = '<a href="'+properties9ec892baf4[c9ec892baf4wi][6]+'" class="IDX-9ec892baf4-ssLinkText">';
		swap9ec892baf4fade(document.getElementById('IDX-9ec892baf4-ssImage'), preLoad9ec892baf4.src, '1', ' ');
		document.getElementById('IDX-9ec892baf4-ssImageURL').href = properties9ec892baf4[c9ec892baf4wi][6];
		document.getElementById('IDX-9ec892baf4-priceLine').innerHTML = urlVar9ec892baf4+'$'+properties9ec892baf4[c9ec892baf4wi][0]+'</a>';
		document.getElementById('IDX-9ec892baf4-addressLine').innerHTML =  urlVar9ec892baf4+properties9ec892baf4[c9ec892baf4wi][1]+'</a>';
		document.getElementById('IDX-9ec892baf4-cszLine').innerHTML = urlVar9ec892baf4+properties9ec892baf4[c9ec892baf4wi][2]+'</a>';
		document.getElementById('IDX-9ec892baf4-bedLine').innerHTML = urlVar9ec892baf4+'Beds: '+properties9ec892baf4[c9ec892baf4wi][7]+'</a>';
		document.getElementById('IDX-9ec892baf4-bathLine').innerHTML = urlVar9ec892baf4+'Baths: '+properties9ec892baf4[c9ec892baf4wi][8]+'</a>';
		document.getElementById('IDX-9ec892baf4-remarkLine').innerHTML = urlVar9ec892baf4+properties9ec892baf4[c9ec892baf4wi][9]+'</a>';
		
		preLoad9ec892baf4 = new Image();
		preLoad9ec892baf4.src = properties9ec892baf4[next9ec892baf4][3];
		
		update9ec892baf4();
		
		c9ec892baf4 = setTimeout('play9ec892baf4()', time9ec892baf4out);	
		
		
	} // end play()
	function update9ec892baf4()
	{		
		c9ec892baf4wi = next9ec892baf4;		
		genNext9ec892baf4();
		genPrev9ec892baf4();
		
	}
	function genNext9ec892baf4()
	{
		next9ec892baf4 = c9ec892baf4wi + 1;
		if (next9ec892baf4 >= 24)
			next9ec892baf4 = 0;
	} // end genNext
	function genPrev9ec892baf4()
	{
		prev9ec892baf4 = c9ec892baf4wi - 1;
		if (prev9ec892baf4 < 0)
			prev9ec892baf4 = 24 - 1;
	} // end genPrev

	var properties9ec892baf4 = new Array(24);
	properties9ec892baf4[0] = new Array('3,299,000','183 Hutchins Rd','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71071679&w=512&h=400&n=0','71071679','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71071679&idxID=107','5','4.4','...');
	properties9ec892baf4[1] = new Array('2,195,000','730 Concord Street','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71096113&w=512&h=400&n=0','71096113','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71096113&idxID=107','5','3.2','...');
	properties9ec892baf4[2] = new Array('1,800,000','810 Concord St','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71041071&w=512&h=400&n=0','71041071','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71041071&idxID=107','4','3.1','...');
	properties9ec892baf4[3] = new Array('1,695,000','41 Skelton Rd','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71080038&w=512&h=400&n=0','71080038','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71080038&idxID=107','3','3.1','...');
	properties9ec892baf4[4] = new Array('1,695,000','Lot 15 Captain Wilson Lane','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71073509&w=512&h=400&n=0','71073509','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71073509&idxID=107','4','4.1','...');
	properties9ec892baf4[5] = new Array('1,549,000','40 Great Brook Path','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71084292&w=512&h=400&n=0','71084292','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71084292&idxID=107','5','3.1','...');
	properties9ec892baf4[6] = new Array('1,469,000','62 Concord St','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71073628&w=512&h=400&n=0','71073628','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71073628&idxID=107','4','4','...');
	properties9ec892baf4[7] = new Array('1,450,000','393 South Street','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=70895124&w=512&h=400&n=0','70895124','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=70895124&idxID=107','3','1.1','...');
	properties9ec892baf4[8] = new Array('1,440,000','24 Davis Rd','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71082903&w=512&h=400&n=0','71082903','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71082903&idxID=107','5','5.1','...');
	properties9ec892baf4[9] = new Array('1,399,000','334 Bedford Road','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71036228&w=512&h=400&n=0','71036228','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71036228&idxID=107','4','3.1','...');
	properties9ec892baf4[10] = new Array('1,299,000','63 OLD EAST STREET','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71063718&w=512&h=400&n=0','71063718','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71063718&idxID=107','4','3.2','...');
	properties9ec892baf4[11] = new Array('1,245,000','78 Daniels Lane','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71106148&w=512&h=400&n=0','71106148','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71106148&idxID=107','5','4','...');
	properties9ec892baf4[12] = new Array('1,100,000','Lot 80 Tophet','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71082180&w=512&h=400&n=0','71082180','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71082180&idxID=107','4','2.1','...');
	properties9ec892baf4[13] = new Array('1,099,000','110 Kimball Rd','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71080727&w=512&h=400&n=0','71080727','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71080727&idxID=107','4','3.2','...');
	properties9ec892baf4[14] = new Array('1,095,000','126 Buttrick Ln','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71031056&w=512&h=400&n=0','71031056','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71031056&idxID=107','5','3','...');
	properties9ec892baf4[15] = new Array('1,075,000','8 Skelton Rd','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71088195&w=512&h=400&n=0','71088195','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71088195&idxID=107','5','4','...');
	properties9ec892baf4[16] = new Array('1,050,000','303 Bedford Road','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71119190&w=512&h=400&n=0','71119190','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71119190&idxID=107','4','2.1','...');
	properties9ec892baf4[17] = new Array('949,000','100 Nathan Lane','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71074516&w=512&h=400&n=0','71074516','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71074516&idxID=107','4','3.1','...');
	properties9ec892baf4[18] = new Array('895,000','43-47 Bedford Road','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71090461&w=512&h=400&n=0','71090461','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71090461&idxID=107','6','4','...');
	properties9ec892baf4[19] = new Array('895,000','527 Bedford Road','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=70932040&w=512&h=400&n=0','70932040','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=70932040&idxID=107','4','4.1','...');
	properties9ec892baf4[20] = new Array('889,000','51 Cranberry Hill Ln','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71060384&w=512&h=400&n=0','71060384','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71060384&idxID=107','4','3.1','...');
	properties9ec892baf4[21] = new Array('879,000','155 Elizabeth Ridge Rd','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71069769&w=512&h=400&n=0','71069769','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71069769&idxID=107','4','2.1','...');
	properties9ec892baf4[22] = new Array('795,000','1177 Curve St','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71087134&w=512&h=400&n=0','71087134','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71087134&idxID=107','4','2.1','...');
	properties9ec892baf4[23] = new Array('779,900','564 East','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71047470&w=512&h=400&n=0','71047470','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71047470&idxID=107','3','2','...');
	var urlVar9ec892baf4;
	var preLoad9ec892baf4 = new Image();
	preLoad9ec892baf4.src = properties9ec892baf4[c9ec892baf4wi][3];
	onLoad = play9ec892baf4();
