$(document).ready(function() {
   // $('body#index div.container').each(
   //     function() {
   //       var div = $('<div></div>').addClass('transparent').css( { width:$(this).width(), height:$(this).height(), opacity:0.15 });
   //       $(this).append(div);
   //     }); 
   //   
  $('div.pulldown ul ').webetui_pulldown({aniLen:200, hideDelay:500, slideUp:false});
  
  
  $('body#index div#menubalk').css('opacity', 0.15);

  if($('div#webetui_toolbar').length == 0) {
    
    $('body#index div.intro').show();
    $('body#index h2.doelgroep').css('opacity', 0);
    $('body#index div#menubalk').css('opacity', 0);
    setTimeout(function() { 
      $('body#index div.intro').fadeOut(1500);
      $('body#index h2.doelgroep').hide().css('opacity', 100).fadeIn(1500);
      $('body#index div#menubalk').hide().css('opacity', 0.15).fadeIn(1500);
    }, 2000);
  }
  
  //$('div#menu_prof ul li.selected ul').addClass('menu').appendTo('div#kolom_rechts');
  $('body#sporters div#menu_prof').hide();

  $('div#kolom_links h2.doelgroep').click(function() {
    $(this).addClass('selected');
    $('#menu_sporter ul').animate({left:0}, 'fast', 'swing');
    $('#menu_prof ul').animate({right:-600}, 'fast', 'swing', 
        function() { $('div#kolom_rechts h2.doelgroep').removeClass('selected'); $('#menu_prof').hide() } );
  });
  $('div#kolom_rechts h2.doelgroep').click(function() {
    $('#menu_prof').show();
    $(this).addClass('selected');
    $('#menu_prof ul').animate({right:0}, 'fast', 'swing');
    $('#menu_sporter ul').animate({left:-600}, 'fast', 'swing', 
        function() { $('div#kolom_links h2.doelgroep').removeClass('selected') } );
  });
});

function enquete(url) {
  var w1 = window.open(url, "Vragenlijst", "scrollbars=1, status=0, resizable=1, width=950, height=697");
  w1.focus();
}

