function ddtabcontent(tabinterfaceid){this.tabinterfaceid=tabinterfaceid //ID of Tab Menu main containerthis.tabs=document.getElementById(tabinterfaceid).getElementsByTagName(“a”) //Get all tab links within containerthis.enabletabpersistence=truethis.hottabspositions=[] //Array to store position of tabs that have a “rel” attr defined, relative to all tab links, within containerthis.currentTabIndex=0 //Index of currently selected hot tab (tab with sub content) within hottabspositions[] arraythis.subcontentids=[] //Array to store ids of the sub contents (“rel” attr values)this.revcontentids=[] //Array to store ids of arbitrary contents to expand/contact as well (“rev” attr values)this.selectedClassTarget=”link” //keyword to indicate which target element to assign “selected” CSS class (“linkparent” or “link”)}