
$(document).ready(function() {

    // Toggle voor newsitems
    $(".news-read-more").click(function(){
         newsId = this.id;
        $('#'+newsId).hide();
        $('#'+newsId+'-more').slideToggle('slow');
    });
    
     // Toggle voor newsitems
    $(".news-archive-read-more").click(function(){
         newsId = this.id;
        $('#'+newsId+'-more').slideToggle('slow');
        $('#'+newsId+'-sfeer').slideToggle('slow');
    });
    
    $(".news-read-more-close").click(function(){
        newsId = this.id.replace("-close", "");
        $('#'+newsId).show();
        $('#'+newsId+'-more').slideToggle('slow');
    });    

    $(".show-people-detail").click(function(){
        peopleId = this.id;
        linkPosY   = $(this).position().top - $(this).parent().position().top;
        
        /* eerst een reset */
        $('.people-detail').css("display","none");
        
        $('#'+peopleId+'-detail').css("margin-top", linkPosY).show();
    });     
});
