(function( $ ){ if ($.browser.mozilla && parseFloat($.browser.version)<3) { var ua=navigator.userAgent.split('/'); ua=parseFloat(ua[ua.length-1]); if(ua<3) { alert("Votre navigateur n'est pas compatible car la version de Mozilla que vous utilisez ("+$.browser.version+") est trop ancienne.\nMerci de mettre à jour votre navigateur avec la dernière version."); document.location='http://www.mozilla-europe.org/fr/'; return; } }; $.jAws = { id_name:'div_jaws_', id_number:0, methods : { aws : function (url,vars) { return $(this).each(function(){ var id=$(this).attr('id'); if(!id) { id=$.jAws.id_name+$.jAws.id_number; $(this).attr('id',id); $.jAws.id_number++;} $(this).data('data',{ index : id, url : url }); $(this).data('vars',{}); $(this).data('vare',{}); $.extend ($(this).data('vars'), vars); }); }, vals : function(name,value) { var lesvals={}; if (typeof name=='string') lesvals[name]=value; else lesvals=name; return $(this).each(function(){ $.extend ($(this).data('vars'), lesvals); }); }, load : function(vars,duration,success,options) { if (typeof vars=="undefined") vars={}; if (typeof duration=="undefined") duration=0; if (typeof options=="undefined") options={}; if($.browser.msie) duration=0; $.extend (options, {'_duration':duration}); return $(this).each(function(){ $.jAws.private_methods.sendajax($(this),vars,'load',options,success); }); }, send : function(vars,success,options) { if (typeof vars=="undefined") vars={}; return $(this).each(function(){ $.jAws.private_methods.sendajax($(this),vars,'send',options,success); }); }, execute : function(vars,success,options) { if (typeof vars=="undefined") vars={}; if(!success) success=null; if(!options) options={}; alert('Action non mise en oeuvre.'); } }, private_methods : { serialize : function (value) { var s=[]; if(value.constructor==Array) { for(var i=0;i