	// 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 timeSanJoseHomesout = 8000;
	var cSanJoseHomeswi = 0;
	
	// iSanJoseHomessf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iSanJoseHomessf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapSanJoseHomesfade setup function
	function swapSanJoseHomesfade()
	{
		//if the timer is not already going
		if(iSanJoseHomessf.clock == null)
		{
			//copy the image object 
			iSanJoseHomessf.obj = arguments[0];
			
			//copy the image src argument 
			iSanJoseHomessf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iSanJoseHomessf.obj.style.opacity != 'undefined')
			{
				iSanJoseHomessf.type = 'w3c';
			}
			else if(typeof iSanJoseHomessf.obj.style.MozOpacity != 'undefined')
			{
				iSanJoseHomessf.type = 'moz';
			}
			else if(typeof iSanJoseHomessf.obj.style.KhtmlOpacity != 'undefined')
			{
				iSanJoseHomessf.type = 'khtml';
			}
			else if(typeof iSanJoseHomessf.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
				iSanJoseHomessf.type = (iSanJoseHomessf.obj.filters.length > 0 && typeof iSanJoseHomessf.obj.filters.alpha == 'object' && typeof iSanJoseHomessf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iSanJoseHomessf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iSanJoseHomessf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iSanJoseHomessf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapSanJoseHomesfade is two distinct transitions
				iSanJoseHomessf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iSanJoseHomessf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iSanJoseHomessf.clock = setInterval('iSanJoseHomessf.swapSanJoseHomesfade()', iSanJoseHomessf.length/iSanJoseHomessf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iSanJoseHomessf.obj.src = iSanJoseHomessf.src;
			}
			
		}
	};
	
	
	//swapSanJoseHomesfade timer function
	iSanJoseHomessf.swapSanJoseHomesfade = function()
	{
		//increase or reduce the counter on an exponential scale
		iSanJoseHomessf.count = (iSanJoseHomessf.fade) ? iSanJoseHomessf.count * 0.9 : (iSanJoseHomessf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iSanJoseHomessf.count < (1 / iSanJoseHomessf.resolution))
		{
			//clear the timer
			clearInterval(iSanJoseHomessf.clock);
			iSanJoseHomessf.clock = null;
	
			//do the image swap
			iSanJoseHomessf.obj.src = iSanJoseHomessf.src;
	
			//reverse the fade direction flag
			iSanJoseHomessf.fade = false;
			
			//restart the timer
			iSanJoseHomessf.clock = setInterval('iSanJoseHomessf.swapSanJoseHomesfade()', iSanJoseHomessf.length/iSanJoseHomessf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iSanJoseHomessf.count > (1 - (1 / iSanJoseHomessf.resolution)))
		{
			//clear the timer
			clearInterval(iSanJoseHomessf.clock);
			iSanJoseHomessf.clock = null;
	
			//reset the fade direction flag
			iSanJoseHomessf.fade = true;
			
			//reset the counter
			iSanJoseHomessf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iSanJoseHomessf.type)
		{
			case 'ie' :
				iSanJoseHomessf.obj.filters.alpha.opacity = iSanJoseHomessf.count * 100;
				break;
				
			case 'khtml' :
				iSanJoseHomessf.obj.style.KhtmlOpacity = iSanJoseHomessf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iSanJoseHomessf.obj.style.MozOpacity = (iSanJoseHomessf.count == 1 ? 0.9999999 : iSanJoseHomessf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iSanJoseHomessf.obj.style.opacity = (iSanJoseHomessf.count == 1 ? 0.9999999 : iSanJoseHomessf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-SanJoseHomes-slideshow { text-align: center;  }');
	document.writeln('#IDX-SanJoseHomes-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextSanJoseHomes = 1;
	prevSanJoseHomes = 25 - 1;

	document.writeln('<div id="IDX-SanJoseHomes-slideshow">');
	document.writeln('<div id="IDX-SanJoseHomes-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-SanJoseHomes-ssImageURL" class="IDX-SanJoseHomes-ssLinkText"><img id="IDX-SanJoseHomes-ssImage" name="SanJoseHomes-ssImage" alt="Slideshow image" border="0"  class="IDX-SanJoseHomes-image" src="http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=944440&ObjectID=1" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-SanJoseHomes-priceLine"></div>');
	document.writeln('<div id="IDX-SanJoseHomes-addressLine"></div>');
	document.writeln('<div id="IDX-SanJoseHomes-cszLine"></div>');
	document.writeln('<div id="IDX-SanJoseHomes-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-SanJoseHomes-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-SanJoseHomes-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playSanJoseHomes()
	{
		
		
		urlVarSanJoseHomes = '<a href="'+propertiesSanJoseHomes[cSanJoseHomeswi][6]+'" class="IDX-SanJoseHomes-ssLinkText">';
		swapSanJoseHomesfade(document.getElementById('IDX-SanJoseHomes-ssImage'), preLoadSanJoseHomes.src, '1', ' ');
		document.getElementById('IDX-SanJoseHomes-ssImageURL').href = propertiesSanJoseHomes[cSanJoseHomeswi][6];
		document.getElementById('IDX-SanJoseHomes-priceLine').innerHTML = urlVarSanJoseHomes+'$'+propertiesSanJoseHomes[cSanJoseHomeswi][0]+'</a>';
		document.getElementById('IDX-SanJoseHomes-addressLine').innerHTML =  urlVarSanJoseHomes+propertiesSanJoseHomes[cSanJoseHomeswi][1]+'</a>';
		document.getElementById('IDX-SanJoseHomes-cszLine').innerHTML = urlVarSanJoseHomes+propertiesSanJoseHomes[cSanJoseHomeswi][2]+'</a>';
		document.getElementById('IDX-SanJoseHomes-bedLine').innerHTML = urlVarSanJoseHomes+'Beds: '+propertiesSanJoseHomes[cSanJoseHomeswi][7]+'</a>';
		document.getElementById('IDX-SanJoseHomes-bathLine').innerHTML = urlVarSanJoseHomes+'Baths: '+propertiesSanJoseHomes[cSanJoseHomeswi][8]+'</a>';
		document.getElementById('IDX-SanJoseHomes-remarkLine').innerHTML = urlVarSanJoseHomes+propertiesSanJoseHomes[cSanJoseHomeswi][9]+'</a>';
		
		preLoadSanJoseHomes = new Image();
		preLoadSanJoseHomes.src = propertiesSanJoseHomes[nextSanJoseHomes][3];
		
		updateSanJoseHomes();
		
		cSanJoseHomes = setTimeout('playSanJoseHomes()', timeSanJoseHomesout);	
		
		
	} // end play()
	function updateSanJoseHomes()
	{		
		cSanJoseHomeswi = nextSanJoseHomes;		
		genNextSanJoseHomes();
		genPrevSanJoseHomes();
		
	}
	function genNextSanJoseHomes()
	{
		nextSanJoseHomes = cSanJoseHomeswi + 1;
		if (nextSanJoseHomes >= 25)
			nextSanJoseHomes = 0;
	} // end genNext
	function genPrevSanJoseHomes()
	{
		prevSanJoseHomes = cSanJoseHomeswi - 1;
		if (prevSanJoseHomes < 0)
			prevSanJoseHomes = 25 - 1;
	} // end genPrev

	var propertiesSanJoseHomes = new Array(25);
	propertiesSanJoseHomes[0] = new Array('700,000','6429 FIREFLY DR','San Jose, CA 95120 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=944440&ObjectID=1','80954390','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=80954390&idxID=108','3','2','Updated Almaden Valley home in desirable neighborhood. Ameni...');
	propertiesSanJoseHomes[1] = new Array('699,998','1706 MOROCCO DR','San Jose, CA 95125 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=938294&ObjectID=1','80948244','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=80948244&idxID=108','3','2','This beautiful&amp;quot;TJ Martin&amp;quot;home is nestled i...');
	propertiesSanJoseHomes[2] = new Array('699,990','4974 WILMA WY','San Jose, CA 95124 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=952118&ObjectID=1','81003603','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81003603&idxID=108','3','2','Delightful Remodel Close to Los Gatos Border with Wonderful ...');
	propertiesSanJoseHomes[3] = new Array('699,950','581 BROOKS AV','San Jose, CA 95125 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=949356&ObjectID=1','81000841','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81000841&idxID=108','4','3','Entertainer\\\\\\\'s Dream Home!! Move Right In to this Fabulous...');
	propertiesSanJoseHomes[4] = new Array('699,950','1110 MONICA LN','San Jose, CA 95128 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=946596&ObjectID=1','80956546','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=80956546&idxID=108','5','3','Sharp home on a great tree lined street, minutes to downtown...');
	propertiesSanJoseHomes[5] = new Array('699,950','1163 DEAN AV','San Jose, CA 95125 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=951203&ObjectID=1','81002688','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81002688&idxID=108','3','1','Opportunity knocks*Charm on a tree-lined street in prime WG*...');
	propertiesSanJoseHomes[6] = new Array('699,950','2604 CAMLOOP DR','San Jose, CA 95130 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=946955&ObjectID=1','80956905','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=80956905&idxID=108','3','2','Elem &amp;amp; Mid Schools score over 900! Great price, grea...');
	propertiesSanJoseHomes[7] = new Array('699,950','6025 MERIDIAN AV','San Jose, CA 95120 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=936405&ObjectID=1','80946355','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=80946355&idxID=108','4','2','THIS IS A DIAMOND IN THE ROUGH*LARGE HOME WITH GREAT FLOORPL...');
	propertiesSanJoseHomes[8] = new Array('699,950','401 PHOTINIA LN','San Jose, CA 95127 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=931233&ObjectID=1','80941183','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=80941183&idxID=108','3','2','Elegant custom built hm w/stunning city lights &amp;amp; val...');
	propertiesSanJoseHomes[9] = new Array('699,950','1661 NORA WY','San Jose, CA 95124 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=953941&ObjectID=1','81005426','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81005426&idxID=108','3','2','GREAT HOME &amp;amp; LOCATION. THIS WAS A 5 BEDROM HOME &amp...');
	propertiesSanJoseHomes[10] = new Array('699,900','5013 ADAIR WY','San Jose, CA 95124 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=952466&ObjectID=1','81003951','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81003951&idxID=108','3','2','SWEET RESALE NEAR LOS GATOS BORDER,TOP SCHOOLS,CARLTON ELE,U...');
	propertiesSanJoseHomes[11] = new Array('699,900','1528 HERVEY LN','San Jose, CA 95125 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=950649&ObjectID=1','81002134','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81002134&idxID=108','4','3','Diamond in the rough----Great area, great house---needs a fa...');
	propertiesSanJoseHomes[12] = new Array('699,900','1358 DAHLIA LP','San Jose, CA 95126 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=954295&ObjectID=1','81005780','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81005780&idxID=108','3','2','Great location! Walking distance to SC University. Close to ...');
	propertiesSanJoseHomes[13] = new Array('699,900','3656 GAVOTA AV','San Jose, CA 95124 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=951420&ObjectID=1','81002905','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81002905&idxID=108','3','2','Entertainers dream home! Spacious open floor plan that can f...');
	propertiesSanJoseHomes[14] = new Array('699,888','2002 MCKENZIE PL','San Jose, CA 95131 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=952716&ObjectID=1','81004201','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81004201&idxID=108','4','2','Great Plan 2 in Bentley Park by award winning builder \\\\\\\'Pu...');
	propertiesSanJoseHomes[15] = new Array('699,777','2727 KLEIN RD','San Jose, CA 95148 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=914588&ObjectID=1','80924538','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=80924538&idxID=108','5','3','Great 2-Story house Open Floorplan, spacious rooms. 5 bdrms,...');
	propertiesSanJoseHomes[16] = new Array('699,500','5011 LONE HILL RD','San Jose, CA 95032 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=947045&ObjectID=1','80956995','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=80956995&idxID=108','3','2','Remodeled house in spotless condition located at million dol...');
	propertiesSanJoseHomes[17] = new Array('699,500','7106 CLARENDON ST','San Jose, CA 95129 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=951671&ObjectID=1','81003156','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81003156&idxID=108','3','2','Spacious! Spacious! * lovely 3bd/2.5ba tri-level twh hm in d...');
	propertiesSanJoseHomes[18] = new Array('699,000','3188 PENITENCIA CREEK RD','San Jose, CA 95132 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=953960&ObjectID=1','81005445','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81005445&idxID=108','4','2','Beautifully remodeled ponderosa home facing green belt in we...');
	propertiesSanJoseHomes[19] = new Array('699,000','1090 Arbol Way','San Jose, CA 95126 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=953485&ObjectID=1','81004970','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81004970&idxID=108','3','2','Gorgeous &amp;quot;Mandarin&amp;quot; model home at The Grov...');
	propertiesSanJoseHomes[20] = new Array('699,000','3934 WELLINGTON SQ','San Jose, CA 95136 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=953297&ObjectID=1','81004782','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81004782&idxID=108','4','2','Rare find in the Thousand Oaks n\\\\\\\'hood*Pride of ownership ...');
	propertiesSanJoseHomes[21] = new Array('699,000','2510 VILLANOVA RD','San Jose, CA 95130 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=953177&ObjectID=1','81004662','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81004662&idxID=108','2','2','Remodeled throughout! Approx. 1,163 SF. Lot 59 X 110. Hardwo...');
	propertiesSanJoseHomes[22] = new Array('699,000','3391 PINNACLE DR','San Jose, CA 95132 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=952691&ObjectID=1','81004176','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=81004176&idxID=108','4','2','A well maintained single family home in the North Valley, Go...');
	propertiesSanJoseHomes[23] = new Array('699,000','1972 CURTNER AV','San Jose, CA 95124 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=925026&ObjectID=1','80934976','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=80934976&idxID=108','3','2','Walk to Starbucks,Cosentinos Mkt, Walgreens, &amp;amp; More!...');
	propertiesSanJoseHomes[24] = new Array('699,000','3381 BRADEN CT','San Jose, CA 95148 ','http://images.mlslistings.com/Reports/GetContents.ashx?content_type=image&ResourceID=936646&ObjectID=1','80946596','108','http://www.sanjose.idxco.com/idx/4619/details.php?listingID=80946596&idxID=108','4','2','Charming tri-level home on a quiet cul-de-sac.  This home ha...');
	var urlVarSanJoseHomes;
	var preLoadSanJoseHomes = new Image();
	preLoadSanJoseHomes.src = propertiesSanJoseHomes[cSanJoseHomeswi][3];
	onLoad = playSanJoseHomes();
