addOnLoad(init);

var size = 100;

function init() {
	 document.getElementById('increaseFont').onclick = increaseFont;
	 document.getElementById('decreaseFont').onclick = decreaseFont;
}

function increaseFont() {
	
	if (size < 110) {
		var theContent = document.getElementById('content-area');
		var theMenu = document.getElementById('main-menu');
		
		size += 5;
		
		theMenu.style.fontSize = size + '%';
		theContent.style.fontSize = size + '%';
	}
	
	return false;
}

function decreaseFont() {
	if (size > 95) {
		var theContent = document.getElementById('content-area');
		var theMenu = document.getElementById('main-menu');
		
		size -= 5;
		
		theMenu.style.fontSize = size + '%';
		theContent.style.fontSize = size + '%';
	}
	
	return false;
}

function addOnLoad(newFunc) {
	var oldFunc = window.onload;
	
	if(typeof oldFunc == 'function') {
		window.onload = function() {
			oldFunc();
			newFunc();
		}
	} else {
		window.onload = newFunc;
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
}