function wipBannerHttpAjaxSuccess (t, statusDiv) {

   }
   function wipBannerHttpAjaxError (t) {
     alert('Error ' + t.status + ' -- ' + t.statusText);
     //alert('you can\'t user this pseudo (ndr : test version).');
     //$(imgPseudo).src = '/champNonValide.gif';
   }

   function wipBannerHttpAjaxError404 (t) {
     alert('Error ' + t.status + ' -- ' + t.statusText);
     //alert('you can\'t user this pseudo (ndr : test version).');
     //$(imgPseudo).src = '/champNonValide.gif';
   }

   function wipBanner (queryString, htmlDiv, page) {
     if (!page) {
       page = 'show';
     }
     var myUrls = new Array();
     myUrls['show']        = '/wip4/banner/ajax/show.epl';
     myUrls['superbanner'] = '/wip4/banner/ajax/superbanner.epl';
     myUrls['toppknapp']   = '/wip4/banner/ajax/toppknapp.epl';
     myUrls['rightbutton']   = '/wip4/banner/ajax/rightbutton.epl';
     

     var url = myUrls[page];
     var status = document.getElementById(htmlDiv + 'status');
     if (status) {
       status.style.display = 'inline';
     }
     new Ajax.Updater(
		      htmlDiv, url + '?' + queryString, {
                                                         onComplete:function(){
									      },
						         asynchronous: true,
                                                         evalScripts: true,
                                                         method: 'get',
                                                         on404: wipBannerHttpAjaxError404,
                                                         onSuccess: wipBannerHttpAjaxSuccess,
                                                         onFailure: wipBannerHttpAjaxError
                                                        }
                     );
   }




   // Login stuff

   function wipLoginLogin (queryString, htmlDiv) {
     var status = document.getElementById(htmlDiv + 'status');
     if (status) {
       status.style.display = 'inline';
     }
     new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/login/login.epl?' + queryString, {
                                                     onComplete:function(){
                                                                           new Effect.Highlight(htmlDiv, {
                                                                                                          duration: 0.5
                                                                                                         }
                                                                                               );
                                                                          },
                                                     asynchronous: true,
                                                     evalScripts: true,
                                                     method: 'get',
                                                     on404: wipBannerHttpAjaxError404,
                                                     onSuccess: wipBannerHttpAjaxSuccess,
                                                     onFailure: wipBannerHttpAjaxError
                                                    });
   }

   function wipLoginRegister (queryString, htmlDiv) {
     var status = document.getElementById(htmlDiv + 'status');
     if (status) {
       status.style.display = 'inline';
     }
     new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/login/register.epl?' + queryString, {
                                                     onComplete:function(){
                                                                           new Effect.Highlight(htmlDiv, {
                                                                                                          duration: 0.5
                                                                                                         }
                                                                                               );
                                                                          },
                                                     asynchronous: true,
                                                     evalScripts: true,
                                                     method: 'get',
                                                     on404: wipBannerHttpAjaxError404,
                                                     onSuccess: wipBannerHttpAjaxSuccess,
                                                     onFailure: wipBannerHttpAjaxError
                                                    });
   }


   function wipLoginActivate (queryString, htmlDiv) {
     var status = document.getElementById(htmlDiv + 'status');
     if (status) {
       status.style.display = 'inline';
     }
     new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/login/activate.epl?' + queryString, {
                                                     onComplete:function(){
                                                                           new Effect.Highlight(htmlDiv, {
                                                                                                          duration: 0.5
                                                                                                         }
                                                                                               );
                                                                          },
                                                     asynchronous: true,
                                                     evalScripts: true,
                                                     method: 'get',
                                                     on404: wipBannerHttpAjaxError404,
                                                     onSuccess: wipBannerHttpAjaxSuccess,
                                                     onFailure: wipBannerHttpAjaxError
                                                    });
   }




