document.getElementById('mioTab').className='attiv a';

nel css:

.attiva a:hover { background: blue; color:#CC0000;}

ma non funziona