/*		_______________________________________________
		| JavaScript Document | FS_ fonction standard |
		¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
*/
winx = screen.availWidth - 12;
winy = screen.availHeight - 35;
// • 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 intervertir color
function FS_ic(id,couleur){
	if (document.getElementById) {
		document.getElementById(id).style.color=couleur;
	}
	else if (document.all) {
		document.all[id].style.color=couleur;
	}
	else if (document.layers) {
			document.layers[id].color=couleur;
	}
}
// fonction popup
function FS_pop(lk,x,y) {
	if (x=='max') x=winx;
	if (y=='max') y=winy;
	window.open(lk, '_blank', 'width='+x+', height='+y+', top=0, left=0, toolbar=no, location=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, directories=no');
	return false;
}
function FS_popTel(lk) {
	window.open(lk, 'phone', 'toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=300, height=320');
	return false;
}

function FS_popCart(lk) {
	window.open(lk, 'ccard', 'toolbar=0, location=0, directories=0, status=1, scrollbars=1, resizable=1, copyhistory=0, menuBar=0, width=550, height=575');
	return false;
}

function FS_popAff(id,idc) {
	lk='http://www.allopass.com/show_aff.php4?ID='+id+'&IDC='+idc;
	window.open(lk, 'Aff', 'toolbar=1, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=1, width=600, height=450');
}
// sawp page
function FS_sp(choix){
  eval("this.location='"+choix.options[choix.selectedIndex].value+"'");
}
/*	
// • 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);
	}	
}
*/
	
	