$(document).ready(function()
{
	// Toggle Grid
	$("div.grid").hide();
	var heightDoc = $(document).height();
	$("div.grid").css({height: heightDoc});
	
	$(document).keyup(function (e) { 
		if (e.which == 18) isAlt=false; 
	}).keydown(function (e) {
		if (e.which == 18) isAlt=true;
		if (e.which == 71 && isAlt == true) {
			$(".grid").toggle();
			// $(".grid").css('backgroundImage','url(images/grid-overlay.png)');
			return false;
		}
	});
	
	$("#mainMenu li.dropboxItem").hover(
		function(){
			$(this).addClass("hovering");
	        $(this).children("a").addClass("hover");
		},
		function(){
			$(this).removeClass("hovering");
	        $(this).children("a").removeClass("hover");
		}
	);

	// Menu drop down activation
    $("li.dropboxItem").hoverIntent(dropConfig)

	var dropConfig = {
	         interval: 0,
	         sensitivity: 5,
	         over: addDropBox,
	         timeout: 500,
	         out: removeDropBox
	    }; 
});
