var Layers = [];

function setLayers() {
	for (var i = 0; i < arguments.length; i++) {
		Layers[i] = arguments[i];
	}
}

function CloseLayers(nLayer) {
	for (var j = 0; j < Layers.length; j++ ) {
		ShowLayer(Layers[j]);
	}
	for (var i = 0; i < Layers.length; i++ ) { 
		if (Layers[i] != nLayer) {
			HideLayer(Layers[i]);
		}
	}
	if (!document.all && !NS6) {ns = setTimeout("CloseAll()",5000);}
}
function CloseAll() {
	for (var j = 0; j < Layers.length; j++) {HideLayer(Layers[j]);}
}

var cor = "";

function SetColor(color) {cor = color;}
function PutColor(cel){
	if (document.all) {document.all[cel].bgColor = cor;}
}
function TakeColor(cel){
	if (document.all) {document.all[cel].bgColor = "";}
}
