<!--
function showMenu(menuNumber, eventObj) {
    hideAllMenus();
    var menuId = 'submenu' + menuNumber;
    if(changeObjectVisibility(menuId, 'visible')) {
		//var menuTitle = getStyleObject('mainbutton' + menuNumber);
		//menuTitle.Color = '#ff0000';
		eventObj.cancelBubble = true;
		return true;
    } else {
		return false;
    }
}

var numMenus = 7;

function hideAllMenus() {
    for(counter = 1; counter <= numMenus; counter++) {
		changeObjectVisibility('submenu' + counter, 'hidden');
		//var menuTitle = getStyleObject('mainbutton' + counter);
		//menuTitle.Color = '#006699';
    }
}

document.onclick = hideAllMenus;

function checkBox(){
	// if the right column doesn't fit on the users monitor, it will be removed
	var windowWidth = getWindowWidth();
	var rightTop = (getStyleObject('section1'))? 275: 175;
	var rightTop = (getStyleObject('thisishome'))? 275: 175;
	if (windowWidth>987){
		moveObject('rightCol', 758, rightTop)
	} else {
		moveObject('rightCol', -500, rightTop)
	}
	
	// set the logofooter
	if (document.getElementById) { 
		var windowHeight = getWindowHeight();
		var noPx = document.childNodes ? 'px' : 0;
		if (windowHeight > 0) {
			var contentElement = document.getElementById('centerCol');
			var contentTop = parseInt(contentElement.style.top);
			var contentHeight = contentElement.offsetHeight + 20 + rightTop;
			
			var footerElement = document.getElementById('floaterbottom');
			var footerHeight  = footerElement.offsetHeight;
			if (windowHeight - (contentHeight + footerHeight) >= 0) {
				footerElement.style.position = 'absolute';
				footerElement.style.top = (windowHeight - footerHeight) + 'px';
				//window.status = getStyleObject('centerCol').top;
			}
			else {
				footerElement.style.top = contentHeight + 'px';
				//window.status = 'static';
			}
		}
	}
}


window.onresize = function() {
	checkBox();
}
window.onload = function() {
	checkBox();
}

// -->