var affbtn = -1;

function Changecntx(strFic,stop){
	//ChangeDiapo(strFic);
	if (Changecntx.arguments.length > 1){
		ChangeDiapo(strFic,stop);
	}else{
		self.location = strFic;
	}//end if
}//end function

function ChangeDiapo(strFic,stop){
	if (affbtn != -1){
		if (typeof(parent.ScriptFrame)!='undefined'){
			if (ChangeDiapo.arguments.length > 1){
				parent.ScriptFrame.formationFini = true;
				//parent.SripctFrame.formationCommencer = false;
			}else{
				parent.ScriptFrame.formationFini = false;
			}//end if
			parent.ScriptFrame.navAvecFleche = true;
			parent.ScriptFrame.cntxNav = strFic;
		}//end if
	}//endif
	self.location = strFic;
}//end if

function SearchCntx(strPg){
	var pg = new String(strPg);
	if (typeof(parent.ScriptFrame)!='undefined'){
		if (! parent.ScriptFrame.formationFini){
			if ( (parent.ScriptFrame.cntxNav.length>0)){
				affbtn = pg.indexOf(parent.ScriptFrame.cntxNav);
				//si pas bonne page regarde si il s'agit qd meme de la suivante
				if (affbtn==-1){
					affbtn = pg.indexOf(parent.ScriptFrame.arSuiv[parent.ScriptFrame.cntxNav]);
					if (affbtn!=-1){
						parent.ScriptFrame.cntxNav = parent.ScriptFrame.arSuiv[parent.ScriptFrame.cntxNav];
						if (parent.ScriptFrame.cntxNav.length<=0){
							parent.ScriptFrame.formationFini = true;
						}//endif
					}//end if
				}//end if
			}//end if
		}else{
			affbtn = 13; //tous sauf -1
		}//end if
	}//end if
}//end function

window.onLoad = SearchCntx(self.location);
