if(!R9_Objects){
var R9_Objects=[];
}
function R9_PBar(_1){
this._objectId;
this.width=300;
this.height=25;
this.valueDefault=0;
this.manualUpdate=false;
this.fullTime=45000;
this.updateInterval=750;
this.outerBorderStyle="1px solid black";
this.innerStyle=null;
this.barImage="/images/1x1_newBlue.gif";
this.barBgColor="white";
this.baseZindex=1;
this.styleContainerClass;
this.ctrl;
this._currentValue;
this._elapsedTime;
this._timerID;
this._handleId;
this._handleObj;
this._barOnId;
this._barOnObj;
this._imageId;
this._imageObj;
this._constructor=function(_2){
this._id=R9_Objects.length;
R9_Objects[this._id]=this;
this._objectId="R9_PBar"+this._id;
this.objectName=this._objectId;
if(typeof (_2)=="string"){
this.fieldName=_2+"_value";
this.objectName=_2;
}
};
this._checkup=function(){
this._currentValue=this.valueDefault;
};
this.render=function(_3){
this._checkup();
this._containerId="co"+_3;
this._tableId="tbl"+_3;
this._imageId="img"+_3;
this._barOnId="tdOn"+_3;
var _4=this.width;
var _5=this.height;
var _6=new Array();
var _7=0;
var _8=0;
var _9=0;
var _a=0;
_6[_7++]="<div id=\""+this._containerId+"\"";
if(this.styleContainerClass){
_6[_7++]=" class=\""+this.styleContainerClass+"\"";
}
_6[_7++]=" style=\"position:relative; left:"+_9+"; top:"+_a+"; width:"+_4+"; height: "+_5+"; clip:rect(0 "+_4+"  "+_5+" 0);";
if(this.barBgColor){
_6[_7++]="background-color:"+this.barBgColor+"; layer-background-color:"+this.barBgColor+";";
}
if(this.outerBorderStyle){
_6[_7++]="border: "+this.outerBorderStyle+";";
}
_6[_7++]="\" ";
_6[_7++]="\" width=\"";
_6[_7++]=_4+"\" ";
_6[_7++]=">";
var _b=Math.floor((this._currentValue/100)*this.width);
_6[_7++]="<div style=\"position: relative; height: 100%; width:"+_b+"; ";
_6[_7++]="\" width=\"";
_6[_7++]=_b+"\" ";
_6[_7++]="\" id=\"";
_6[_7++]=this._barOnId+"\" ";
_6[_7++]="><img src=\""+this.barImage+"\" border=\"0\" width=\""+_b+"\" height=\""+this.height;
_6[_7++]="\" id=\""+this._imageId+"\"";
if(this.innerStyle){
_6[_7++]=" style=\""+this.innerStyle+"\"";
}
_6[_7++]="\"/>";
_6[_7++]="</div>";
_6[_7++]="</div>";
document.getElementById(_3).innerHTML=_6.join("");
this._containerObj=document.getElementById(this._containerId);
this._barOnObj=document.getElementById(this._barOnId);
this._imageObj=document.getElementById(this._imageId);
};
this.drawInto=function(_c){
this.render(_c);
if(!this.manualUpdate){
this._startTimer();
}
};
this.setPercentage=function(_d){
if(_d==null||_d<0){
_d=0;
}
if(_d>100){
_d=100;
}
var _e=Math.floor((_d/100)*this._containerObj.clientWidth);
this._imageObj.width=_e;
this._barOnObj.style.width=_e;
this._currentValue=_d;
};
this.getValue=function(){
return this._currentValue;
};
this.timerCallback=function(){
this._elapsedTime+=this.updateInterval;
if(this._elapsedTime>=this.fullTime){
this.setPercentage(100);
this._stopTimer();
}else{
var _f=Math.round(this._elapsedTime/this.fullTime*100);
this.setPercentage(_f);
}
};
this._startTimer=function(){
if(this._timerID==null){
this._elapsedTime=0;
this._timerID=window.setInterval("R9_Objects["+this._id+"].timerCallback()",this.updateInterval);
}
};
this._stopTimer=function(){
if(this._timerID!=null){
window.clearInterval(this._timerID);
this._timerID=null;
}
};
this._constructor(_1);
}
// r9compressed
