context:    cycleHeader : function(col, element) // element parameter used in Moz1.7-   {                                    // not in Moz1.8+      //dump( "\nin cycle header" );      var sortActive;      var treeCols;         // Moz1.8 trees require column.id, moz1.7 and earlier trees use column.      this.selectedColumn = (typeof(col)=="object" ? col.id : col);        if (!element) element = col.element;  // in Moz1.8+, get element from col      sortActive = element.getAttribute("sortActive");      this.sortDirection = element.getAttribute("sortDirection");         if (sortActive != "true")      {         treeCols = document.getElementsByTagName("treecol");         for (var i = 0; i < treeCols.length; i++)         {            treeCols[i].removeAttribute("sortActive");            treeCols[i].removeAttribute("sortDirection");         }         sortActive = true;         this.sortDirection = "ascending";      }      else      {         sortActive = true;         if (this.sortDirection == "" || this.sortDirection == "descending")         {            this.sortDirection = "ascending";         }         else         {            this.sortDirection = "descending";         }      }      element.setAttribute("sortActive", sortActive);      element.setAttribute("sortDirection", this.sortDirection);      this.sortStartedTime = new Date().getTime(); // for null/0 dates in sort      gEventArray.sort( compareEvents );      document.getElementById( UnifinderTreeName ).view = this;   },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/066cac305ba770571f1c75246357ec64dc1af33b/unifinder.js/clean/calendar/resources/content/unifinder.js