function getStyleObject(MenuID) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(MenuID)) {
	// W3C DOM
	return document.getElementById(MenuID).style;
    } else if (document.all && document.all(MenuID)) {
	// MSIE 4 DOM
	return document.all(MenuID).style;
    } else if (document.layers && document.layers[MenuID]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[MenuID];
    } else {
	return false;
    }
} // getStyleObject

function Menu(MenuID,OnOff) {
    var StyleObject = getStyleObject(MenuID);
    if(StyleObject) {
		if(OnOff == 1) {
	 		StyleObject.visibility = 'visible';
			return true;
	 	}
		if(OnOff == 0) {
	 		StyleObject.visibility = 'hidden';
			return true;
	 	}
    } else {
	return false;
    }
} // Menu

function openPoppari(PoppariFile,PoppariWidth,PoppariHeight) {
	PopPop = window.open( PoppariFile,'kampelaPop','width='+PoppariWidth+',height='+PoppariHeight+',scrollbars=no,menubar=no,toolbar=no,resize=no' );
}
