function CS_FeuilletView(f,prefix,sprefix,fName,navigate) { var iddiv=prefix+fName; var disp; var trnf; var tddiv; var elt; var tdoff=0; var selectedTabDone=false; try{ document.getElementById(sprefix+prefix).value=fName; if(navigate){ var nav=window.location.pathname; var gets; var keyval; var newget; var t; newget=""; sep="?"; if(window.location.search!=""){ gets=window.location.search.split(/[&?]/); for(t=0;t=lastFvisible)){ lastFvisible=t; } if(fs[t].style.display!="none" && t<=firstFvisible){ firstFvisible=t; } } var newfirstFvisible=firstFvisible+nbmore; var newlastFvisible=lastFvisible+nbmore; var widthSum=0; if(newlastFvisible>=nbfeuillets){ newlastFvisible=lastFvisible; newfirstFvisible=firstFvisible; } if(newfirstFvisible<0){ newlastFvisible=lastFvisible; newfirstFvisible=0; } while(newfirstFvisible>newlastFvisible){ newlastFvisible=newfirstFvisible+1; } var tt; for(t=0;t=newfirstFvisible && t<=newlastFvisible){ fs[t].style.display=""; //pas de block ni inline sinon ca ne marche pas avec n6 (jebi) widthSum+=fs[t].childNodes[0].offsetWidth; tt=t; } else{ fs[t].style.display="none"; } } var nextimg; var previsouimg; if(nbmore>0){ nextimg=img; previousimg=img.previousSibling; } else{ nextimg=img.nextSibling; previousimg=img; } if(newlastFvisible>=nbfeuillets-1){ nextimg.src=imgPath+"/next_2.png"; } else{ nextimg.src=imgPath+"/next_0.png"; } if(newfirstFvisible<=0){ previousimg.src=imgPath+"/previous_2.png"; } else{ previousimg.src=imgPath+"/previous_0.png"; } var fName=fs[tt].id.replace("Feuillet"+prefix,""); CS_FeuilletView(fs[tt],prefix,sprefix,fName,navigate); }