var comptearebour = setTimeout('netdaube=true',1);
var ns4 = (document.layers)? true:false;
var ie4 = (document.all)? true:false ;
var nav5 = (document.getElementById) ? true:false;
	if (nav5) {ie4=0; ns4=0}
	var sousmenuencours="menu_1";
function ouverture_div(nav){
	if (ns4){eval("document."+ nav +".visibility = 'visible'");}
	if (ie4){eval(nav +".style.visibility = 'visible'");}
	if (nav5){eval("document.getElementById('"+ nav +"').style.visibility = 'visible'");}
	}
function kill(nav){
	if (nav5){settimevar="document.getElementById('"+nav +"').style.visibility = 'hidden'";}
	if (ie4){settimevar=nav +".style.visibility = 'hidden'";}
	if (ns4){settimevar="document."+ nav +".visibility = 'hidden'";}
	comptearebour=setTimeout('eval(settimevar)',700);
	sousmenuencours=nav;
	}
function killkill(){
	if (nav5){killsousmenu = "document.getElementById('"+sousmenuencours +"').style.visibility = 'hidden'";}
	if (ie4){killsousmenu="document."+sousmenuencours +".style.visibility = 'hidden'";}
	if (ns4){killsousmenu="document."+ sousmenuencours +".visibility = 'hidden'";} 
	eval(killsousmenu);
	clearTimeout(comptearebour);
	}		
var docObj = (document.all) ? "document.all." : "document.";
var OldColor
var OldBorderColor

function chgColor(rowNum) {
	thisRow = eval(docObj  + "Class_" + rowNum)
	OldColor = thisRow.bgColor
	OldBorderColor = thisRow.borderColor
	thisRow.bgColor = "#FFA6A6"
	thisRow.borderColor = "#000000" ;
	clearTimeout(comptearebour);
    }

function RetColor(rowNum,nav) {
	thisRow = eval(docObj  + "Class_" + rowNum)
	thisRow.bgColor = OldColor
	thisRow.borderColor = OldBorderColor 
	kill(nav) ;
    }
function openWindow(url, name) {
	popupWin = window.open(url, name, 'scrollbars,resizable,width=530,height=420');
	window.self.name = 'Parent';
}
function go(label) {
	document.base.TGotoLabel("/",label);
	document.base.TPlay("/");
	}
function go2(label) {
	document.haut.TGotoLabel("/",label);
	document.haut.TPlay("/");
	}
function music() {
	document.haut.TGotoLabel("/","music");
	document.haut.TPlay("/");
	}

function visite() {
	window.open('visite.htm','visite','scrollbars=no,resizable=yes,width=530,height=420');
	}

function film() {
	window.open('film.htm','video','scrollbars=no,resizable=yes,width=200,height=200');
	}

function dico() {
	window.open('glossaire.htm','glossaire','scrollbars=no,resizable=yes,width=400,height=200');
	}

function shake(n) {
	if (self.moveBy) {
	for (i = 5; i > 0; i--) {
	for (j = n; j > 0; j--) {
	self.moveBy(0,i);
	self.moveBy(i,0);
	self.moveBy(0,-i);
	self.moveBy(-i,0);
	}}}
}