function formreset(form){
eval('document.forms.'+form+'.reset();');
	}
	
	function checkmail(form,field){
eval('ustring=document.'+form+'.'+field+'.value;');
var email_ok=0;
usrmail=new Array('','');
pstring=new String(ustring);
usrtest=pstring.indexOf('@');
if(usrtest==-1){email_ok=0;}
else{
		usrmail=pstring.split('@');
		  if (!usrmail[0] || !usrmail[1] || usrmail[1]==' ' || usrmail[0]=='' || usrmail[1]=='' ){email_ok=0;}
		    else{
		    	srvmail=new Array('','');
					srvmail=usrmail[1].split('.');
					 if (!srvmail[0] || !srvmail[1] || srvmail[0]=='' || srvmail[1]==''){email_ok=0;}
					 else{email_ok=1;};
		   	 };
 }
if(email_ok==0){
   alert("[Veuillez saisir un email valide]");
   eval('document.'+form+'.'+field+'.focus();');
  email_ok="";
} 
else{eval('document.'+form+'.submit();');}
//return;
}


function mOverV3(src){ //fond_rub1.gif //fond_rub1over.gif
	if(src.lastIndexOf('over.')>0){}
 else{ src=src.substring(0,src.lastIndexOf('.'))+'over'+src.substring(src.lastIndexOf('.'),src.length);}
   return src;}
function mOutV3(src){
	//alert(src);
  if(src.lastIndexOf('over.')>0){
src=src.substring(0,src.lastIndexOf('over.'))+''+src.substring(src.lastIndexOf('.'),src.length);}
  return src;}

function mOver(src){
	if(src.lastIndexOf('over.')>0){}
 else{ src=src.substring(0,src.lastIndexOf('.'))+'over'+src.substring(src.lastIndexOf('.'),src.length);}
   return src;}
function mOut(src){
	//alert(src);
  if(src.lastIndexOf('over.')>0){
src=src.substring(0,src.lastIndexOf('over.'))+''+src.substring(src.lastIndexOf('.'),src.length);}
  return src;}

opac=100;transimg='';
function imgtrans(){
  opac=opac+10;
	eval('document.getElementById("scroll").style.opacity=opac;');
	eval('document.getElementById("scroll").style.filter="alpha(opacity:'+opac+')";'); //IE
  //eval('document.getElementById("scroll").style="filter:-moz-opacity:'+opac+' ;";');//filter:alpha(opacity: '+opac+');opacity: '+opac+'";');
  // document.getElementById(\"imgTtext\").style.color='rgb('+(opac*255/100)+','+(opac*255/100)+','+(opac*255/100)+')';
 if(opac==100){window.clearTimeout(transimg);}//outtransimg=window.setTimeout(\"outimgtrans()\",1000);
 else{transimg=window.setTimeout("imgtrans()",10);} //window.clearTimeout(transimg);
}
function midtrans(){
	document.getElementById('scroll').style.pixelTop=(tmptop+move);//IE
 document.getElementById('scroll').style.top=(tmptop+move)+'px';//Firefox
 imgtrans();
}
function outimgtrans(){
	opac=opac-10;
	eval('document.getElementById("scroll").style.opacity=opac;');
	eval('document.getElementById("scroll").style.filter="alpha(opacity:'+opac+')";'); //IE
  //eval('document.getElementById("scroll").style="filter:-moz-opacity:'+opac+' ;";');//filter:alpha(opacity: '+opac+');opacity: '+opac+'";');
 //document.getElementById(\"imgTtext\").style.color='rgb('+(opac*255/100)+','+(opac*255/100)+','+(opac*255/100)+')';
if(opac==0){window.clearTimeout(outtransimg);midtrans();}//transimg=window.setTimeout(\"imgtrans()\",1000);
else{outtransimg=window.setTimeout("outimgtrans()",10);}//window.clearTimeout(outtransimg);}
}


function nextpage(sign){
 	(sign=="up" || sign=="+")?move=-textH+00: move=textH-00;
 //tmptop=document.getElementById('scroll').style.pixelTop;
 //tmptop=document.getElementById('scroll').style.top;
 //tmptop=getAbsoluteTop("scroll");
 tmptop=document.getElementById("scroll").offsetTop;
// alert(tmptop+" + "+move+" (- "+texttop+") = "+(tmptop+move));
 if(tmptop+move>=0){tmptop=-move-8;}
 //outimgtrans();
 //alert(move);
 	document.getElementById('scroll').style.pixelTop=(tmptop+move);//IE
 document.getElementById('scroll').style.top=(tmptop+move)+'px';//Firefox
 //scrollT=getAbsoluteTop("scroll");
	//alert(scrollT);
	
setprevnext();
// readanchor(); //supprimé version split
}

offset=0;
pkey='';
function setprevnext(){
	 tmptop=getAbsoluteTop("scroll");
	document.getElementById("textnext").style.visibility="hidden";
	document.getElementById("textprev").style.visibility="hidden";
	//alert(-(tmptop)+"+"+texttop+">  PREV >"+0);
	if(  -(tmptop)+texttop > 8 ){  //alert(-(tmptop)+" >  PREV >"+0);
	  document.getElementById("textprev").style.visibility="visible";
		}
		//alert(fullH +" < NEXT<"+(bigH+tmptop));
	if(fullH < bigH+tmptop ){  //alert(fullH +" < NEXT<"+(bigH+tmptop));
	  document.getElementById("textnext").style.visibility="visible";//alert('nextOK');
	}
	if(pkey=="histoire" && document.getElementById("textnext").style.visibility=="hidden" ){
		     window.setTimeout(function(){document.getElementById("linknext").href="histoire-fromage-brebis-2.html";
					     document.getElementById("linknext").onclick=function (){ };
					    document.getElementById("textnext").style.visibility="visible";},500);
		     }
	if(pkey=="savoir-faire" && document.getElementById("textnext").style.visibility=="hidden" ){
		     window.setTimeout(function(){document.getElementById("linknext").href="preparation-fromage-brebis-2.html";
					     document.getElementById("linknext").onclick=function (){ };
					    document.getElementById("textnext").style.visibility="visible";},500);
		     }	     

	  if(pkey=="savoir-faire3" && document.getElementById("textnext").style.visibility=="hidden"){
		     window.setTimeout(function(){document.getElementById("linkprev").href="javascript:nextpage();//";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     }
		 if(pkey=="savoir-faire3" && document.getElementById("textprev").style.visibility=="hidden"){
		     window.setTimeout(function(){document.getElementById("linkprev").href="preparation-fromage-brebis-2.html";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     }
		if(pkey=="savoir-faire3" && document.getElementById("textnext").style.visibility=="hidden" ){
		     window.setTimeout(function(){document.getElementById("linknext").href="preparation-fromage-brebis-4.html";
					     document.getElementById("linknext").onclick=function (){ };
					    document.getElementById("textnext").style.visibility="visible";},500);
		     }
	if(pkey=="nature" && document.getElementById("textnext").style.visibility=="hidden" ){
		     window.setTimeout(function(){document.getElementById("linknext").href="nature-2.html";
					     document.getElementById("linknext").onclick=function (){ };
					    document.getElementById("textnext").style.visibility="visible";},500);
		     }
	  if(pkey=="savoir-faire4" && document.getElementById("textnext").style.visibility=="hidden"){
		     window.setTimeout(function(){document.getElementById("linkprev").href="javascript:nextpage();//";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     }
		if(pkey=="savoir-faire4" && document.getElementById("textprev").style.visibility=="hidden"){
		     window.setTimeout(function(){document.getElementById("linkprev").href="preparation-fromage-brebis-3.html";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     } 
		 if(pkey=="produits2" && document.getElementById("textnext").style.visibility=="hidden"){
		     window.setTimeout(function(){document.getElementById("linkprev").href="javascript:nextpage();//";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     }
		 if(pkey=="produits2" && document.getElementById("textprev").style.visibility=="hidden"){
		     window.setTimeout(function(){document.getElementById("linkprev").href="fromage-brebis-1.html";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     } 
	 //tmphtml=tmphtml.replace(('<a name="tmpanc" id="tmpanc" class="tmpanc" >'+word+'</a>'),word);
		//document.getElementById('scroll').innerHTML=tmphtml;
	//tmphtml=new String(document.getElementById('scroll').innerHTML);
	//tmphtml=document.getElementById('scroll').innerHTML;
/*	tmphtml=tmphtml.replace(('<a name="tmpanc" id="tmpanc" class="tmpanc" >'),'<a>');
	document.getElementById('scroll').innerHTML=tmphtml;
	ratio=400;newnum=new Number(textH);
	offset=-document.getElementById("scroll").offsetTop;
	for(i=1;i<=10;i++){
		newoffset=(i*ratio+offset);
			word=tmphtml.substr(newoffset,15);
			//alert(word);//  (/_ON.gif/g,".gif");
			 tmphtml=tmphtml.replace(('<a name="tmpanc" id="tmpanc" class="tmpanc" >'),'<a>');
			 //tmphtml=tmphtml.replace(('</a name="tmpanc" id="tmpanc" class="tmpanc" >'),'');
		document.getElementById('scroll').innerHTML=tmphtml;
      tmphtml=tmphtml.replace(word,('<a name="tmpanc" id="tmpanc" class="tmpanc" >'+word+'</a>'));
			document.getElementById('scroll').innerHTML=tmphtml;
			 tmpanc=getAbsoluteTop("tmpanc")-texttop;
			newanc=new Number(tmpanc);
			   if (tmpanc<textH){//alert(word+" : "+tmpanc+" <<< "+textH+" \n \n ratio : "+ratio); 
				   //haut
				   if(newanc<0){ratio=-newanc;offset-=newanc;}
				   if(Math.abs(newanc)<(15)){alert("HAUT :\n"+word+" \n "+newnum+" "+newanc );
			     	   if(navigator.userAgent.indexOf('Gecko')>0){
	              document.getElementById('scroll').style.top=-(newnum+newanc-34)+'px';}//FF
			     	  else{document.getElementById('scroll').style.pixelTop+=(-(newanc));}//IE
 							//document.getElementById("textcontent").style.Height=(textH-Math.abs(newanc))+"px";document.getElementById("textcontent").style.clip="rect(0px 440px "+(textH-Math.abs(newnum-newanc))+"px 0px)";textH-=Math.abs(newnum-newanc); 
			     	  //break;
			     	  ratio=400;offset+=(-Math.abs(newanc));
			     	  tmphtml=tmphtml.replace(('<a name="tmpanc" id="tmpanc" class="tmpanc" >'+word+'</a>'),word);
						  document.getElementById('scroll').innerHTML=tmphtml;
						  }//bas
				   if((newnum-newanc)<(ratio/2)){ratio=(ratio/2);offset+=(i*ratio);}
			     if(Math.abs(newnum-newanc)<(15)){alert("BAS :\n"+word+" "+newnum+" "+newanc );
			     	  document.getElementById("textcontent").style.height=(textH-Math.abs(newnum-newanc))+"px";document.getElementById("textcontent").style.clip="rect(0px 440px "+(textH-Math.abs(newnum-newanc))+"px 0px)";textH-=Math.abs(newnum-newanc); 
			     	  break;}
			     }
			else{alert("EXIT : \n"+word+" : "+tmpanc+" >>> "+textH);
				break;}
		    tmphtml=tmphtml.replace(('<a name="tmpanc" id="tmpanc" class="tmpanc" >'+word+'</a>'),word);
			  document.getElementById('scroll').innerHTML=tmphtml;
			  }/**/
			    
			    }
	
function setmenu(subnum){tmpsrcx=new Array();newimg=new Array();
//	alert(subnum);
/*	for(i=1;i<anchor_arr.length;i++){eval('document.getElementById("p_'+i+'").style.visibility="hidden";');}
		eval('document.getElementById("p_'+subnum+'").style.visibility="visible";');
	 // top -207 (texttop)
	 //et bloquer mecanisme chgt img menu par suiv/prec   OU ajout page ...
*/	//document.getElementById('scroll').innerHTML=arr[subnum];//document.getElementById('scroll').pixelTop=0;
 //  alert(document.getElementById('scroll').style.pixelTop);
	for(i=anchor_arr.length-1;i>0;i--){
    	if(i!=subnum){
    		  eval('tmpsrcx['+i+']=document.getElementById("imgr'+i+'").src;');
		      newimg[i]=mOut(tmpsrcx[i]);
		      //alert(tmpsrcx);
		      eval('document.getElementById("imgr'+i+'").src="'+newimg[i]+'";');
		      eval('document.getElementById("imgr'+i+'").onmouseout=function (){this.src=mOut("'+newimg[i]+'");};');
        }
      }
    
     eval('tmpsrc2=document.getElementById("imgr'+subnum+'").src;');
     newimg2=mOver(tmpsrc2);
     eval('document.getElementById("imgr'+subnum+'").src="'+newimg2+'";');
     eval('document.getElementById("imgr'+subnum+'").onmouseout=function (){};');
     oldtop=0; 
    if(subnum==1){	oldtop=document.getElementById('scroll').style.pixelTop;document.getElementById('scroll').pixelTop=0;}

 
	if(pkey=="histoire2" ){
		     window.setTimeout(function(){document.getElementById("linkprev").href="histoire-fromage-brebis-1.html";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     } 
  if(pkey=="produits2" ){
		     window.setTimeout(function(){document.getElementById("linkprev").href="fromage-brebis-1.html";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     } 
	if(pkey=="produits" ){
		     window.setTimeout(function(){document.getElementById("linknext").href="fromage-brebis-2.html";
					     document.getElementById("linknext").onclick=function (){ };
					    document.getElementById("textnext").style.visibility="visible";},500);
		     }
  if(pkey=="savoir-faire2" ){
		     window.setTimeout(function(){document.getElementById("linkprev").href="preparation-fromage-brebis-1.html";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     } 
	if(pkey=="savoir-faire3" ){
		     window.setTimeout(function(){document.getElementById("linkprev").href="preparation-fromage-brebis-2.html";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     } 
  if(pkey=="savoir-faire4" ){
		     window.setTimeout(function(){document.getElementById("linkprev").href="preparation-fromage-brebis-3.html";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     } 
		 
   if(pkey=="savoir-faire2" ){
		     window.setTimeout(function(){document.getElementById("linknext").href="preparation-fromage-brebis-3.html";
					     document.getElementById("linknext").onclick=function (){ };
					    document.getElementById("textnext").style.visibility="visible";},500);
		     } 
   if(pkey=="consommation" ){
		     window.setTimeout(function(){document.getElementById("linknext").href="choisir-fromage-brebis-2.html";
					     document.getElementById("linknext").onclick=function (){ };
					    document.getElementById("textnext").style.visibility="visible";},500);
		     }
 if(pkey=="consommation2" ){
		     window.setTimeout(function(){document.getElementById("linkprev").href="choisir-fromage-brebis-1.html";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     } 
	 if(pkey=="cuisine" ){
		     window.setTimeout(function(){document.getElementById("linknext").href="cuisiner-fromage-brebis-2.html";
					     document.getElementById("linknext").onclick=function (){ };
					    document.getElementById("textnext").style.visibility="visible";},500);
		     }
	 if(pkey=="cuisine2" ){
		     window.setTimeout(function(){document.getElementById("linkprev").href="cuisiner-fromage-brebis-1.html";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     } 
	if(pkey=="nature2" ){
		     window.setTimeout(function(){document.getElementById("linkprev").href="nature.html";
					     document.getElementById("linkprev").onclick=function (){ };
					    document.getElementById("textprev").style.visibility="visible";},500);
		     } 
		 	 } 

function readanchor(){
	tmptop=document.getElementById("scroll").offsetTop;
 for(i=anchor_arr.length-1;i>0;i--){
 	 tmpanchor=eval('anchor'+i+';');
 	// alert(i+' : '+-tmptop+' > '+tmpanchor+'-'+texttop+'-'+oldtop);
 	 if(-tmptop > tmpanchor-texttop){//tmpsrc=document.getElementById("toprightimg").src;
							      //tmpsrc=tmpsrc.substring(0,tmpsrc.lastIndexOf('.')-2)+'-'+i+tmpsrc.substring(tmpsrc.lastIndexOf('.'),tmpsrc.length);
							     //document.getElementById("toprightimg").src=tmpsrc;
							     setmenu(i); break;} 
 	}
}
function getanchor(num){
	eval('newtop=-(anchor'+num+'-0-texttop)'); //eval('anchoractive=getAbsoluteTop("anchor'+num+'");');
	  if(navigator.userAgent.indexOf('Gecko')>0){
	  	eval('document.getElementById("scroll").style.top=-(anchor'+num+'-18+16-texttop)+"px";');}//Firefox
    else{
    	eval('document.getElementById(\'scroll\').style.pixelTop=-(anchor'+num+'-6+16-texttop);');}//IE
    setprevnext();
   
   // tmpsrc=document.getElementById("toprightimg").src;
    //tmpsrc=tmpsrc.substring(0,tmpsrc.lastIndexOf('.')-2)+'-'+num+tmpsrc.substring(tmpsrc.lastIndexOf('.'),tmpsrc.length);
    //document.getElementById("toprightimg").src=tmpsrc;
      setmenu(num);
}

function initrecettes0(){
	
	countrecette=titreR.length-1;//recettes.length-1;
	document.getElementById("linkprev").onclick=function (){recette_prev('-'); }
	document.getElementById("linknext").onclick=function (){recette_prev('+'); }
}
function initrecettes(){
	recetteID=0;
	countrecette=titreR.length-1;//recettes.length-1;
	document.getElementById("linkprev").onclick=function (){recette_prev('-'); }
	document.getElementById("linknext").onclick=function (){recette_prev('+'); }
	set_recette(recetteID);
}
function set_recette(inputID){
   recetteID=inputID;
  // countrecette=titreR.length-1;//recettes.length-1;
	//alert(countrecette+' > '+inputID);
	if(countrecette>inputID){document.getElementById("textnext").style.visibility="visible"; }
	 else{document.getElementById("textnext").style.visibility="hidden"; }
  if(inputID>0){document.getElementById("textprev").style.visibility="visible";}
	else{document.getElementById("textprev").style.visibility="hidden";}
		//alert(imagesR[inputID]);
	 //if(imagesR[inputID]!=''){
   document.getElementById("toprightimg").src='imagesV3/pictorecettes.gif';//'images/recettes/'+imagesR[inputID];
   document.getElementById("toprighttext").innerHTML='';
   //}
	 //else{
   //document.getElementById("toprightimg").src='';
   document.getElementById("toprighttext").innerHTML=''+titreR2[inputID];
   //}
	 document.getElementById("scroll").innerHTML=recettes[inputID];
}

function set_frame_recette(inputID){
   recetteID=inputID;
   countrecette=titreR.length-1;//recettes.length-1;
	//alert(countrecette+' > '+inputID);
	parent.document.getElementById("hiddenID").value=inputID;
	if(countrecette>inputID){parent.document.getElementById("textnext").style.visibility="visible"; }
	 else{parent.document.getElementById("textnext").style.visibility="hidden"; }
  if(inputID>0){parent.document.getElementById("textprev").style.visibility="visible";}
	else{parent.document.getElementById("textprev").style.visibility="hidden";}
		//alert(imagesR[inputID]);
	 //if(imagesR[inputID]!=''){
   parent.document.getElementById("toprightimg").src='imagesV3/pictorecettes.gif';//'images/recettes/'+imagesR[inputID];
   parent.document.getElementById("toprighttext").innerHTML='';
   //}
	 //else{
   //document.getElementById("toprightimg").src='';
   parent.document.getElementById("toprighttext").innerHTML=''+titreR2[inputID];
   //}
	 parent.document.getElementById("scroll").innerHTML=recettes[inputID];
	// parent.document.getElementById("hiddenID").value=inputID;
	// parent.document.getElementById("hiddenID").innerHTML=recettes[inputID];
	 //parent.setID(inputID);
}

function recette_prev(sign){
 if(document.getElementById("hiddenID").value!=""){
     recetteID=document.getElementById("hiddenID").value;
     document.getElementById("hiddenID").value=""; }
	//alert(sign);
	if(sign=='-'){recetteID--; }
  else{recetteID++; }
  //	alert(recetteID);
  set_recette(recetteID);
 }
function initpages(){
	texttop=getAbsoluteTop("textcontent");
	textH=document.getElementById("textcontent").offsetHeight;
	//alert(textH);
	fullH=textH+texttop;
	//alert(fullH);
	inW=document.getElementById("textcontent").offsetWidth;
	fullW=getAbsoluteLeft("textcontent");
	textL=getAbsoluteLeft("scroll");
	bigH=document.getElementById("scroll").offsetHeight;
	//scrollT=getAbsoluteTop("scroll");
	//alert(scrollT);
	//alert("texte "+bigH+"  conteneur:"+textH)
	  document.getElementById("printbtn").style.top=(fullH)+'px';
		document.getElementById("printbtn").style.left=(fullW+(inW-109)/2)+'px'; //-109
		
		if(0<(bigH-textH) && (bigH-textH)<15){document.getElementById("textcontent").style.Height=(bigH+(bigH-textH))+"px";document.getElementById("textcontent").style.clip="rect(0px 440px "+(bigH+(bigH-textH))+"px 0px)";bigH=textH; }
		document.getElementById("textnext").style.top=(fullH)+'px';
		document.getElementById("textnext").style.left=(fullW+inW-109)+'px';//'80%';//
	//alert("fullH : "+fullH+"  fullW : "+fullW+"  inW : "+inW);
	//  bigH > fullH
	if(bigH > textH){document.getElementById("textnext").style.visibility="visible"; }
	    document.getElementById("textprev").style.top=(fullH)+'px';;
	    document.getElementById("textprev").style.left=(textL+20)+'px';;//'53%';//
 document.getElementById('scroll').style.pixelTop=(-8);//IE
 document.getElementById('scroll').style.top=(-8)+'px';//Firefox
//scrollT=getAbsoluteTop("scroll");
//	alert(scrollT-texttop);
	tmphtml=new String(document.getElementById('scroll').innerHTML);
/*	ratio=400;newnum=new Number(textH);offset=0;
	for(i=1;i<=10;i++){
		newoffset=(i*ratio+offset);
			word=tmphtml.substr(newoffset,15);
			//alert(word);  (/_ON.gif/g,".gif");
			tmphtml=tmphtml.replace(word,('<a name="tmpanc" id="tmpanc" class="tmpanc" >'+word+'</a>'));
			document.getElementById('scroll').innerHTML=tmphtml;
			 tmpanc=getAbsoluteTop("tmpanc")-texttop;
			newanc=new Number(tmpanc);
			  if (tmpanc<textH){//alert(word+" : "+tmpanc+" <<< "+textH+" \n \n ratio : "+ratio); 
				   if((newnum-newanc)<(ratio/2)){ratio=(ratio/2);offset+=(i*ratio);}
			     if(Math.abs(newnum-newanc)<(15)){//alert(word+" "+newnum+" "+newanc );
			     	  document.getElementById("textcontent").style.height=(textH-Math.abs(newnum-newanc))+"px";document.getElementById("textcontent").style.clip="rect(0px 440px "+(textH-Math.abs(newnum-newanc))+"px 0px)";textH-=Math.abs(newnum-newanc); 
			     	 
			     	  break;}
			     }
			else{//alert(word+" : "+tmpanc+" >>> "+textH);
				break;}
		  tmphtml=tmphtml.replace(('<a name="tmpanc" id="tmpanc" class="tmpanc" >'+word+'</a>'),word);
			 document.getElementById('scroll').innerHTML=tmphtml;
			    }/**/
	arr=new Array();
	fullarr=tmphtml;
	anchor_arr=tmphtml.split('name="anchor');guil=1;
  if(anchor_arr.length==1){guil=0;anchor_arr=tmphtml.split('name=anchor');}
		//alert(anchor_arr[0]);
		if(anchor_arr.length>1){tmphtml="";}
	//for(i=1;i<anchor_arr.length;i++){
	for(i=anchor_arr[1].charAt(0);i<anchor_arr.length;i++){  //version split
		//alert(anchor_arr[i].charAt(0));
		if(guil==1){ arr[i]='name=\"anchor'+anchor_arr[i];if(i==1){arr[i]="<div id='p_"+i+"' class='p' >"+anchor_arr[0]+arr[i].substr(0,arr[i].length-3)+"</div>";}else{arr[i]="<div id='p_"+i+"'  class='p' >"+"<a "+arr[i]+"</div>";}; }
	  else{ arr[i]='name=anchor'+anchor_arr[i];if(i==1){arr[i]="<div id='p_"+i+"' class='p' >"+anchor_arr[0]+arr[i].substr(0,arr[i].length-14)+"</div>";}else{arr[i]="<div id='p_"+i+"'  class='p' >"+"<a id=anchor"+i+" "+arr[i]+"</div>";} }
		   // alert(i+' \n \n \n '+arr[i]);
		    eval('anchor'+i+'=getAbsoluteTop("anchor'+i+'");');
		   tmphtml+=arr[i]; }//alert(i);}
		 //  document.getElementById('scroll').innerHTML=tmphtml;
	loc=new String(document.location);
	anchorname='';
	
	if(loc.indexOf('#anchor=')>0){anchorname=loc.substr(loc.lastIndexOf('#anchor=')+8,1);}
	else if(loc.indexOf('#')>0){anchorname=loc.substr(loc.lastIndexOf('#')+1,1);}
	else{anchorname='';}
		loc=new String(location);
loctest=loc.indexOf('tradition');loctest2=loc.indexOf('saveurs');
loctest3=loc.indexOf('savoir-plus');loctest4=loc.indexOf('index');loctest5=loc.indexOf('recettes');loctest6=loc.indexOf('mentions');
if(loctest!=-1 || loctest2!=-1   || loctest3!=-1 || loctest4!=-1 || loctest6!=-1 ){} //version split
		//if(location.indexOf("tradtion")>0 || location.indexOf("saveurs")>0){  }
//	else if( anchorname!=''){ getanchor(anchorname);} //supprime version split
  else if (anchor_arr.length>1){ setmenu(anchor_arr[1].charAt(0));	}; ///version split
  	                              //setmenu(1);
}
