// JavaScript Document
		// Flexible Image Slideshow- By JavaScriptKit.com (http://www.javascriptkit.com)
	// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
	// This notice must stay intact for use
	
	var myimage=new Array()
	myimage[0]=["<span class='test'>\"It was as good as it could be. They were professional in every respect. Everything was straightforward and there were no hidden “surprises”.  They were very helpful and let us know what to expect every step of the way, and helped us with the permit from the village. I have confidence in them and highly recommend them.\" <p class=\"sign\">John H.<br />Glen Ellyn<br />Generator Installation</p></span>"]
	myimage[1]=["<span class='test'>\"I found the work from Saturn Electric to be excellent. Saturn Electric installed the automatic generator as well as several outlet and switch updates. Everything was done exactly on the time line proposed with attention to detail.  What was most impressive is the customer service that George provides. George is very friendly, thorough and provides high quality work. everything is clarified at the outset of the project with a written estimate. Then follow up after the work is completed to make sure the expectations were met.\"<p class=\"sign\">Bill R.<br>Wheaton, IL<br>Generator Installation</p></span>"]			
	myimage[2]=["<span class='test'>\"Saturn Electrical Services, Inc. was prompt, professional, competitively prices. I would definitely recommend them to a friend and use them again.\"<p class=\"sign\">Tracey M.<br>Elmhurst, IL<br> Generator Installation</p><p>&nbsp;</p><p>\"Very Excellent experience. The owner, George, was in contact with us every step of the way and provided lots of information. Highly recommend them.\"<p class=\"sign\">Don O.<br>Des Plaines, IL<br>Generator Installation</p></span>"]
	myimage[3]=["<span class='test'>\"The project was planned out and executed very professionally. I would highly recommend Saturn Electrical service.\" <p class=\"sign\">Shady A.<br>Des Plaines, IL<br>Generator Installation</p><p>&nbsp;</p>\"The best experience possible. From the beginning quote, through the job, to the ending, this is the best company I have ever dealt with. Anyone who needs electrical service should consider Saturn.\" <p class=\"sign\">Robert B.<br>Bloomingdale, IL<br>Generator Installation</p></span>"]
	myimage[4]=["<span class='test'>\"Very professional and friendly. explained everything in detail and was on time. Very nice gentlemen and helpful. Thank you for your work.\"<p class=\"sign\">Hoffman Estates, IL<br>Ceiling Fan Installation</p><p>&nbsp;</p>\"Installer was very professional. Cleaned up after himself and explained the equipment in detail.\"<p class=\"sign\">WoodDale, IL<br>Electrical Switches, <br>Outlets &amp; Fixtures</p></span>"]
	myimage[5]=["<span class='test'>\"Very efficient and professional-excellent follow through. Work site left clean upon completion. We plan to reuse this service in the future.\" <p class=\"sign\">Schaumburg, IL<br>Electrical Switches, <br>Outlets &amp; Fixtures</p><p>&nbsp;</p>\"Very professional, courteous, economical-very satisfied with the installation of two ceiling fans.\" <p class=\"sign\">West Chicago, IL<br>Ceiling Fan Installation</p></span>"]
	
	var slidewidth="155px" //set to width of LARGEST image in your slideshow
	var slideheight="340px" //set to height of LARGEST iamge in your slideshow
	var slidecycles="continous" //number of cycles before slideshow stops (ie: "2" or "continous")
	var randomorder="yes" //randomize the order in which images are displayed? "yes" or "no"
	var preloadimages="yes" //preload images? "yes" or "no"
	var slidebgcolor=''
	
	//configure the below variable to determine the delay between image rotations (in miliseconds)
	var slidedelay=12000
	
	////Do not edit pass this line////////////////
	
	var ie=document.all
	var dom=document.getElementById
	var curcycle=0
	
	if (preloadimages=="yes"){
	for (i=0;i<myimage.length;i++){
	var cacheimage=new Image()
	cacheimage.src=myimage[i][0]
	}
	}
	

	var currentslide=0
	
	function randomize(targetarray){
	myimageCopy=new Array()
	var the_one
	var z=0
	while (z<targetarray.length){
	the_one=Math.floor(Math.random()*targetarray.length)
	if (targetarray[the_one]!="_selected!"){
	myimageCopy[z]=targetarray[the_one]
	targetarray[the_one]="_selected!"
	z++
	}
	}
	}
	
	if (randomorder=="yes")
	randomize(myimage)
	else
	myimageCopy=myimage
	
	function rotateimages(){
	curcycle=(currentslide==0)? curcycle+1 : curcycle
	ultcontainer='<table  width="155"  ><tr><td height="340" >'
	if (myimageCopy[currentslide][1]!="")
	
	ultcontainer+=myimageCopy[currentslide][0]
	ultcontainer+='</td></tr></table>'
	
	if (ie||dom)
	crossrotateobj.innerHTML=ultcontainer
	if (currentslide==myimage.length-1) currentslide=0
	else currentslide++
	if (curcycle==parseInt(slidecycles) && currentslide==0)
	return
	setTimeout("rotateimages()",slidedelay)
	}
	
	//if (ie||dom)
	//document.write('<div id="slidedom" align="center" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')
	
	function start_slider(){
	crossrotateobj=dom? document.getElementById("testimony") : document.all.testimony
	rotateimages();
	auto();
	}
	
	if (ie||dom)
window.onload=start_slider
