	// 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 timeCorvallisHomesout = 7000;
	var cCorvallisHomeswi = 0;
	
	// iCorvallisHomessf1.11 :: Image swap-fade 
	// *****************************************************
	// DOM scripting by brothercake -- http://www.brothercake.com/
	//******************************************************
	//global object
	var iCorvallisHomessf = { 'clock' : null, 'fade' : true, 'count' : 1 }
	
	
	//swapCorvallisHomesfade setup function
	function swapCorvallisHomesfade()
	{
		//if the timer is not already going
		if(iCorvallisHomessf.clock == null)
		{
			//copy the image object 
			iCorvallisHomessf.obj = arguments[0];
			
			//copy the image src argument 
			iCorvallisHomessf.src = arguments[1];
			
			//store the supported form of opacity
			if(typeof iCorvallisHomessf.obj.style.opacity != 'undefined')
			{
				iCorvallisHomessf.type = 'w3c';
			}
			else if(typeof iCorvallisHomessf.obj.style.MozOpacity != 'undefined')
			{
				iCorvallisHomessf.type = 'moz';
			}
			else if(typeof iCorvallisHomessf.obj.style.KhtmlOpacity != 'undefined')
			{
				iCorvallisHomessf.type = 'khtml';
			}
			else if(typeof iCorvallisHomessf.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
				iCorvallisHomessf.type = (iCorvallisHomessf.obj.filters.length > 0 && typeof iCorvallisHomessf.obj.filters.alpha == 'object' && typeof iCorvallisHomessf.obj.filters.alpha.opacity == 'number') ? 'ie' : 'none';
			}
			else
			{
				iCorvallisHomessf.type = 'none';
			}
			
			//change the image alt text if defined
			if(typeof arguments[3] != 'undefined' && arguments[3] != '')
			{
				iCorvallisHomessf.obj.alt = arguments[3];
			}
			
			//if any kind of opacity is supported
			if(iCorvallisHomessf.type != 'none')
			{
				//copy and convert fade duration argument 
				//the duration specifies the whole transition
				//but the swapCorvallisHomesfade is two distinct transitions
				iCorvallisHomessf.length = parseInt(arguments[2], 10) * 500;
				
				//create fade resolution argument as 20 steps per transition
				//again, split for the two distrinct transitions
				iCorvallisHomessf.resolution = parseInt(arguments[2], 10) * 10;
				
				//start the timer
				iCorvallisHomessf.clock = setInterval('iCorvallisHomessf.swapCorvallisHomesfade()', iCorvallisHomessf.length/iCorvallisHomessf.resolution);
			}
			
			//otherwise if opacity is not supported
			else
			{
				//just do the image swap
				iCorvallisHomessf.obj.src = iCorvallisHomessf.src;
			}
			
		}
	};
	
	
	//swapCorvallisHomesfade timer function
	iCorvallisHomessf.swapCorvallisHomesfade = function()
	{
		//increase or reduce the counter on an exponential scale
		iCorvallisHomessf.count = (iCorvallisHomessf.fade) ? iCorvallisHomessf.count * 0.9 : (iCorvallisHomessf.count * (1/0.9)); 
		
		//if the counter has reached the bottom
		if(iCorvallisHomessf.count < (1 / iCorvallisHomessf.resolution))
		{
			//clear the timer
			clearInterval(iCorvallisHomessf.clock);
			iCorvallisHomessf.clock = null;
	
			//do the image swap
			iCorvallisHomessf.obj.src = iCorvallisHomessf.src;
	
			//reverse the fade direction flag
			iCorvallisHomessf.fade = false;
			
			//restart the timer
			iCorvallisHomessf.clock = setInterval('iCorvallisHomessf.swapCorvallisHomesfade()', iCorvallisHomessf.length/iCorvallisHomessf.resolution);
	
		}
		
		//if the counter has reached the top
		if(iCorvallisHomessf.count > (1 - (1 / iCorvallisHomessf.resolution)))
		{
			//clear the timer
			clearInterval(iCorvallisHomessf.clock);
			iCorvallisHomessf.clock = null;
	
			//reset the fade direction flag
			iCorvallisHomessf.fade = true;
			
			//reset the counter
			iCorvallisHomessf.count = 1;
		}
	
		//set new opacity value on element
		//using whatever method is supported
		switch(iCorvallisHomessf.type)
		{
			case 'ie' :
				iCorvallisHomessf.obj.filters.alpha.opacity = iCorvallisHomessf.count * 100;
				break;
				
			case 'khtml' :
				iCorvallisHomessf.obj.style.KhtmlOpacity = iCorvallisHomessf.count;
				break;
				
			case 'moz' : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iCorvallisHomessf.obj.style.MozOpacity = (iCorvallisHomessf.count == 1 ? 0.9999999 : iCorvallisHomessf.count);
				break;
				
			default : 
				//restrict max opacity to prevent a visual popping effect in firefox
				iCorvallisHomessf.obj.style.opacity = (iCorvallisHomessf.count == 1 ? 0.9999999 : iCorvallisHomessf.count);
		}
	};



	
	document.writeln('<style type="text/css" media="all">');
	document.writeln('#IDX-CorvallisHomes-slideshow { text-align: center; width: 175px;  }');
	document.writeln('.IDX-CorvallisHomes-image { width: 165px;  }');
	document.writeln('#IDX-CorvallisHomes-slideshowImage span { text-align: center; }');
	document.writeln('</style>');
	var nextCorvallisHomes = 1;
	prevCorvallisHomes = 25 - 1;

	document.writeln('<div id="IDX-CorvallisHomes-slideshow">');
	document.writeln('<div id="IDX-CorvallisHomes-slideshowImage">');
	document.writeln('<span><a href="" id="IDX-CorvallisHomes-ssImageURL" class="IDX-CorvallisHomes-ssLinkText"><img id="IDX-CorvallisHomes-ssImage" name="CorvallisHomes-ssImage" alt="Slideshow image" border="0"  class="IDX-CorvallisHomes-image" src="http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/0/WVMLS619250.jpg" ></a></span>');
	document.writeln('</div>');
	document.writeln('<div id="IDX-CorvallisHomes-priceLine"></div>');
	document.writeln('<div id="IDX-CorvallisHomes-addressLine"></div>');
	document.writeln('<div id="IDX-CorvallisHomes-cszLine"></div>');
	document.writeln('<div id="IDX-CorvallisHomes-bedLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-CorvallisHomes-bathLine" style="display:none;"></div>');
	document.writeln('<div id="IDX-CorvallisHomes-remarkLine" style="display:none;"></div>');
	
	document.writeln('</div>');

	function playCorvallisHomes()
	{
		
		
		urlVarCorvallisHomes = '<a href="'+propertiesCorvallisHomes[cCorvallisHomeswi][6]+'" class="IDX-CorvallisHomes-ssLinkText">';
		swapCorvallisHomesfade(document.getElementById('IDX-CorvallisHomes-ssImage'), preLoadCorvallisHomes.src, '1', ' ');
		document.getElementById('IDX-CorvallisHomes-ssImageURL').href = propertiesCorvallisHomes[cCorvallisHomeswi][6];
		document.getElementById('IDX-CorvallisHomes-priceLine').innerHTML = urlVarCorvallisHomes+'$'+propertiesCorvallisHomes[cCorvallisHomeswi][0]+'</a>';
		document.getElementById('IDX-CorvallisHomes-addressLine').innerHTML =  urlVarCorvallisHomes+propertiesCorvallisHomes[cCorvallisHomeswi][1]+'</a>';
		document.getElementById('IDX-CorvallisHomes-cszLine').innerHTML = urlVarCorvallisHomes+propertiesCorvallisHomes[cCorvallisHomeswi][2]+'</a>';
		document.getElementById('IDX-CorvallisHomes-bedLine').innerHTML = urlVarCorvallisHomes+'Beds: '+propertiesCorvallisHomes[cCorvallisHomeswi][7]+'</a>';
		document.getElementById('IDX-CorvallisHomes-bathLine').innerHTML = urlVarCorvallisHomes+'Baths: '+propertiesCorvallisHomes[cCorvallisHomeswi][8]+'</a>';
		document.getElementById('IDX-CorvallisHomes-remarkLine').innerHTML = urlVarCorvallisHomes+propertiesCorvallisHomes[cCorvallisHomeswi][9]+'</a>';
		
		preLoadCorvallisHomes = new Image();
		preLoadCorvallisHomes.src = propertiesCorvallisHomes[nextCorvallisHomes][3];
		
		updateCorvallisHomes();
		
		cCorvallisHomes = setTimeout('playCorvallisHomes()', timeCorvallisHomesout);	
		
		
	} // end play()
	function updateCorvallisHomes()
	{		
		cCorvallisHomeswi = nextCorvallisHomes;		
		genNextCorvallisHomes();
		genPrevCorvallisHomes();
		
	}
	function genNextCorvallisHomes()
	{
		nextCorvallisHomes = cCorvallisHomeswi + 1;
		if (nextCorvallisHomes >= 25)
			nextCorvallisHomes = 0;
	} // end genNext
	function genPrevCorvallisHomes()
	{
		prevCorvallisHomes = cCorvallisHomeswi - 1;
		if (prevCorvallisHomes < 0)
			prevCorvallisHomes = 25 - 1;
	} // end genPrev

	var propertiesCorvallisHomes = new Array(25);
	propertiesCorvallisHomes[0] = new Array('799,000','24439 Decker Rd','Corvallis, OR 97333 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/0/WVMLS619250.jpg','619250','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=619250&idxID=139','3','3','A fabulous farm home where quality craftsmanship &amp; real ...');
	propertiesCorvallisHomes[1] = new Array('798,650','442 NW Calloway Dr','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/8/WVMLS621828.jpg','621828','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=621828&idxID=139','4','3.5','Custom Home with Outstanding Separate 24X40 Shop &amp; Garde...');
	propertiesCorvallisHomes[2] = new Array('798,650','442 NW Calloway Dr','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/0/WVMLS621830.jpg','621830','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=621830&idxID=139','4','3.5','Custom Home with Outstanding Separate 24X40 Shop &amp; Garde...');
	propertiesCorvallisHomes[3] = new Array('785,000','6162 NW Burgundy Dr','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/5/WVMLS610675.jpg','610675','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=610675&idxID=139','5','3','Custom home built in Cascade View. Remodeled whole home in 2...');
	propertiesCorvallisHomes[4] = new Array('774,900','6775 NW Diamond Pl','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/3/WVMLS620783.jpg','620783','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=620783&idxID=139','4','3','Amazing views from this spacious and elegant home on over 2 ...');
	propertiesCorvallisHomes[5] = new Array('769,000','4665 NW Rosemarie Pl','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/5/WVMLS612255.jpg','612255','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=612255&idxID=139','5','4','1.12 ac right in town! Beautifully maintained large custom b...');
	propertiesCorvallisHomes[6] = new Array('769,000','4665 NW Rosemarie Pl','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/4/WVMLS612264.jpg','612264','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=612264&idxID=139','5','4','One acre right in town. Beautifully maintained large custom ...');
	propertiesCorvallisHomes[7] = new Array('699,000','7955 NW Hope Dr','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/0/WVMLS620730.jpg','620730','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=620730&idxID=139','4','2.5','Immaculate country estate within minutes from OSU on all use...');
	propertiesCorvallisHomes[8] = new Array('669,000','4736 NW Veronica Pl','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/8/WVMLS607018.jpg','607018','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=607018&idxID=139','5','3.5','Green Home: Earth Advantage tested and certified. 5 bdrms, 3...');
	propertiesCorvallisHomes[9] = new Array('645,000','2790 SW DeArmond Dr','Corvallis, OR 97333 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/2/WVMLS617002.jpg','617002','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=617002&idxID=139','4','2.5','A new direction of living awaits you in this well built home...');
	propertiesCorvallisHomes[10] = new Array('623,000','4318 SW Agate Av','Corvallis, OR 97333 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/8/WVMLS616198.jpg','616198','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=616198&idxID=139','5','2.5','Entertaining is a real joy in owning this hm located in fabu...');
	propertiesCorvallisHomes[11] = new Array('599,900','4988 NW Lavender Cl','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/3/WVMLS607053.jpg','607053','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=607053&idxID=139','4','3.5','Solar elect net metering agreement w/ consumer powers, inc. ...');
	propertiesCorvallisHomes[12] = new Array('595,000','3026 NW Glenridge Dr','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/5/WVMLS619835.jpg','619835','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=619835&idxID=139','4','3.5','Peace and nature at this huge 0.34 acre lot backing up to a ...');
	propertiesCorvallisHomes[13] = new Array('595,000','3324 SW Chintimini Av','Corvallis, OR 97333 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/9/WVMLS619829.jpg','619829','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=619829&idxID=139','4','2','Architecturally designed view home 1.5 miles from OSU. Price...');
	propertiesCorvallisHomes[14] = new Array('595,000','2766 NW Marigold Pl','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/9/WVMLS597069.jpg','597069','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=597069&idxID=139','6','5','Beautiful site adjacent to open space &amp; MLK park w/great...');
	propertiesCorvallisHomes[15] = new Array('588,880','4372 NW Honeysuckle Dr','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/5/WVMLS619335.jpg','619335','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=619335&idxID=139','3','3.5','Gracious and elegant home built with fine touches.  Gourmet ...');
	propertiesCorvallisHomes[16] = new Array('579,000','928 NW Raintree Dr','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/6/WVMLS616326.jpg','616326','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=616326&idxID=139','4','3.5','Situated at the end of a cul-de-sac on approx 1/2 acre of wo...');
	propertiesCorvallisHomes[17] = new Array('577,700','4254 NW Canary Pl','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/0/WVMLS622440.jpg','622440','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=622440&idxID=139','4','2.5','Owner built home w/extensive custom woodwork. Covered decks,...');
	propertiesCorvallisHomes[18] = new Array('569,000','4105 NW Elmwood Dr','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/1/WVMLS613341.jpg','613341','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=613341&idxID=139','4','3.5','Spacious home in desirable neighborhood is a haven for daily...');
	propertiesCorvallisHomes[19] = new Array('549,000','6242 SW Timber Ridge Dr','Corvallis, OR 97333 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/5/WVMLS621875.jpg','621875','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=621875&idxID=139','4','3','HOA Amenities: Large grass park with sandy play area &amp; p...');
	propertiesCorvallisHomes[20] = new Array('525,000','2765 NW Glenwood Dr','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/0/WVMLS608220.jpg','608220','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=608220&idxID=139','5','4','Extensive upgrades w/ new kit: ss appliances, corian counter...');
	propertiesCorvallisHomes[21] = new Array('515,000','2104 NW Estaview Dr','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/6/WVMLS618226.jpg','618226','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=618226&idxID=139','6','3.5','Updated 6 BR home is great for a lg. family with room for gu...');
	propertiesCorvallisHomes[22] = new Array('509,000','2637 SW 45th St','Corvallis, OR 97333 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/8/WVMLS617488.jpg','617488','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=617488&idxID=139','4','3','Light and airy home on the golf course. Upgrades throughout:...');
	propertiesCorvallisHomes[23] = new Array('499,900','6079 NW Mountain View Dr','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/7/WVMLS620337.jpg','620337','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=620337&idxID=139','3','2.5','Beautiful custom home on acreage!!  Hickory flooring &amp; c...');
	propertiesCorvallisHomes[24] = new Array('499,900','3919 NW Clarence Cl','Corvallis, OR 97330 ','http://wvmls.fnismls.com/Paragon/ListingPictures/WVMLS/6/WVMLS621116.jpg','621116','139','http://www.debbiebrand.idxco.com/idx/4847/details.php?listingID=621116&idxID=139','4','3','Incredible views overlooking the OSU Campus, Corvallis and t...');
	var urlVarCorvallisHomes;
	var preLoadCorvallisHomes = new Image();
	preLoadCorvallisHomes.src = propertiesCorvallisHomes[cCorvallisHomeswi][3];
	onLoad = playCorvallisHomes();
