function initUploads(C){nb_sections=$("nb_sections").value;size_left=$("size_left").value;for(i=1;i<=C;i++){var D=document.createElement("TD");if(i==1){D.id="thumbnail_image_new"}D.className="multimedia_thumbnail";var F=document.getElementById("section-vide");if(F!=null){F.parentNode.removeChild(F);F=null}else{F=document.getElementById("section-"+(nb_sections-1))}if(F!=null){var G=F.firstChild.tBodies[0].rows;var B=G[G.length-1]}if(F==null||B.cells.length>=2){nb_sections++;$("nb_sections").value=nb_sections;var A=document.createElement("div");A.id="section-"+(nb_sections-1);A.setAttribute("class","section");var E=document.createElement("table");var H=document.createElement("tbody");E.appendChild(H);var I=document.createElement("tr");H.appendChild(I);A.appendChild(E);if(F!=null){F.parentNode.appendChild(A)}else{$("slider").appendChild(A)}F=document.getElementById("section-"+(nb_sections-1));G=document.getElementById("section-"+(nb_sections-1)).firstChild.tBodies[0].rows}G[G.length-1].appendChild(D)}return true}function startCallback(){slideListeThumbnail("new");return true}function completeCallback(A){var B=null;new Effect.Highlight("thumbnail_image_new",{duration:3});document.getElementById("thumbnail_image_new").innerHTML=A;elt_new=document.getElementById("thumbnail_image_new");elt_new.id="thumbnail_"+elt_new.firstChild.nextSibling.id;if(elt_new.next()){B=elt_new.next()}else{if(num_section<nb_sections-1){num_section++;elt_section=$("section-"+num_section);B=elt_section.firstChild.firstChild.firstChild.firstChild}}if(B!=null){B.id="thumbnail_image_new"}}AIM={frame:function(D){var C="f"+Math.floor(Math.random()*99999);var B=document.createElement("DIV");B.innerHTML='<iframe style="display:none" src="about:blank" id="'+C+'" name="'+C+'" onload="AIM.loaded(\''+C+"')\"></iframe>";document.body.appendChild(B);var A=document.getElementById(C);if(D&&typeof (D.onComplete)=="function"){A.onComplete=D.onComplete}return C},form:function(B,A){B.setAttribute("target",A)},submit:function(A,B){AIM.form(A,AIM.frame(B));if(B&&typeof (B.onStart)=="function"){return B.onStart()}else{return true}},loaded:function(C){var A=document.getElementById(C);if(A.contentDocument){var B=A.contentDocument}else{if(A.contentWindow){var B=A.contentWindow.document}else{var B=window.frames[C].document}}if(B.location.href=="about:blank"){return }if(typeof (A.onComplete)=="function"){A.onComplete(B.body.innerHTML)}}};
