
<!--

if (IE4) {
	var $doc = document.all;
}
else {
	var $doc = document;
}

//------- preload boutons

flecheg_on = new Image();
flecheg_on.src = "images/b_flecheg_on.gif";
flecheg_off = new Image();
flecheg_off.src = "images/b_flecheg_off.gif";
fleched_on = new Image();
fleched_on.src = "images/b_fleched_on.gif";
fleched_off = new Image();
fleched_off.src = "images/b_fleched_off.gif";
flecheg2_on = new Image();
flecheg2_on.src = "images/b_flecheg2_on.gif";
flecheg2_off = new Image();
flecheg2_off.src = "images/b_flecheg2_off.gif";
fleched2_on = new Image();
fleched2_on.src = "images/b_fleched2_on.gif";
fleched2_off = new Image();
fleched2_off.src = "images/b_fleched2_off.gif";
flecheh_on = new Image();
flecheh_on.src = "images/b_flecheh_on.gif";
flecheh_off = new Image();
flecheh_off.src = "images/b_flecheh_off.gif";


//------- Fonction de passage pictos en ON
function act(nom, image) {
	$doc[nom].src = "images/" + image + "_on.gif";
}

//------- Fonction de passage pictos en OFF
function inact(nom, image) {
	if (nom != img_on) {
		if (nom != img_on2) {
			$doc[nom].src = "images/" + image + "_off.gif";
		}
	}
}

// ---------- Fonction d'ouverture des pop-up 
function pop_up(url,largeur,hauteur,nom) {
	window.open (url+".htm",nom,"left=10,top=10,width="+largeur+"px ,height="+hauteur+"px ,resizable=no,toolbar=no,status=no,menubar=no,scrollbars=no");
}

// ------ Fonction de défilement du menu equipes

function initdefil() {
	$top = 187;
	if (IE4) {
		$vitesse = 1;
		$bottom = 281;
	}
	if (NS4) {
		$vitesse = 1;
		$bottom = 284;
	}
	if (NS6) {
		$vitesse = 4;
		$bottom = 281;
	}
	if (pos == "off") {
		init_down()
	}
	if (pos == "on") {
		init_up()
	}
}
function init_down() {
	if (anim == 2) {
		clearTimeout(timer);
	}
	timer = setTimeout('anim_down()',1);
}
function init_up() {
	if (anim == 1) {
		clearTimeout(timer);
	}
	timer = setTimeout('anim_up()',1);
}
function anim_down() {
	pos = "on";
	anim = 1;
	x = x + $vitesse;
	init_pos();
	if (x >= $bottom) {
		anim = 0;
		x = $bottom;
		init_pos();
		clearTimeout(timer);
		return;
	}
	init_down()
}
function anim_up() {
	pos = "off";
	anim = 2;
	x = x - $vitesse;
	init_pos();
	if (x <= $top) {
		anim = 3;
		x = $top;
		init_pos();
		clearTimeout(timer);
		return;
	}
	init_up()
}
function init_pos() {
	if (IE4) {
		$doc['menu'].style.top = x;
	}
	if (NS4) {
		$doc['menu'].top = x;
	}
	if (NS6) {
		$doc.getElementById('menu').style.top = x;
	}
}

// ------ Fonction de défilement des CV
function defilement (num,sens) {
	
	$pos_cv = document.location.href.split('cv')[1].split('.htm')[0];
	$max_cv = 6;

	if (sens == "right") {

		if ($pos_cv < $max_cv) {
			window.location = "../pages/cv" + (parseInt($pos_cv)+1) + ".htm";
		}

		else if ($pos_cv >= $max_cv) {
			window.location = "../pages/cv1.htm";
		}
	}

	if (sens == "left") {

		if ($pos_cv > 1) {
			window.location = "../pages/cv" + (parseInt($pos_cv)-1) + ".htm";
		}

		else if ($pos_cv <= 1) {
			window.location = "../pages/cv" + (parseInt($max_cv)) +".htm";
		}
	}	
}

//-->
