(function(a){a.fn.jRating=function(t){var u={bigStarsPath:"jquery/icons/stars.png",smallStarsPath:"jquery/icons/small.png",phpPath:"php/jRating.php",type:"big",step:!1,isDisabled:!1,showRateInfo:!0,canRateAgain:!1,sendRequest:!0,length:5,decimalLength:0,rateMax:20,rateInfosX:-45,rateInfosY:5,nbRates:1,onSuccess:null,onError:null,onClick:null};if(0=parseInt(r))&&a(this).unbind().css("cursor","default").addClass("jDisabled");b.showRateInfo&&a("p.jRatingInfos").fadeOut("fast",function(){a(this).remove()});d.preventDefault();var e=l(f);h.width(f);a(".datasSent p").html("\x3cstrong\x3eidBox : \x3c/strong\x3e"+s+"\x3cbr /\x3e\x3cstrong\x3erate : \x3c/strong\x3e"+e+"\x3cbr /\x3e\x3cstrong\x3eaction :\x3c/strong\x3e rating");a(".serverResponse p").html("\x3cstrong\x3eLoading...\x3c/strong\x3e");if(b.onClick)b.onClick(c,e);b.sendRequest&&a.post(b.phpPath,{idBox:s,rate:e,action:"rating"},function(d){if(d.error){if(a(".serverResponse p").html(d.server),b.onError)b.onError(c,e)}else if(a(".serverResponse p").html(d.server),b.onSuccess)b.onSuccess(c,e)},"json")}})})}})(jQuery);