/*		_______________________________________________
		| JavaScript Document | FS_ fonction standard |
		¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
*/
// • fonction lien simple
function FS_go(lien) {
	document.location=lien;
}
// • fonction precharger des images
function FS_prIm() {
	tbArgu=FS_prIm.arguments;
	var tbImg = new Array();
	for (i=0;i<tbArgu.length;i++) {
		tbImg[i] = new Image();
		tbImg[i].src ="images/"+tbArgu[i];
	}
}
// • fonction intervertir image
function FS_ii(nom,lien) {
	document.getElementById(nom).src = 'images/'+lien;
}
// fonction masquer une div : peu contenir un nombre indefini d'arguments conrespondants aux id sauf le dernier etant le type d'affichage block ou none facultatif pour block
function FS_dispDiv(){
	tbArgu=FS_dispDiv.arguments;
	nba=tbArgu.length-1;
	aff=tbArgu[nba];	
	if ((aff!="block")&&(aff!="none")) {
		aff="block";
		nba++;
	}	
	for (i=0;i<nba;i++) {
		id=tbArgu[i];
		if (document.getElementById) {
			document.getElementById(id).style.display=aff;
		}
		else if (document.all) {
			document.all[id].style.display=aff;
		}
		else if (document.layers) {
			document.layers[id].display=aff;
		}
	}
}
// fonction intervertir background color
function FS_ibg(id,couleur){
	if (document.getElementById) {
		document.getElementById(id).style.background=couleur;
	}
	else if (document.all) {
		document.all[id].style.background=couleur;
	}
	else if (document.layers) {
			document.layers[id].background=couleur;
	}
}
/*	
// • fonction precharger un groupe d'images avec nom incrementé
function FS_prImGr(nom,type,nombre,verif) {
	if (!nombre) nombre=1;
	if (!aig) {
		aig=true;
		var tbImg = new Array();
		for (i=0;i<nombre;i++) {
			tbImg[i] = new Image();
			tbImg[i].src = "images/"nom+i+"."+type;
		}
	}	
	if (!verif){
		var tbControl = new Array();
		var nbVerif = 0;
		for (i=0;i<nombre;i++) {
			if (tbImg[i].complete) {
				tbControl[i]=1;
			}	
		}
		var compt = 0;
		for (i=0;i<tbImg.length;i++) {
				compt += tbControl[i];
				
		}
		if (compt==tbImg.length) {
			alert("nombre de verif = "+nbVerif+"\ntemps = "+nbVerif/10+" secondes\ntable de controle = "+tbControl+"\nprechargement ok");
			return true;
		} else {
			nbVerif++;
			setTimeout('verif()',100);
	}	
}
*/
	
	