	$(document).ready(function() {
		
		// ---------- TOP NAV FUNCTIONS -------------- //
		//printing menu drop down set up
		var navOver = false;
		var navTriggerOver = false;
		var navVisible = false;
		
		//Nomination Drop Down Menu Script
		function timeoutNav() {
		  // roll up the menu if the trigger and menu do not have the mouse over them
		  $.doTimeout( 300, function(){
				if (navOver == false && navTriggerOver == false && navVisible == true) {
					  $('#printing_dropdown_box').slideUp();
					  navVisible = false;
				}
		  });
		}
		
		$('#printing').mouseenter(function(e) {
			$('#linkRollover').stop().animate({left: '6px'}, {duration: scrollSpeed}, {easing: 200});
			$('#linkBar').stop().animate({width: '142px'}, {duration: growSpeed}, {easing: 200});
			
			    $('#printing_dropdown_box').slideDown();
					navTriggerOver = true;
					navVisible = true;
				}).mouseleave(function(e) {
					navTriggerOver = false;
					timeoutNav();
        	}); 
	
		$('#printing_dropdown_box').mouseenter(function(e) {
			navOver = true;
		}).mouseleave(function(e) {
		    $('#printing_dropdown_box').slideUp();
				returnBar();
				navOver = false;
				navVisible = false;
		});
		
		$('#printing_dropdown_box').find('li:last').css('border','none');

		
		function returnBar() {
		    $('#linkRollover').stop().animate({left: defaultLeft + 'px'}, {duration: scrollSpeed}, {easing: 200});
				$('#linkBar').stop().animate({width: defaultWidth + 'px'}, {duration: growSpeed}, {easing: 200});
			}
	
		returnBar();
		
		var scrollSpeed = 150;
		var growSpeed = 150;
		
		$('#topNavLinksContainer').mouseenter().mouseleave(function(){ returnBar(); });
				
        $('#gallery').mouseover(function() {
            $('#linkRollover').stop().animate({left: '150px'}, {duration: scrollSpeed}, {easing: 200});
			$('#linkBar').stop().animate({width: '86px'}, {duration: growSpeed}, {easing: 200});
        });
		
        $('#alliedstore').mouseover(function() {
            $('#linkRollover').stop().animate({left: '236px'}, {duration: scrollSpeed}, {easing: 200});
			$('#linkBar').stop().animate({width: '194px'}, {duration: growSpeed}, {easing: 200});
        });
		
        $('#resources').mouseover(function() {
            $('#linkRollover').stop().animate({left: '429px'}, {duration: scrollSpeed}, {easing: 200});
			$('#linkBar').stop().animate({width: '114px'}, {duration: growSpeed}, {easing: 200});
        });
		
        $('#about').mouseover(function() {
            $('#linkRollover').stop().animate({left: '544px'}, {duration: scrollSpeed}, {easing: 200});
			$('#linkBar').stop().animate({width: '76px'}, {duration: growSpeed}, {easing: 200});
        });
		
        $('#contact').mouseover(function() {
            $('#linkRollover').stop().animate({left: '621px'}, {duration: scrollSpeed}, {easing: 200});
			$('#linkBar').stop().animate({width: '88px'}, {duration: growSpeed}, {easing: 200});
        });
		
    });

