on_dot = new Image(); on_dot.src="i/on_dot.gif";
off_dot = new Image(); off_dot.src="i/off_dot.gif";

function on(where){
document.images[where].src="i/on_dot.gif";
}

function off(where){
document.images[where].src="i/off_dot.gif";
}




var activelayer = 0;
var clicklayer = 0;
var initialized = navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4;

function showLayer(layerName) {
if (initialized) {
	hideLayer(activelayer);
	activelayer = layerName;
	document.all[layerName].style.visibility = 'visible';
	}
}

function clickLayer(layerName) {
if (initialized) {
	if (clicklayer) {
	clicklayer = 0;
	document.all[layerName].style.visibility = 'hidden';
	}
	else {clicklayer = 1;
	hideLayer(activelayer);
	activelayer = layerName;
	document.all[layerName].style.visibility = 'visible';
	}}
}

function hideLayer(layerName){
	if (initialized && activelayer && !clicklayer) {
	document.all[layerName].style.visibility = 'hidden';
	}
}

function show(where,where1){
if (where.style.display == "none") {where.style.display = "block";}
else {where.style.display = "none";}
if (where1.style.display == "none") {where1.style.display = "block";}
else {where1.style.display = "none";}
}