don't copy repetive stuff into html, it usually just adds messiness and bloat.
you can use a class or name to group the elements, or just make a list of their id's, or collect each tag under a common parent.
once you have a group of tags selected, upgrade them in a loop when the page loads.
you the onload event as a chance to cycle through the tags, adding style, classes, and events to each tag.
the html in your document doesn't need to change to expand the functionality; you only have to modify the group of tags you modify onload.
BROWSER STATS [% share]
(2013/10/31) IE7:0.5, IE8:8.6, IE9:5.3, IE10:12.3, FF:17.7, CH:41.8, SF:8.1, MOBILE:20.4