function cascadedstyle(el, cssproperty, csspropertyNS){ if (el.currentStyle) return el.currentStyle[cssproperty] else if (window.getComputedStyle){ var elstyle=window.getComputedStyle(el, "") return elstyle.getPropertyValue(csspropertyNS) } } var previoustab="" var previoustabobj="" function expandcontent(cid, aobject){ if (document.getElementById){ highlighttab(aobject) detectSourceindex(aobject) if (previoustab!=""){ document.getElementById(previoustab).style.display="none" previoustabobj.style.backgroundImage="url('skins/viptexting/images/btns/loginnfbtn.gif')"; } document.getElementById(cid).style.display="block" aobject.style.backgroundImage="url('skins/viptexting/images/btns/loginbtn.gif')"; previoustab=cid previoustabobj=aobject if (aobject.blur) aobject.blur() return false } else return true } function highlighttab(aobject){ if (typeof tabobjlinks=="undefined") collecttablinks() for (i=0; i 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function savetabstate(){ var cookiename=(persisttype=="sitewide")? "tabcontent" : window.location.pathname var cookievalue=(persisttype=="sitewide")? tabsourceindex+"|"+previoustab+";path=/" : tabsourceindex+"|"+previoustab document.cookie=cookiename+"="+cookievalue } window.onunload=savetabstate