var count = 1;$(document).ready(function(){  // Carousel for the courses  $(".jCarouselLite").jCarouselLite({    btnNext: ".next",    btnPrev: ".prev",    visible: 1,    afterEnd: updateLink  });    // Set initial "See Dates & Venues" Links 	          updateLink();});function updateLink() {  count = count % ($('#divOurCourses li').size() - 2);  $('#divHomeCarouselControls a').attr("href", "/course/finder/" + $('#divOurCourses li:eq('+ count++ +')').attr("id") + "/");  // }$(document).ready(function() {         $("ul.sf-menu").supersubs({             minWidth:    4,   // minimum width of sub-menus in em units             maxWidth:    12,   // maximum width of sub-menus in em units             extraWidth:  2     // extra width can ensure lines don't sometimes turn over                                // due to slight rounding differences and font-family         }).superfish();  // call supersubs first, then superfish, so that subs are                          // not display:none when measuring. Call before initialising                          // containing tabs for same reason.         $('ul.sf-menu').superfish(); }); function slideSwitch() {    var $active = $('#slideshow IMG.active');     if ( $active.length == 0 ) $active = $('#slideshow IMG:last');     // use this to pull the images in the order they appear in the markup    var $next =  $active.next().length ? $active.next()        : $('#slideshow IMG:first');     // uncomment the 3 lines below to pull the images in random order        // var $sibs  = $active.siblings();    // var rndNum = Math.floor(Math.random() * $sibs.length );    // var $next  = $( $sibs[ rndNum ] );      $active.addClass('last-active');     $next.css({opacity: 0.0})        .addClass('active')        .animate({opacity: 1.0}, 1000, function() {            $active.removeClass('active last-active');        });} $(function() {    setInterval( "slideSwitch()", 5000 );});