
	/*
	* @jquery rule
	*/
	jQuery.fn.fauxColumnHeights = function() {
		var total = $(this).length;
		var maxRowHeight=0; /* init de hoogte  */
		var allElements = $(this);
		
		$(this).each(function(index){
			var hindex = index+1;

			var theight = $(this).height();
			if ( theight > maxRowHeight ) {
			maxRowHeight = theight; 
			}
			
		});
		
		$(allElements).not('.adjusted').each(function(){
					$(this).height(maxRowHeight).addClass('adjusted');
		});
	}/* end faux columns achtige functie */




 $(document).ready(function(){
	
	$('body').addClass('js-enabled');
	
	$('.menu > li').hover(
      function () {
        $(this).addClass('open'); 
      }, 
      function () {
        $(this).removeClass('open'); 
      }
    );

	
	$('.menu li').hover(
      function () {
        $(this).addClass('over'); 
      }, 
      function () {
        $(this).removeClass('over'); 
      }
    );
	
	//var subcheight = $('#sub-content').height();
	//console.log(subcheight);
	
	$('#main-content ul.discount li.vevent div div').fauxColumnHeights();
	   
 });
