if(!F){var F=new Object();}F.G=function(B){this.R=B.R;this.gI=B.gI?B.gI:"";this.dO=B.dO?B.dO:"";this.fF=B.fF?B.fF:"";this.bf=B.bf?B.bf:100;this.aN=B.aN?B.aN:0;this.value=B.value?B.value:this.aN;this.onstart=function(){};this.onchange=function(){};this.mS=function(){};this.as=B.as?B.as:0;this.am=B.am?B.am:F.G.prototype.ej;this.bar=null;this.an=null;this.wrapper=null;var fq=null;this.lq();};F.G.prototype.ej=0;F.G.prototype.fr=1;F.G.prototype.getPane=function(){return this.wrapper;};F.G.prototype.lq=function(){this.wrapper=document.createElement("div");this.wrapper.id=this.R.id+"_wrapper";this.bar=this.iH();this.an=this.gV();this.wrapper.appendChild(this.an);this.wrapper.appendChild(this.bar);this.R.appendChild(this.wrapper);this.fl();};F.G.prototype.iH=function(){var bar=document.createElement("div");bar.title=this.gI;bar.id=this.R.id+"_bar";bar.className=this.fF;bar.style.position="absolute";bar.style.zIndex=10;var gK=this;if(bar.ondrag){bar.ondrag=function(){};}if(bar.onselectstart){bar.onselectstart=function(){};}var bM;fS=function(e){$(document).mousemove(dM);$(document).mouseup(er);};dM=function(e){if(!e){e=window.event;}var x=e.clientX;var y=e.clientY;if(bM){if(bM.x==x&&bM.y==y){return;}}bM={x:x,y:y};var fL=bar;while(fL=fL.offsetParent){x-=fL.offsetLeft;y-=fL.offsetTop;}gK.fK({x:x,y:y});};er=function(e){$(document).unbind("mousemove",dM);$(document).unbind("mouseup",er);};$(bar).mousedown(fS);return bar;};F.G.prototype.gV=function(){var an=document.createElement("div");an.title=this.gI;an.id=this.ml+"_slider";an.className=this.dO;an.style.position="absolute";var gK=this;if(an.ondrag){an.ondrag=function(){};}if(an.onselectstart){an.onselectstart=function(){};}$(an).click(function(e){if(!e){e=window.event;}var x=e.clientX;var y=e.clientY;var fL=gK.bar;while(fL=fL.offsetParent){x-=fL.offsetLeft;y-=fL.offsetTop;}if(show){show=false;show=true;}gK.fK({x:x,y:y});});return an;};var show=true;F.G.prototype.ka=function(am){if(this.am!=am){this.am=am;}};F.G.prototype.kc=function(){return this.am;};F.G.prototype.jZ=function(n){this.as=n;};F.G.prototype.kf=function(){return this.as;};F.G.prototype.eg=function(value){if(value==this.value){return;}var fs=this.value;if(value<this.aN){this.value=this.aN;}else if(value>this.bf){this.value=this.bf;}else{var lS=this.as;if(lS!=0){var df=(value-fs)/lS;this.value=fs+Math.round(df)*lS;}else{this.value=value;}}if(this.value==fs){return;}this.fl();this.fO();};F.G.prototype.jq=function(){return this.value;};F.G.prototype.fl=function(){var pt=this.hq(this.value);if(pt.x){this.bar.style.left=pt.x+"px";}if(pt.y){this.bar.style.top=pt.y+"px";}};F.G.prototype.fK=function(pt){var v=this.hv(pt);this.eg(v);};F.G.prototype.mB=function(){if(this.as==0||this.value==this.bf){return false;}this.eg(this.value+this.as);return true;};F.G.prototype.lV=function(){if(this.as==0||this.value==this.aN){return false;}this.eg(this.value-this.as);return true;};F.G.prototype.hv=function(m){var bf=this.bf;var aN=this.aN;var v=0;switch(this.am){case F.G.prototype.ej:var ic=this.an.offsetWidth;var bw=this.bar.offsetWidth;v=aN+(m.x-this.an.offsetLeft)*(bf-aN)/(ic);break;case F.G.prototype.fr:var mi=this.an.offsetHeight;var bh=this.bar.offsetHeight;v=aN+(m.y-this.an.offsetTop)*(bf-aN)/(mi);break;}return v;};F.G.prototype.hq=function(v){var bf=this.bf;var aN=this.aN;var pt;switch(this.am){case F.G.prototype.ej:var ic=this.an.offsetWidth;var bw=this.bar.offsetWidth;pt={x:Math.floor(-(bw/2)+(v-aN)*(ic)/(bf-aN))+this.an.offsetLeft};break;case F.G.prototype.fr:var mi=this.an.offsetHeight;var bh=this.bar.offsetHeight;pt={y:Math.floor(-(bh/2)+(v-aN)*(mi)/(bf-aN))+this.an.offsetTop};break;}return pt;};F.G.prototype.jA=function(bf){if(bf<this.aN||this.bf==bf){return false;}this.bf=bf;};F.G.prototype.dK=function(){return this.bf;};F.G.prototype.jw=function(aN){if(this.bf<aN||this.aN==aN){return false;}this.aN=aN;};F.G.prototype.aq=function(f){this.fq=f;};F.G.prototype.fO=function(){this.fq();};F.G.prototype.eD=function(f){this.fq=null;};