function refresh(B,A){thumb=$("thumbnail_image_"+A);thumb.innerHTML=B.responseText}function closeRefresh(A){win=Windows.getFocusedWindow();new Ajax.Request("../../updatefichier",{method:"post",asynchronous:"false",parameters:"id_fichier="+A+"&"+Form.serialize($("formFichier")),onSuccess:function(B){refresh(B,A)}});win.close()}function editerImage(A,E,B){var C=new Window({className:"alphacube",width:800,height:500,zIndex:100,resizable:true,title:"Image "+E,showEffect:Effect.BlindDown,hideEffect:Effect.SwitchOff,draggable:true});var D=A;C.setAjaxContent(B,{parameters:{id_fichier:D},method:"get",encoding:"iso-8859-1"},true,true)}function afficherImage(A,E,B){var C=new Window({className:"alphacube",width:800,height:500,zIndex:100,resizable:true,title:"Image "+E,showEffect:Effect.BlindDown,hideEffect:Effect.SwitchOff,draggable:true});var D=A;C.setAjaxContent(B,{parameters:{id_fichier:D},method:"get",encoding:"iso-8859-1",asynchronous:false},true,true)}function slideListeThumbnail(A){name_section=$("thumbnail_image_"+A).parentNode.parentNode.parentNode.parentNode.id;num_section=name_section.split("-")[1];slideContent(name_section);majImageBouton()}function diminuerSection(){if(num_section>0){num_section--}majImageBouton()}function augmenterSection(){if(num_section<nb_sections-1){num_section++}majImageBouton()}function slideCurrentSection(){slideContent("section-"+num_section)}function majImageBouton(){if($("bouton_up")!=null){if(num_section<=0){$("bouton_up").firstChild.src="/images/arrow-up_gris.png"}else{$("bouton_up").firstChild.src="/images/arrow-up.png"}}if($("bouton_down")!=null){if(num_section>=nb_sections-1){$("bouton_down").firstChild.src="/images/arrow-down_gris.png"}else{$("bouton_down").firstChild.src="/images/arrow-down.png"}}};
