/*
  Workspace Login 
  Vincent Fiduccia
  

  Version: 1.6 () 
  2009-12-04 19:20:55 (p3plpassweb04.prod.phx3.secureserver.net)

  js_file_Extend
*/

Function.prototype.bind=function(obj)
{if(!Function._bound_objs)
{Function._bound_objs=[];Function._bound_fns=[];}
var fn=this;var id=obj.__id;if(typeof id=="undefined")
Function._bound_objs[id=obj.__id=Function._bound_objs.length]=obj;var fnId=fn.__fnId;if(typeof fnId=="undefined")
Function._bound_fns[fnId=fn.__fnId=Function._bound_fns.length]=fn;if(!obj.__closures)
obj.__closures=[];var closure=obj.__closures[fnId];if(closure)
return closure;obj=null;fn=null;var args=[];for(var i=1;i<arguments.length;i++)
args[i-1]=arguments[i];return Function._bound_objs[id].__closures[fnId]=function()
{return Function._bound_fns[fnId].apply(Function._bound_objs[id],Utils.array_merge(arguments,args));};}
Function.prototype.inheritFrom=function(parent)
{this.prototype=Utils.clone(parent.prototype);this.prototype.constructor=this;this.prototype.parent=parent.prototype;return this;}
Function.importDefaults=function(obj,props,defaults,ignore)
{if(!props)
props={};for(var k in defaults)
{if(props[k]==undefined)
obj[k]=defaults[k];else if(ignore&&Utils&&Utils.in_array(k,ignore))
continue;else
obj[k]=props[k];}}
String.prototype.ucfirst=function()
{return this.substr(0,1).toUpperCase()+this.substr(1);}
String.prototype.trim=function()
{return this.replace(/^\s+/g,'').replace(/\s+$/g,'');}
String.prototype.escape=function()
{return this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#039;');}
String.prototype.deescape=function()
{return this.replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&quot;/g,'"').replace(/&#039;/g,"'").replace(/&amp;/g,"&");}
String.PAD_LEFT='left';String.PAD_RIGHT='right';String.pad=function(str,to,withChar,side)
{side=side||String.PAD_LEFT;withChar=withChar||' ';to=to||0;str=""+str;while(str.length<to)
{if(side==Utils.PAD_LEFT)
str=withChar+str;else
str=str+withChar;}
return str;}

if ( typeof(loaded) == 'undefined' ) var loaded = {};
  loaded['/js.php?file=Extend&r='] = 1;
