function SortableTable(b,a){this.element=b;this.tHead=b.tHead;this.tBody=b.tBodies[0];this.document=b.ownerDocument||b.document;this.sortColumn=null;this.descending=null;var c=this;this._headerOnclick=function(f){c.headerOnclick(f);};var d=this.document.defaultView||this.document.parentWindow;this._onunload=function(){c.destroy();};if(d&&typeof d.attachEvent!="undefined"){d.attachEvent("onunload",this._onunload);}this.initHeader(a||[]);}SortableTable.gecko=navigator.product=="Gecko";SortableTable.msie=/msie/i.test(navigator.userAgent);SortableTable.removeBeforeSort=SortableTable.gecko;SortableTable.prototype.onsort=function(){};SortableTable.prototype.initHeader=function(b){var e=this.tHead.rows[0].cells;var a=e.length;var d,g;for(var f=0;f