
// JavaScript Document
/***********************************************

* Fading Scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)

* This notice MUST stay intact for legal use

* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code

***********************************************/



var delay = 10000; //set delay between message change (in miliseconds)

var maxsteps=30; // number of steps to take to change from start color to endcolor

var stepdelay=40; // time in miliseconds of a single step

//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect

var startcolor= new Array(255,255,255); // start color (red, green, blue)

var endcolor=new Array(0,0,0); // end color (red, green, blue)



var fcontent=new Array();

begintag='<div style="font: normal 14px Arial; padding: 5px;">'; //set opening tag, such as font declarations

	fcontent[0]="<b>Today I turned 65. I won&#8217;t wait 65 years to do this again. It was the best party for the occasion. My wife had a 			great time also. P.S. Thanks for the T-Shirt.</b><br><br>-Gary Winegar<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[1]="<b>Great tour! We learned several new historical tidbits even though we have lived in the Twin Cities since 	&acute;68. Thanks to Kevin & Kelly for keeping our &#8220;large&#8221; group together, safe, moving and entertained. Thanks,</b><br>	<br>-Judy & Paul Dukart<br>Roseville, MN<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[2]="<b>This was an experience unlike any other. I will tell my friends about it. The guides were great.</b><br><br>-James<br>Burnsville, MN<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[3]="<b>Thanks for a wonderful first Segway experience. It was a tour I will never forget. Thanks for being so patient.</b><br><br>-Barbara Martin<br>Florida<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[4]="<b>Thanks so much for the Historic Tour. Even though I&#8217;ve lived in Minneapolis for my whole 62 years, I&#8217;ve learned a lot. You were very patient with a challenged Segway novice.</b><br><br>-Marianne & Gene Morgan<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[5]="<b>We had a great time! Definitely worth it! Great guides!!!</b><br><br>-Steve & Donna Reed<br>Texas<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[6]="<b>Found out about this tour on the web. Didn&#8217;t know if we could manage a Segway, but we were given good prior instructions. It was such an awesome experience. Our tour guide, Jackie, was great and very in the know. Glad we decided on a Segway Tour. Thanks.</b><br><br>-Dave & Charlene<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[7]="<b>OMG! Segways are such a great idea for a unique corporate event. From conception to finish, MHT was professional, accommodating and fun! We had a blast! Thank you! p.s. The tour guides were awesome!</b><br><br>-LeAnn Sanderson<br>Greatbatch Medical<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[8]="<b>The best ride in Minneapolis. Gracias.</b><br><br>Lyons-Torres Family<br>Bogota, Colombia<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[9]="<b>Fantastic fun! Our guides were so helpful to my 72 yr old mother. The tour was even more fun than the EPCOT tour we took last year in Florida!</b><br><br>-The Harter Family<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[10]="<b>We are from Caracas, Venezuela, and were totally impressed with the tour! The tour guides were very professional and helpful. A special thanks to Tiernan, who was with me all the way!</b><br><br>-The Gluski&#8217;s<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[11]="<b>A very nice experience! And excellent guides who were very courteous and patient. Will recommend this tour to friends.</b><br><br>-Puni / Ketan<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[12]="<b>We just had the tour of our lives, and highly recommend it! We&#8217;re sure going to tell about our experience back home (Copenhagen, Denmark). Thanks to Jackie and Carmen!<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[13]="<b>Great tour! It was a surprise for my husband on our visit here and I got lots of points!  We LOVED it and would recommend it to anyone.</b><br><br>-Aimee & John<br>Huntley, IL<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[14]="<b>What a fabulous thing to have going on in the Twin Cities. Fun, fun, fun. All lived through it. We are happy about that!! Looking forward to the St. Paul tour.<br>What a fun ride. My favorite was seeing the Victorian homes on Nicollet Island.</b><br><br>-Krista Gundeman<br>White Bear Lake, MN<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[15]="<b>I heart SEGWAY!</b><br><br>-Lindsey<br>Seattle, WA<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[16]="<b>Renata & Ron, you rock! The highlight of our trip to Minnesota!<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[17]="<b>Had a great time! Definitely worth it! Great Guides!!! Thank you Kevin, Ed & Peter!</b><br><br>Steve & Donna Reed<br>Texas<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[18]="<b>It was a Magical J. We had a great time seeing the sights. The Segways are awesome.</b><br><br>-Katt Family<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[19]="<b>Nous avions nu les Segways l&#8217;annee pass&eacute; sur le Stone Arch Bridge. Gette annee, nous sommes nevenves a Minneapolis et les avons essayes. Tres bien! Very fun! A nice team with a French translator. Thank you!</b><br><br>-Isabelle<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[20]="<b>Lots of fun! Didn't want it to end!</b><br><br>-David & Connie<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[21]="<b>Fun! Fun!</b><br><br>Vanessa Gunther<br>Germany<br><br><a href='../testimonials.htm'>Testimonials</a>";
	fcontent[22]="<b>Lots of fun & good guides.</b><br><br>Alessandra Masala<br>Italy<br><br><a href='../testimonials.htm'>Testimonials</a>";
closetag='</div>';



var fwidth='150px'; //set scroller width

var fheight='330px'; //set scroller height



var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.



///No need to edit below this line/////////////////





var ie4=document.all&&!document.getElementById;

var DOM2=document.getElementById;

var faderdelay=0;

var index=0;





/*Rafael Raposo edited function*/

//function to change content

function changecontent(){

  if (index>=fcontent.length)

    index=0

  if (DOM2){

    document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"

    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag

    if (fadelinks)

      linkcolorchange(1);

    colorfade(1, 15);

  }

  else if (ie4)

    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;

  index++

}



// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////

// Modified by Dynamicdrive.com



function linkcolorchange(step){

  var obj=document.getElementById("fscroller").getElementsByTagName("A");

  if (obj.length>0){

    for (i=0;i<obj.length;i++)

      obj[i].style.color=getstepcolor(step);

  }

}



/*Rafael Raposo edited function*/

var fadecounter;

function colorfade(step) {

  if(step<=maxsteps) {	

    document.getElementById("fscroller").style.color=getstepcolor(step);

    if (fadelinks)

      linkcolorchange(step);

    step++;

    fadecounter=setTimeout("colorfade("+step+")",stepdelay);

  }else{

    clearTimeout(fadecounter);

    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";

    setTimeout("changecontent()", delay);

	

  }   

}



/*Rafael Raposo's new function*/

function getstepcolor(step) {


  var diff

  var newcolor=new Array(3);

  for(var i=0;i<3;i++) {

    diff = (startcolor[i]-endcolor[i]);

    if(diff > 0) {

      newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);

    } else {

      newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);

    }

  }

  return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");

}



if (ie4||DOM2)

  document.write('<div id="fscroller" style="border:1px solid black;width:'+fwidth+';height:'+fheight+'"></div>');



if (window.addEventListener)

window.addEventListener("load", changecontent, false)

else if (window.attachEvent)

window.attachEvent("onload", changecontent)

else if (document.getElementById)

window.onload=changecontent

