	// 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 time0d54741729out = 9000;
	var c0d54741729wi = 0;
	
	// i0d54741729sf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var i0d54741729sf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swap0d54741729fade setup function
	function swap0d54741729fade()
	{
		//if the timer is not already going
		if(i0d54741729sf.clock == null)
		{
			//copy the image object 
			i0d54741729sf.obj = arguments[0];
			
			//copy the image src argument 
			i0d54741729sf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof i0d54741729sf.obj.style.opacity != 'undefined')
			{
				i0d54741729sf.type = 'w3c';
			}
			else if(typeof i0d54741729sf.obj.style.MozOpacity != 'undefined')
			{
				i0d54741729sf.type = 'moz';
			}
			else if(typeof i0d54741729sf.obj.style.KhtmlOpacity != 'undefined')
			{
				i0d54741729sf.type = 'khtml';
			}
			else if(typeof i0d54741729sf.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
				i0d54741729sf.type = (i0d54741729sf.obj.filters.length > 0 && typeof i0d54741729sf.obj.filters.alpha == 'object' && typeof i0d54741729sf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				i0d54741729sf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				i0d54741729sf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(i0d54741729sf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swap0d54741729fade is two distinct transitions
				i0d54741729sf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				i0d54741729sf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				i0d54741729sf.clock = setInterval('i0d54741729sf.swap0d54741729fade()', i0d54741729sf.length/i0d54741729sf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				i0d54741729sf.obj.src = i0d54741729sf.src;
			}
			
		}
	};
	
	
	//swap0d54741729fade timer function
	i0d54741729sf.swap0d54741729fade = function()
	{
		//increase or reduce the counter on an exponential scale
		i0d54741729sf.count = (i0d54741729sf.fade) ? i0d54741729sf.count * 0.9 : (i0d54741729sf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(i0d54741729sf.count < (1 / i0d54741729sf.resolution))
		{
			//clear the timer
			clearInterval(i0d54741729sf.clock);
			i0d54741729sf.clock = null;
	
			//do the image swap
			i0d54741729sf.obj.src = i0d54741729sf.src;
	
			//reverse the fade direction flag
			i0d54741729sf.fade = false;
			
			//restart the timer
			i0d54741729sf.clock = setInterval('i0d54741729sf.swap0d54741729fade()', i0d54741729sf.length/i0d54741729sf.resolution);
	
		}
		
		//if the counter has reached the top
		if(i0d54741729sf.count > (1 - (1 / i0d54741729sf.resolution)))
		{
			//clear the timer
			clearInterval(i0d54741729sf.clock);
			i0d54741729sf.clock = null;
	
			//reset the fade direction flag
			i0d54741729sf.fade = true;
			
			//reset the counter
			i0d54741729sf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(i0d54741729sf.type)
		{
			case 'ie' :
				i0d54741729sf.obj.filters.alpha.opacity = i0d54741729sf.count * 100;
				break;
				
			case 'khtml' :
				i0d54741729sf.obj.style.KhtmlOpacity = i0d54741729sf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				i0d54741729sf.obj.style.MozOpacity = (i0d54741729sf.count == 1 ? 0.9999999 : i0d54741729sf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				i0d54741729sf.obj.style.opacity = (i0d54741729sf.count == 1 ? 0.9999999 : i0d54741729sf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-0d54741729-slideshow { text-align: center; width: 170px;  }');
	document.writeln('.IDX-0d54741729-image { width: 125px; height: 117px;  }');
	document.writeln('#IDX-0d54741729-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next0d54741729 = 1;
	prev0d54741729 = 21 - 1;

	document.writeln('<div id="IDX-0d54741729-slideshow">');
	document.writeln('<div id="IDX-0d54741729-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-0d54741729-ssImageURL" class="IDX-0d54741729-ssLinkText"><img id="IDX-0d54741729-ssImage" name="0d54741729-ssImage" alt="Slideshow image" border="0"  class="IDX-0d54741729-image" src="http://media.mlspin.com/photo.aspx?mls=71094116&w=512&h=400&n=0" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-0d54741729-priceLine"></div>');
	document.writeln('<div id="IDX-0d54741729-addressLine"></div>');
	document.writeln('<div id="IDX-0d54741729-cszLine"></div>');
	document.writeln('<div id="IDX-0d54741729-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-0d54741729-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-0d54741729-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function play0d54741729()
	{
		
		
		urlVar0d54741729 = '<a href="'+properties0d54741729[c0d54741729wi][6]+'" class="IDX-0d54741729-ssLinkText">';
		swap0d54741729fade(document.getElementById('IDX-0d54741729-ssImage'), preLoad0d54741729.src, '1', ' ');
		document.getElementById('IDX-0d54741729-ssImageURL').href = properties0d54741729[c0d54741729wi][6];
		document.getElementById('IDX-0d54741729-priceLine').innerHTML = urlVar0d54741729+'$'+properties0d54741729[c0d54741729wi][0]+'</a>';
		document.getElementById('IDX-0d54741729-addressLine').innerHTML =  urlVar0d54741729+properties0d54741729[c0d54741729wi][1]+'</a>';
		document.getElementById('IDX-0d54741729-cszLine').innerHTML = urlVar0d54741729+properties0d54741729[c0d54741729wi][2]+'</a>';
		document.getElementById('IDX-0d54741729-bedLine').innerHTML = urlVar0d54741729+'Beds: '+properties0d54741729[c0d54741729wi][7]+'</a>';
		document.getElementById('IDX-0d54741729-bathLine').innerHTML = urlVar0d54741729+'Baths: '+properties0d54741729[c0d54741729wi][8]+'</a>';
		document.getElementById('IDX-0d54741729-remarkLine').innerHTML = urlVar0d54741729+properties0d54741729[c0d54741729wi][9]+'</a>';
		
		preLoad0d54741729 = new Image();
		preLoad0d54741729.src = properties0d54741729[next0d54741729][3];
		
		update0d54741729();
		
		c0d54741729 = setTimeout('play0d54741729()', time0d54741729out);	
		
		
	} // end play()
	function update0d54741729()
	{		
		c0d54741729wi = next0d54741729;		
		genNext0d54741729();
		genPrev0d54741729();
		
	}
	function genNext0d54741729()
	{
		next0d54741729 = c0d54741729wi + 1;
		if (next0d54741729 >= 21)
			next0d54741729 = 0;
	} // end genNext
	function genPrev0d54741729()
	{
		prev0d54741729 = c0d54741729wi - 1;
		if (prev0d54741729 < 0)
			prev0d54741729 = 21 - 1;
	} // end genPrev

	var properties0d54741729 = new Array(21);
	properties0d54741729[0] = new Array('395,000','5 Lowell','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71094116&w=512&h=400&n=0','71094116','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71094116&idxID=107','3','2.1','...');
	properties0d54741729[1] = new Array('399,000','560 Heald Rd','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71099962&w=512&h=400&n=0','71099962','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71099962&idxID=107','3','2','...');
	properties0d54741729[2] = new Array('469,900','28 Concord Street','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71085325&w=512&h=400&n=0','71085325','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71085325&idxID=107','3','1.1','...');
	properties0d54741729[3] = new Array('479,000','19 Bellows Hill Rd','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71103753&w=512&h=400&n=0','71103753','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71103753&idxID=107','3','2','...');
	properties0d54741729[4] = new Array('489,900','324 Acton Street','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71059791&w=512&h=400&n=0','71059791','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71059791&idxID=107','3','1.1','...');
	properties0d54741729[5] = new Array('499,900','21 - 23 Bedford Rd','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71127575&w=512&h=400&n=0','71127575','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71127575&idxID=107','6','2','...');
	properties0d54741729[6] = new Array('529,900','142 Bedford Rd.','Carlisle, MA 01827 ','http://media.mlspin.com/photo.aspx?mls=71092697&w=512&h=400&n=0','71092697','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71092697&idxID=107','2','2.1','...');
	properties0d54741729[7] = new Array('529,900','923 North Road','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71064338&w=512&h=400&n=0','71064338','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71064338&idxID=107','4','2','...');
	properties0d54741729[8] = new Array('545,000','130 Prospect St','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71060077&w=512&h=400&n=0','71060077','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71060077&idxID=107','3','2','...');
	properties0d54741729[9] = new Array('550,000','11 Fern Lane','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71090556&w=512&h=400&n=0','71090556','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71090556&idxID=107','3','2','...');
	properties0d54741729[10] = new Array('569,000','532 South St','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71123102&w=512&h=400&n=0','71123102','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71123102&idxID=107','3','3','...');
	properties0d54741729[11] = new Array('579,900','478 Heald Road','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71118611&w=512&h=400&n=0','71118611','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71118611&idxID=107','3','2','...');
	properties0d54741729[12] = new Array('579,900','142 Bedford Rd.','Carlisle, MA 01827 ','http://media.mlspin.com/photo.aspx?mls=71100748&w=512&h=400&n=0','71100748','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71100748&idxID=107','2','2','...');
	properties0d54741729[13] = new Array('589,900','128 Robbins Drive','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71125580&w=512&h=400&n=0','71125580','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71125580&idxID=107','3','2.1','...');
	properties0d54741729[14] = new Array('599,900','847 North Road','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71125470&w=512&h=400&n=0','71125470','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71125470&idxID=107','4','2.1','...');
	properties0d54741729[15] = new Array('620,000','143 Page Brook Rd','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71115429&w=512&h=400&n=0','71115429','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71115429&idxID=107','3','3','...');
	properties0d54741729[16] = new Array('639,999','511 Brook street','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71037009&w=512&h=400&n=0','71037009','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71037009&idxID=107','4','2.1','...');
	properties0d54741729[17] = new Array('659,000','142 River Road','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71066832&w=512&h=400&n=0','71066832','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71066832&idxID=107','4','2.1','...');
	properties0d54741729[18] = new Array('675,000','357 Maple St','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71028118&w=512&h=400&n=0','71028118','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71028118&idxID=107','4','3','...');
	properties0d54741729[19] = new Array('675,000','401 Rutland St','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71007107&w=512&h=400&n=0','71007107','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71007107&idxID=107','4','2.1','...');
	properties0d54741729[20] = new Array('687,000','998 Bedford Rd','Carlisle, MA 01741 ','http://media.mlspin.com/photo.aspx?mls=71035293&w=512&h=400&n=0','71035293','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71035293&idxID=107','4','1.1','...');
	var urlVar0d54741729;
	var preLoad0d54741729 = new Image();
	preLoad0d54741729.src = properties0d54741729[c0d54741729wi][3];
	onLoad = play0d54741729();
