Changing the tab style around before adding the onclick/onhover events.