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(f){var d=this._e(this._sId);var c=d.getElementsByTagName("b")[0];var b=c.innerHTML.match(/(\d+)/);c.innerHTML=c.innerHTML.replace(b[1],f)};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)};