- "<!-- end tab %d of %d -->\n", tabnum, num_tabs);
-
- if (tabnum == num_tabs-1) {
- StrBufAppendBufPlain(
- Target,
- HKEY(
- "<script type=\"text/javascript\">"
- " Nifty(\"table#TheTabs td\", \"small transparent top\");"
- "</script>"), 0);
- }
+ "<!-- end tab %d of %d -->\n", tabnum, num_tabs
+ );
+ }
+ if (havebstr("last_tabsel"))
+ {
+ StrBufAppendPrintf(Target, "<script type=\"text/javascript\">tabsel(%s);</script>", BSTR("last_tabsel"));