You need to use a class anyway. You shouldn't use an identifier for an element that will appear more than once in a page, because it needs to identify an exclusive element.
However, instead of using that JavaScript, if you want to utilise CSS properly, you should use a pseudo class for the anchor. So for that code you should have:
Code:
<a title="The Network" href="/index.php?content=network" class="cont-subbutton">The Network</a>
And then for your CSS:
Code:
a.cont-subbutton {
[css rules here]
}
a.cont-subbutton:hover {
[css rules for when the link is hovered on here]
}
Hope that helps.
P.S.
More about CSS selectors.
P.P.S. Someone fix this goddam overflow on the code boxes! It annoys the hell out of me.