jQuery(document).ready(function() {
	
	$('.showbig').click(function() {
	   $("#showObject").attr("src",$(this).attr("href"));
			// stop normal link click
	   return false;
	});
	
  $('A[rel="uceeradio"]').click( function() {
      window.open( $(this).attr('href'),'uceeradio','width=460, height=338, location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=yes' );
      return false;
  });
 
 $("#aanmeldform #soortanders").focus(function () {
         if($(this).val()=='anders'){
         	$(this).val('');
        }
        
    });

	
	$('#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;
	});
	

	var scrlhgt=(document.documentElement.scrollHeight)-195;
	var hgt=(document.documentElement.clientHeight)-195;
		
	//$('#left_container').height(Math.max(scrlhgt, hgt));
	$('#left_container').height(Math.max(scrlhgt, hgt));

/*	jQuery.fn.equalizeCols = function(){
	  var height = 0;
	  return this.css("height","auto").each(function(){
	    height = Math.max( height, jQuery(this).outerHeight() );
	  }).css("height", height);
	};
	*/
	jQuery.fn.equalizeCols = function() {
 var el, height = 0, h;
 this.each(function() {
   el = jQuery(this).css("height", "auto");
   h = el.outerHeight();
   height = (h > height) ? h : height;
 });
 return this.each(function() {
   jQuery(this).css("height", height);
 });
};
 
	
	//$("#col1, #col2, #col3").equalizeCols(); 
	//$(".item").equalizeCols(); 
	//$("#i1, #i2").equalizeCols(); 
	
   	
});
