Nav = false;
IE = false;
DOM = false;
pageOK = "false"
var Topless = new Array("top10","top2000","top2001","top2002","top2003","top2004","top2005","top2006","top2007","top2008","top2009","top2010","top2011");

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()", 18000)
        } 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 getObj(objname) {
	if (DOM) return document.getElementById(objname);
	if (Nav) return eval("document."+objname);
	return document.all(objname); 
}

function showTop(name) {
	status='hidden';
	for(i=0;i<Topless.length;i++) {
		if (name==Topless[i]) status='visible'; else status = 'hidden';
		obj=getObj(Topless[i]);
		if (obj != 'Undefined' && obj != null && obj != '') {
			if (DOM) document.getElementById(Topless[i]).style.visibility=status;
			else if (Nav) eval("document."+Topless[i]+".visibility=status");
			else document.all(Topless[i]).style.visibility=status;
		}
	}	
}

function hideSub()     {showTop();}
function showTop10()   {showTop('top10');}
function showTop2000() {showTop('top2000');}
function showTop2001() {showTop('top2001');}
function showTop2002() {showTop('top2002');}
function showTop2003() {showTop('top2003');}
function showTop2004() {showTop('top2004');}
function showTop2005() {showTop('top2005');}
function showTop2006() {showTop('top2006');}
function showTop2007() {showTop('top2007');}
function showTop2008() {showTop('top2008');}
function showTop2009() {showTop('top2009');}
function showTop2010() {showTop('top2010');}
function showTop2011() {showTop('top2011');}

