function slideSwitch() {
    var $active = $('#home-services-list li.active');

    if ( $active.length == 0 ) $active = $('#home-services-list li:last');

    var $next =  $active.next().length ? $active.next() : $('#home-services-list li:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})        
        .animate({opacity: 1.0}, 400, function() {
            $active.removeClass('active last-active')
            $active.animate({opacity: 0}, 200)
        })
        .addClass('active');
}

$(document).ready(function(){
    setInterval( "slideSwitch()", 5000 );    
    
    $(".services-preview").click(function(){
         window.location=$(this).find("a").attr("href");
         return false;
    });
    
});    
