function BxDolVoting(F,G,E,B,D,C,A){this._sUrl=F;this._sSystem=G;this._iObjId=E;this._sId=B;this._sIdSlider=D;this._iSize=C;this._iMax=A;this._iSaveWidth=-1;}BxDolVoting.prototype.over=function(A){var B=this._e(this._sIdSlider);this._iSaveWidth=parseInt(B.style.width);B.style.width=A*this._iSize+"px";};BxDolVoting.prototype.setRate=function(B){var A=this._e(this._sIdSlider);A.style.width=B*this._iSize+"px";};BxDolVoting.prototype.setCount=function(D){var C=this._e(this._sId);var B=C.getElementsByTagName("b")[0];var A=B.innerHTML.match(/(\d+)/);B.innerHTML=B.innerHTML.replace(A[1],D);};BxDolVoting.prototype.out=function(){var A=this._e(this._sIdSlider);A.style.width=parseInt(this._iSaveWidth)+"px";};BxDolVoting.prototype.vote=function(A){var C=this;var B=function(E){if(!E.length){C.onvotefail();return;}var D=E.match(/([0-9\.]+),([0-9\.]+)/);C._iSaveWidth=A*C._iSize;C.setRate(A);C.setCount(D[2]);C.onvote(D[1],D[2]);};this.sendRequest(this._sUrl+"vote.php?vote_send_result="+A+"&id="+this._iObjId+"&sys="+this._sSystem,B);};BxDolVoting.prototype.onvote=function(B,A){};BxDolVoting.prototype.onvotefail=function(){};BxDolVoting.prototype._e=function(A){return document.getElementById(A);};BxDolVoting.prototype.sendRequest=function(C,B){var D=createXmlHttpObj();if(!D){return false;}var A=C;D.open("GET",A);D.onreadystatechange=function(){if(D.readyState==4&&D.status==200){var E=D.responseText;delete D;D=null;B(E);}};D.send(null);};