$(document).ready(function() {
	
	// Functionaliteit aan het menu toevoegen
	
	$('ul.sub').hide();
    $('ul.menu li.active ul.sub').show();
    $('ul.menu li.active').css('background', '#666666');
	$('ul.sub li.active').css('background', '#FFF');
    
    $('ul.menu > li[class!=active]').hover(function() {
        $(this).css('background', '#666666');
    }, function() {
        $(this).css('background', 'inherit');
    });
    
    $('ul.sub > li[class!=active]').hover(function() {
    	$(this).find('a').css('text-decoration', 'underline');
    },function() {
    	$(this).find('a').css('text-decoration', 'none');
    });
	
    setTimeout(function(){

        var leftHeight = parseInt($('#leftcontainer').height());
        var rightHeight = parseInt($('#rightcontainer').height());


        if(leftHeight > rightHeight) {

            var height = leftHeight;

        } else {

            var height = rightHeight;

        }

        $('#headerimage').css('height', height);

    }, 500);

});

$(document).ready(function() {

    setTimeout(function(){
	var wrapperHeight = document.getElementById('wrapper').offsetHeight;
	//wrapperHeight += parseInt($(".wrapper").css("padding-top"));
	//$(".footer").css("top", wrapperHeight + 135 - 10);
	$(".left").css("height", wrapperHeight - 10);
	
	//$(".tabelMenu").css("height", parseInt($("#.left").css("height")));
	
	//alert(document.getElementById('test').offsetHeight);
        $('#opgerichtIMG').css('display','block');

},500);
});
