Function.prototype.inherit=function Function$inherit(s){
if(!(s instanceof Function)){
throw new System.Exception("Cannot inherit from "+s,{s:s,source:this},null,"Function.inherit","Global.Prototype.js",64);
}
try{
this.prototype=new s();
delete this.prototype._event;
this.constructor=this;
this.superClass=s;
return this;
}
catch(e){
throw new System.Exception("An Error occured while inheriting."+e,{s:s,source:this},e,"Function.inherit","Global.Prototype.js",73);
}
};
String.prototype.trim=function String$trim(){
return this.replace(/^\s+|\s+$/g,"");
};
splitObject=function String$split(ob,_3){
div="";
str="";
for(i in ob){
str+=div+i;
div=_3;
}
return str;
};
function el(id){
return document.getElementById(id);
};
function px(_5){
return _5+"px";
};
function getRectangle(_6){
var tt=0;
var r={width:0,height:0,top:0,left:0,right:0,bottom:0};
var _9=_6["offsetWidth"];
var _a=_6["offsetHeight"];
var _b=0;
var _c=0;
while(_6){
_b+=_6["offsetTop"];
_c+=_6["offsetLeft"];
_6=_6.offsetParent;
}
r.width=_9;
r.height=_a;
r.top=_b;
r.left=_c;
r.right=_c+_9;
r.bottom=_b+_a;
return r;
};
function cs(_d){
return document.createTextNode(_d);
};
en=function en(_e){
while(_e.childNodes.length){
_e.removeChild(_e.firstChild);
}
};
ct=function ct(_f){
var _10=/(.*)(\{\$)([^\}]*)(\})(.*)/i;
var r=_10.exec(_f);
if(r!=null){
if(r[1]||r[5]){
var e=ce("SPAN");
if(r[1]){
e.appendChild(ct(r[1]));
}
e.appendChild(_.langs.createElement(r[3]));
if(r[5]){
e.appendChild(ct(r[5]));
}
return e;
}else{
return _.langs.createElement(r[3]);
}
}else{
return cs(_f);
}
};
ce=function(el){
return document.createElement(el);
};