Nav = false;
IE = false;
DOM = false;
pageOK = "false"


function test() {
    if (parseInt(navigator.appVersion) >= 4) {
      if (navigator.appName == "Netscape") {
          Nav = true;
      } else {
        IE = true;
      }
      if (document.getElementById) {
        DOM=true;
	IE=false;
	NS=false;
      }
    } else {
      return;
    }
}

function archivesLayer() {
	if (pageOK == "true") {
		if (DOM) {
			document.getElementById('archivesOn').style.visibility='visible';
			document.getElementById('archives').style.visibility='hidden';
		} else {
			if (Nav == true) {
				document.archivesOn.visibility = 'visible';
				document.archives.visibility = 'hidden';
			} else {
				document.all('archivesOn').style.visibility = "visible";
				document.all('archives').style.visibility = "hidden";
			}
		}
		startOut();
	} else {
		var rien = "null";
	}
}

function startOut() {
        if (pageOK == "true") {
                timerOut = setTimeout("resetIMG()", 2000)
        } else {
                var rien = "null";
        }
}

function resetIMG() {
        if (DOM) {
                document.getElementById('archivesOn').style.visibility='hidden';
                document.getElementById('archives').style.visibility='visible';
        } else {
                if (Nav == true) {
                        document.archivesOn.visibility = 'hidden';
                        document.archives.visibility = 'visible';
                } else {
                        document.all('archivesOn').style.visibility = "hidden";
                        document.all('archives').style.visibility = "visible";
                }
        }
        clearTimeout(timerOut);
}

function hideSub() {
	showTop('hidden','hidden','hidden','hidden');
}

function showTop10() {
	showTop('visible','hidden','hidden','hidden');
}

function showTop(top10,top2001,top2000,top2002) {
	if (DOM) {
		document.getElementById('top10').style.visibility=top10;
		document.getElementById('top2001').style.visibility=top2001;
		document.getElementById('top2000').style.visibility=top2000;
		document.getElementById('top2002').style.visibility=top2002;
	} else {
		if (Nav  == true) {
			document.top10.visibility = top10;
			document.top2001.visibility = top2001;
			document.top2000.visibility = top2000;
			document.top2002.visibility = top2002;
		} else {
			document.all('top10').style.visibility = top10;
			document.all('top2001').style.visibility = top2001;
			document.all('top2000').style.visibility = top2000;
			document.all('top2002').style.visibility = top2002;
		}
	}
}



function showTop2001() {
	showTop('hidden','visible','hidden','hidden');
}


function showTop2000() {
	showTop('hidden','hidden','visible','hidden');

}
function showTop2002() {
	showTop('hidden','hidden','hidden','visible');

}


