Object.prototype.extend=function(a){bck=this.prototype;this.prototype=new a();this.prototype.constructor=this;for(var i in bck){this.prototype[i]=bck[i]}};function isset(v){return(typeof v!="undefined")}function inArray(a,b){for(var i in b){if(b[i]==a){return true}}return false}function parseJSON(a){if(a.charAt(0)=="{"){return eval("("+a+")")}else{return eval(a)}}function measureObjectPollution(){var b=new Object();i=0;for(var a in b){i++}return i}function $A(a){if(!a){return[]};if(a.toArray){return a.toArray()}else{var b=[];for(var i=0,length=a.length;i<length;i++){b.push(a[i])}return b}}Function.prototype.bind=function(){var a=this,args=$A(arguments),object=args.shift();return function(){return a.apply(object,args.concat($A(arguments)))}};