$(document).ready(function()
{
   
	$('div.header-menu-sealy-brand').mouseover(function() {
		$("div.orthopedic-advisory-board-info").css('display', 'none');
		$("div.orthopedic-advisory-board-image").css('display', 'none');
		$("div.orthopedic-advisory-board-menu").css('display', 'none');
		$("div.orthopedic-advisory-board-info").stop(true, true);
		$("div.orthopedic-advisory-board-image").stop(true, true);
		$("div.orthopedic-advisory-board-menu").stop(true, true);
		$("div.sealy-posturepedic-info").css('display', 'none');
		$("div.sealy-posturepedic-image").css('display', 'none');
		$("div.sealy-posturepedic-menu").css('display', 'none');
		$("div.sealy-posturepedic-info").stop(true, true);
		$("div.sealy-posturepedic-image").stop(true, true);
		$("div.sealy-posturepedic-menu").stop(true, true);
		$("div.environmental-footprint-info").css('display', 'none'); 
		$("div.environmental-footprint-image").css('display', 'none');  
		$("div.environmental-footprint-menu").css('display', 'none');
		$("div.environmental-footprint-info").stop(true, true); 
		$("div.environmental-footprint-image").stop(true, true);  
		$("div.environmental-footprint-menu").stop(true, true);
		
		
		if (!$("div.sealy-brand-menu").is(":visible"))   
		{
			$('div.container').css("background-image", "url(images/index/background-image.jpg)"); 
			$("div.sealy-brand-menu").slideDown("1000"); 
			$("div.sealy-brand-info").delay("500").show( "slide", { direction: "left" } , 1000);
			$("div.sealy-brand-image").delay("1500").fadeIn("1500"); 
		}
	});
	
	$('div.header-menu-sealy-posturepedic').mouseover(function() {
		$("div.orthopedic-advisory-board-info").css('display', 'none');
		$("div.orthopedic-advisory-board-image").css('display', 'none');
		$("div.orthopedic-advisory-board-menu").css('display', 'none');
		$("div.orthopedic-advisory-board-info").stop(true, true);
		$("div.orthopedic-advisory-board-image").stop(true, true);
		$("div.orthopedic-advisory-board-menu").stop(true, true);
		$("div.sealy-brand-info").css('display', 'none');
		$("div.sealy-brand-image").css('display', 'none');
		$("div.sealy-brand-menu").css('display', 'none');
		$("div.sealy-brand-info").stop(true, true);
		$("div.sealy-brand-image").stop(true, true);
		$("div.sealy-brand-menu").stop(true, true);
		$("div.environmental-footprint-info").css('display', 'none'); 
		$("div.environmental-footprint-image").css('display', 'none');  
		$("div.environmental-footprint-menu").css('display', 'none');
		$("div.environmental-footprint-info").stop(true, true); 
		$("div.environmental-footprint-image").stop(true, true);  
		$("div.environmental-footprint-menu").stop(true, true);
		
		if (!$("div.sealy-posturepedic-info").is(":visible"))   
		{
			$('div.container').css("background-image", "url(images/index/background-image.jpg)"); 
			$("div.sealy-posturepedic-info").slideDown("slow");
			$("div.sealy-posturepedic-menu").delay("350").show( "slide", { direction: "right" } , 1000);
			$("div.sealy-posturepedic-image").delay("1000").fadeIn("1000"); 
		}
	});
	
	$('div.header-menu-environmental-footprint').mouseover(function() {
		$("div.orthopedic-advisory-board-info").css('display', 'none');
		$("div.orthopedic-advisory-board-image").css('display', 'none');
		$("div.orthopedic-advisory-board-menu").css('display', 'none');
		$("div.orthopedic-advisory-board-info").stop(true, true);
		$("div.orthopedic-advisory-board-image").stop(true, true);
		$("div.orthopedic-advisory-board-menu").stop(true, true);
		$("div.sealy-posturepedic-info").css('display', 'none');
		$("div.sealy-posturepedic-image").css('display', 'none');
		$("div.sealy-posturepedic-menu").css('display', 'none');
		$("div.sealy-posturepedic-info").stop(true, true);
		$("div.sealy-posturepedic-image").stop(true, true);
		$("div.sealy-posturepedic-menu").stop(true, true);
		$("div.sealy-brand-info").css('display', 'none'); 
		$("div.sealy-brand-image").css('display', 'none');  
		$("div.sealy-brand-menu").css('display', 'none');
		$("div.sealy-brand-info").stop(true, true); 
		$("div.sealy-brand-image").stop(true, true);  
		$("div.sealy-brand-menu").stop(true, true);
		
		if (!$("div.environmental-footprint-info").is(":visible"))   
		{
			$('div.container').css("background-image", "url(images/index/background-image.jpg)"); 
			$("div.environmental-footprint-info").slideDown("slow");
			$("div.environmental-footprint-menu").delay("350").show( "slide", { direction: "left" } , 1000);
			$("div.environmental-footprint-image").delay("50").fadeIn("1000"); 
		}
	});
	
	$('div.header-menu-orthopedic-advisory-board').mouseover(function() {
		$("div.sealy-posturepedic-info").css('display', 'none');
		$("div.sealy-posturepedic-image").css('display', 'none');
		$("div.sealy-posturepedic-menu").css('display', 'none');
		$("div.sealy-posturepedic-info").stop(true, true);
		$("div.sealy-posturepedic-image").stop(true, true);
		$("div.sealy-posturepedic-menu").stop(true, true);
		$("div.sealy-brand-info").css('display', 'none');
		$("div.sealy-brand-image").css('display', 'none');
		$("div.sealy-brand-menu").css('display', 'none');
		$("div.sealy-brand-info").stop(true, true);
		$("div.sealy-brand-image").stop(true, true);
		$("div.sealy-brand-menu").stop(true, true);
		$("div.environmental-footprint-info").css('display', 'none'); 
		$("div.environmental-footprint-image").css('display', 'none');  
		$("div.environmental-footprint-menu").css('display', 'none');
		$("div.environmental-footprint-info").stop(true, true); 
		$("div.environmental-footprint-image").stop(true, true);  
		$("div.environmental-footprint-menu").stop(true, true);
		
		if (!$("div.orthopedic-advisory-board-menu").is(":visible"))   
		{
			$('div.container').css("background-image", "url(images/index/background-image.jpg)"); 
			$("div.orthopedic-advisory-board-menu").slideDown("1000"); 
			$("div.orthopedic-advisory-board-info").delay("500").show( "slide", { direction: "right" } , 1000);	
			$("div.orthopedic-advisory-board-image").delay("1500").fadeIn("1500");
		}
	});
	
	
	
	$('div.header-columns').mouseover(function() {
		$("div.orthopedic-advisory-board-info").stop(true, true);
		$("div.orthopedic-advisory-board-image").stop(true, true); 
		$("div.orthopedic-advisory-board-menu").stop(true, true);	
		$("div.orthopedic-advisory-board-info").css('display', 'none');
		$("div.orthopedic-advisory-board-image").css('display', 'none');
		$("div.orthopedic-advisory-board-menu").css('display', 'none');									   
											   
		$("div.sealy-posturepedic-info").stop(true, true);
		$("div.sealy-posturepedic-image").stop(true, true); 
		$("div.sealy-posturepedic-menu").stop(true, true);	
		$("div.sealy-posturepedic-info").css('display', 'none');
		$("div.sealy-posturepedic-image").css('display', 'none');
		$("div.sealy-posturepedic-menu").css('display', 'none');	
											   
		$("div.environmental-footprint-info").stop(true, true);
		$("div.environmental-footprint-image").stop(true, true); 
		$("div.environmental-footprint-menu").stop(true, true);									   
		$("div.environmental-footprint-info").css('display', 'none'); 
		$("div.environmental-footprint-image").css('display', 'none');  
		$("div.environmental-footprint-menu").css('display', 'none'); 
		
		$("div.sealy-brand-menu").stop(true, true); 
		$("div.sealy-brand-info").stop(true, true); 
		$("div.sealy-brand-image").stop(true, true);  									  
		$("div.sealy-brand-menu").css('display', 'none'); 
		$("div.sealy-brand-info").css('display', 'none'); 
		$("div.sealy-brand-image").css('display', 'none'); 
		$('div.container').css("background-image", "url(images/index/background-text-image.jpg)"); 
	});
	
	$('div.footer').mouseover(function() {
		$("div.orthopedic-advisory-board-info").stop(true, true);
		$("div.orthopedic-advisory-board-image").stop(true, true); 
		$("div.orthopedic-advisory-board-menu").stop(true, true);	
		$("div.orthopedic-advisory-board-info").css('display', 'none');
		$("div.orthopedic-advisory-board-image").css('display', 'none');
		$("div.orthopedic-advisory-board-menu").css('display', 'none');									   
									   
		$("div.sealy-posturepedic-info").stop(true, true);
		$("div.sealy-posturepedic-image").stop(true, true);
		$("div.sealy-posturepedic-menu").stop(true, true);	
		$("div.sealy-posturepedic-info").css('display', 'none');
		$("div.sealy-posturepedic-image").css('display', 'none'); 
		$("div.sealy-posturepedic-menu").css('display', 'none');							   
									   
		$("div.environmental-footprint-info").stop(true, true); 
		$("div.environmental-footprint-image").stop(true, true); 
		$("div.environmental-footprint-menu").stop(true, true); 
		$("div.environmental-footprint-info").css('display', 'none'); 
		$("div.environmental-footprint-image").css('display', 'none');  
		$("div.environmental-footprint-menu").css('display', 'none'); 
									   
		$("div.sealy-brand-menu").stop(true, true); 
		$("div.sealy-brand-info").stop(true, true); 
		$("div.sealy-brand-image").stop(true, true);					
		$("div.sealy-brand-menu").css('display', 'none');  
		$("div.sealy-brand-info").css('display', 'none'); 
		$("div.sealy-brand-image").css('display', 'none'); 
		$('div.container').css("background-image", "url(images/index/background-text-image.jpg)"); 
	});
	
});



