// JavaScript Documentfunction show(layerID, mode) {
function show(layerID, mode) {
var currentRef = document.getElementById(layerID).style

//Display modes 1 for on 0 for off
modes = new Array
modes[0] = 'none'
modes[1] = 'block'


	if(isNaN(mode)) {
		currentRef.display = (currentRef.display == 'none') ? '' : 'none';
	} else {
		currentRef.display = modes[mode]
	}
}