function wip_ajax_gallery1_lw (w, h, url, title, author, caption) {
     mlw2 = new lightwindow({resizeSpeed : 10});
     mlw2.activateWindow({
   	                  href    : url,
   		          title   : title,
   		          author  : author,
   		          caption : caption,
   		          width   : w,
   		          height  : h
   		         });
   }

   function wipGalleryHttpAjaxSuccess (t, statusDiv) {

   }
   function wipGalleryHttpAjaxError (t) {
     alert('Error ' + t.status + ' -- ' + t.statusText);
     //alert('you can\'t user this pseudo (ndr : test version).');
     //$(imgPseudo).src = '/champNonValide.gif';
   }

   function wipGalleryHttpAjaxError404 (t) {
     alert('Error ' + t.status + ' -- ' + t.statusText);
     //alert('you can\'t user this pseudo (ndr : test version).');
     //$(imgPseudo).src = '/champNonValide.gif';
   }

   function wipGalleryLoad (queryString, htmlDiv) {
     var status = document.getElementById(htmlDiv + 'status');
     if (status) {
       status.style.display = 'inline';
     }
  new Effect.Fade(
                     htmlDiv, {
			       duration:0.5,
			       to : 0.1
                              }
		    );
     var myAction='wipGalleryUpdater("' + queryString + '", "' + htmlDiv + '");';
     id = setTimeout(myAction,500);
  }

   function wipGalleryUpdater (queryString, htmlDiv) {
     var url = '/tools/wip_v4/ajax/gallery1/show_gallery.epl';
     new Ajax.Updater(htmlDiv, url + '?' + queryString, {
                                                     onComplete:function(){
  new Effect.Appear(htmlDiv, {
                                                                                                       duration:0.8
                                                                                                      }
                                                                                             );
  },
                                                     asynchronous: true,
                                                     evalScripts: true,
                                                     method: 'get',
                                                     on404: wipGalleryHttpAjaxError404,
                                                     onSuccess: wipGalleryHttpAjaxSuccess,
                                                     onFailure: wipGalleryHttpAjaxError
                                                    });

   }


   function wipGalleryLoadInit (queryString, htmlDiv) {
     var status = document.getElementById(htmlDiv + 'status');
     if (status) {
       status.style.display = 'inline';
     }
     var url = '/tools/wip_v4/ajax/gallery1/show_gallery.epl';
     new Ajax.Updater(htmlDiv, url + '?' + queryString, {
                                                     onComplete:function(){
                                                                          },
                                                     asynchronous: true,
                                                     evalScripts: true,
                                                     method: 'get',
                                                     on404: wipGalleryHttpAjaxError404,
                                                     onSuccess: wipGalleryHttpAjaxSuccess,
                                                     onFailure: wipGalleryHttpAjaxError
                                                    });
   }


