//   ____________________________________________________________________
//   Code written by Laurent FABRE
//   © 2000 - Laurent FABRE - lfabre@shoutingfish.com
//                                                                     o
//
//                                                            o
//                                      : : : :                  o
//                                  : : : : : ¡ : :                  o
//                       }   : : : : : : : : : : : : (       o
//                                  : : : : : : : :
//                                      : : : :
//   ____________________________________________________________________



// ----------------- BROWSER CHECK -----------------

var version = parseInt(navigator.appVersion);
var isNS4, isIE4, isMAC, v

if (navigator.appName.substring(0,8) == "Netscape") {
	isNS4 = true;
	doc = "document."; 
	sty = "";
	zon = "show";
}
if (navigator.appName.substring(0,9) == "Microsoft") {
	isIE4 = true;
	doc = "document.all.";
	sty = ".style";
	zon = "visible";
}


// ----------------- RUBRIQUES -----------------

var im = new Array()
var cliclic = 0
for (i=1,j=1;i<=5;i++,j++) {
		im[j] = new Image()
		im[j].src = "../images/rollover/all_r"+i+".gif"
		im[++j] = new Image()
		im[j].src = "../images/rollover/all_r"+i+"b"+".gif"
}
function show(qui) {
	if (qui != cliclic) {
		eval('document["r' + qui + '"].src = im[' + (qui*2) + '].src');
		showlayer('text'+cliclic,0)
		showlayer('text'+qui,1)
	}
}
function hide(qui) {
	if (qui != cliclic) {
		eval('document["r' + qui + '"].src = im[' + (qui*2-1) + '].src');
		showlayer('text'+cliclic,1)
		showlayer('text'+qui,0)
	}
}
function clic(qui) {
	
	if (cliclic && qui!=cliclic) eval('document["r' + cliclic + '"].src = im[' + (cliclic*2-1) + '].src');
	if (!qui) {
		showlayer('text'+cliclic,0)
		showlayer('text'+qui,1)
	}
	cliclic = qui
}


// -------------------- SHOWLAYER --------------------

function showlayer(nom,onoff) {
	(onoff)? eval('window.' + doc + nom + sty + '.visibility = "visible"') : eval('window.' + doc + nom + sty + '.visibility = "hidden"');
}