﻿// JavaScript Document
/*************************************************
Star Rating System
First Version: 21 November, 2006
Second Version: 17 May, 2007
Author: Ritesh Agrawal (http://php.scripts.psu.edu/rja171/widgets/rating.php)
Inspiration: Will Stuckey's star rating system (http://sandbox.wilstuckey.com/jquery-ratings/)
Half-Star Addition: Karl Swedberg
Demonstration: http://examples.learningjquery.com/rating/
Usage: $('#rating').rating('url-to-post.php', {maxvalue:5, curvalue:0});

arguments
url : required -- post changes to 
options
  increment : 1, // value to increment by
	maxvalue: number of stars
	curvalue: number of selected stars	

************************************************/

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4.1e.q=3(c,d){9(c==1o)v;8 e={m:c,o:1,B:5,t:0};9(d){4.J(e,d)};4.J(e,{z:(e.B>1)?E:x});8 f=4(7);4.J(f,{1b:e.t,m:e.m});e.o=(e.o<.1a)?.5:1;8 s=0;19(8 i=0;i<=e.B;i++){9(i==0){9(e.z==E){8 g=\'<H 18="z"><a F="#0" 12="X 1n 1l L">X L</a></H>\';f.V(g)}}K{8 h=$(\'<H 18="n"></H>\').V(\'<a F="#\'+i+\'" 12="1g L \'+i+\'/\'+e.B+\'">\'+i+\'</a>\').1f(f);9(e.o==.5){9(s%2){h.u(\'n-1d\')}K{h.u(\'n-1c\')}}}i=i-1+e.o;s++}8 j=4(f).A(\'.n\');8 k=4(f).A(\'.z\');j.Q(3(){l.p();l.I(7)}).P(3(){l.p();l.y()}).O(3(){l.p();l.I(7)}).N(3(){l.p();l.y()});j.Z(3(){9(e.z==E){e.t=(j.10(7)*e.o)+e.o;$(\'#n-q-G\').w(\'17...\');$.16({15:"14",m:f.m,13:x,T:"q="+4(7).A(\'a\')[0].F.11(\'#\')[1],Y:"w",S:3(a){$(\'#n-q-G\').w(a.R)}});v x}K 9(e.B==1){e.t=(e.t==0)?1:0;$(7).1m(\'r\');4.1k(f.m,{"q":4(7).A(\'a\')[0].F.11(\'#\')[1]});v x}v E});9(k){k.Q(3(){l.p();4(7).u(\'r\')}).P(3(){l.y();4(7).D(\'r\')}).O(3(){l.p();4(7).u(\'r\')}).N(3(){l.y();4(7).D(\'r\')});k.Z(3(){l.p();e.t=0;$(\'#n-q-G\').w(\'17...\');$.16({15:"14",m:f.m,13:x,T:"q=6",Y:"w",S:3(a){$(\'#n-q-G\').w(a.R)}});v x})}8 l={I:3(a){8 b=j.10(a)+1;j.A(\'a\').1j(\'1i\',\'1h%\').C().U(0,b).u(\'M\').C()},p:3(){j.W(\'.r\').D(\'r\').C().W(\'.M\').D(\'M\').C()},y:3(){j.U(0,e.t/e.o).u(\'r\').C()}};l.y();v(7)};',62,87,'|||function|jQuery|||this|var|if|||||||||||||url|star|increment|drain|rating|on||curvalue|addClass|return|html|false|reset|cancel|children|maxvalue|end|removeClass|true|href|result|div|fill|extend|else|voto|hover|blur|focus|mouseout|mouseover|responseText|complete|data|slice|append|filter|Annulla|dataType|click|index|split|title|cache|POST|type|ajax|Attendere|class|for|75|averageRating|right|left|fn|appendTo|Dai|100|width|css|post|tuo|toggleClass|il|null'.split('|'),0,{}))