 /* Equal heights plugin  */
function equalHeight(group) {
   tallest = 0;
   group.each(function() {
      thisHeight = $(this).height();
      if(thisHeight > tallest) {
         tallest = thisHeight;
      }
   });
   group.height(tallest);
}
$(document).ready(function() {
   equalHeight($(".column_heigt"));
});


 /* Thumb Hover Fade  */
$(document).ready(function(){
	$(".thumb").hover(function(){
		$(this).find('.thumb_img').stop().animate({opacity:0.4},350);
		$(this).find('.thumb_link').stop().animate({opacity:0},350);
	},function(){
   		$(this).find('.thumb_img').stop().animate({opacity:1},350);
		$(this).find('.thumb_link').stop().animate({opacity:1},350);
	});
});

$(document).ready(function(){
	$(".thumb_small").hover(function(){
		$(this).find('.thumb_small_img').stop().animate({opacity:0.4},350);
		$(this).find('.thumb_small_link').stop().animate({opacity:0},350);
	},function(){
   		$(this).find('.thumb_small_img').stop().animate({opacity:1},350);
		$(this).find('.thumb_small_link').stop().animate({opacity:1},350);
	});
});

$(document).ready(function(){
	$(".thumb_home").hover(function(){
		$(this).find('.thumb_home_img').stop().animate({opacity:0.4},350);
		$(this).find('.thumb_home_link').stop().animate({opacity:0},350);
	},function(){
   		$(this).find('.thumb_home_img').stop().animate({opacity:1},350);
		$(this).find('.thumb_home_link').stop().animate({opacity:1},350);
	});
});

/* image preloader  */
	$(document).ready(function(){
			jQuery('.fade-in').hide(); //hide all the images on the page
			jQuery('.pagination').hide(); //hide all the images on the page
		});

		var i = 0; //initialize
		var int=0; //Internet Explorer Fix
		jQuery(window).bind("load", function() { //The load event will only fire if the entire page or document is fully loaded
			var int = setInterval("doThis(i)",400); //500 is the fade in speed in milliseconds
		});

		function doThis() {
			var imgs = jQuery('.fade-in').length; //count the number of images on the page
			if (i >= imgs) { //Loop the images
				clearInterval(int); //When it reaches the last image the loop ends
			}
			jQuery('.fade-in:hidden').eq(0).fadeIn(400); //fades in the hidden images one by one
			i++; //add 1 to the count
			
			
		}

$(document).ready(function(){
jQuery('.pagination').fadeIn(400); 
});

$(document).ready(function(){
    $.each(document.images, function(){
               var this_image = this;
               var src = $(this_image).attr('src') || '' ;
               if(!src.length > 0){
                   //this_image.src = options.loading; // show loading
                   var lsrc = $(this_image).attr('lsrc') || '' ;
                   if(lsrc.length > 0){
                       var img = new Image();
                       img.src = lsrc;
                       $(img).load(function() {
                           this_image.src = this.src;
                       });
                   }
               }
           });
  });
  
  $(window).load(function() {	
	$('#image_slider_inner').nivoSlider({effect:'fade', pauseTime:5000});
	find('a.nivo-prevNav').text('Vorige').end().
    find('a.nivo-nextNav').text('Volgende');
});

$("#submenu_inner ul li:nth-child(1)").addClass("een");
$("#submenu_inner ul li:nth-child(2)").addClass("twee");
$("#submenu_inner ul li:nth-child(3)").addClass("drie");
$("#submenu_inner ul li:nth-child(4)").addClass("vier");
$("#submenu_inner ul li:nth-child(5)").addClass("vijf");
$("#submenu_inner ul li:nth-child(6)").addClass("zes");
$("#submenu_inner ul li:nth-child(7)").addClass("zeven");
$("#submenu_inner ul li:nth-child(8)").addClass("acht");
$("#submenu_inner ul li:nth-child(9)").addClass("negen");
$("#submenu_inner ul li:nth-child(10)").addClass("tien");


