I see you've already made some modification to this function, add the changes shown below in red and it should do the trick:
Code:
function highlighttab(aobject){
if (typeof tabobjlinks=="undefined")
collecttablinks()
for (i=0; i<tabobjlinks.length; i++){
tabobjlinks[i].style.backgroundColor=initTabcolor
tabobjlinks[i].style.color='white'
}
var themecolor=aobject.getAttribute("theme")? aobject.getAttribute("theme") : initTabpostcolor
aobject.style.backgroundColor=themecolor
aobject.style.color='#000066'
//aobject.style.backgroundColor=document.getElementById("tabcontentcontainer").style.backgroundColor=themecolor
}
Bookmarks