
	$(document).ready(function(){
							   
	searchBoxDefault = "Search, hit enter";
	 
	
	 $('#txtSearch').focus(function(){  
 if($(this).attr("value") == searchBoxDefault) $(this).attr("value", "");  
});  
$('#txtSearch').blur(function(){  
     if($(this).attr("value") == "") $(this).attr("value", searchBoxDefault);  
 });  
			$('#welcomeTab ul').css('display', 'none'); 
			$('#servicesTab ul').css('display', 'none'); 
			$('#consultingTab ul').css('display', 'none'); 
			$('#publicationsTab ul').css('display', 'none'); 
			$('#resourcesTab ul').css('display', 'none'); 
			
			
			$('#welcomeSideNav ul').css('display', 'none');
			$('#dayliteSideNav ul').css('display', 'none');
			$('#softwareSolutionsSideNav ul').css('display', 'none');
			$('#macConsultingSideNav ul').css('display', 'none');
			$('#businessConsultingSideNav ul').css('display', 'none');
			
			$('#contentGenerationSideNav ul').css('display', 'none');
			
			
		
		  
			$('#welcomeTab').hoverIntent({interval: 100, 
		over: dropDown, 
		timeout: 500, 
		out: hideDropDown
});
			$('#servicesTab').hoverIntent({interval: 100, 
		over: dropDown, 
		timeout: 500, 
		out: hideDropDown
});
			$('#consultingTab').hoverIntent({interval: 100, 
		over: dropDown, 
		timeout: 500, 
		out: hideDropDown
});
			$('#publicationsTab').hoverIntent({interval: 100, 
		over: dropDown, 
		timeout: 500, 
		out: hideDropDown
});
			$('#resourcesTab').hoverIntent({interval: 100, 
		over: dropDown, 
		timeout: 500, 
		out: hideDropDown
});
			
			
			
			
			
		
			
			
			
			$('#welcomeSideNav').click(  dropDown
							   
);$('#dayliteSideNav').click(  dropDown
							   
);$('#softwareSolutionsSideNav').click(  dropDown
							   
);$('#macConsultingSideNav').click(  dropDown
							   
						   
);$('#businessConsultingSideNav').click(  dropDown

);$('#contentGenerationSideNav').click(  dropDown
							   
);
		
			
		
			function dropDown(){ 
		
			
			
			
		
		
				$(this).find("ul").css('z-index', '1000').animate({opacity: 'show', height: 'show'});
		
				
				if ($(this).is('#welcomeSideNav')){
			$(this).find("a").css({backgroundPosition: '-235px 0px'});
					
				} else if ($(this).is('#contentGenerationSideNav')){
					
			$(this).find("a").css({backgroundPosition: '-235px -82px'});
				} else {
					
			$(this).find("a").css({backgroundPosition: '-235px -41px'});
				};
				
				if ((!($(this).is('#welcomeBtn'))) && (!($(this).is('#servicesBtn'))) && (!($(this).is('#consultingBtn'))) && (!($(this).is('#publicationsBtn'))) && (!($(this).is('#resourcesBtn'))) && (!($(this).is('#contactBtn'))) && (!($(this).is('#welcomeTab'))) && (!($(this).is('#servicesTab'))) && (!($(this).is('#consultingTab'))) && (!($(this).is('#publicationsTab'))) && (!($(this).is('#resourcesTab'))) && (!($(this).is('#contactTab')))){
								 
				
				
				if ($(this).is('#welcomeSideNav')) {
		
				} else {
$('#welcomeSideNav').find("ul").css('z-index', '1000').animate({opacity: 'hide', height: 'hide'});
		$('#welcomeSideNav').find("a").css({backgroundPosition: '0px 0px'});
		
			}
			
			
			if ($(this).is('#dayliteSideNav')) {
		
				} else {
		
$('#dayliteSideNav').find("ul").css('z-index', '1000').animate({opacity: 'hide', height: 'hide'});
		$('#dayliteSideNav').find("a").css({backgroundPosition: '0px -41px'});
		
			}
			
			if ($(this).is('#softwareSolutionsSideNav')) {
		
				} else {
		
$('#softwareSolutionsSideNav').find("ul").css('z-index', '1000').animate({opacity: 'hide', height: 'hide'});
		$('#softwareSolutionsSideNav').find("a").css({backgroundPosition: '0px -41px'});
		
			}
			if ($(this).is('#macConsultingSideNav')) {
		
			} else {
		
$('#macConsultingSideNav').find("ul").css('z-index', '1000').animate({opacity: 'hide', height: 'hide'});
		$('#macConsultingSideNav').find("a").css({backgroundPosition: '0px -41px'});
			}
			
			
			if ($(this).is('#businessConsultingSideNav')) {
		
			} else {
		
$('#businessConsultingSideNav').find("ul").css('z-index', '1000').animate({opacity: 'hide', height: 'hide'});
		$('#businessConsultingSideNav').find("a").css({backgroundPosition: '0px -41px'});
		
			}
		if ($(this).is('#contentGenerationSideNav')) {
		
			} else {
		
$('#contentGenerationSideNav').find("ul").css('z-index', '1000').animate({opacity: 'hide', height: 'hide'});
		$('#contentGenerationSideNav').find("a").css({backgroundPosition: '0px -82px'});
		
			}
				
								 }
				
				
				}
function hideDropDown(){ 
				$(this).find("ul").css('z-index', '100').animate({opacity: 'hide', height: 'hide'});
				
				if ($(this).is('#welcomeSideNav')){
			$(this).find("a").css({backgroundPosition: '0px 0px'});
					
				} else if ($(this).is('#contentGenerationSideNav')){
					
			$(this).find("a").css({backgroundPosition: '0px -82px'});
				} else {
					
			$(this).find("a").css({backgroundPosition: '0px 0px'});
				};
				}



	});
	
		$(window).load(
    function() {
			$('#welcomeSideNav').find("ul").css('z-index', '1000').animate({opacity: 'show', height: 'show'}, 1000);
		$('#welcomeSideNav').find("a").css({backgroundPosition: '-235px 0px'});
		   
		 }
);		
