Based on http://www.cwdesigns.de/eskju-jquery-fancyindex.html