re order the links:
<div class="nav">
<a href="#" class="first" style="visibility:hidden;">First</a>
<a href="#" class="last" style="visibility:hidden;">Last</a>
<a href="#" class="prev">Prev</a>
<a href="#" class="next">Next</a>
</div>