	// 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 time2a6aae7f1bout = 9000;
	var c2a6aae7f1bwi = 0;
	
	// i2a6aae7f1bsf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var i2a6aae7f1bsf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swap2a6aae7f1bfade setup function
	function swap2a6aae7f1bfade()
	{
		//if the timer is not already going
		if(i2a6aae7f1bsf.clock == null)
		{
			//copy the image object 
			i2a6aae7f1bsf.obj = arguments[0];
			
			//copy the image src argument 
			i2a6aae7f1bsf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof i2a6aae7f1bsf.obj.style.opacity != 'undefined')
			{
				i2a6aae7f1bsf.type = 'w3c';
			}
			else if(typeof i2a6aae7f1bsf.obj.style.MozOpacity != 'undefined')
			{
				i2a6aae7f1bsf.type = 'moz';
			}
			else if(typeof i2a6aae7f1bsf.obj.style.KhtmlOpacity != 'undefined')
			{
				i2a6aae7f1bsf.type = 'khtml';
			}
			else if(typeof i2a6aae7f1bsf.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
				i2a6aae7f1bsf.type = (i2a6aae7f1bsf.obj.filters.length > 0 && typeof i2a6aae7f1bsf.obj.filters.alpha == 'object' && typeof i2a6aae7f1bsf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				i2a6aae7f1bsf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				i2a6aae7f1bsf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(i2a6aae7f1bsf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swap2a6aae7f1bfade is two distinct transitions
				i2a6aae7f1bsf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				i2a6aae7f1bsf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				i2a6aae7f1bsf.clock = setInterval('i2a6aae7f1bsf.swap2a6aae7f1bfade()', i2a6aae7f1bsf.length/i2a6aae7f1bsf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				i2a6aae7f1bsf.obj.src = i2a6aae7f1bsf.src;
			}
			
		}
	};
	
	
	//swap2a6aae7f1bfade timer function
	i2a6aae7f1bsf.swap2a6aae7f1bfade = function()
	{
		//increase or reduce the counter on an exponential scale
		i2a6aae7f1bsf.count = (i2a6aae7f1bsf.fade) ? i2a6aae7f1bsf.count * 0.9 : (i2a6aae7f1bsf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(i2a6aae7f1bsf.count < (1 / i2a6aae7f1bsf.resolution))
		{
			//clear the timer
			clearInterval(i2a6aae7f1bsf.clock);
			i2a6aae7f1bsf.clock = null;
	
			//do the image swap
			i2a6aae7f1bsf.obj.src = i2a6aae7f1bsf.src;
	
			//reverse the fade direction flag
			i2a6aae7f1bsf.fade = false;
			
			//restart the timer
			i2a6aae7f1bsf.clock = setInterval('i2a6aae7f1bsf.swap2a6aae7f1bfade()', i2a6aae7f1bsf.length/i2a6aae7f1bsf.resolution);
	
		}
		
		//if the counter has reached the top
		if(i2a6aae7f1bsf.count > (1 - (1 / i2a6aae7f1bsf.resolution)))
		{
			//clear the timer
			clearInterval(i2a6aae7f1bsf.clock);
			i2a6aae7f1bsf.clock = null;
	
			//reset the fade direction flag
			i2a6aae7f1bsf.fade = true;
			
			//reset the counter
			i2a6aae7f1bsf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(i2a6aae7f1bsf.type)
		{
			case 'ie' :
				i2a6aae7f1bsf.obj.filters.alpha.opacity = i2a6aae7f1bsf.count * 100;
				break;
				
			case 'khtml' :
				i2a6aae7f1bsf.obj.style.KhtmlOpacity = i2a6aae7f1bsf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				i2a6aae7f1bsf.obj.style.MozOpacity = (i2a6aae7f1bsf.count == 1 ? 0.9999999 : i2a6aae7f1bsf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				i2a6aae7f1bsf.obj.style.opacity = (i2a6aae7f1bsf.count == 1 ? 0.9999999 : i2a6aae7f1bsf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-2a6aae7f1b-slideshow { text-align: center; width: 170px;  }');
	document.writeln('.IDX-2a6aae7f1b-image { width: 125px; height: 117px;  }');
	document.writeln('#IDX-2a6aae7f1b-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var next2a6aae7f1b = 1;
	prev2a6aae7f1b = 25 - 1;

	document.writeln('<div id="IDX-2a6aae7f1b-slideshow">');
	document.writeln('<div id="IDX-2a6aae7f1b-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-2a6aae7f1b-ssImageURL" class="IDX-2a6aae7f1b-ssLinkText"><img id="IDX-2a6aae7f1b-ssImage" name="2a6aae7f1b-ssImage" alt="Slideshow image" border="0"  class="IDX-2a6aae7f1b-image" src="http://media.mlspin.com/photo.aspx?mls=71087816&w=512&h=400&n=0" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-2a6aae7f1b-priceLine"></div>');
	document.writeln('<div id="IDX-2a6aae7f1b-addressLine"></div>');
	document.writeln('<div id="IDX-2a6aae7f1b-cszLine"></div>');
	document.writeln('<div id="IDX-2a6aae7f1b-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-2a6aae7f1b-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-2a6aae7f1b-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function play2a6aae7f1b()
	{
		
		
		urlVar2a6aae7f1b = '<a href="'+properties2a6aae7f1b[c2a6aae7f1bwi][6]+'" class="IDX-2a6aae7f1b-ssLinkText">';
		swap2a6aae7f1bfade(document.getElementById('IDX-2a6aae7f1b-ssImage'), preLoad2a6aae7f1b.src, '1', ' ');
		document.getElementById('IDX-2a6aae7f1b-ssImageURL').href = properties2a6aae7f1b[c2a6aae7f1bwi][6];
		document.getElementById('IDX-2a6aae7f1b-priceLine').innerHTML = urlVar2a6aae7f1b+'$'+properties2a6aae7f1b[c2a6aae7f1bwi][0]+'</a>';
		document.getElementById('IDX-2a6aae7f1b-addressLine').innerHTML =  urlVar2a6aae7f1b+properties2a6aae7f1b[c2a6aae7f1bwi][1]+'</a>';
		document.getElementById('IDX-2a6aae7f1b-cszLine').innerHTML = urlVar2a6aae7f1b+properties2a6aae7f1b[c2a6aae7f1bwi][2]+'</a>';
		document.getElementById('IDX-2a6aae7f1b-bedLine').innerHTML = urlVar2a6aae7f1b+'Beds: '+properties2a6aae7f1b[c2a6aae7f1bwi][7]+'</a>';
		document.getElementById('IDX-2a6aae7f1b-bathLine').innerHTML = urlVar2a6aae7f1b+'Baths: '+properties2a6aae7f1b[c2a6aae7f1bwi][8]+'</a>';
		document.getElementById('IDX-2a6aae7f1b-remarkLine').innerHTML = urlVar2a6aae7f1b+properties2a6aae7f1b[c2a6aae7f1bwi][9]+'</a>';
		
		preLoad2a6aae7f1b = new Image();
		preLoad2a6aae7f1b.src = properties2a6aae7f1b[next2a6aae7f1b][3];
		
		update2a6aae7f1b();
		
		c2a6aae7f1b = setTimeout('play2a6aae7f1b()', time2a6aae7f1bout);	
		
		
	} // end play()
	function update2a6aae7f1b()
	{		
		c2a6aae7f1bwi = next2a6aae7f1b;		
		genNext2a6aae7f1b();
		genPrev2a6aae7f1b();
		
	}
	function genNext2a6aae7f1b()
	{
		next2a6aae7f1b = c2a6aae7f1bwi + 1;
		if (next2a6aae7f1b >= 25)
			next2a6aae7f1b = 0;
	} // end genNext
	function genPrev2a6aae7f1b()
	{
		prev2a6aae7f1b = c2a6aae7f1bwi - 1;
		if (prev2a6aae7f1b < 0)
			prev2a6aae7f1b = 25 - 1;
	} // end genPrev

	var properties2a6aae7f1b = new Array(25);
	properties2a6aae7f1b[0] = new Array('264,900','297 Cross St','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71087816&w=512&h=400&n=0','71087816','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71087816&idxID=107','2','2','...');
	properties2a6aae7f1b[1] = new Array('269,000','21 Shepard Ct','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71108533&w=512&h=400&n=0','71108533','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71108533&idxID=107','3','1','...');
	properties2a6aae7f1b[2] = new Array('299,900','26 Charles Rd','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71124355&w=512&h=400&n=0','71124355','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71124355&idxID=107','2','1','...');
	properties2a6aae7f1b[3] = new Array('299,900','40 White St','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71131224&w=512&h=400&n=0','71131224','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71131224&idxID=107','2','1.1','...');
	properties2a6aae7f1b[4] = new Array('314,900','295 Cross Street','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71089364&w=512&h=400&n=0','71089364','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71089364&idxID=107','3','1.1','...');
	properties2a6aae7f1b[5] = new Array('315,000','36 grove place','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71098320&w=512&h=400&n=0','71098320','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71098320&idxID=107','3','1','...');
	properties2a6aae7f1b[6] = new Array('329,900','26 Westley St','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71096415&w=512&h=400&n=0','71096415','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71096415&idxID=107','3','1.1','...');
	properties2a6aae7f1b[7] = new Array('335,000','50 Lake Street','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71093861&w=512&h=400&n=0','71093861','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71093861&idxID=107','2','1','...');
	properties2a6aae7f1b[8] = new Array('347,900','807 Main Street','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71059639&w=512&h=400&n=0','71059639','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71059639&idxID=107','3','2','...');
	properties2a6aae7f1b[9] = new Array('359,900','307 Cross Street','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71051927&w=512&h=400&n=0','71051927','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71051927&idxID=107','3','2','...');
	properties2a6aae7f1b[10] = new Array('389,900','400 CROSS STREETt','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71109733&w=512&h=400&n=0','71109733','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71109733&idxID=107','2','2.1','...');
	properties2a6aae7f1b[11] = new Array('399,000','374 Cross Street','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71080779&w=512&h=400&n=0','71080779','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71080779&idxID=107','3','2.1','...');
	properties2a6aae7f1b[12] = new Array('399,900','171 Swanton St','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71118548&w=512&h=400&n=0','71118548','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71118548&idxID=107','2','2.1','...');
	properties2a6aae7f1b[13] = new Array('419,000','171 Swanton St','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71118008&w=512&h=400&n=0','71118008','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71118008&idxID=107','2','2.1','...');
	properties2a6aae7f1b[14] = new Array('429,000','17 Canal St','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71121003&w=512&h=400&n=0','71121003','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71121003&idxID=107','3','1.1','...');
	properties2a6aae7f1b[15] = new Array('437,500','171 Swanton St','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=70928389&w=512&h=400&n=0','70928389','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=70928389&idxID=107','3','2.1','...');
	properties2a6aae7f1b[16] = new Array('449,000','7 Bridge St','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71120739&w=512&h=400&n=0','71120739','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71120739&idxID=107','3','1.1','...');
	properties2a6aae7f1b[17] = new Array('449,900','342 CAMBRIDGE ROAD','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71064418&w=512&h=400&n=0','71064418','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71064418&idxID=107','3','2','...');
	properties2a6aae7f1b[18] = new Array('450,000','22 Grove Pl','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71096881&w=512&h=400&n=0','71096881','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71096881&idxID=107','2','1.1','...');
	properties2a6aae7f1b[19] = new Array('450,000','666 Main St','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71058667&w=512&h=400&n=0','71058667','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71058667&idxID=107','2','2','...');
	properties2a6aae7f1b[20] = new Array('474,900','426 Highland Ave','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71117146&w=512&h=400&n=0','71117146','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71117146&idxID=107','3','1.1','...');
	properties2a6aae7f1b[21] = new Array('479,000','55 Edward Drive','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71126079&w=512&h=400&n=0','71126079','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71126079&idxID=107','2','3.1','...');
	properties2a6aae7f1b[22] = new Array('489,900','8 Westley St','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71127208&w=512&h=400&n=0','71127208','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71127208&idxID=107','3','1.1','...');
	properties2a6aae7f1b[23] = new Array('499,000','8 Royal Street','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71121236&w=512&h=400&n=0','71121236','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71121236&idxID=107','3','2','...');
	properties2a6aae7f1b[24] = new Array('499,000','6 Spruce Street','Winchester, MA 01890 ','http://media.mlspin.com/photo.aspx?mls=71128180&w=512&h=400&n=0','71128180','107','http://mls.claytonrealtygroup.com/idx/3448/details.php?listingID=71128180&idxID=107','3','1.1','...');
	var urlVar2a6aae7f1b;
	var preLoad2a6aae7f1b = new Image();
	preLoad2a6aae7f1b.src = properties2a6aae7f1b[c2a6aae7f1bwi][3];
	onLoad = play2a6aae7f1b();
