// Check if a menu has to be moved
function leftmenu (elem, amount) {
	
	var element = document.getElementById(elem);
	var curr_height = parseInt(element.style.height);
	var newh = 23 + amount + (20 * amount);
	
	if (curr_height < 23) {

		$(element).animate({ 
	    	height: newh + "px"
	    }, "slow" );
	
	} else {
		
		$(element).animate({ 
	    	height: "20px"
	    }, "slow" );
	
	}

};
