$(document).ready(function() {


(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  }
})(jQuery)

jQuery.preLoadImages("image1.png", "/images/ts-ed-bg.png");
jQuery.preLoadImages("image2.png", "/images/ts-ch-bg.png");
jQuery.preLoadImages("image3.png", "/images/ts-in-bg.png");

function testroll(){$("#testimonials").delay(8000).fadeIn(1,function(){$("#testimonials").css("background-position","-279px 0px");$('#testimonials a').fadeOut('slow',function(){$("#testimonials a").css("background-image","url(/images/ts-ch-bg.png)");$("#testimonials a").attr("href",$('.ts2').attr("href"));$('#testimonials a').fadeIn('slow',function(){$("#testimonials").delay(8000).fadeIn(1,function(){$("#testimonials").css("background-position","-558px 0px");$('#testimonials a').fadeOut('slow',function(){$("#testimonials a").css("background-image","url(/images/ts-in-bg.png)");$("#testimonials a").attr("href",$('.ts3').attr("href"));$('#testimonials a').fadeIn('slow',function(){$("#testimonials").delay(8000).fadeIn(1,function(){$("#testimonials").css("background-position","0px 0px");$('#testimonials a').fadeOut('slow',function(){$("#testimonials a").css("background-image","url(/images/ts-ed-bg.png)");$("#testimonials a").attr("href",$('.ts1').attr("href"));$('#testimonials a').fadeIn('slow',function(){testroll()})})})})})})})})})}testroll();	

});
