// JavaScript Document /*********************************************** * Tab Content script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ //Set tab to intially be selected when page loads: //[which tab (1=first tab), ID of tab content to display]: var tb_initialtab=[1, "tab1"] ////////Stop editting//////////////// function tb_cascadedstyle(el, cssproperty, csspropertyNS){ if (el.currentStyle) return el.currentStyle[cssproperty] else if (window.getComputedStyle){ var tb_elstyle=window.getComputedStyle(el, "") return tb_elstyle.getPropertyValue(csspropertyNS) } } var tb_previoustab="" function tb_expandcontent(tb_cid, aobject){ if (document.getElementById){ tb_highlighttab(aobject) tb_detectSourceindex(aobject) if (tb_previoustab!="") document.getElementById(tb_previoustab).style.display="none" document.getElementById(tb_cid).style.display="block" tb_previoustab=tb_cid if (aobject.blur) aobject.blur() return false } else return true } function tb_highlighttab(aobject){ if (typeof tb_tabobjlinks=="undefined") tb_collecttablinks() for (i=0; i 0) { tb_offset = document.cookie.indexOf(search) if (tb_offset != -1) { tb_offset += search.length tb_end = document.cookie.indexOf(";", tb_offset); if (tb_end == -1) tb_end = document.cookie.length; tb_returnvalue=unescape(document.cookie.substring(tb_offset, tb_end)) } } return tb_returnvalue; } function tb_savetabstate(){ var tb_cookiename=(tb_persisttype=="sitewide")? "tabcontent" : window.location.pathname var tb_cookievalue=(tb_persisttype=="sitewide")? tb_tabsourceindex+"|"+tb_previoustab+";path=/" : tb_tabsourceindex+"|"+tb_previoustab document.cookie=tb_cookiename+"="+tb_cookievalue } window.onunload=tb_savetabstate