$(document).ready(function(){
    var h = 0;
    $("#readmores li").each(function(){
       var rh = $(this).height();
       if(rh > h){
           h = rh;
       }
    });
    $("#readmores li").height(h + 48);
    
    $(".scholar").hover(function(){
        $(this).stop(true, true).animate({ opacity:0.7 });
    }, function(){
        $(this).stop(true, true).animate({ opacity:1 });
    });
    
    window.setTimeout(function(){
        $(".second-nav a").animate({opacity:1});
    }, 200);
    window.setInterval(function(){
        var imgs = $("#banner img");
        var current = $("#banner img:visible")[0];
        var current_ix = $.inArray(current, imgs);
        if(++current_ix >= imgs.length){
            current_ix = 0;
        }
        $(current).fadeOut();
        $(imgs[current_ix]).fadeIn();
    }, 4000);
});

