// usage: log('inside coolFunc',this,arguments);
// http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if(this.console){
    console.log( Array.prototype.slice.call(arguments) );
  }
};

$(document).ready(function() {
/**
* Fix voor border op elemen links van het actieve item
**/
	$('#hoofdmenu > ul > li').each(function(index, value) {
		$($(this)).bind('mouseover', function() {
			nummer = $(this).attr('id').substring(6);
			if(nummer>1) {
				$('#nummer' + (nummer-1)).addClass('hideBorder');
			}		
		});
		$($(this)).bind('mouseout', function() {
			resetHideBorderClasses();
		});
	});
});

function resetHideBorderClasses() {
	$('#hoofdmenu > ul > li').each(function(index, value) {
		$(this).removeClass('hideBorder');
	});
		
}
