"mololo".namespace();
mololo.Rater={loadStars:function(A){mololo.Rater.STAR_EMPTY.src=mololo.globals.CONTEXT.getImagesPath()+"rater/star_empty";
mololo.Rater.STAR_FULL.src=mololo.globals.CONTEXT.getImagesPath()+"rater/star_full";
mololo.Rater.STAR_HALF.src=mololo.globals.CONTEXT.getImagesPath()+"rater/star_half"
},highlightStars:function(A,C,D){if(C){var B=A;
for(i=1;
i<=B;
i++){$("rate"+i).src=mololo.Rater.STAR_FULL.src+"_"+i+".png"
}for(i=B+1;
i<=D;
i++){$("rate"+i).src=mololo.Rater.STAR_EMPTY.src+"_"+i+".png"
}}},showScore:function(D,B){var C=parseInt(D);
var A=C+1;
for(i=1;
i<=C;
i++){$("rate"+i).src=mololo.Rater.STAR_FULL.src+"_"+i+".png"
}if(D-C>=0.5){$("rate"+(C+1)).src=mololo.Rater.STAR_HALF.src+"_"+i+".png";
A++
}for(i=A;
i<=B;
i++){$("rate"+i).src=mololo.Rater.STAR_EMPTY.src+"_"+i+".png"
}},voting:function(A){},getRate:function(A){return A.substring(4)*1
}};
mololo.Rater.STAR_EMPTY=new Image();
mololo.Rater.STAR_FULL=new Image();
mololo.Rater.STAR_HALF=new Image();