$(document).ready(function() {
						   
	var current = $('#course-switcher-list a:first').get(0);
	$(current).addClass('on');
	$('#detail-'+$(current).attr('id').substring(7)).css('display','block');
						   
	$('#course-switcher-list a').each(function(){
		$(this).mouseenter(function(){
			if(this != current) {
				on(this);
				off(); // Turn off the current one
				current = this; // Set this to the current one
			}
		});
	});
	
	function on(obj) {
		$(obj).addClass('on');
		$('#detail-'+obj.id.substring(7)).css('display','block');
	}
						   
	function off() {
		$(current).removeClass('on');
		$('#detail-'+$(current).attr('id').substring(7)).css('display','none');
	}					   
	
	// Drop down menus
    /*
	var config = {    
		sensitivity: 7, // number = sensitivity threshold (must be 1 or higher)    
		interval: 50, // number = milliseconds for onMouseOver polling interval    
		over: function () {
			$('.nav-menu',this).css('z-index',z++).fadeIn();
		}, // function = onMouseOver callback (REQUIRED)    
		timeout: 500, // number = milliseconds delay before onMouseOut    
		out: function () {
			$('.nav-menu',this).fadeOut(); //css('display','none');
		} // function = onMouseOut callback (REQUIRED)    
	};

	$(".nav-menu-parent").hoverIntent(config);
*/
});