<!--
function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	// we couldn't find the object, so we can't change its visibility
	alert('we couldnt find the object, so we cant change its visibility');
	return false;
    }
} // changeObjectVisibility

function hideAllMenus() {
	changeObjectVisibility('header_menu_products_submenu', 'hidden');
	//changeObjectVisibility('header_menu_quality_submenu', 'hidden');
	changeObjectVisibility('header_menu_about_submenu', 'hidden');
	changeObjectVisibility('header_menu_suggestions_submenu', 'hidden');
	//var menuTitle = getStyleObject('mainbutton' + counter);
	//menuTitle.Color = '#006699';
}

function showMenu(menuName, eventObj) {
    hideAllMenus();
    if(changeObjectVisibility(menuName, 'visible')) {
		//var menuTitle = getStyleObject('mainbutton' + menuNumber);
		//menuTitle.Color = '#ff0000';
		eventObj.cancelBubble = true;
		return true;
    } else {
		return false;
    }
}


function getWindowHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
			}
		}
	}
	return windowHeight;
} // getWindowHeight

function checkBox(){
	// set the logofooter
	if (document.getElementById) { 
		var windowHeight = getWindowHeight();
		//var noPx = document.childNodes ? 'px' : 0;
		if (windowHeight > 0) {
			var contentElement = document.getElementById('mainContent');
			var contentTop = parseInt(contentElement.style.top);
			var contentHeight = contentElement.offsetHeight + 20 + 175;
			
			var footerElement = document.getElementById('footerLayer');
			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();
}// JavaScript Document
-->