var ancien=0;
var version = "e3"
browserName = navigator.appName;          
browserVer = parseInt(navigator.appVersion);
	if (browserName == "Netscape" && browserVer >= 4) version = "n3";
	else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";
	else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";

function Restore(a) { //v2.0
	if (version == "n3" || version == "e4") {
	imgoff = document[a].src
		if (imgoff.indexOf ("_o") >=0 && ancien != a) {
		imgoff = imgoff.replace ("_o" , "_f" ) ;
		}
	document[a].src = imgoff
	return true;
	}
}
function swap(a) { //v2.0
	if (version == "n3" || version == "e4") {
	img = document[a].src
		if (img.indexOf ("_f") >=0) {
		img = img.replace ("_f" , "_o" ) ;
		}
	document[a].src = img
	return true;
	}
}
function click_image(ind){
	if (version == "n3" || version == "e4") {
	var oldancien = ancien;
	ancien = ind;
	if (oldancien!=0)
    	Restore(oldancien);
	}
}
function refresh(a) {
parent.frames['navi'].location=a ;
}

function popup(f, nom, w, h) {
window.open (f, nom, 'resizable,width=' + w + ',height=' + h)
}
function popup2(f, nom, w, h) {
window.open (f, nom, 'resizable,scrollbars=yes,width=' + w + ',height=' + h)
}
function popupwindow(nomfichier, w, h) {
	var a;
	a=window.open(nomfichier, 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=' + w +',height=' + h);
	
}

