// JavaScript Document
var eArray = new Array();
	  eArray[0] = '&quot;Going through interviews and bench tests…gave me at appreciation for how well-prepared I felt after having been taught by the three of you.  You have been among the most knowledgeable teachers I&rsquo;ve ever had, and the best at sharing that knowledge with your students.&quot; <br /><strong>- John Kirkner, class of 2009</strong>';
	  eArray[1] = '&quot;I just wanted to take a moment and say thank you for everything. I am very happy in my chosen career and I can&rsquo;t help but think that all of you have had a significant impact on this. Each day I am reminded many times, of not only the smallest details of your instructions, but also the recounts of personal experiences and small frustrations you have all shared with me throughout the past year.&quot; <br /><strong>– Mark Pilkington, class of 2008</strong>';
	  eArray[2] = '&quot;I want you to know that I had a great time visiting Red Wing this year, thanks to you and your outstanding students! You know, I&rsquo;ve given clinics at Universities around the US and in several countries… The thing that I find really fascinating about Red Wing is that the students change every year and yet the positive attitude and nearly electric-vibe remains. Your students are really lucky to have you guys working so hard for them and fostering this environment!<br /><br />I believe the students experience at Red Wing will be one that they cherish their entire lives. Keep up the really great work you should be proud of your students and what you have created!!!&quot; <br /><strong>- Curt Altarac, Owner: Musicmedic.com and Red Wing BIR Advisory Committee member</strong>';
	  eArray[3] = '&quot;It is hard to sum up such a great experience and overwhelming respect I have for a program like BIR.  I graduated several years ago, and not a day goes by where I do not think about the school and where it has gotten me in my career.  The teaching techniques and inspiring attitude are of the highest caliber.  I wish the best of luck and a  prosperous future to what I deeply believe is the finest program of its kind in the world.&quot; <br /><strong>- Mike Corrigan, class of 2000</strong>';
	  
	  var rndnum = Math.floor(Math.random()*(eArray.length));	//Generate a random number for the first array

	  var eIndex = rndnum;	//var eIndex= 0;
	  var element = document.getElementById('testimonials');
	
      var duration = 1000;  /* 1000 millisecond fade = 1 sec */
      var steps = 20;       /* number of opacity intervals   */
      var delay = 15000;     /* 15 sec delay before fading out */
 
      /* set the opacity of the element (between 0.0 and 1.0) */
      function setOpacity(level) {
        element.style.opacity = level;
        element.style.MozOpacity = level;
        element.style.KhtmlOpacity = level;
        element.style.filter = "alpha(opacity=" + (level * 100) + ");";
      }

      function fadeIn(){
		element.innerHTML = eArray[eIndex];
		eIndex = (eIndex + 1) % eArray.length;
        for (i = 0; i <= 1; i += (1 / steps)) {
          setTimeout("setOpacity(" + i + ")", i * duration);
        }
        setTimeout("fadeOut()", delay);
      }

      function fadeOut() {
        for (i = 0; i <= 1; i += (1 / steps)) {
          setTimeout("setOpacity(" + (1 - i) + ")", i * duration);
        }
        setTimeout("fadeIn()", duration);
      }

	function setElement(){
		if(eIndex == (eArray.length-1)){
			eIndex = 0;
		}else{
			eIndex ++;
		}
	}
      /* start the effect */
      fadeIn();