// Function to show the submenu in a nice way
function showSubmenu() {
	if ($('submenu').visible()) {
		// Do nothing
	}
	else {
		// Show submenu
		$('submenu').show(); 		
	}
}

// Function to hide the submenu in a nice way
function hideSubmenu() {
	if ($('submenu').visible()) {
		// Hide submenu
		$('submenu').hide(); 
	}
}