// JavaScript Document

function buttonOn(onLayer){
	clearOnLayers();
	regOnLayer(onLayer);
	document.all[onLayer].style.visibility='visible';
}

function buttonOff(onLayer){
	document.all[onLayer].style.visibility='hidden';
}

function buttonEverOn(onLayer){
	document.all[onLayer].style.visibility='visible';
	document.all[onLayer].all[0].href="#";
	document.all[onLayer].onmouseout=noFunc;
}


function noFunc(){}

var onLayerArr=new Array();

function regOnLayer(onLayer){
	onLayerArr.push(onLayer);
}

function clearOnLayers(){
	count=onLayerArr.length;
	for(i=0;i<count;i++){
		buttonOff(onLayerArr.pop());
	}
}
