// JavaScript Document

$(function(){
	/* +++++++++++ Functions for the Navigation Bar +++++++++++++++++ */
	
	
	
	$("#man").mouseenter(function(){
		$("#managerMenu").show(0); // This line makes the Manager's menu to become available as soon as the mouse enters the Manager's area of the navigation bar
	});
	$("#man").click(function(){
		$("#managerMenu").show(0);// This lien also makes the menu visible, but when the menu is clicked. This is a workaround for touchscreen devices where there is no mouse to initiate the effect.
		e.preventDefault();
	});
	$("#managerMenu").mouseleave(function(){
		$(this).hide(0); //Hides the menu as soon as the mouse leaves the Manager's area of the navigation bar
	});
	
	
	
	
	$("#case").mouseenter(function(){
		$("#caseMenu").show(0);// This line makes the Case Studies' menu to become available as soon as the mouse enters the Manager's area of the navigation bar
	});
	$("#case").click(function(){
		$("#caseMenu").show(0);// This lien also makes the menu visible, but when the menu is clicked. This is a workaround for touchscreen devices where there is no mouse to initiate the effect.
		e.preventDefault();
	});
	$("#caseMenu").mouseleave(function(){
		$(this).hide(0); //Hides the menu as soon as the mouse leaves the Case Studies' area of the navigation bar
	});
	
	/* +++++++++++++End of Functions for the Navigation Bar ++++++++++++ */
	
	
});

// End of Javascript Document
