// Fonction d'ouverture de fenetre popup centree// Simon - egzakt.com// 2004-10-28//function egz_openwindow(lien,cible,w,h) {	var _win;	_win = window.open(lien,cible,'width=' + w + ',height=' + h + ',top=' + (screen.height - 400)/2 + 'left='+ (screen.width - 400)/2);	_win.moveTo((screen.width - w)/2,(screen.height - h)/2);	_win.focus();	return _win;}// Fonction d'ouverture de fenetre popup centree// Simon - egzakt.com// 2004-10-28//function egz_openwindow_param(lien,cible,w,h,param) {	var _win;	_win = window.open(lien,cible,param);	_win.moveTo((screen.width - w)/2,(screen.height - h)/2);	_win.focus();	return _win;}/* * Affichage d'un contenu suivant *  * @copyright	egzakt.com * * @version 	2007/06/05 * @package		EDU-083 * @author 		Emilie */function bloc_deroulant(objet) {	objet.parent().next().slideToggle("fast");	objet.toggleClass('selected');	return false;}/* * Affichage d'un contenu suivant *  * @copyright	egzakt.com * * @version 	2007/10/23 * @package		AUM-068 * @author 		Emilie */function item_deroulant(objet) {	objet.parent().next().slideToggle("fast");	objet.toggleClass("selected");	return false;}/* * Scrolling dans les fiches *  * @copyright	egzakt.com * * @package		BUI */var navGamme = new Object;navGamme.navWidth = 390;navGamme.visibleGammes = 3;navGamme.movingLeft = false;navGamme.movingRight = false;navGamme.myCtr = 0;navGamme.flecheGaucheActif = true;navGamme.flecheDroiteActif = true;function setFleches(){	if(parseInt($("#selecteur_conteneur div").css("margin-left")) > - navGamme.visibleGammes){		$("#selecteur_conteneur div").css("margin-left",0)	}	myPos = $("#selecteur_conteneur div").css("margin-left");	if((parseInt(myPos) < navGamme.visibleGammes) && (parseInt(myPos) >= 0)){		$("#fleche_gauche").hide();			} else {		$("#fleche_gauche").show();		navGamme.flecheGaucheActif = true;					}		newPos = parseInt(myPos) - navGamme.navWidth;	maxVisibleProd = Math.round(Math.abs(newPos/navGamme.navWidth) * navGamme.visibleGammes);	if(maxVisibleProd >= $("#selecteur_conteneur div").children().length){		$("#fleche_droite").hide();		navGamme.flecheDroiteActif = false;	} else {		$("#fleche_droite").show();		navGamme.flecheDroiteActif = true;	}}function flecheGaucheClick(){	if(!navGamme.movingLeft){		navGamme.movingLeft = true;		myPos = $("#selecteur_conteneur div").css("margin-left");		if (window.myPos) {			myPos = myPos.replace(/px/gi,"")			if (myPos < -navGamme.visibleGammes){				newPos = parseInt(myPos) + navGamme.navWidth;				$("#selecteur_conteneur div").animate({marginLeft:newPos}, "slow", "backout",function(){navGamme.movingLeft = false;setFleches();});			} else {				navGamme.movingLeft = false;			}		}	}	return false;}function flecheDroiteClick(){	if(!navGamme.movingRight){		navGamme.movingRight = true;		myPos = $("#selecteur_conteneur div").css("margin-left");		newPos = parseInt(myPos) - navGamme.navWidth;		maxVisibleProd = Math.round(Math.abs(newPos/navGamme.navWidth) * navGamme.visibleGammes);		if(maxVisibleProd <= $("#selecteur_conteneur div").children().length){			$("#selecteur_conteneur div").animate({marginLeft:newPos}, "slow", "backout",function(){navGamme.movingRight = false;setFleches();});		} else {			navGamme.movingRight = false;		}	}	return false;}function listeGammesContainerChildrenEach(obj){	navGamme.myCtr += 1;		if(obj.attr("class")) {		myPos = $("#selecteur_conteneur div").css("margin-left");		myPos = myPos.replace(/px/gi,""); 		newPos = myPos - ((Math.ceil(navGamme.myCtr/navGamme.visibleGammes)-1) * navGamme.navWidth);		$("#selecteur_conteneur div").css("margin-left",newPos);		setFleches();	}}function toggle_cartes() {	$('#carte_quebec').toggle(); 	$('#carte_amerique').toggle(); 	return false;}