function forceSlideshow(id)
{
  currentBannerId = id;
  $('.home-splash').css('z-index', 2); 
  $.get('banners/banner' + currentBannerId+ '.html', function(banner){
    $(banner).appendTo('#home-splash-container');
    $('.home-splash:first').animate({ opacity: 0 }, 500, 'swing', function(){ $(this).remove(); });
    clearTimeout(cycle);
  });
  
}

function advanceSlideshow()
{
  currentBannerId = $('.home-splash').attr('id').replace('banner-','');
  $('.home-splash').css('z-index', 2); 
  currentBannerId=(currentBannerId*1)+1;
  if(currentBannerId>3) {currentBannerId=1;};
  $.get('banners/banner' + currentBannerId+ '.html', function(banner){
    $(banner).appendTo('#home-splash-container');
    $('.home-splash:first').animate({ opacity: 0 }, 1200, 'swing', function(){ $(this).remove(); });
  });
  cycle = setTimeout('advanceSlideshow()', 5000);
}

function advanceTestimonial()
{
  currentTestimonialId = $('.testimonials').attr('id').replace('testimonial-','');
  $('.testimonials').css('z-index', 2); 
  currentTestimonialId=(currentTestimonialId*1)+1;
  if(currentTestimonialId>3) {currentTestimonialId=1;};
  $.get('testimonials/testimonial' + currentTestimonialId+ '.html', function(testimonial){
    $("#testimonials").html("");																			
    $(testimonial).appendTo('#testimonials');
    $('#testimonial:first').animate({ opacity: 0 }, 1200, 'swing', function(){ $(this).remove(); });
  });
  tcycle = setTimeout('advanceTestimonial()', 7000);
}



