/**
 * Common javascript functions
 */

String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };

function adjustMenu() {
	var contentDiv = document.getElementById('page');
	
	var menu = document.getElementById('menu');
	menu.style.height = (contentDiv.offsetHeight + 1) - 150 + "px";
	if (document.all) {
		menu.style.height = (contentDiv.offsetHeight + 1) - 150;
	}
}
