$(document).ready(function() {

	$('#nav > li.hassubs').mouseover(function (ev) {
		if ($(this).position().left + $(this).children('ul').width() > $('#header').width()) {
			window.console.log($('#header').width() - $(this).children('ul').width());
			$(this).children('ul').css({'left': ($('#header').width() - $(this).children('ul').width() + 25) + 'px'});
		}
	});

	// Arceren tabellen
	$('table.Gearceerd tr[class!=Kop]:even').addClass('even');

	if ($.browser.msie && $.browser.version <= 6) {
		$('#ie6_banner').animate({
			height: 'show',
			opacity: 'show'
		}, 'normal', 'swing');
	}

	$('.close_down').click(function (ev) {
		$('#ie6_banner').animate({
			height: 'hide',
			opacity: 'hide'
		}, 'normal', 'swing');
	});

});