var starGo="";var req;function xy(B,A){return(A?(agent("msie")?event.clientY+document.body.scrollTop:B.pageY):(agent("msie")?event.clientX+document.body.scrollTop:B.pageX))}function starUpdate(C){var A=parseInt(document.getElementById("current_star").style.width,10);var B=Math.round(A/(84/5));document.getElementById("percentage").innerHTML='<span style="font-weight: bold;">Thanks for rating!</span>';document.getElementById("star").onmousemove="";document.getElementById("star").onmousedown="";document.getElementById("star").title="";document.onmousemove="";req=new XMLHttpRequest();req.open("GET","?action=vote&rating="+B+"&file_id="+(document.getElementById("star_file_id").title),false);req.send(null)}function starRevert(){var A=2.5;document.getElementById("current_star").style.width=Math.round(A*84/5)+"px";document.getElementById("percentage").innerHTML="Rate this icon!";document.getElementById("percentage").style.color="#888";document.onmousemove=""}function star_mouse_moved(B){function A(G){var C=findPos(document.getElementById("star"));var E=xy(G)-C[0];var D=xy(G,1)-C[1];if(E<1||E>84||D<0||D>19){starGo="";starRevert(E,D)}else{var F=parseInt(E/(84/5),10)+1;if(F>5){F=5}if(F<1){F=1}document.getElementById("current_star").style.width=parseInt((F)*(84/5),10)+"px";document.getElementById("percentage").style.color="#111";document.getElementById("percentage").innerHTML=get_description(F)}}if(!starGo){starGo=1;document.onmousemove=A}}function findPos(B){var C=0;var A=0;if(B.offsetParent){C=B.offsetLeft;A=B.offsetTop;while(B=B.offsetParent){C+=B.offsetLeft;A+=B.offsetTop}}return[C,A]}function get_description(A){if(A>4){return("Awesome!")}else{if(A>3){return("Pretty cool")}else{if(A>2){return("OK")}else{if(A>1){return("Have seen better")}else{return("Well, uhm...")}}}}};