summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/js/prado.js
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Javascripts/js/prado.js')
-rw-r--r--framework/Web/Javascripts/js/prado.js2092
1 files changed, 1045 insertions, 1047 deletions
diff --git a/framework/Web/Javascripts/js/prado.js b/framework/Web/Javascripts/js/prado.js
index 9d6ec1b7..dd33345b 100644
--- a/framework/Web/Javascripts/js/prado.js
+++ b/framework/Web/Javascripts/js/prado.js
@@ -2,28 +2,27 @@ var Prototype={Version:"1.4.0",ScriptFragment:"(?:<script.*?>)((\n|\r|.)*?)(?:</
},K:function(x){
return x;
}};
-
var Class={create:function(){
return function(){
this.initialize.apply(this,arguments);
};
}};
var Abstract=new Object();
-Object.extend=function(_1,_2){
-for(property in _2){
-_1[property]=_2[property];
+Object.extend=function(_2,_3){
+for(property in _3){
+_2[property]=_3[property];
}
-return _1;
+return _2;
};
-Object.inspect=function(_3){
+Object.inspect=function(_4){
try{
-if(_3==undefined){
+if(_4==undefined){
return "undefined";
}
-if(_3==null){
+if(_4==null){
return "null";
}
-return _3.inspect?_3.inspect():_3.toString();
+return _4.inspect?_4.inspect():_4.toString();
}
catch(e){
if(e instanceof RangeError){
@@ -33,46 +32,46 @@ throw e;
}
};
Function.prototype.bind=function(){
-var _4=this,args=$A(arguments),object=args.shift();
+var _5=this,args=$A(arguments),object=args.shift();
return function(){
-return _4.apply(object,args.concat($A(arguments)));
+return _5.apply(object,args.concat($A(arguments)));
};
};
-Function.prototype.bindAsEventListener=function(_5){
-var _6=this;
-return function(_7){
-return _6.call(_5,_7||window.event);
+Function.prototype.bindAsEventListener=function(_6){
+var _7=this;
+return function(_8){
+return _7.call(_6,_8||window.event);
};
};
Object.extend(Number.prototype,{toColorPart:function(){
-var _8=this.toString(16);
+var _9=this.toString(16);
if(this<16){
-return "0"+_8;
+return "0"+_9;
}
-return _8;
+return _9;
},succ:function(){
return this+1;
-},times:function(_9){
-$R(0,this,true).each(_9);
+},times:function(_10){
+$R(0,this,true).each(_10);
return this;
}});
var Try={these:function(){
-var _10;
+var _11;
for(var i=0;i<arguments.length;i++){
-var _12=arguments[i];
+var _13=arguments[i];
try{
-_10=_12();
+_11=_13();
break;
}
catch(e){
}
}
-return _10;
+return _11;
}};
var PeriodicalExecuter=Class.create();
-PeriodicalExecuter.prototype={initialize:function(_13,_14){
-this.callback=_13;
-this.frequency=_14;
+PeriodicalExecuter.prototype={initialize:function(_14,_15){
+this.callback=_14;
+this.frequency=_15;
this.currentlyExecuting=false;
this.registerCallback();
},registerCallback:function(){
@@ -89,20 +88,19 @@ this.currentlyExecuting=false;
}
}};
function $(){
-var _15=new Array();
+var _16=new Array();
for(var i=0;i<arguments.length;i++){
-var _16=arguments[i];
-if(typeof _16=="string"){
-_16=document.getElementById(_16);
+var _17=arguments[i];
+if(typeof _17=="string"){
+_17=document.getElementById(_17);
}
if(arguments.length==1){
-return _16;
+return _17;
}
-_15.push(_16);
+_16.push(_17);
}
-return _15;
+return _16;
}
-
function isAlien(a){
return isObject(a)&&typeof a.constructor!="function";
}
@@ -151,13 +149,12 @@ return isUndefined(v);
function isdef(v){
return !isUndefined(v);
}
-function isElement(o,_5){
-return o&&isObject(o)&&((!_5&&(o==window||o==document))||o.nodeType==1);
+function isElement(o,_21){
+return o&&isObject(o)&&((!_21&&(o==window||o==document))||o.nodeType==1);
}
function isList(o){
return o&&isObject(o)&&isArray(o);
}
-
function $(n,d){
if(isElement(n)){
return n;
@@ -188,72 +185,70 @@ x=d.getElementById(n);
return x;
}
Function.prototype.bindEvent=function(){
-var _4=this,args=$A(arguments),object=args.shift();
-return function(_5){
-return _4.apply(object,[_5||window.event].concat(args));
+var _25=this,args=$A(arguments),object=args.shift();
+return function(_26){
+return _25.apply(object,[_26||window.event].concat(args));
};
};
-
Object.extend(String.prototype,{stripTags:function(){
return this.replace(/<\/?[^>]+>/gi,"");
},stripScripts:function(){
return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"");
},extractScripts:function(){
-var _1=new RegExp(Prototype.ScriptFragment,"img");
-var _2=new RegExp(Prototype.ScriptFragment,"im");
-return (this.match(_1)||[]).map(function(_3){
-return (_3.match(_2)||["",""])[1];
+var _27=new RegExp(Prototype.ScriptFragment,"img");
+var _28=new RegExp(Prototype.ScriptFragment,"im");
+return (this.match(_27)||[]).map(function(_29){
+return (_29.match(_28)||["",""])[1];
});
},evalScripts:function(){
return this.extractScripts().map(eval);
},escapeHTML:function(){
-var _4=document.createElement("div");
-var _5=document.createTextNode(this);
-_4.appendChild(_5);
-return _4.innerHTML;
+var div=document.createElement("div");
+var _31=document.createTextNode(this);
+div.appendChild(_31);
+return div.innerHTML;
},unescapeHTML:function(){
-var _6=document.createElement("div");
-_6.innerHTML=this.stripTags();
-return _6.childNodes[0]?_6.childNodes[0].nodeValue:"";
+var div=document.createElement("div");
+div.innerHTML=this.stripTags();
+return div.childNodes[0]?div.childNodes[0].nodeValue:"";
},toQueryParams:function(){
-var _7=this.match(/^\??(.*)$/)[1].split("&");
-return _7.inject({},function(_8,_9){
-var _10=_9.split("=");
-_8[_10[0]]=_10[1];
-return _8;
+var _32=this.match(/^\??(.*)$/)[1].split("&");
+return _32.inject({},function(_33,_34){
+var _35=_34.split("=");
+_33[_35[0]]=_35[1];
+return _33;
});
},toArray:function(){
return this.split("");
},camelize:function(){
-var _11=this.split("-");
-if(_11.length==1){
-return _11[0];
+var _36=this.split("-");
+if(_36.length==1){
+return _36[0];
}
-var _12=this.indexOf("-")==0?_11[0].charAt(0).toUpperCase()+_11[0].substring(1):_11[0];
-for(var i=1,len=_11.length;i<len;i++){
-var s=_11[i];
-_12+=s.charAt(0).toUpperCase()+s.substring(1);
+var _37=this.indexOf("-")==0?_36[0].charAt(0).toUpperCase()+_36[0].substring(1):_36[0];
+for(var i=1,len=_36.length;i<len;i++){
+var s=_36[i];
+_37+=s.charAt(0).toUpperCase()+s.substring(1);
}
-return _12;
+return _37;
},inspect:function(){
return "'"+this.replace("\\","\\\\").replace("'","\\'")+"'";
}});
String.prototype.parseQuery=String.prototype.toQueryParams;
-
-Object.extend(String.prototype,{pad:function(_1,_2,_3){
-if(!_3){
-_3=" ";
+Object.extend(String.prototype,{pad:function(_39,len,chr){
+if(!chr){
+chr=" ";
}
var s=this;
-var _5=_1.toLowerCase()=="left";
-while(s.length<_2){
-s=_5?_3+s:s+_3;
+var _42=_39.toLowerCase()=="left";
+while(s.length<len){
+s=_42?chr+s:s+chr;
}
return s;
-},padLeft:function(_6,_7){
-return this.pad("left",_6,_7);
-},padRight:function(_8,_9){
-return this.pad("right",_8,_9);
+},padLeft:function(len,chr){
+return this.pad("left",len,chr);
+},padRight:function(len,chr){
+return this.pad("right",len,chr);
},zerofill:function(len){
return this.padLeft(len,"0");
},trim:function(){
@@ -263,15 +258,15 @@ return this.replace(/^\s+/,"");
},trimRight:function(){
return this.replace(/\s+$/,"");
},toFunction:function(){
-var _11=this.split(/\./);
-var _12=window;
-_11.each(function(_13){
-if(_12[new String(_13)]){
-_12=_12[new String(_13)];
+var _43=this.split(/\./);
+var _44=window;
+_43.each(function(_45){
+if(_44[new String(_45)]){
+_44=_44[new String(_45)];
}
});
-if(isFunction(_12)){
-return _12;
+if(isFunction(_44)){
+return _44;
}else{
if(typeof Logger!="undefined"){
Logger.error("Missing function",this);
@@ -285,39 +280,38 @@ return null;
}
var num=parseInt(this,10);
return (isNaN(num)?null:num);
-},toDouble:function(_16){
-_16=_16||".";
-var exp=new RegExp("^\\s*([-\\+])?(\\d+)?(\\"+_16+"(\\d+))?\\s*$");
+},toDouble:function(_48){
+_48=_48||".";
+var exp=new RegExp("^\\s*([-\\+])?(\\d+)?(\\"+_48+"(\\d+))?\\s*$");
var m=this.match(exp);
if(m==null){
return null;
}
-var _18=m[1]+(m[2].length>0?m[2]:"0")+"."+m[4];
-var num=parseFloat(_18);
+var _50=m[1]+(m[2].length>0?m[2]:"0")+"."+m[4];
+var num=parseFloat(_50);
return (isNaN(num)?null:num);
-},toCurrency:function(_19,_20,_21){
-_19=_19||",";
-_21=_21||".";
-_20=typeof (_20)=="undefined"?2:_20;
-var exp=new RegExp("^\\s*([-\\+])?(((\\d+)\\"+_19+")*)(\\d+)"+((_20>0)?"(\\"+_21+"(\\d{1,"+_20+"}))?":"")+"\\s*$");
+},toCurrency:function(_51,_52,_53){
+_51=_51||",";
+_53=_53||".";
+_52=typeof (_52)=="undefined"?2:_52;
+var exp=new RegExp("^\\s*([-\\+])?(((\\d+)\\"+_51+")*)(\\d+)"+((_52>0)?"(\\"+_53+"(\\d{1,"+_52+"}))?":"")+"\\s*$");
var m=this.match(exp);
if(m==null){
return null;
}
-var _22=m[2]+m[5];
-var _23=m[1]+_22.replace(new RegExp("(\\"+_19+")","g"),"")+((_20>0)?"."+m[7]:"");
-var num=parseFloat(_23);
+var _54=m[2]+m[5];
+var _55=m[1]+_54.replace(new RegExp("(\\"+_51+")","g"),"")+((_52>0)?"."+m[7]:"");
+var num=parseFloat(_55);
return (isNaN(num)?null:num);
}});
-
var $break=new Object();
var $continue=new Object();
-var Enumerable={each:function(_1){
-var _2=0;
+var Enumerable={each:function(_56){
+var _57=0;
try{
-this._each(function(_3){
+this._each(function(_58){
try{
-_1(_3,_2++);
+_56(_58,_57++);
}
catch(e){
if(e!=$continue){
@@ -331,155 +325,154 @@ if(e!=$break){
throw e;
}
}
-},all:function(_4){
-var _5=true;
-this.each(function(_6,_7){
-_5=_5&&!!(_4||Prototype.K)(_6,_7);
-if(!_5){
+},all:function(_59){
+var _60=true;
+this.each(function(_61,_62){
+_60=_60&&!!(_59||Prototype.K)(_61,_62);
+if(!_60){
throw $break;
}
});
-return _5;
-},any:function(_8){
-var _9=true;
-this.each(function(_10,_11){
-if(_9=!!(_8||Prototype.K)(_10,_11)){
+return _60;
+},any:function(_63){
+var _64=true;
+this.each(function(_65,_66){
+if(_64=!!(_63||Prototype.K)(_65,_66)){
throw $break;
}
});
-return _9;
-},collect:function(_12){
-var _13=[];
-this.each(function(_14,_15){
-_13.push(_12(_14,_15));
+return _64;
+},collect:function(_67){
+var _68=[];
+this.each(function(_69,_70){
+_68.push(_67(_69,_70));
});
-return _13;
-},detect:function(_16){
-var _17;
-this.each(function(_18,_19){
-if(_16(_18,_19)){
-_17=_18;
+return _68;
+},detect:function(_71){
+var _72;
+this.each(function(_73,_74){
+if(_71(_73,_74)){
+_72=_73;
throw $break;
}
});
-return _17;
-},findAll:function(_20){
-var _21=[];
-this.each(function(_22,_23){
-if(_20(_22,_23)){
-_21.push(_22);
+return _72;
+},findAll:function(_75){
+var _76=[];
+this.each(function(_77,_78){
+if(_75(_77,_78)){
+_76.push(_77);
}
});
-return _21;
-},grep:function(_24,_25){
-var _26=[];
-this.each(function(_27,_28){
-var _29=_27.toString();
-if(_29.match(_24)){
-_26.push((_25||Prototype.K)(_27,_28));
+return _76;
+},grep:function(_79,_80){
+var _81=[];
+this.each(function(_82,_83){
+var _84=_82.toString();
+if(_84.match(_79)){
+_81.push((_80||Prototype.K)(_82,_83));
}
});
-return _26;
-},include:function(_30){
-var _31=false;
-this.each(function(_32){
-if(_32==_30){
-_31=true;
+return _81;
+},include:function(_85){
+var _86=false;
+this.each(function(_87){
+if(_87==_85){
+_86=true;
throw $break;
}
});
-return _31;
-},inject:function(_33,_34){
-this.each(function(_35,_36){
-_33=_34(_33,_35,_36);
+return _86;
+},inject:function(_88,_89){
+this.each(function(_90,_91){
+_88=_89(_88,_90,_91);
});
-return _33;
-},invoke:function(_37){
-var _38=$A(arguments).slice(1);
-return this.collect(function(_39){
-return _39[_37].apply(_39,_38);
+return _88;
+},invoke:function(_92){
+var _93=$A(arguments).slice(1);
+return this.collect(function(_94){
+return _94[_92].apply(_94,_93);
});
-},max:function(_40){
-var _41;
-this.each(function(_42,_43){
-_42=(_40||Prototype.K)(_42,_43);
-if(_42>=(_41||_42)){
-_41=_42;
+},max:function(_95){
+var _96;
+this.each(function(_97,_98){
+_97=(_95||Prototype.K)(_97,_98);
+if(_97>=(_96||_97)){
+_96=_97;
}
});
-return _41;
-},min:function(_44){
-var _45;
-this.each(function(_46,_47){
-_46=(_44||Prototype.K)(_46,_47);
-if(_46<=(_45||_46)){
-_45=_46;
+return _96;
+},min:function(_99){
+var _100;
+this.each(function(_101,_102){
+_101=(_99||Prototype.K)(_101,_102);
+if(_101<=(_100||_101)){
+_100=_101;
}
});
-return _45;
-},partition:function(_48){
-var _49=[],falses=[];
-this.each(function(_50,_51){
-((_48||Prototype.K)(_50,_51)?_49:falses).push(_50);
+return _100;
+},partition:function(_103){
+var _104=[],falses=[];
+this.each(function(_105,_106){
+((_103||Prototype.K)(_105,_106)?_104:falses).push(_105);
});
-return [_49,falses];
-},pluck:function(_52){
-var _53=[];
-this.each(function(_54,_55){
-_53.push(_54[_52]);
+return [_104,falses];
+},pluck:function(_107){
+var _108=[];
+this.each(function(_109,_110){
+_108.push(_109[_107]);
});
-return _53;
-},reject:function(_56){
-var _57=[];
-this.each(function(_58,_59){
-if(!_56(_58,_59)){
-_57.push(_58);
+return _108;
+},reject:function(_111){
+var _112=[];
+this.each(function(_113,_114){
+if(!_111(_113,_114)){
+_112.push(_113);
}
});
-return _57;
-},sortBy:function(_60){
-return this.collect(function(_61,_62){
-return {value:_61,criteria:_60(_61,_62)};
-}).sort(function(_63,_64){
-var a=_63.criteria,b=_64.criteria;
+return _112;
+},sortBy:function(_115){
+return this.collect(function(_116,_117){
+return {value:_116,criteria:_115(_116,_117)};
+}).sort(function(left,_119){
+var a=left.criteria,b=_119.criteria;
return a<b?-1:a>b?1:0;
}).pluck("value");
},toArray:function(){
return this.collect(Prototype.K);
},zip:function(){
-var _66=Prototype.K,args=$A(arguments);
+var _120=Prototype.K,args=$A(arguments);
if(typeof args.last()=="function"){
-_66=args.pop();
+_120=args.pop();
}
-var _67=[this].concat(args).map($A);
-return this.map(function(_68,_69){
-_66(_68=_67.pluck(_69));
-return _68;
+var _121=[this].concat(args).map($A);
+return this.map(function(_122,_123){
+_120(_122=_121.pluck(_123));
+return _122;
});
},inspect:function(){
return "#<Enumerable:"+this.toArray().inspect()+">";
}};
Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray});
-
-var $A=Array.from=function(_1){
-if(!_1){
+var $A=Array.from=function(_124){
+if(!_124){
return [];
}
-if(_1.toArray){
-return _1.toArray();
+if(_124.toArray){
+return _124.toArray();
}else{
-var _2=[];
-for(var i=0;i<_1.length;i++){
-_2.push(_1[i]);
+var _125=[];
+for(var i=0;i<_124.length;i++){
+_125.push(_124[i]);
}
-return _2;
+return _125;
}
};
Object.extend(Array.prototype,Enumerable);
Array.prototype._reverse=Array.prototype.reverse;
-Object.extend(Array.prototype,{_each:function(_4){
+Object.extend(Array.prototype,{_each:function(_126){
for(var i=0;i<this.length;i++){
-_4(this[i]);
+_126(this[i]);
}
},clear:function(){
this.length=0;
@@ -489,253 +482,250 @@ return this[0];
},last:function(){
return this[this.length-1];
},compact:function(){
-return this.select(function(_5){
-return _5!=undefined||_5!=null;
+return this.select(function(_127){
+return _127!=undefined||_127!=null;
});
},flatten:function(){
-return this.inject([],function(_6,_7){
-return _6.concat(_7.constructor==Array?_7.flatten():[_7]);
+return this.inject([],function(_128,_129){
+return _128.concat(_129.constructor==Array?_129.flatten():[_129]);
});
},without:function(){
-var _8=$A(arguments);
-return this.select(function(_9){
-return !_8.include(_9);
+var _130=$A(arguments);
+return this.select(function(_131){
+return !_130.include(_131);
});
-},indexOf:function(_10){
+},indexOf:function(_132){
for(var i=0;i<this.length;i++){
-if(this[i]==_10){
+if(this[i]==_132){
return i;
}
}
return -1;
-},reverse:function(_11){
-return (_11!==false?this:this.toArray())._reverse();
+},reverse:function(_133){
+return (_133!==false?this:this.toArray())._reverse();
},shift:function(){
-var _12=this[0];
+var _134=this[0];
for(var i=0;i<this.length-1;i++){
this[i]=this[i+1];
}
this.length--;
-return _12;
+return _134;
},inspect:function(){
return "["+this.map(Object.inspect).join(", ")+"]";
}});
-
-var Hash={_each:function(_1){
+var Hash={_each:function(_135){
for(key in this){
-var _2=this[key];
-if(typeof _2=="function"){
+var _136=this[key];
+if(typeof _136=="function"){
continue;
}
-var _3=[key,_2];
-_3.key=key;
-_3.value=_2;
-_1(_3);
+var pair=[key,_136];
+pair.key=key;
+pair.value=_136;
+_135(pair);
}
},keys:function(){
return this.pluck("key");
},values:function(){
return this.pluck("value");
-},merge:function(_4){
-return $H(_4).inject($H(this),function(_5,_6){
-_5[_6.key]=_6.value;
-return _5;
+},merge:function(hash){
+return $H(hash).inject($H(this),function(_139,pair){
+_139[pair.key]=pair.value;
+return _139;
});
},toQueryString:function(){
-return this.map(function(_7){
-return _7.map(encodeURIComponent).join("=");
+return this.map(function(pair){
+return pair.map(encodeURIComponent).join("=");
}).join("&");
},inspect:function(){
-return "#<Hash:{"+this.map(function(_8){
-return _8.map(Object.inspect).join(": ");
+return "#<Hash:{"+this.map(function(pair){
+return pair.map(Object.inspect).join(": ");
}).join(", ")+"}>";
}};
-function $H(_9){
-var _10=Object.extend({},_9||{});
-Object.extend(_10,Enumerable);
-Object.extend(_10,Hash);
-return _10;
+function $H(_140){
+var hash=Object.extend({},_140||{});
+Object.extend(hash,Enumerable);
+Object.extend(hash,Hash);
+return hash;
}
-
ObjectRange=Class.create();
Object.extend(ObjectRange.prototype,Enumerable);
-Object.extend(ObjectRange.prototype,{initialize:function(_1,_2,_3){
-this.start=_1;
-this.end=_2;
-this.exclusive=_3;
-},_each:function(_4){
-var _5=this.start;
+Object.extend(ObjectRange.prototype,{initialize:function(_141,end,_143){
+this.start=_141;
+this.end=end;
+this.exclusive=_143;
+},_each:function(_144){
+var _145=this.start;
do{
-_4(_5);
-_5=_5.succ();
-}while(this.include(_5));
-},include:function(_6){
-if(_6<this.start){
+_144(_145);
+_145=_145.succ();
+}while(this.include(_145));
+},include:function(_146){
+if(_146<this.start){
return false;
}
if(this.exclusive){
-return _6<this.end;
+return _146<this.end;
}
-return _6<=this.end;
+return _146<=this.end;
}});
-var $R=function(_7,_8,_9){
-return new ObjectRange(_7,_8,_9);
+var $R=function(_147,end,_148){
+return new ObjectRange(_147,end,_148);
};
-
-document.getElementsByClassName=function(_1,_2){
-var _3=($(_2)||document.body).getElementsByTagName("*");
-return $A(_3).inject([],function(_4,_5){
-if(_5.className.match(new RegExp("(^|\\s)"+_1+"(\\s|$)"))){
-_4.push(_5);
+document.getElementsByClassName=function(_149,_150){
+var _151=($(_150)||document.body).getElementsByTagName("*");
+return $A(_151).inject([],function(_152,_153){
+if(_153.className.match(new RegExp("(^|\\s)"+_149+"(\\s|$)"))){
+_152.push(_153);
}
-return _4;
+return _152;
});
};
if(!window.Element){
var Element=new Object();
}
-Object.extend(Element,{visible:function(_6){
-return $(_6).style.display!="none";
+Object.extend(Element,{visible:function(_154){
+return $(_154).style.display!="none";
},toggle:function(){
for(var i=0;i<arguments.length;i++){
-var _8=$(arguments[i]);
-Element[Element.visible(_8)?"hide":"show"](_8);
+var _155=$(arguments[i]);
+Element[Element.visible(_155)?"hide":"show"](_155);
}
},hide:function(){
for(var i=0;i<arguments.length;i++){
-var _9=$(arguments[i]);
-_9.style.display="none";
+var _156=$(arguments[i]);
+_156.style.display="none";
}
},show:function(){
for(var i=0;i<arguments.length;i++){
-var _10=$(arguments[i]);
-_10.style.display="";
-}
-},remove:function(_11){
-_11=$(_11);
-_11.parentNode.removeChild(_11);
-},update:function(_12,_13){
-$(_12).innerHTML=_13.stripScripts();
+var _157=$(arguments[i]);
+_157.style.display="";
+}
+},remove:function(_158){
+_158=$(_158);
+_158.parentNode.removeChild(_158);
+},update:function(_159,html){
+$(_159).innerHTML=html.stripScripts();
setTimeout(function(){
-_13.evalScripts();
+html.evalScripts();
},10);
-},getHeight:function(_14){
-_14=$(_14);
-return _14.offsetHeight;
-},classNames:function(_15){
-return new Element.ClassNames(_15);
-},hasClassName:function(_16,_17){
-if(!(_16=$(_16))){
+},getHeight:function(_161){
+_161=$(_161);
+return _161.offsetHeight;
+},classNames:function(_162){
+return new Element.ClassNames(_162);
+},hasClassName:function(_163,_164){
+if(!(_163=$(_163))){
return;
}
-return Element.classNames(_16).include(_17);
-},addClassName:function(_18,_19){
-if(!(_18=$(_18))){
+return Element.classNames(_163).include(_164);
+},addClassName:function(_165,_166){
+if(!(_165=$(_165))){
return;
}
-return Element.classNames(_18).add(_19);
-},removeClassName:function(_20,_21){
-if(!(_20=$(_20))){
+return Element.classNames(_165).add(_166);
+},removeClassName:function(_167,_168){
+if(!(_167=$(_167))){
return;
}
-return Element.classNames(_20).remove(_21);
-},cleanWhitespace:function(_22){
-_22=$(_22);
-for(var i=0;i<_22.childNodes.length;i++){
-var _23=_22.childNodes[i];
-if(_23.nodeType==3&&!/\S/.test(_23.nodeValue)){
-Element.remove(_23);
+return Element.classNames(_167).remove(_168);
+},cleanWhitespace:function(_169){
+_169=$(_169);
+for(var i=0;i<_169.childNodes.length;i++){
+var node=_169.childNodes[i];
+if(node.nodeType==3&&!/\S/.test(node.nodeValue)){
+Element.remove(node);
}
}
-},empty:function(_24){
-return $(_24).innerHTML.match(/^\s*$/);
-},scrollTo:function(_25){
-_25=$(_25);
-var x=_25.x?_25.x:_25.offsetLeft,y=_25.y?_25.y:_25.offsetTop;
+},empty:function(_171){
+return $(_171).innerHTML.match(/^\s*$/);
+},scrollTo:function(_172){
+_172=$(_172);
+var x=_172.x?_172.x:_172.offsetLeft,y=_172.y?_172.y:_172.offsetTop;
window.scrollTo(x,y);
-},getStyle:function(_27,_28){
-_27=$(_27);
-var _29=_27.style[_28.camelize()];
-if(!_29){
+},getStyle:function(_173,_174){
+_173=$(_173);
+var _175=_173.style[_174.camelize()];
+if(!_175){
if(document.defaultView&&document.defaultView.getComputedStyle){
-var css=document.defaultView.getComputedStyle(_27,null);
-_29=css?css.getPropertyValue(_28):null;
+var css=document.defaultView.getComputedStyle(_173,null);
+_175=css?css.getPropertyValue(_174):null;
}else{
-if(_27.currentStyle){
-_29=_27.currentStyle[_28.camelize()];
+if(_173.currentStyle){
+_175=_173.currentStyle[_174.camelize()];
}
}
}
-if(window.opera&&["left","top","right","bottom"].include(_28)){
-if(Element.getStyle(_27,"position")=="static"){
-_29="auto";
+if(window.opera&&["left","top","right","bottom"].include(_174)){
+if(Element.getStyle(_173,"position")=="static"){
+_175="auto";
}
}
-return _29=="auto"?null:_29;
-},setStyle:function(_31,_32){
-_31=$(_31);
-for(name in _32){
-_31.style[name.camelize()]=_32[name];
+return _175=="auto"?null:_175;
+},setStyle:function(_177,_178){
+_177=$(_177);
+for(name in _178){
+_177.style[name.camelize()]=_178[name];
}
-},getDimensions:function(_33){
-_33=$(_33);
-if(Element.getStyle(_33,"display")!="none"){
-return {width:_33.offsetWidth,height:_33.offsetHeight};
+},getDimensions:function(_179){
+_179=$(_179);
+if(Element.getStyle(_179,"display")!="none"){
+return {width:_179.offsetWidth,height:_179.offsetHeight};
}
-var els=_33.style;
-var _35=els.visibility;
-var _36=els.position;
+var els=_179.style;
+var _181=els.visibility;
+var _182=els.position;
els.visibility="hidden";
els.position="absolute";
els.display="";
-var _37=_33.clientWidth;
-var _38=_33.clientHeight;
+var _183=_179.clientWidth;
+var _184=_179.clientHeight;
els.display="none";
-els.position=_36;
-els.visibility=_35;
-return {width:_37,height:_38};
-},makePositioned:function(_39){
-_39=$(_39);
-var pos=Element.getStyle(_39,"position");
+els.position=_182;
+els.visibility=_181;
+return {width:_183,height:_184};
+},makePositioned:function(_185){
+_185=$(_185);
+var pos=Element.getStyle(_185,"position");
if(pos=="static"||!pos){
-_39._madePositioned=true;
-_39.style.position="relative";
+_185._madePositioned=true;
+_185.style.position="relative";
if(window.opera){
-_39.style.top=0;
-_39.style.left=0;
+_185.style.top=0;
+_185.style.left=0;
}
}
-},undoPositioned:function(_41){
-_41=$(_41);
-if(_41._madePositioned){
-_41._madePositioned=undefined;
-_41.style.position=_41.style.top=_41.style.left=_41.style.bottom=_41.style.right="";
+},undoPositioned:function(_187){
+_187=$(_187);
+if(_187._madePositioned){
+_187._madePositioned=undefined;
+_187.style.position=_187.style.top=_187.style.left=_187.style.bottom=_187.style.right="";
}
-},makeClipping:function(_42){
-_42=$(_42);
-if(_42._overflow){
+},makeClipping:function(_188){
+_188=$(_188);
+if(_188._overflow){
return;
}
-_42._overflow=_42.style.overflow;
-if((Element.getStyle(_42,"overflow")||"visible")!="hidden"){
-_42.style.overflow="hidden";
+_188._overflow=_188.style.overflow;
+if((Element.getStyle(_188,"overflow")||"visible")!="hidden"){
+_188.style.overflow="hidden";
}
-},undoClipping:function(_43){
-_43=$(_43);
-if(_43._overflow){
+},undoClipping:function(_189){
+_189=$(_189);
+if(_189._overflow){
return;
}
-_43.style.overflow=_43._overflow;
-_43._overflow=undefined;
+_189.style.overflow=_189._overflow;
+_189._overflow=undefined;
}});
var Toggle=new Object();
Toggle.display=Element.toggle;
-Abstract.Insertion=function(_44){
-this.adjacency=_44;
+Abstract.Insertion=function(_190){
+this.adjacency=_190;
};
-Abstract.Insertion.prototype={initialize:function(_45,_46){
-this.element=$(_45);
-this.content=_46.stripScripts();
+Abstract.Insertion.prototype={initialize:function(_191,_192){
+this.element=$(_191);
+this.content=_192.stripScripts();
if(this.adjacency&&this.element.insertAdjacentHTML){
try{
this.element.insertAdjacentHTML(this.adjacency,this.content);
@@ -755,7 +745,7 @@ this.initializeRange();
this.insertContent([this.range.createContextualFragment(this.content)]);
}
setTimeout(function(){
-_46.evalScripts();
+_192.evalScripts();
},10);
},contentFromAnonymousTable:function(){
var div=document.createElement("div");
@@ -766,73 +756,71 @@ var Insertion=new Object();
Insertion.Before=Class.create();
Insertion.Before.prototype=Object.extend(new Abstract.Insertion("beforeBegin"),{initializeRange:function(){
this.range.setStartBefore(this.element);
-},insertContent:function(_48){
-_48.each((function(_49){
-this.element.parentNode.insertBefore(_49,this.element);
+},insertContent:function(_193){
+_193.each((function(_194){
+this.element.parentNode.insertBefore(_194,this.element);
}).bind(this));
}});
Insertion.Top=Class.create();
Insertion.Top.prototype=Object.extend(new Abstract.Insertion("afterBegin"),{initializeRange:function(){
this.range.selectNodeContents(this.element);
this.range.collapse(true);
-},insertContent:function(_50){
-_50.reverse(false).each((function(_51){
-this.element.insertBefore(_51,this.element.firstChild);
+},insertContent:function(_195){
+_195.reverse(false).each((function(_196){
+this.element.insertBefore(_196,this.element.firstChild);
}).bind(this));
}});
Insertion.Bottom=Class.create();
Insertion.Bottom.prototype=Object.extend(new Abstract.Insertion("beforeEnd"),{initializeRange:function(){
this.range.selectNodeContents(this.element);
this.range.collapse(this.element);
-},insertContent:function(_52){
-_52.each((function(_53){
-this.element.appendChild(_53);
+},insertContent:function(_197){
+_197.each((function(_198){
+this.element.appendChild(_198);
}).bind(this));
}});
Insertion.After=Class.create();
Insertion.After.prototype=Object.extend(new Abstract.Insertion("afterEnd"),{initializeRange:function(){
this.range.setStartAfter(this.element);
-},insertContent:function(_54){
-_54.each((function(_55){
-this.element.parentNode.insertBefore(_55,this.element.nextSibling);
+},insertContent:function(_199){
+_199.each((function(_200){
+this.element.parentNode.insertBefore(_200,this.element.nextSibling);
}).bind(this));
}});
Element.ClassNames=Class.create();
-Element.ClassNames.prototype={initialize:function(_56){
-this.element=$(_56);
-},_each:function(_57){
-this.element.className.split(/\s+/).select(function(_58){
-return _58.length>0;
-})._each(_57);
-},set:function(_59){
-this.element.className=_59;
-},add:function(_60){
-if(this.include(_60)){
+Element.ClassNames.prototype={initialize:function(_201){
+this.element=$(_201);
+},_each:function(_202){
+this.element.className.split(/\s+/).select(function(name){
+return name.length>0;
+})._each(_202);
+},set:function(_204){
+this.element.className=_204;
+},add:function(_205){
+if(this.include(_205)){
return;
}
-this.set(this.toArray().concat(_60).join(" "));
-},remove:function(_61){
-if(!this.include(_61)){
+this.set(this.toArray().concat(_205).join(" "));
+},remove:function(_206){
+if(!this.include(_206)){
return;
}
-this.set(this.select(function(_62){
-return _62!=_61;
+this.set(this.select(function(_207){
+return _207!=_206;
}).join(" "));
},toString:function(){
return this.toArray().join(" ");
}};
Object.extend(Element.ClassNames.prototype,Enumerable);
-
-Object.extend(Element,{condClassName:function(_1,_2,_3){
-(_3?Element.addClassName:Element.removeClassName)(_1,_2);
+Object.extend(Element,{condClassName:function(_208,_209,cond){
+(cond?Element.addClassName:Element.removeClassName)(_208,_209);
}});
-
var Field={clear:function(){
for(var i=0;i<arguments.length;i++){
$(arguments[i]).value="";
}
-},focus:function(_2){
-$(_2).focus();
+},focus:function(_211){
+$(_211).focus();
},present:function(){
for(var i=0;i<arguments.length;i++){
if($(arguments[i]).value==""){
@@ -840,156 +828,156 @@ return false;
}
}
return true;
-},select:function(_3){
-$(_3).select();
-},activate:function(_4){
-_4=$(_4);
-_4.focus();
-if(_4.select){
-_4.select();
+},select:function(_212){
+$(_212).select();
+},activate:function(_213){
+_213=$(_213);
+_213.focus();
+if(_213.select){
+_213.select();
}
}};
-var Form={serialize:function(_5){
-var _6=Form.getElements($(_5));
-var _7=new Array();
-for(var i=0;i<_6.length;i++){
-var _8=Form.Element.serialize(_6[i]);
-if(_8){
-_7.push(_8);
-}
-}
-return _7.join("&");
-},getElements:function(_9){
-_9=$(_9);
-var _10=new Array();
+var Form={serialize:function(form){
+var _215=Form.getElements($(form));
+var _216=new Array();
+for(var i=0;i<_215.length;i++){
+var _217=Form.Element.serialize(_215[i]);
+if(_217){
+_216.push(_217);
+}
+}
+return _216.join("&");
+},getElements:function(form){
+form=$(form);
+var _218=new Array();
for(tagName in Form.Element.Serializers){
-var _11=_9.getElementsByTagName(tagName);
-for(var j=0;j<_11.length;j++){
-_10.push(_11[j]);
-}
-}
-return _10;
-},getInputs:function(_13,_14,_15){
-_13=$(_13);
-var _16=_13.getElementsByTagName("input");
-if(!_14&&!_15){
-return _16;
-}
-var _17=new Array();
-for(var i=0;i<_16.length;i++){
-var _18=_16[i];
-if((_14&&_18.type!=_14)||(_15&&_18.name!=_15)){
+var _219=form.getElementsByTagName(tagName);
+for(var j=0;j<_219.length;j++){
+_218.push(_219[j]);
+}
+}
+return _218;
+},getInputs:function(form,_221,name){
+form=$(form);
+var _222=form.getElementsByTagName("input");
+if(!_221&&!name){
+return _222;
+}
+var _223=new Array();
+for(var i=0;i<_222.length;i++){
+var _224=_222[i];
+if((_221&&_224.type!=_221)||(name&&_224.name!=name)){
continue;
}
-_17.push(_18);
-}
-return _17;
-},disable:function(_19){
-var _20=Form.getElements(_19);
-for(var i=0;i<_20.length;i++){
-var _21=_20[i];
-_21.blur();
-_21.disabled="true";
-}
-},enable:function(_22){
-var _23=Form.getElements(_22);
-for(var i=0;i<_23.length;i++){
-var _24=_23[i];
-_24.disabled="";
-}
-},findFirstElement:function(_25){
-return Form.getElements(_25).find(function(_26){
-return _26.type!="hidden"&&!_26.disabled&&["input","select","textarea"].include(_26.tagName.toLowerCase());
+_223.push(_224);
+}
+return _223;
+},disable:function(form){
+var _225=Form.getElements(form);
+for(var i=0;i<_225.length;i++){
+var _226=_225[i];
+_226.blur();
+_226.disabled="true";
+}
+},enable:function(form){
+var _227=Form.getElements(form);
+for(var i=0;i<_227.length;i++){
+var _228=_227[i];
+_228.disabled="";
+}
+},findFirstElement:function(form){
+return Form.getElements(form).find(function(_229){
+return _229.type!="hidden"&&!_229.disabled&&["input","select","textarea"].include(_229.tagName.toLowerCase());
});
-},focusFirstElement:function(_27){
-Field.activate(Form.findFirstElement(_27));
-},reset:function(_28){
-$(_28).reset();
+},focusFirstElement:function(form){
+Field.activate(Form.findFirstElement(form));
+},reset:function(form){
+$(form).reset();
}};
-Form.Element={serialize:function(_29){
-_29=$(_29);
-var _30=_29.tagName.toLowerCase();
-var _31=Form.Element.Serializers[_30](_29);
-if(_31){
-var key=encodeURIComponent(_31[0]);
+Form.Element={serialize:function(_230){
+_230=$(_230);
+var _231=_230.tagName.toLowerCase();
+var _232=Form.Element.Serializers[_231](_230);
+if(_232){
+var key=encodeURIComponent(_232[0]);
if(key.length==0){
return;
}
-if(_31[1].constructor!=Array){
-_31[1]=[_31[1]];
+if(_232[1].constructor!=Array){
+_232[1]=[_232[1]];
}
-return _31[1].map(function(_33){
-return key+"="+encodeURIComponent(_33);
+return _232[1].map(function(_234){
+return key+"="+encodeURIComponent(_234);
}).join("&");
}
-},getValue:function(_34){
-_34=$(_34);
-var _35=_34.tagName.toLowerCase();
-var _36=Form.Element.Serializers[_35](_34);
-if(_36){
-return _36[1];
+},getValue:function(_235){
+_235=$(_235);
+var _236=_235.tagName.toLowerCase();
+var _237=Form.Element.Serializers[_236](_235);
+if(_237){
+return _237[1];
}
}};
-Form.Element.Serializers={input:function(_37){
-switch(_37.type.toLowerCase()){
+Form.Element.Serializers={input:function(_238){
+switch(_238.type.toLowerCase()){
case "submit":
case "hidden":
case "password":
case "text":
-return Form.Element.Serializers.textarea(_37);
+return Form.Element.Serializers.textarea(_238);
case "checkbox":
case "radio":
-return Form.Element.Serializers.inputSelector(_37);
+return Form.Element.Serializers.inputSelector(_238);
}
return false;
-},inputSelector:function(_38){
-if(_38.checked){
-return [_38.name,_38.value];
-}
-},textarea:function(_39){
-return [_39.name,_39.value];
-},select:function(_40){
-return Form.Element.Serializers[_40.type=="select-one"?"selectOne":"selectMany"](_40);
-},selectOne:function(_41){
-var _42="",opt,index=_41.selectedIndex;
+},inputSelector:function(_239){
+if(_239.checked){
+return [_239.name,_239.value];
+}
+},textarea:function(_240){
+return [_240.name,_240.value];
+},select:function(_241){
+return Form.Element.Serializers[_241.type=="select-one"?"selectOne":"selectMany"](_241);
+},selectOne:function(_242){
+var _243="",opt,index=_242.selectedIndex;
if(index>=0){
-opt=_41.options[index];
-_42=opt.value;
-if(!_42&&!("value" in opt)){
-_42=opt.text;
+opt=_242.options[index];
+_243=opt.value;
+if(!_243&&!("value" in opt)){
+_243=opt.text;
}
}
-return [_41.name,_42];
-},selectMany:function(_43){
-var _44=new Array();
-for(var i=0;i<_43.length;i++){
-var opt=_43.options[i];
+return [_242.name,_243];
+},selectMany:function(_244){
+var _245=new Array();
+for(var i=0;i<_244.length;i++){
+var opt=_244.options[i];
if(opt.selected){
-var _46=opt.value;
-if(!_46&&!("value" in opt)){
-_46=opt.text;
+var _247=opt.value;
+if(!_247&&!("value" in opt)){
+_247=opt.text;
}
-_44.push(_46);
+_245.push(_247);
}
}
-return [_43.name,_44];
+return [_244.name,_245];
}};
var $F=Form.Element.getValue;
Abstract.TimedObserver=function(){
};
-Abstract.TimedObserver.prototype={initialize:function(_47,_48,_49){
-this.frequency=_48;
-this.element=$(_47);
-this.callback=_49;
+Abstract.TimedObserver.prototype={initialize:function(_248,_249,_250){
+this.frequency=_249;
+this.element=$(_248);
+this.callback=_250;
this.lastValue=this.getValue();
this.registerCallback();
},registerCallback:function(){
setInterval(this.onTimerEvent.bind(this),this.frequency*1000);
},onTimerEvent:function(){
-var _50=this.getValue();
-if(this.lastValue!=_50){
-this.callback(this.element,_50);
-this.lastValue=_50;
+var _251=this.getValue();
+if(this.lastValue!=_251){
+this.callback(this.element,_251);
+this.lastValue=_251;
}
}};
Form.Element.Observer=Class.create();
@@ -1002,9 +990,9 @@ return Form.serialize(this.element);
}});
Abstract.EventObserver=function(){
};
-Abstract.EventObserver.prototype={initialize:function(_51,_52){
-this.element=$(_51);
-this.callback=_52;
+Abstract.EventObserver.prototype={initialize:function(_252,_253){
+this.element=$(_252);
+this.callback=_253;
this.lastValue=this.getValue();
if(this.element.tagName.toLowerCase()=="form"){
this.registerFormCallbacks();
@@ -1012,29 +1000,29 @@ this.registerFormCallbacks();
this.registerCallback(this.element);
}
},onElementEvent:function(){
-var _53=this.getValue();
-if(this.lastValue!=_53){
-this.callback(this.element,_53);
-this.lastValue=_53;
+var _254=this.getValue();
+if(this.lastValue!=_254){
+this.callback(this.element,_254);
+this.lastValue=_254;
}
},registerFormCallbacks:function(){
-var _54=Form.getElements(this.element);
-for(var i=0;i<_54.length;i++){
-this.registerCallback(_54[i]);
+var _255=Form.getElements(this.element);
+for(var i=0;i<_255.length;i++){
+this.registerCallback(_255[i]);
}
-},registerCallback:function(_55){
-if(_55.type){
-switch(_55.type.toLowerCase()){
+},registerCallback:function(_256){
+if(_256.type){
+switch(_256.type.toLowerCase()){
case "checkbox":
case "radio":
-Event.observe(_55,"click",this.onElementEvent.bind(this));
+Event.observe(_256,"click",this.onElementEvent.bind(this));
break;
case "password":
case "text":
case "textarea":
case "select-one":
case "select-multiple":
-Event.observe(_55,"change",this.onElementEvent.bind(this));
+Event.observe(_256,"change",this.onElementEvent.bind(this));
break;
}
}
@@ -1047,43 +1035,42 @@ Form.EventObserver=Class.create();
Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){
return Form.serialize(this.element);
}});
-
if(!window.Event){
var Event=new Object();
}
-Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(_1){
-return _1.target||_1.srcElement;
-},isLeftClick:function(_2){
-return (((_2.which)&&(_2.which==1))||((_2.button)&&(_2.button==1)));
-},pointerX:function(_3){
-return _3.pageX||(_3.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));
-},pointerY:function(_4){
-return _4.pageY||(_4.clientY+(document.documentElement.scrollTop||document.body.scrollTop));
-},stop:function(_5){
-if(_5.preventDefault){
-_5.preventDefault();
-_5.stopPropagation();
+Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(_257){
+return _257.target||_257.srcElement;
+},isLeftClick:function(_258){
+return (((_258.which)&&(_258.which==1))||((_258.button)&&(_258.button==1)));
+},pointerX:function(_259){
+return _259.pageX||(_259.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));
+},pointerY:function(_260){
+return _260.pageY||(_260.clientY+(document.documentElement.scrollTop||document.body.scrollTop));
+},stop:function(_261){
+if(_261.preventDefault){
+_261.preventDefault();
+_261.stopPropagation();
}else{
-_5.returnValue=false;
-_5.cancelBubble=true;
+_261.returnValue=false;
+_261.cancelBubble=true;
}
-},findElement:function(_6,_7){
-var _8=Event.element(_6);
-while(_8.parentNode&&(!_8.tagName||(_8.tagName.toUpperCase()!=_7.toUpperCase()))){
-_8=_8.parentNode;
+},findElement:function(_262,_263){
+var _264=Event.element(_262);
+while(_264.parentNode&&(!_264.tagName||(_264.tagName.toUpperCase()!=_263.toUpperCase()))){
+_264=_264.parentNode;
}
-return _8;
-},observers:false,_observeAndCache:function(_9,_10,_11,_12){
+return _264;
+},observers:false,_observeAndCache:function(_265,name,_266,_267){
if(!this.observers){
this.observers=[];
}
-if(_9.addEventListener){
-this.observers.push([_9,_10,_11,_12]);
-_9.addEventListener(_10,_11,_12);
+if(_265.addEventListener){
+this.observers.push([_265,name,_266,_267]);
+_265.addEventListener(name,_266,_267);
}else{
-if(_9.attachEvent){
-this.observers.push([_9,_10,_11,_12]);
-_9.attachEvent("on"+_10,_11);
+if(_265.attachEvent){
+this.observers.push([_265,name,_266,_267]);
+_265.attachEvent("on"+name,_266);
}
}
},unloadCache:function(){
@@ -1095,578 +1082,571 @@ Event.stopObserving.apply(this,Event.observers[i]);
Event.observers[i][0]=null;
}
Event.observers=false;
-},observe:function(_14,_15,_16,_17){
-var _14=$(_14);
-_17=_17||false;
-if(_15=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_14.attachEvent)){
-_15="keydown";
-}
-this._observeAndCache(_14,_15,_16,_17);
-},stopObserving:function(_18,_19,_20,_21){
-var _18=$(_18);
-_21=_21||false;
-if(_19=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_18.detachEvent)){
-_19="keydown";
-}
-if(_18.removeEventListener){
-_18.removeEventListener(_19,_20,_21);
+},observe:function(_268,name,_269,_270){
+var _268=$(_268);
+_270=_270||false;
+if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_268.attachEvent)){
+name="keydown";
+}
+this._observeAndCache(_268,name,_269,_270);
+},stopObserving:function(_271,name,_272,_273){
+var _271=$(_271);
+_273=_273||false;
+if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_271.detachEvent)){
+name="keydown";
+}
+if(_271.removeEventListener){
+_271.removeEventListener(name,_272,_273);
}else{
-if(_18.detachEvent){
-_18.detachEvent("on"+_19,_20);
+if(_271.detachEvent){
+_271.detachEvent("on"+name,_272);
}
}
}});
Event.observe(window,"unload",Event.unloadCache,false);
-
Object.extend(Event,{OnLoad:function(fn){
var w=document.addEventListener&&!window.addEventListener?document:window;
Event.__observe(w,"load",fn);
-},observe:function(_3,_4,_5,_6){
-if(!isList(_3)){
-return this.__observe(_3,_4,_5,_6);
+},observe:function(_276,name,_277,_278){
+if(!isList(_276)){
+return this.__observe(_276,name,_277,_278);
}
-for(var i=0;i<_3.length;i++){
-this.__observe(_3[i],_4,_5,_6);
+for(var i=0;i<_276.length;i++){
+this.__observe(_276[i],name,_277,_278);
}
-},__observe:function(_8,_9,_10,_11){
-var _8=$(_8);
-_11=_11||false;
-if(_9=="keypress"&&((navigator.appVersion.indexOf("AppleWebKit")>0)||_8.attachEvent)){
-_9="keydown";
+},__observe:function(_279,name,_280,_281){
+var _279=$(_279);
+_281=_281||false;
+if(name=="keypress"&&((navigator.appVersion.indexOf("AppleWebKit")>0)||_279.attachEvent)){
+name="keydown";
}
-this._observeAndCache(_8,_9,_10,_11);
+this._observeAndCache(_279,name,_280,_281);
},keyCode:function(e){
return e.keyCode!=null?e.keyCode:e.charCode;
-},isHTMLEvent:function(_13){
-var _14=["abort","blur","change","error","focus","load","reset","resize","scroll","select","submit","unload"];
-return _14.include(_13);
-},isMouseEvent:function(_15){
-var _16=["click","mousedown","mousemove","mouseout","mouseover","mouseup"];
-return _16.include(_15);
-},fireEvent:function(_17,_18){
+},isHTMLEvent:function(type){
+var _284=["abort","blur","change","error","focus","load","reset","resize","scroll","select","submit","unload"];
+return _284.include(type);
+},isMouseEvent:function(type){
+var _285=["click","mousedown","mousemove","mouseout","mouseover","mouseup"];
+return _285.include(type);
+},fireEvent:function(_286,type){
if(document.createEvent){
-if(Event.isHTMLEvent(_18)){
-var _19=document.createEvent("HTMLEvents");
-_19.initEvent(_18,true,true);
+if(Event.isHTMLEvent(type)){
+var _287=document.createEvent("HTMLEvents");
+_287.initEvent(type,true,true);
}else{
-if(Event.isMouseEvent(_18)){
-var _19=document.createEvent("MouseEvents");
-_19.initMouseEvent(_18,true,true,document.defaultView,1,0,0,0,0,false,false,false,false,0,null);
+if(Event.isMouseEvent(type)){
+var _287=document.createEvent("MouseEvents");
+_287.initMouseEvent(type,true,true,document.defaultView,1,0,0,0,0,false,false,false,false,0,null);
}else{
if(Logger){
-Logger.error("undefined event",_18);
+Logger.error("undefined event",type);
}
return;
}
}
-_17.dispatchEvent(_19);
+_286.dispatchEvent(_287);
}else{
-if(_17.fireEvent){
-_17.fireEvent("on"+_18);
-_17[_18]();
+if(_286.fireEvent){
+_286.fireEvent("on"+type);
+_286[type]();
}else{
-_17[_18]();
+_286[type]();
}
}
}});
-
var Position={includeScrollOffsets:false,prepare:function(){
this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;
this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;
-},realOffset:function(_1){
-var _2=0,valueL=0;
+},realOffset:function(_288){
+var _289=0,valueL=0;
do{
-_2+=_1.scrollTop||0;
-valueL+=_1.scrollLeft||0;
-_1=_1.parentNode;
-}while(_1);
-return [valueL,_2];
-},cumulativeOffset:function(_3){
-var _4=0,valueL=0;
+_289+=_288.scrollTop||0;
+valueL+=_288.scrollLeft||0;
+_288=_288.parentNode;
+}while(_288);
+return [valueL,_289];
+},cumulativeOffset:function(_290){
+var _291=0,valueL=0;
do{
-_4+=_3.offsetTop||0;
-valueL+=_3.offsetLeft||0;
-_3=_3.offsetParent;
-}while(_3);
-return [valueL,_4];
-},positionedOffset:function(_5){
-var _6=0,valueL=0;
+_291+=_290.offsetTop||0;
+valueL+=_290.offsetLeft||0;
+_290=_290.offsetParent;
+}while(_290);
+return [valueL,_291];
+},positionedOffset:function(_292){
+var _293=0,valueL=0;
do{
-_6+=_5.offsetTop||0;
-valueL+=_5.offsetLeft||0;
-_5=_5.offsetParent;
-if(_5){
-p=Element.getStyle(_5,"position");
+_293+=_292.offsetTop||0;
+valueL+=_292.offsetLeft||0;
+_292=_292.offsetParent;
+if(_292){
+p=Element.getStyle(_292,"position");
if(p=="relative"||p=="absolute"){
break;
}
}
-}while(_5);
-return [valueL,_6];
-},offsetParent:function(_7){
-if(_7.offsetParent){
-return _7.offsetParent;
+}while(_292);
+return [valueL,_293];
+},offsetParent:function(_294){
+if(_294.offsetParent){
+return _294.offsetParent;
}
-if(_7==document.body){
-return _7;
+if(_294==document.body){
+return _294;
}
-while((_7=_7.parentNode)&&_7!=document.body){
-if(Element.getStyle(_7,"position")!="static"){
-return _7;
+while((_294=_294.parentNode)&&_294!=document.body){
+if(Element.getStyle(_294,"position")!="static"){
+return _294;
}
}
return document.body;
-},within:function(_8,x,y){
+},within:function(_295,x,y){
if(this.includeScrollOffsets){
-return this.withinIncludingScrolloffsets(_8,x,y);
+return this.withinIncludingScrolloffsets(_295,x,y);
}
this.xcomp=x;
this.ycomp=y;
-this.offset=this.cumulativeOffset(_8);
-return (y>=this.offset[1]&&y<this.offset[1]+_8.offsetHeight&&x>=this.offset[0]&&x<this.offset[0]+_8.offsetWidth);
-},withinIncludingScrolloffsets:function(_11,x,y){
-var _12=this.realOffset(_11);
-this.xcomp=x+_12[0]-this.deltaX;
-this.ycomp=y+_12[1]-this.deltaY;
-this.offset=this.cumulativeOffset(_11);
-return (this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+_11.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+_11.offsetWidth);
-},overlap:function(_13,_14){
-if(!_13){
+this.offset=this.cumulativeOffset(_295);
+return (y>=this.offset[1]&&y<this.offset[1]+_295.offsetHeight&&x>=this.offset[0]&&x<this.offset[0]+_295.offsetWidth);
+},withinIncludingScrolloffsets:function(_297,x,y){
+var _298=this.realOffset(_297);
+this.xcomp=x+_298[0]-this.deltaX;
+this.ycomp=y+_298[1]-this.deltaY;
+this.offset=this.cumulativeOffset(_297);
+return (this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+_297.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+_297.offsetWidth);
+},overlap:function(mode,_300){
+if(!mode){
return 0;
}
-if(_13=="vertical"){
-return ((this.offset[1]+_14.offsetHeight)-this.ycomp)/_14.offsetHeight;
-}
-if(_13=="horizontal"){
-return ((this.offset[0]+_14.offsetWidth)-this.xcomp)/_14.offsetWidth;
-}
-},clone:function(_15,_16){
-_15=$(_15);
-_16=$(_16);
-_16.style.position="absolute";
-var _17=this.cumulativeOffset(_15);
-_16.style.top=_17[1]+"px";
-_16.style.left=_17[0]+"px";
-_16.style.width=_15.offsetWidth+"px";
-_16.style.height=_15.offsetHeight+"px";
-},page:function(_18){
-var _19=0,valueL=0;
-var _20=_18;
+if(mode=="vertical"){
+return ((this.offset[1]+_300.offsetHeight)-this.ycomp)/_300.offsetHeight;
+}
+if(mode=="horizontal"){
+return ((this.offset[0]+_300.offsetWidth)-this.xcomp)/_300.offsetWidth;
+}
+},clone:function(_301,_302){
+_301=$(_301);
+_302=$(_302);
+_302.style.position="absolute";
+var _303=this.cumulativeOffset(_301);
+_302.style.top=_303[1]+"px";
+_302.style.left=_303[0]+"px";
+_302.style.width=_301.offsetWidth+"px";
+_302.style.height=_301.offsetHeight+"px";
+},page:function(_304){
+var _305=0,valueL=0;
+var _306=_304;
do{
-_19+=_20.offsetTop||0;
-valueL+=_20.offsetLeft||0;
-if(_20.offsetParent==document.body){
-if(Element.getStyle(_20,"position")=="absolute"){
+_305+=_306.offsetTop||0;
+valueL+=_306.offsetLeft||0;
+if(_306.offsetParent==document.body){
+if(Element.getStyle(_306,"position")=="absolute"){
break;
}
}
-}while(_20=_20.offsetParent);
-_20=_18;
+}while(_306=_306.offsetParent);
+_306=_304;
do{
-_19-=_20.scrollTop||0;
-valueL-=_20.scrollLeft||0;
-}while(_20=_20.parentNode);
-return [valueL,_19];
-},clone:function(_21,_22){
-var _23=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});
-_21=$(_21);
-var p=Position.page(_21);
-_22=$(_22);
-var _25=[0,0];
-var _26=null;
-if(Element.getStyle(_22,"position")=="absolute"){
-_26=Position.offsetParent(_22);
-_25=Position.page(_26);
-}
-if(_26==document.body){
-_25[0]-=document.body.offsetLeft;
-_25[1]-=document.body.offsetTop;
-}
-if(_23.setLeft){
-_22.style.left=(p[0]-_25[0]+_23.offsetLeft)+"px";
-}
-if(_23.setTop){
-_22.style.top=(p[1]-_25[1]+_23.offsetTop)+"px";
-}
-if(_23.setWidth){
-_22.style.width=_21.offsetWidth+"px";
-}
-if(_23.setHeight){
-_22.style.height=_21.offsetHeight+"px";
-}
-},absolutize:function(_27){
-_27=$(_27);
-if(_27.style.position=="absolute"){
+_305-=_306.scrollTop||0;
+valueL-=_306.scrollLeft||0;
+}while(_306=_306.parentNode);
+return [valueL,_305];
+},clone:function(_307,_308){
+var _309=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});
+_307=$(_307);
+var p=Position.page(_307);
+_308=$(_308);
+var _310=[0,0];
+var _311=null;
+if(Element.getStyle(_308,"position")=="absolute"){
+_311=Position.offsetParent(_308);
+_310=Position.page(_311);
+}
+if(_311==document.body){
+_310[0]-=document.body.offsetLeft;
+_310[1]-=document.body.offsetTop;
+}
+if(_309.setLeft){
+_308.style.left=(p[0]-_310[0]+_309.offsetLeft)+"px";
+}
+if(_309.setTop){
+_308.style.top=(p[1]-_310[1]+_309.offsetTop)+"px";
+}
+if(_309.setWidth){
+_308.style.width=_307.offsetWidth+"px";
+}
+if(_309.setHeight){
+_308.style.height=_307.offsetHeight+"px";
+}
+},absolutize:function(_312){
+_312=$(_312);
+if(_312.style.position=="absolute"){
return;
}
Position.prepare();
-var _28=Position.positionedOffset(_27);
-var top=_28[1];
-var _30=_28[0];
-var _31=_27.clientWidth;
-var _32=_27.clientHeight;
-_27._originalLeft=_30-parseFloat(_27.style.left||0);
-_27._originalTop=top-parseFloat(_27.style.top||0);
-_27._originalWidth=_27.style.width;
-_27._originalHeight=_27.style.height;
-_27.style.position="absolute";
-_27.style.top=top+"px";
-_27.style.left=_30+"px";
-_27.style.width=_31+"px";
-_27.style.height=_32+"px";
-},relativize:function(_33){
-_33=$(_33);
-if(_33.style.position=="relative"){
+var _313=Position.positionedOffset(_312);
+var top=_313[1];
+var left=_313[0];
+var _315=_312.clientWidth;
+var _316=_312.clientHeight;
+_312._originalLeft=left-parseFloat(_312.style.left||0);
+_312._originalTop=top-parseFloat(_312.style.top||0);
+_312._originalWidth=_312.style.width;
+_312._originalHeight=_312.style.height;
+_312.style.position="absolute";
+_312.style.top=top+"px";
+_312.style.left=left+"px";
+_312.style.width=_315+"px";
+_312.style.height=_316+"px";
+},relativize:function(_317){
+_317=$(_317);
+if(_317.style.position=="relative"){
return;
}
Position.prepare();
-_33.style.position="relative";
-var top=parseFloat(_33.style.top||0)-(_33._originalTop||0);
-var _34=parseFloat(_33.style.left||0)-(_33._originalLeft||0);
-_33.style.top=top+"px";
-_33.style.left=_34+"px";
-_33.style.height=_33._originalHeight;
-_33.style.width=_33._originalWidth;
+_317.style.position="relative";
+var top=parseFloat(_317.style.top||0)-(_317._originalTop||0);
+var left=parseFloat(_317.style.left||0)-(_317._originalLeft||0);
+_317.style.top=top+"px";
+_317.style.left=left+"px";
+_317.style.height=_317._originalHeight;
+_317.style.width=_317._originalWidth;
}};
if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){
-Position.cumulativeOffset=function(_35){
-var _36=0,valueL=0;
+Position.cumulativeOffset=function(_318){
+var _319=0,valueL=0;
do{
-_36+=_35.offsetTop||0;
-valueL+=_35.offsetLeft||0;
-if(_35.offsetParent==document.body){
-if(Element.getStyle(_35,"position")=="absolute"){
+_319+=_318.offsetTop||0;
+valueL+=_318.offsetLeft||0;
+if(_318.offsetParent==document.body){
+if(Element.getStyle(_318,"position")=="absolute"){
break;
}
}
-_35=_35.offsetParent;
-}while(_35);
-return [valueL,_36];
+_318=_318.offsetParent;
+}while(_318);
+return [valueL,_319];
};
}
-
-var Builder={NODEMAP:{AREA:"map",CAPTION:"table",COL:"table",COLGROUP:"table",LEGEND:"fieldset",OPTGROUP:"select",OPTION:"select",PARAM:"object",TBODY:"table",TD:"table",TFOOT:"table",TH:"table",THEAD:"table",TR:"table"},node:function(_1){
-_1=_1.toUpperCase();
-var _2=this.NODEMAP[_1]||"div";
-var _3=document.createElement(_2);
+var Builder={NODEMAP:{AREA:"map",CAPTION:"table",COL:"table",COLGROUP:"table",LEGEND:"fieldset",OPTGROUP:"select",OPTION:"select",PARAM:"object",TBODY:"table",TD:"table",TFOOT:"table",TH:"table",THEAD:"table",TR:"table"},node:function(_320){
+_320=_320.toUpperCase();
+var _321=this.NODEMAP[_320]||"div";
+var _322=document.createElement(_321);
try{
-_3.innerHTML="<"+_1+"></"+_1+">";
+_322.innerHTML="<"+_320+"></"+_320+">";
}
catch(e){
}
-var _4=_3.firstChild||null;
-if(_4&&(_4.tagName!=_1)){
-_4=_4.getElementsByTagName(_1)[0];
+var _323=_322.firstChild||null;
+if(_323&&(_323.tagName!=_320)){
+_323=_323.getElementsByTagName(_320)[0];
}
-if(!_4){
-_4=document.createElement(_1);
+if(!_323){
+_323=document.createElement(_320);
}
-if(!_4){
+if(!_323){
return;
}
if(arguments[1]){
if(this._isStringOrNumber(arguments[1])||(arguments[1] instanceof Array)){
-this._children(_4,arguments[1]);
+this._children(_323,arguments[1]);
}else{
-var _5=this._attributes(arguments[1]);
-if(_5.length){
+var _324=this._attributes(arguments[1]);
+if(_324.length){
try{
-_3.innerHTML="<"+_1+" "+_5+"></"+_1+">";
+_322.innerHTML="<"+_320+" "+_324+"></"+_320+">";
}
catch(e){
}
-_4=_3.firstChild||null;
-if(!_4){
-_4=document.createElement(_1);
+_323=_322.firstChild||null;
+if(!_323){
+_323=document.createElement(_320);
for(attr in arguments[1]){
-_4[attr=="class"?"className":attr]=arguments[1][attr];
+_323[attr=="class"?"className":attr]=arguments[1][attr];
}
}
-if(_4.tagName!=_1){
-_4=_3.getElementsByTagName(_1)[0];
+if(_323.tagName!=_320){
+_323=_322.getElementsByTagName(_320)[0];
}
}
}
}
if(arguments[2]){
-this._children(_4,arguments[2]);
-}
-return _4;
-},_text:function(_6){
-return document.createTextNode(_6);
-},_attributes:function(_7){
-var _8=[];
-for(attribute in _7){
-_8.push((attribute=="className"?"class":attribute)+"=\""+_7[attribute].toString().escapeHTML()+"\"");
-}
-return _8.join(" ");
-},_children:function(_9,_10){
-if(typeof _10=="object"){
-_10.flatten().each(function(e){
+this._children(_323,arguments[2]);
+}
+return _323;
+},_text:function(text){
+return document.createTextNode(text);
+},_attributes:function(_326){
+var _327=[];
+for(attribute in _326){
+_327.push((attribute=="className"?"class":attribute)+"=\""+_326[attribute].toString().escapeHTML()+"\"");
+}
+return _327.join(" ");
+},_children:function(_328,_329){
+if(typeof _329=="object"){
+_329.flatten().each(function(e){
if(typeof e=="object"){
-_9.appendChild(e);
+_328.appendChild(e);
}else{
if(Builder._isStringOrNumber(e)){
-_9.appendChild(Builder._text(e));
+_328.appendChild(Builder._text(e));
}
}
});
}else{
-if(Builder._isStringOrNumber(_10)){
-_9.appendChild(Builder._text(_10));
+if(Builder._isStringOrNumber(_329)){
+_328.appendChild(Builder._text(_329));
}
}
-},_isStringOrNumber:function(_12){
-return (typeof _12=="string"||typeof _12=="number");
+},_isStringOrNumber:function(_330){
+return (typeof _330=="string"||typeof _330=="number");
}};
-
Object.extend(Builder,{exportTags:function(){
-var _1=["BUTTON","TT","PRE","H1","H2","H3","BR","CANVAS","HR","LABEL","TEXTAREA","FORM","STRONG","SELECT","OPTION","OPTGROUP","LEGEND","FIELDSET","P","UL","OL","LI","TD","TR","THEAD","TBODY","TFOOT","TABLE","TH","INPUT","SPAN","A","DIV","IMG"];
-_1.each(function(_2){
-window[_2]=function(){
-var _3=$A(arguments);
-if(_3.length==0){
-return Builder.node(_2,null);
+var tags=["BUTTON","TT","PRE","H1","H2","H3","BR","CANVAS","HR","LABEL","TEXTAREA","FORM","STRONG","SELECT","OPTION","OPTGROUP","LEGEND","FIELDSET","P","UL","OL","LI","TD","TR","THEAD","TBODY","TFOOT","TABLE","TH","INPUT","SPAN","A","DIV","IMG"];
+tags.each(function(tag){
+window[tag]=function(){
+var args=$A(arguments);
+if(args.length==0){
+return Builder.node(tag,null);
}
-if(_3.length==1){
-return Builder.node(_2,_3[1]);
+if(args.length==1){
+return Builder.node(tag,args[1]);
}
-if(_3.length>1){
-return Builder.node(_2,_3.shift(),_3);
+if(args.length>1){
+return Builder.node(tag,args.shift(),args);
}
};
});
}});
Builder.exportTags();
-
-Object.extend(Date.prototype,{SimpleFormat:function(_1,_2){
-_2=_2||{};
-var _3=new Array();
-_3["d"]=this.getDate();
-_3["dd"]=String(this.getDate()).zerofill(2);
-_3["M"]=this.getMonth()+1;
-_3["MM"]=String(this.getMonth()+1).zerofill(2);
-if(_2.AbbreviatedMonthNames){
-_3["MMM"]=_2.AbbreviatedMonthNames[this.getMonth()];
-}
-if(_2.MonthNames){
-_3["MMMM"]=_2.MonthNames[this.getMonth()];
-}
-var _4=""+this.getFullYear();
-_4=(_4.length==2)?"19"+_4:_4;
-_3["yyyy"]=_4;
-_3["yy"]=_3["yyyy"].toString().substr(2,2);
-var _5=new String(_1);
-for(var _6 in _3){
-var _7=new RegExp("\\b"+_6+"\\b","g");
-_5=_5.replace(_7,_3[_6]);
-}
-return _5;
+Object.extend(Date.prototype,{SimpleFormat:function(_334,data){
+data=data||{};
+var bits=new Array();
+bits["d"]=this.getDate();
+bits["dd"]=String(this.getDate()).zerofill(2);
+bits["M"]=this.getMonth()+1;
+bits["MM"]=String(this.getMonth()+1).zerofill(2);
+if(data.AbbreviatedMonthNames){
+bits["MMM"]=data.AbbreviatedMonthNames[this.getMonth()];
+}
+if(data.MonthNames){
+bits["MMMM"]=data.MonthNames[this.getMonth()];
+}
+var _337=""+this.getFullYear();
+_337=(_337.length==2)?"19"+_337:_337;
+bits["yyyy"]=_337;
+bits["yy"]=bits["yyyy"].toString().substr(2,2);
+var frm=new String(_334);
+for(var sect in bits){
+var reg=new RegExp("\\b"+sect+"\\b","g");
+frm=frm.replace(reg,bits[sect]);
+}
+return frm;
},toISODate:function(){
var y=this.getFullYear();
var m=String(this.getMonth()+1).zerofill(2);
var d=String(this.getDate()).zerofill(2);
return String(y)+String(m)+String(d);
}});
-Object.extend(Date,{SimpleParse:function(_11,_12){
-val=String(_11);
-_12=String(_12);
+Object.extend(Date,{SimpleParse:function(_341,_342){
+val=String(_341);
+_342=String(_342);
if(val.length<=0){
return null;
}
-if(_12.length<=0){
-return new Date(_11);
+if(_342.length<=0){
+return new Date(_341);
}
-var _13=function(val){
-var _15="1234567890";
+var _343=function(val){
+var _345="1234567890";
for(var i=0;i<val.length;i++){
-if(_15.indexOf(val.charAt(i))==-1){
+if(_345.indexOf(val.charAt(i))==-1){
return false;
}
}
return true;
};
-var _17=function(str,i,_19,_20){
-for(var x=_20;x>=_19;x--){
-var _22=str.substring(i,i+x);
-if(_22.length<_19){
+var _346=function(str,i,_348,_349){
+for(var x=_349;x>=_348;x--){
+var _350=str.substring(i,i+x);
+if(_350.length<_348){
return null;
}
-if(_13(_22)){
-return _22;
+if(_343(_350)){
+return _350;
}
}
return null;
};
-var _23=0;
-var _24=0;
+var _351=0;
+var _352=0;
var c="";
-var _26="";
-var _27="";
+var _354="";
+var _355="";
var x,y;
var now=new Date();
-var _29=now.getFullYear();
-var _30=now.getMonth()+1;
-var _31=1;
-while(_24<_12.length){
-c=_12.charAt(_24);
-_26="";
-while((_12.charAt(_24)==c)&&(_24<_12.length)){
-_26+=_12.charAt(_24++);
-}
-if(_26=="yyyy"||_26=="yy"||_26=="y"){
-if(_26=="yyyy"){
+var year=now.getFullYear();
+var _358=now.getMonth()+1;
+var date=1;
+while(_352<_342.length){
+c=_342.charAt(_352);
+_354="";
+while((_342.charAt(_352)==c)&&(_352<_342.length)){
+_354+=_342.charAt(_352++);
+}
+if(_354=="yyyy"||_354=="yy"||_354=="y"){
+if(_354=="yyyy"){
x=4;
y=4;
}
-if(_26=="yy"){
+if(_354=="yy"){
x=2;
y=2;
}
-if(_26=="y"){
+if(_354=="y"){
x=2;
y=4;
}
-_29=_17(val,_23,x,y);
-if(_29==null){
+year=_346(val,_351,x,y);
+if(year==null){
return null;
}
-_23+=_29.length;
-if(_29.length==2){
-if(_29>70){
-_29=1900+(_29-0);
+_351+=year.length;
+if(year.length==2){
+if(year>70){
+year=1900+(year-0);
}else{
-_29=2000+(_29-0);
+year=2000+(year-0);
}
}
}else{
-if(_26=="MM"||_26=="M"){
-_30=_17(val,_23,_26.length,2);
-if(_30==null||(_30<1)||(_30>12)){
+if(_354=="MM"||_354=="M"){
+_358=_346(val,_351,_354.length,2);
+if(_358==null||(_358<1)||(_358>12)){
return null;
}
-_23+=_30.length;
+_351+=_358.length;
}else{
-if(_26=="dd"||_26=="d"){
-_31=_17(val,_23,_26.length,2);
-if(_31==null||(_31<1)||(_31>31)){
+if(_354=="dd"||_354=="d"){
+date=_346(val,_351,_354.length,2);
+if(date==null||(date<1)||(date>31)){
return null;
}
-_23+=_31.length;
+_351+=date.length;
}else{
-if(val.substring(_23,_23+_26.length)!=_26){
+if(val.substring(_351,_351+_354.length)!=_354){
return null;
}else{
-_23+=_26.length;
+_351+=_354.length;
}
}
}
}
}
-if(_23!=val.length){
+if(_351!=val.length){
return null;
}
-if(_30==2){
-if(((_29%4==0)&&(_29%100!=0))||(_29%400==0)){
-if(_31>29){
+if(_358==2){
+if(((year%4==0)&&(year%100!=0))||(year%400==0)){
+if(date>29){
return null;
}
}else{
-if(_31>28){
+if(date>28){
return null;
}
}
}
-if((_30==4)||(_30==6)||(_30==9)||(_30==11)){
-if(_31>30){
+if((_358==4)||(_358==6)||(_358==9)||(_358==11)){
+if(date>30){
return null;
}
}
-var _32=new Date(_29,_30-1,_31,0,0,0);
-return _32;
+var _360=new Date(year,_358-1,date,0,0,0);
+return _360;
}});
-
var Prado={Version:"3.0a",Browser:function(){
-var _1={Version:"1.0"};
-var _2=parseInt(navigator.appVersion);
-_1.nver=_2;
-_1.ver=navigator.appVersion;
-_1.agent=navigator.userAgent;
-_1.dom=document.getElementById?1:0;
-_1.opera=window.opera?1:0;
-_1.ie5=(_1.ver.indexOf("MSIE 5")>-1&&_1.dom&&!_1.opera)?1:0;
-_1.ie6=(_1.ver.indexOf("MSIE 6")>-1&&_1.dom&&!_1.opera)?1:0;
-_1.ie4=(document.all&&!_1.dom&&!_1.opera)?1:0;
-_1.ie=_1.ie4||_1.ie5||_1.ie6;
-_1.mac=_1.agent.indexOf("Mac")>-1;
-_1.ns6=(_1.dom&&parseInt(_1.ver)>=5)?1:0;
-_1.ie3=(_1.ver.indexOf("MSIE")&&(_2<4));
-_1.hotjava=(_1.agent.toLowerCase().indexOf("hotjava")!=-1)?1:0;
-_1.ns4=(document.layers&&!_1.dom&&!_1.hotjava)?1:0;
-_1.bw=(_1.ie6||_1.ie5||_1.ie4||_1.ns4||_1.ns6||_1.opera);
-_1.ver3=(_1.hotjava||_1.ie3);
-_1.opera7=((_1.agent.toLowerCase().indexOf("opera 7")>-1)||(_1.agent.toLowerCase().indexOf("opera/7")>-1));
-_1.operaOld=_1.opera&&!_1.opera7;
-return _1;
-},ImportCss:function(_3,_4){
+var info={Version:"1.0"};
+var _362=parseInt(navigator.appVersion);
+info.nver=_362;
+info.ver=navigator.appVersion;
+info.agent=navigator.userAgent;
+info.dom=document.getElementById?1:0;
+info.opera=window.opera?1:0;
+info.ie5=(info.ver.indexOf("MSIE 5")>-1&&info.dom&&!info.opera)?1:0;
+info.ie6=(info.ver.indexOf("MSIE 6")>-1&&info.dom&&!info.opera)?1:0;
+info.ie4=(document.all&&!info.dom&&!info.opera)?1:0;
+info.ie=info.ie4||info.ie5||info.ie6;
+info.mac=info.agent.indexOf("Mac")>-1;
+info.ns6=(info.dom&&parseInt(info.ver)>=5)?1:0;
+info.ie3=(info.ver.indexOf("MSIE")&&(_362<4));
+info.hotjava=(info.agent.toLowerCase().indexOf("hotjava")!=-1)?1:0;
+info.ns4=(document.layers&&!info.dom&&!info.hotjava)?1:0;
+info.bw=(info.ie6||info.ie5||info.ie4||info.ns4||info.ns6||info.opera);
+info.ver3=(info.hotjava||info.ie3);
+info.opera7=((info.agent.toLowerCase().indexOf("opera 7")>-1)||(info.agent.toLowerCase().indexOf("opera/7")>-1));
+info.operaOld=info.opera&&!info.opera7;
+return info;
+},ImportCss:function(doc,_364){
if(Prado.Browser().ie){
-var _5=_3.createStyleSheet(_4);
+var _365=doc.createStyleSheet(_364);
}else{
-var _6=_3.createElement("link");
-_6.rel="stylesheet";
-_6.href=_4;
-if(headArr=_3.getElementsByTagName("head")){
-headArr[0].appendChild(_6);
+var elm=doc.createElement("link");
+elm.rel="stylesheet";
+elm.href=_364;
+if(headArr=doc.getElementsByTagName("head")){
+headArr[0].appendChild(elm);
}
}
}};
-
Prado.Focus=Class.create();
Prado.Focus.setFocus=function(id){
-var _2=document.getElementById?document.getElementById(id):document.all[id];
-if(_2&&!Prado.Focus.canFocusOn(_2)){
-_2=Prado.Focus.findTarget(_2);
+var _368=document.getElementById?document.getElementById(id):document.all[id];
+if(_368&&!Prado.Focus.canFocusOn(_368)){
+_368=Prado.Focus.findTarget(_368);
}
-if(_2){
+if(_368){
try{
-_2.focus();
-_2.scrollIntoView(false);
+_368.focus();
+_368.scrollIntoView(false);
if(window.__smartNav){
-window.__smartNav.ae=_2.id;
+window.__smartNav.ae=_368.id;
}
}
catch(e){
}
}
};
-Prado.Focus.canFocusOn=function(_3){
-if(!_3||!(_3.tagName)){
+Prado.Focus.canFocusOn=function(_369){
+if(!_369||!(_369.tagName)){
return false;
}
-var _4=_3.tagName.toLowerCase();
-return !_3.disabled&&(!_3.type||_3.type.toLowerCase()!="hidden")&&Prado.Focus.isFocusableTag(_4)&&Prado.Focus.isVisible(_3);
+var _370=_369.tagName.toLowerCase();
+return !_369.disabled&&(!_369.type||_369.type.toLowerCase()!="hidden")&&Prado.Focus.isFocusableTag(_370)&&Prado.Focus.isVisible(_369);
};
-Prado.Focus.isFocusableTag=function(_5){
-return (_5=="input"||_5=="textarea"||_5=="select"||_5=="button"||_5=="a");
+Prado.Focus.isFocusableTag=function(_371){
+return (_371=="input"||_371=="textarea"||_371=="select"||_371=="button"||_371=="a");
};
-Prado.Focus.findTarget=function(_6){
-if(!_6||!(_6.tagName)){
+Prado.Focus.findTarget=function(_372){
+if(!_372||!(_372.tagName)){
return null;
}
-var _7=_6.tagName.toLowerCase();
-if(_7=="undefined"){
+var _373=_372.tagName.toLowerCase();
+if(_373=="undefined"){
return null;
}
-var _8=_6.childNodes;
-if(_8){
-for(var i=0;i<_8.length;i++){
+var _374=_372.childNodes;
+if(_374){
+for(var i=0;i<_374.length;i++){
try{
-if(Prado.Focus.canFocusOn(_8[i])){
-return _8[i];
+if(Prado.Focus.canFocusOn(_374[i])){
+return _374[i];
}else{
-var _10=Prado.Focus.findTarget(_8[i]);
-if(_10){
-return _10;
+var _375=Prado.Focus.findTarget(_374[i]);
+if(_375){
+return _375;
}
}
}
@@ -1676,68 +1656,67 @@ catch(e){
}
return null;
};
-Prado.Focus.isVisible=function(_11){
-var _12=_11;
-while((typeof (_12)!="undefined")&&(_12!=null)){
-if(_12.disabled||(typeof (_12.style)!="undefined"&&((typeof (_12.style.display)!="undefined"&&_12.style.display=="none")||(typeof (_12.style.visibility)!="undefined"&&_12.style.visibility=="hidden")))){
+Prado.Focus.isVisible=function(_376){
+var _377=_376;
+while((typeof (_377)!="undefined")&&(_377!=null)){
+if(_377.disabled||(typeof (_377.style)!="undefined"&&((typeof (_377.style.display)!="undefined"&&_377.style.display=="none")||(typeof (_377.style.visibility)!="undefined"&&_377.style.visibility=="hidden")))){
return false;
}
-if(typeof (_12.parentNode)!="undefined"&&_12.parentNode!=null&&_12.parentNode!=_12&&_12.parentNode.tagName.toLowerCase()!="body"){
-_12=_12.parentNode;
+if(typeof (_377.parentNode)!="undefined"&&_377.parentNode!=null&&_377.parentNode!=_377&&_377.parentNode.tagName.toLowerCase()!="body"){
+_377=_377.parentNode;
}else{
return true;
}
}
return true;
};
-Prado.PostBack=function(_13,_14){
-var _15=$(_14["FormID"]);
-var _16=true;
-if(_14["CausesValidation"]&&Prado.Validation){
-if(Prado.Validation.IsValid(_15)==false){
+Prado.PostBack=function(_378,_379){
+var form=$(_379["FormID"]);
+var _380=true;
+if(_379["CausesValidation"]&&Prado.Validation){
+if(Prado.Validation.IsValid(form)==false){
return;
}
}
-if(_14["PostBackUrl"]&&_14["PostBackUrl"].length>0){
-_15.action=_14["PostBackUrl"];
+if(_379["PostBackUrl"]&&_379["PostBackUrl"].length>0){
+form.action=_379["PostBackUrl"];
}
-if(_14["TrackFocus"]){
-var _17=$("PRADO_LASTFOCUS");
-if(_17){
-var _18=document.activeElement;
-if(_18){
-_17.value=_18.id;
+if(_379["TrackFocus"]){
+var _381=$("PRADO_LASTFOCUS");
+if(_381){
+var _382=document.activeElement;
+if(_382){
+_381.value=_382.id;
}else{
-_17.value=_14["EventTarget"];
+_381.value=_379["EventTarget"];
}
}
}
-$("PRADO_POSTBACK_TARGET").value=_14["EventTarget"];
-$("PRADO_POSTBACK_PARAMETER").value=_14["EventParameter"];
-Event.fireEvent(_15,"submit");
-if(_14["StopEvent"]){
-Event.stop(_13);
+$("PRADO_POSTBACK_TARGET").value=_379["EventTarget"];
+$("PRADO_POSTBACK_PARAMETER").value=_379["EventParameter"];
+Event.fireEvent(form,"submit");
+if(_379["StopEvent"]){
+Event.stop(_378);
}
};
-
-Prado.Element={setValue:function(_1,_2){
-var el=$(_1);
+Prado.Element={setValue:function(_383,_384){
+var el=$(_383);
if(el&&typeof (el.value)!="undefined"){
-el.value=_2;
+el.value=_384;
}
-},select:function(_4,_5,_6){
-var el=$(_4);
-var _7=_4.indexOf("[]")>-1;
-if(!el&&!_7){
+},select:function(_386,_387,_388){
+var el=$(_386);
+var _389=_386.indexOf("[]")>-1;
+if(!el&&!_389){
return;
}
-_5=_7?"check"+_5:el.tagName.toLowerCase()+_5;
-var _8=Prado.Element.Selection;
-if(isFunction(_8[_5])){
-_8[_5](_7?_4:el,_6);
+_387=_389?"check"+_387:el.tagName.toLowerCase()+_387;
+var _390=Prado.Element.Selection;
+if(isFunction(_390[_387])){
+_390[_387](_389?_386:el,_388);
}
-},click:function(_9){
-var el=$(_9);
+},click:function(_391){
+var el=$(_391);
if(!el){
return;
}
@@ -1753,25 +1732,25 @@ el.onclick();
}
}
}
-},setAttribute:function(_11,_12,_13){
-var el=$(_11);
-if(_12=="disabled"&&_13==false){
-el.removeAttribute(_12);
+},setAttribute:function(_393,_394,_395){
+var el=$(_393);
+if(_394=="disabled"&&_395==false){
+el.removeAttribute(_394);
}else{
-el.setAttribute(_12,_13);
+el.setAttribute(_394,_395);
}
-},setOptions:function(_14,_15){
-var el=$(_14);
+},setOptions:function(_396,_397){
+var el=$(_396);
if(el&&el.tagName.toLowerCase()=="select"){
while(el.length>0){
el.remove(0);
}
-for(var i=0;i<_15.length;i++){
-el.options[el.options.length]=new Option(_15[i][0],_15[i][1]);
+for(var i=0;i<_397.length;i++){
+el.options[el.options.length]=new Option(_397[i][0],_397[i][1]);
}
}
-},focus:function(_17){
-var obj=$(_17);
+},focus:function(_398){
+var obj=$(_398);
if(isObject(obj)&&isdef(obj.focus)){
setTimeout(function(){
obj.focus();
@@ -1779,22 +1758,22 @@ obj.focus();
}
return false;
}};
-Prado.Element.Selection={inputValue:function(el,_19){
+Prado.Element.Selection={inputValue:function(el,_400){
switch(el.type.toLowerCase()){
case "checkbox":
case "radio":
-return el.checked=_19;
+return el.checked=_400;
}
-},selectValue:function(el,_20){
-$A(el.options).each(function(_21){
-_21.selected=_21.value==_20;
+},selectValue:function(el,_401){
+$A(el.options).each(function(_402){
+_402.selected=_402.value==_401;
});
-},selectIndex:function(el,_22){
+},selectIndex:function(el,_403){
if(el.type=="select-one"){
-el.selectedIndex=_22;
+el.selectedIndex=_403;
}else{
for(var i=0;i<el.length;i++){
-if(i==_22){
+if(i==_403){
el.options[i].selected=true;
}
}
@@ -1802,111 +1781,130 @@ el.options[i].selected=true;
},selectClear:function(el){
el.selectedIndex=-1;
},selectAll:function(el){
-$A(el.options).each(function(_23){
-_23.selected=true;
-Logger.warn(_23.value);
+$A(el.options).each(function(_404){
+_404.selected=true;
+Logger.warn(_404.value);
});
},selectInvert:function(el){
-$A(el.options).each(function(_24){
-_24.selected=!_24.selected;
+$A(el.options).each(function(_405){
+_405.selected=!_405.selected;
});
-},checkValue:function(_25,_26){
-$A(document.getElementsByName(_25)).each(function(el){
-el.checked=el.value==_26;
+},checkValue:function(name,_406){
+$A(document.getElementsByName(name)).each(function(el){
+el.checked=el.value==_406;
});
-},checkIndex:function(_27,_28){
-var _29=$A(document.getElementsByName(_27));
-for(var i=0;i<_29.length;i++){
-if(i==_28){
-_29[i].checked=true;
+},checkIndex:function(name,_407){
+var _408=$A(document.getElementsByName(name));
+for(var i=0;i<_408.length;i++){
+if(i==_407){
+_408[i].checked=true;
}
}
-},checkClear:function(_30){
-$A(document.getElementsByName(_30)).each(function(el){
+},checkClear:function(name){
+$A(document.getElementsByName(name)).each(function(el){
el.checked=false;
});
-},checkAll:function(_31){
-$A(document.getElementsByName(_31)).each(function(el){
+},checkAll:function(name){
+$A(document.getElementsByName(name)).each(function(el){
el.checked=true;
});
-},checkInvert:function(_32){
-$A(document.getElementsByName(_32)).each(function(el){
+},checkInvert:function(name){
+$A(document.getElementsByName(name)).each(function(el){
el.checked=!el.checked;
});
}};
-Object.extend(Prado.Element,{Insert:{After:function(_33,_34){
-new Insertion.After(_33,_34);
-},Before:function(_35,_36){
-new Insertion.Before(_35.innerHTML);
-},Below:function(_37,_38){
-new Insertion.Bottom(_37,_38);
-},Above:function(_39,_40){
-new Insertion.Top(_39,_40);
-}},CssClass:{set:function(_41,_42){
-_41=new Element.ClassNames(_41);
-_41.set(_42);
+Object.extend(Prado.Element,{Insert:{After:function(_409,_410){
+new Insertion.After(_409,_410);
+},Before:function(_411,_412){
+new Insertion.Before(_411.innerHTML);
+},Below:function(_413,_414){
+new Insertion.Bottom(_413,_414);
+},Above:function(_415,_416){
+new Insertion.Top(_415,_416);
+}},CssClass:{set:function(_417,_418){
+_417=new Element.ClassNames(_417);
+_417.set(_418);
}}});
-
Prado.WebUI=Class.create();
Prado.WebUI.PostBackControl=Class.create();
-Object.extend(Prado.WebUI.PostBackControl.prototype,{initialize:function(_1){
-this.element=$(_1["ID"]);
-if(_1["CausesValidation"]&&Prado.Validation){
-Prado.Validation.AddTarget(_1["ID"],_1["ValidationGroup"]);
+Object.extend(Prado.WebUI.PostBackControl.prototype,{initialize:function(_419){
+this.element=$(_419["ID"]);
+if(_419["CausesValidation"]&&Prado.Validation){
+Prado.Validation.AddTarget(_419["ID"],_419["ValidationGroup"]);
}
if(this.onInit){
-this.onInit(_1);
+this.onInit(_419);
}
}});
-Prado.WebUI.createPostBackComponent=function(_2){
-var _3=Class.create();
-Object.extend(_3.prototype,Prado.WebUI.PostBackControl.prototype);
-if(_2){
-Object.extend(_3.prototype,_2);
+Prado.WebUI.createPostBackComponent=function(_420){
+var _421=Class.create();
+Object.extend(_421.prototype,Prado.WebUI.PostBackControl.prototype);
+if(_420){
+Object.extend(_421.prototype,_420);
}
-return _3;
+return _421;
};
Prado.WebUI.TButton=Prado.WebUI.createPostBackComponent();
-Prado.WebUI.ClickableComponent=Prado.WebUI.createPostBackComponent({onInit:function(_4){
-Event.observe(this.element,"click",Prado.PostBack.bindEvent(this,_4));
+Prado.WebUI.ClickableComponent=Prado.WebUI.createPostBackComponent({_elementOnClick:null,onInit:function(_422){
+if(isFunction(this.element.onclick)){
+this._elementOnClick=this.element.onclick;
+this.element.onclick=null;
+}
+Event.observe(this.element,"click",this.onClick.bindEvent(this,_422));
+},onClick:function(_423,_424){
+var src=Event.element(_423);
+var _426=true;
+var _427=null;
+if(this._elementOnClick){
+var _427=this._elementOnClick(_423);
+if(isBoolean(_427)){
+_426=_427;
+}
+}
+if(_426){
+Prado.PostBack(_423,_424);
+}
+if(isBoolean(_427)&&!_427){
+Event.stop(_423);
+}
}});
Prado.WebUI.TLinkButton=Prado.WebUI.ClickableComponent;
Prado.WebUI.TImageButton=Prado.WebUI.ClickableComponent;
Prado.WebUI.TCheckBox=Prado.WebUI.ClickableComponent;
Prado.WebUI.TRadioButton=Prado.WebUI.ClickableComponent;
Prado.WebUI.TBulletedList=Prado.WebUI.ClickableComponent;
-Prado.WebUI.TTextBox=Prado.WebUI.createPostBackComponent({onInit:function(_5){
-if(_5["TextMode"]!="MultiLine"){
-Event.observe(this.element,"down",this.handleReturnKey.bind(this));
+Prado.WebUI.TTextBox=Prado.WebUI.createPostBackComponent({onInit:function(_428){
+if(_428["TextMode"]!="MultiLine"){
+Event.observe(this.element,"keydown",this.handleReturnKey.bind(this));
}
-Event.observe(this.element,"change",Prado.PostBack.bindEvent(this,_5));
+Event.observe(this.element,"change",Prado.PostBack.bindEvent(this,_428));
},handleReturnKey:function(e){
if(Event.keyCode(e)==Event.KEY_RETURN){
-var _7=Event.element(e);
-if(_7){
-Event.fireEvent(_7,"change");
+var _429=Event.element(e);
+if(_429){
+Event.fireEvent(_429,"change");
Event.stop(e);
}
}
}});
-Prado.WebUI.TListControl=Prado.WebUI.createPostBackComponent({onInit:function(_8){
-Event.observe(this.element,"change",Prado.PostBack.bindEvent(this,_8));
+Prado.WebUI.TListControl=Prado.WebUI.createPostBackComponent({onInit:function(_430){
+Event.observe(this.element,"change",Prado.PostBack.bindEvent(this,_430));
}});
Prado.WebUI.TListBox=Prado.WebUI.TListControl;
Prado.WebUI.TDropDownList=Prado.WebUI.TListControl;
Prado.WebUI.DefaultButton=Class.create();
-Object.extend(Prado.WebUI.DefaultButton.prototype,{initialize:function(_9){
-this.options=_9;
+Object.extend(Prado.WebUI.DefaultButton.prototype,{initialize:function(_431){
+this.options=_431;
this._event=this.triggerEvent.bindEvent(this);
-Event.observe(_9["Panel"],"keydown",this._event);
-},triggerEvent:function(ev,_11){
-var _12=Event.keyCode(ev)==Event.KEY_RETURN;
-var _13=Event.element(ev).tagName.toLowerCase()=="textarea";
-if(_12&&!_13){
-var _14=$(this.options["Target"]);
-if(_14){
+Event.observe(_431["Panel"],"keydown",this._event);
+},triggerEvent:function(ev,_433){
+var _434=Event.keyCode(ev)==Event.KEY_RETURN;
+var _435=Event.element(ev).tagName.toLowerCase()=="textarea";
+if(_434&&!_435){
+var _436=$(this.options["Target"]);
+if(_436){
this.triggered=true;
-Event.fireEvent(_14,this.options["Event"]);
+Event.fireEvent(_436,this.options["Event"]);
Event.stop(ev);
}
}
@@ -1916,23 +1914,23 @@ Prado.WebUI.TTextHighlighter.prototype={initialize:function(id){
if(!window.clipboardData){
return;
}
-var _16={href:"javascript:;//copy code to clipboard",onclick:"Prado.WebUI.TTextHighlighter.copy(this)",onmouseover:"Prado.WebUI.TTextHighlighter.hover(this)",onmouseout:"Prado.WebUI.TTextHighlighter.out(this)"};
-var div=DIV({className:"copycode"},A(_16,"Copy Code"));
+var _437={href:"javascript:;//copy code to clipboard",onclick:"Prado.WebUI.TTextHighlighter.copy(this)",onmouseover:"Prado.WebUI.TTextHighlighter.hover(this)",onmouseout:"Prado.WebUI.TTextHighlighter.out(this)"};
+var div=DIV({className:"copycode"},A(_437,"Copy Code"));
document.write(DIV(null,div).innerHTML);
}};
Object.extend(Prado.WebUI.TTextHighlighter,{copy:function(obj){
-var _19=obj.parentNode.parentNode.parentNode;
-var _20="";
-for(var i=0;i<_19.childNodes.length;i++){
-var _22=_19.childNodes[i];
-if(_22.innerText){
-_20+=_22.innerText=="Copy Code"?"":_22.innerText;
+var _438=obj.parentNode.parentNode.parentNode;
+var text="";
+for(var i=0;i<_438.childNodes.length;i++){
+var node=_438.childNodes[i];
+if(node.innerText){
+text+=node.innerText=="Copy Code"?"":node.innerText;
}else{
-_20+=_22.nodeValue;
+text+=node.nodeValue;
}
}
-if(_20.length>0){
-window.clipboardData.setData("Text",_20);
+if(text.length>0){
+window.clipboardData.setData("Text",text);
}
},hover:function(obj){
obj.parentNode.className="copycode copycode_hover";