
	/*
	* @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).css({'min-height': maxRowHeight+'px'}).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'); 
      }
    );
	
    
    $(".Tip").tooltip({ 
    track: true, 
    delay: 0, 
    showURL: false, 
    showBody: " - ", 
    fade: 0 
	});
	//var subcheight = $('#sub-content').height();
	//console.log(subcheight);
	
	$('#main-content ul.discount li.vevent h3').fauxColumnHeights();
	
	$('#categories-top5 h3').click(function(){
		if( $(this).hasClass('active') ){return;}
		$('#categories-top5 h3').removeClass('active');
		$(this).addClass('active');
		$('#categories-top5 ul.course-list').hide();
		$(this).parent('li').find('ul.course-list').show();
	});
	$('#categories-top5 h3:first').click();
	
	$('#main-content ul.discount li.vevent').append('<span class="c tl"></span><span class="c tr"></span><span class="c bl"></span><span class="c br"></span>');
	   
 });

