function $n(a,b){return((typeof(b)=="object"?b:document).getElementById(a))}function $S(a){return((typeof(a)=="object"?a:$n(a)).style)}function agent(a){return(Math.max(navigator.userAgent.toLowerCase().indexOf(a),0))}function abPos(b){var b=(typeof(b)=="object"?b:$n(b)),a={X:0,Y:0};while(b!=null){a.X+=b.offsetLeft;a.Y+=b.offsetTop;b=b.offsetParent}return(a)}function XY(b,a){var c=agent("msie")?{X:event.clientX+document.body.scrollLeft,Y:event.clientY+document.body.scrollTop}:{X:b.pageX,Y:b.pageY};return(a?c[a]:c)}star={};star.mouse=function(b,c,a){if(star.stop||isNaN(star.stop)){star.stop=0;document.onmousemove=function(i){var j=star.num;var h=abPos($n("star"+j)),f=XY(i),g=f.X-h.X,d=f.Y-h.Y;star.num=c.id.substr(4);x1=1;x2=84;y1=0;y2=19;if(g<x1||g>x2||d<y1||d>y2){star.stop=1;star.revert()}else{$S("starCur"+j).width=g+"px";$S("starUser"+j).color="#a6a5a5";$n("starUser"+j).innerHTML="Votacion: "+Math.round(g/84*100)+"%"}}}};star.update=function(c,d,b){var f=star.num;var a=$n("starUser"+f).innerHTML;a=a.substr(10);a=parseInt(a);f=d.id.substr(4);$n("starCur"+f).title=a;rating(f,a,b)};star.revert=function(){var a=star.num;if($n("starCur"+a)){v=parseInt($n("starCur"+a).title);$S("starCur"+a).width=Math.round(v*84/100)+"px";$n("starUser"+a).innerHTML=(v>0?"Votacion: "+Math.round(v)+"%":"Votacion: 0%");$n("starUser"+a).style.color="#a6a5a5"}};star.num=0;