$(document).ready(function() {
  //hide alles
  $('[class^=toggle-item]').hide();
  $('[class^=toggle-vriend-elink]').hide();
  
  //show meld misbruik form
  $('[class^=link]').click(function() {
      //sluit email vriend
      $('[class^=toggle-vriend-elink]').slideUp(400);

      //open meld misbruik
      var $this = $(this);
      var x = $this.attr("className");    
      $('.toggle-item-' + x).slideToggle(500);                  
      return false;
  });
  $('[class^=link_close]').click(function() {
      var $this = $(this);
      var x = $this.attr("className");
      $('[class^=toggle-item]').slideUp(400);
      $('[class^=toggle-vriend]').slideUp(400);
      return false;
  });

                
  //hover show pointer bij emailVriend
  $('[class^=elink]').hover(function(){
      var $this = $(this);
      var x = $this.attr('className');
      $('.' + x).css('cursor', 'pointer');
  
  },  function() {
      var $this = $(this);
      var x = $this.attr('className');
      $('.' + x).css('cursor', 'arrow');
  
  });
  
  //on click show form bij emailVriend
  $('[class^=elink]').click(function(){
    //sluit meld misbruik
    $('[class^=toggle-item]').slideUp(400);

    //open mail vriend
    var $this = $(this); 
    var x = $this.attr('className');
    $('.toggle-vriend-' + x).slideToggle(500);
    return false;  
  });  
  

  
});
