If the first tab is the currently selected item then the list item has and ID of #firstcurrent otherwise it always has a class of .first

If any center tab is the currently selected item then the list item has an id of #current

If the last tab is the currently selected item then the list item has and ID of #lastcurrent otherwise it always has a class of .last

In this hover version an extra id is needed to go after the currently selected one one each page. Use #next after the current one. You will also need to use #previous on the element before except when its the first item of course.