<!--

	slides    = Array();
	slide_txt = Array();
	s=0;

	// ###### CHANGE THIS STUFF ##########

	slideDelay = 7; // in seconds;
	FadeInStep 	= 20;
	FadeOutStep = 20;
	root = "pix/slideshow/";
	imgName = 'slideshow_img';
	
	slides[s]    = root + "group-3.jpg";
	slide_txt[s] =  '<h4>Welcome to the Dan Yoest Insurance Agency</h4>';
	s++;

	slides[s]    = root + "washington.jpg";
	slide_txt[s] =  '<h4>Washington Location:</h4>401 Elm Street<br>Washington, MO 63090<br><br>Ph: 636-239-1130<br>Ph: 636-583-3822<br>Fx: 636-239-0458<br><br><a href="http://maps.google.com/maps?f=q&hl=en&q=Dan+Yoest+Insurance,+Washington,+MO&ie=UTF8&z=16&ll=38.560499,-91.013682&spn=0.01099,0.020127&om=1&iwloc=A" target="_blank">view map</a>';
	s++;

	//slides[s]    = root + "union.jpg";
	//slide_txt[s] =  '<h4>Union Location:</h4>405 Hwy 50 West<br>Suite 400<br>Union, MO 63084<br><br>Ph: 636-583-3822<br>Fx: 636-583-6721<br><br><a href="http://maps.google.com/maps?f=q&hl=en&q=Dan+Yoest+Insurance,+Washington,+MO&ie=UTF8&om=1&z=16&ll=38.441002,-91.01336&spn=0.011008,0.020127&iwloc=B" target="_blank">view map</a>';
	//s++;
	

	// ###### STOP CHANGING STUFF ##########

	slideI = 0;
	addLoadEvent(nextSlide);

	for(i=0; i<slides.length; i++) { JSFX.Rollover(slides[i],slides[i]); }

	function nextSlide() {
		if(slideI > slides.length-1) { slideI = 0; }
		JSFX.fadeOut(imgName);
		JSFX.fadeIn(imgName, slides[slideI++]);
		setTimeout("nextSlide()", slideDelay*1000);
	}
	
	/* The following lines delay showing of slide text until the slide has fully loaded */
	
	var old_func = JSFX.ImageFadeAnimation
	JSFX.ImageFadeAnimation = function() {
		old_func();
		if(!JSFX.ImageFadeRunning) JSFX.onFadeComplete();
	}

	JSFX.onFadeComplete = loadSlideTxt;

	/* END */

	// load the slide text. Note that slideI is increased by the nextSlide function so you have to use slideI-1
	function loadSlideTxt() {
		if(!document.getElementById) return;
		sTxt = document.getElementById('slideshow_txt');
		if(!sTxt) return;
		sTxt.innerHTML = slide_txt[slideI-1];
	}

	function addLoadEvent(func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = func;
		} else {
			window.onload = function() {
				oldonload();
				func();
			}
		}
	}
	
//-->

