function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
      var sTestimonial='';
      if(imgSrc=='/graphics/testimonials/kramer_auctions.jpg'){
         sTestimonial='<p style="margin-right:65px; margin-left:10px;">&quot;M.R. Website Development Studio has designed and maintained our website since it began. Our website has become a powerful marketing tool for our business...&quot; <br /><b style="float:right;">--<i>Kim Kramer, Kramer Auction Sales Ltd.</i></b></p>';    
         sHREF='http://kramerauction.com/';
      }else if(imgSrc=='/graphics/testimonials/buh_foundation.jpg'){
         sTestimonial='<p style="margin-right:65px; margin-left:10px;">&quot;M.R. Website Development Studio was instrumental in the creation and design of the Battleford Union Hospital Foundation\'s web page, allowing the Foundation to keep up with changing technology... &quot; <br /><b style="float:right;">--<i>Janice Sander (BUH Foundation)</i></b></p>'; 
         sHREF='http://www.buhfoundation.com/';
      }else{
         sTestimonial='<p style="margin-right:65px; margin-left:10px;">&ldquo;We were drawn to M.R. Website Development Studio after reviewing their portfolio of work. What stood out immediately is the professional look of each of the sites... <br /><b style="float:right;">--<i>Brad Kowerchuk, Bralin Technology Solutions</i></b></p>';
         sHREF='http://www.bralin.com/';
      }
      document.getElementById('testimonial_link').href=sHREF;
      document.getElementById('testimonial_text').innerHTML=sTestimonial;
    }
  }
}
//
var mySlideShow1 = new SlideShow(mySlideList1, 'slide1', 4000, "mySlideShow1");
//
function SlideShow(slideList, image, speed, name)          
{
  this.slideList = slideList;
  this.image = image;  
  this.speed = speed;
  this.name = name;
  this.current = 0;
  this.timer = 0;
}
SlideShow.prototype.play = SlideShow_play;  
function SlideShow_play()       
{
  with(this)
  {
    if(current++ == slideList.length-1) current = 0;
    switchImage(image, slideList[current]);
    clearTimeout(timer);
    timer = setTimeout(name+'.play()', speed);
  }
}
window.onload=function(){
mySlideShow1.play();
}
