Element.addMethods({getContentDims:function(F){F=$(F);var A=[];var B=[];var E=F.immediateDescendants();var G;G=parseInt(F.getStyle("paddingTop"));if(G){A.push(G)}G=parseInt(F.getStyle("paddingBottom"));if(G){A.push(G)}G=parseInt(F.getStyle("paddingLeft"));if(G){B.push(G)}G=parseInt(F.getStyle("paddingRight"));if(G){B.push(G)}if(E){var D=false;if(F.getStyle("display")=="none"){D=true;F.style.display="block"}for(var C=0;C<E.length;C++){G=parseInt(E[C].getHeight());if(G){A.push(G)}G=parseInt(E[C].getStyle("marginTop"));if(G){A.push(G)}G=parseInt(E[C].getStyle("marginBottom"));if(G){A.push(G)}G=parseInt(E[C].getWidth());if(G){B.push(G)}G=parseInt(E[C].getStyle("marginLeft"));if(G){B.push(G)}G=parseInt(E[C].getStyle("marginRight"));if(G){B.push(G)}}if(D){F.style.display="none"}}return{height:A.sum(),width:B.max()}},animator:function(B,A){B=$(B);Df.createNS("df.animate",B);B.df.animate=new Df.Animate(B);if(A){B.df.animate.run(A)}return B},tooltip:function(B,A){B=$(B);Df.createNS("df.tip",B);B.df.tip=new Df.Tip(B);if(A){B.df.tip.set(A)}return B},dropnav:function(D,B){D=$(D);var E=D.immediateDescendants();for(var C=0;C<E.length;C++){var A=$(E[C]);Df.createNS("df.dropnav",A);A.df.dropnav=new Df.Dropnav(A);A.df.dropnav.set(B)}return D},tabset:function(D,B){D=$(D);var E=D.immediateDescendants();for(var C=0;C<E.length;C++){if(E[C].tagName=="DT"||E[C].tagName=="dt"){var A=$(E[C]);Df.createNS("df.tabset",A);A.df.tabset=new Df.Tabset(A);A.df.tabset.set(B)}}return D},cardset:function(D,B){D=$(D);var E=D.immediateDescendants();for(var C=0;C<E.length;C++){if(E[C].tagName=="LI"||E[C].tagName=="li"){var A=$(E[C]);Df.createNS("df.cardset",A);A.df.cardset=new Df.Cardset(A);A.df.cardset.set(B)}}return D},scrollbar:function(B,A,C){B=$(B);Df.createNS("df.scrollbar",B);B.df.scrollbar=new Df.Scrollbar(B);B.df.scrollbar.set(A,C);return B}});Object.extend(String.prototype,{uId:function(){return this+"u"+new Date().getTime()+parseInt(10000*Math.random())},exe:function(){return(eval("["+this+"]")[0])},trim:function(){return this.replace(/^[\s]+ |[\s]+$/g,"")}});Object.extend(Array.prototype,{sum:function(){var B=0;for(var A=0;A<this.length;A++){B+=this[A]}return B}});Object.extend(Number.prototype,{suff:function(){var B=this.toString();var A=parseInt(B.length-1);if(this==0){return this}if((B[A]>3&&B[A]<10)||B[A-1]==1&&A!=0){return this+"th"}if(B[A]==1){return this+"st"}if(B[A]==2){return this+"nd"}if(B[A]==3){return this+"rd"}return this+"th"},round:function(A){return Math.round((this+1-1)*(Math.pow(10,A)))/Math.pow(10,A)},dollars:function(){var A=this.round(2);A=A.toString();var B=A.indexOf(new String("."));if(B==-1){A=A.concat(new String(".00"))}else{if(((A.length-1)-B)==1){A=A.concat(new String("0"))}}return"$"+A}});var $E=function(B,D,A){var C=document.createElement(B);if(A){Object.extend(C,A)}D.appendChild($(C));return $(C)};