$(function() {
    
    ct = $('.randomImages img').size();
    rn = Math.floor(Math.random() * ct + 1);
    i = 1;
    
    $('.randomImages img').each(function() {
        $(this).hide();
        if(i == rn) { $(this).show(); }
        i++;
    });    
    
    $('#maincontent').hide();
    $('#maincontent').fadeIn(500);
    
});
