// JavaScript Document


var CurrentMenu = "furniture";

function ShowSubMenu(Element) {

	// When we hover over a main menu button hide any side content
	document.getElementById(CurrentSideContent).style.display = "none";
	
	// If we don't want a submenu shown, pass 'none' to this function
	if(Element != 'none') {
	
		// Hide the current submenu that is being shown
		document.getElementById(CurrentMenu).style.display = "none";
		
		// Show the new submenu
		document.getElementById(Element).style.display = "block";
		
		// Set the current open submenu 
		CurrentMenu = Element;
	} else {
	
		// If no submenu is to be displayed, then hide the current submenu and show nothing
		document.getElementById(CurrentMenu).style.display = "none";
	}
}

var CurrentSideContent = "spring";

function ShowSideContent(Element) {

		// Hide the current side content that is being shown
		document.getElementById(CurrentSideContent).style.display = "none";
		
		// Show the new side content
		document.getElementById(Element).style.display = "block";
		
		// Set the current open side content 
		CurrentSideContent = Element;
}