/* drop down menu */ sfHover = function() { var sfEls = document.getElementById("nav").getElementsByTagName("LI"); for (var i=0; i0)? this.currentTabIndex-1 : this.hottabspositions.length-1} if (typeof autorun=="undefined") this.expandtab(this.tabs[this.hottabspositions[currentTabIndex]])}, setpersist:function(bool){ this.enabletabpersistence=bool}, setselectedClassTarget:function(objstr){ this.selectedClassTarget=objstr || "link"}, getselectedClassTarget:function(tabref){ return (this.selectedClassTarget==("linkparent".toLowerCase()))? tabref.parentNode : tabref}, urlparamselect:function(tabinterfaceid){ var result=window.location.search.match(new RegExp(tabinterfaceid+"=(\\d+)", "i")) return (result==null)? null : parseInt(RegExp.$1)}, expandtab:function(tabref){ var subcontentid=tabref.getAttribute("rel") var associatedrevids=(tabref.getAttribute("rev"))? ","+tabref.getAttribute("rev").replace(/\s+/, "")+"," : "" this.expandsubcontent(subcontentid) this.expandrevcontent(associatedrevids) for (var i=0; i500 && this.hottabspositions.length>1){ this.autoruntimer=setInterval(function(){tabinstance.autorun()}, this.automodeperiod)}}}