jQuery(document).ready(function(){
	
	jQuery('ul#main_menu li:last').addClass("last");
	
	jQuery('div.right div:last').addClass("last");
	jQuery('#footerCntr ul li:last').css({"border-right":"none"});
	
	jQuery('.navBox li strong').parent().css({"padding-right":"100px"})
	
	if(jQuery('input')[0]){
		jQuery('input').hint();
	}
	
	if(jQuery('.docentBox ul')[0]){
		//jQuery('.docentBox ul').tabs({ event: 'mouseover'});	
		
		jQuery('.docentBox ul li a').mouseover(function(){

			jQuery('.docentBox > .right > div').hide();
			jQuery('.docentBox ul li').removeClass('active');
			//alert(jQuery(this).attr('href'));
			jQuery(jQuery(this).attr('href')).show();
			jQuery(this).parent('li').addClass('active');
		});
		jQuery('.docentBox ul li a').click(function(){
			jQuery('.docentBox > .right > div').hide();
			jQuery('.docentBox ul li').removeClass('active');
			//alert(jQuery(this).attr('href'));
			jQuery(jQuery(this).attr('href')).show();
			jQuery(this).parent('li').addClass('active');
			return false;
		});
	}
	
	if(jQuery('.navBox, .textBox')[0]){
		jQuery('.navBox, .textBox').equalHeight();
	}
	
	if(jQuery('.navBox, .listBox')[0]){
		jQuery('.navBox, .listBox').equalHeight();
		var bigLeftHeight = jQuery('#largeCntr').height();
		var bigRightHeight = jQuery('#sideCntr').height();
		if(bigRightHeight > bigLeftHeight){
			jQuery('.navBox, .listBox').removeAttr('style').css({"height": bigRightHeight -52});
		}
	}
	
	if(jQuery('.navBox, .docentBox')[0]){
		jQuery('.navBox, .docentBox').equalHeight();
		
	}
	
	jQuery(".tx-irfaq-pi1 dt p").live("click", function(){
  		jQuery('.navBox, .textBox').removeAttr('style').equalHeight();
	});
	
	var leftSpecial = jQuery('#special .navBox').height();
	var rightSpecial = jQuery('#special #rightCntr').height();
	if(leftSpecial < rightSpecial){
		jQuery('#special .navBox').removeAttr('style').css({"height": rightSpecial - 26});
	}
	
	if(leftSpecial > rightSpecial){
		jQuery('#special #rightCntr .rightBox:last').css({"height": "210px"});
	}
	
	var frontBoxBigHeight = jQuery('#introCntr .laatsteBox').height();
	var frontBoxSmall1Height = jQuery('#introCntr .introBox:first').height();
	var frontBoxSmall2Height = jQuery('#introCntr .introBox:last').height();
	var frontBoxSmallTotalHeight = frontBoxSmall1Height + frontBoxSmall2Height
	var rightBoxesHeight = jQuery('#sideCntr .link:eq(0)').height() + jQuery('#sideCntr .link:eq(1)').height() + jQuery('#sideCntr .link:eq(2)').height() + jQuery('#sideCntr .link:eq(3)').height() + 93;
		
	if(rightBoxesHeight > frontBoxBigHeight){
		jQuery('#introCntr .laatsteBox').css({"height":rightBoxesHeight -5});
		jQuery('#introCntr .introBox:last').css({"height": rightBoxesHeight - frontBoxSmall1Height - 81});
	}
	
	var firstRightBoxHeight = jQuery('#introCntr .right .introBox:first').height();
	var secondRightBoxHeight = jQuery('#introCntr .right .introBox:last').height();
	
	jQuery('#introCntr .laatsteBox .nieuws:first').css({"height": firstRightBoxHeight - 21});
	jQuery('#introCntr .laatsteBox .nieuws:last').css({"height": secondRightBoxHeight});

});


