/*		_______________________________________________
		| JavaScript Document | FS_ fonction standard |
		ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
*/
winh = screen.availHeight - 30;
//  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 popup(lk,x,y) {
	window.open(lk, '_blank', 'width='+x+', height='+y+', top=0, left=0, toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes')
}
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');
}

	