jQuery(document).ready(function() {
	
	$('.showbig').click(function() {
     $("#showObject").attr("src",$(this).attr("href"));
  		// stop normal link click
     return false;
   });
   
  	
  $('.categorie_anker').click(function() {
			$('.categorie_anker').removeClass("active");
		  $(this).addClass("active");
			  var itemid	= $(this).next().attr("id");
		   	$('li.categorie').not('#cat_'+itemid).hide();
		  	$('#cat_'+itemid).show();
		  	// $("#menu li a:first").removeClass("active"); // zet de parent active uit!
			  //blur();
		  	// stop normal link click
	  	  return false;
	});
	
	
	$('#contactform').submit(function (){
		var okBool=true;
		$('#contactform :input.verplicht ').each(function (i){
		    if(jQuery.trim($(this).val())=='' )
		    {
		        $(this).parents("li").addClass("leegclass");
		        okBool=false;
		    }else{
		        $(this).parents("li").removeClass("leegclass");
		    }		     
		});
		
		return okBool;
	});
	
	/*
			  $('#contactform :input.verplicht ').each(function (i){
            if(jQuery.trim($(this).val())=='' )
            {
                $(this).parents("li").addClass("leegclass");
            }else{
                $(this).parents("li").removeClass("leegclass");
            }
            
             
        });
  */
  
   	
});


// $("div.contentToChange p:not(.alert)")   .append("<strong class="addedtext"> This text was just appended to this paragraph</strong>")});

/*
	$('.categorie_anker').click(function() {
		$(this).toggle(function(){
	     $(this).addClass("active");
	     //$(".stuff").animate({ height: 'hide', opacity: 'hide' }, 'slow');
	   },function(){
	      $(this).removeClass("active");
	     //$(".stuff").animate({ height: 'show', opacity: 'show' }, 'slow');
	   });
  		// stop normal link click
     return false;
   });
*/