Added some more functions for the category pages

Also some tweaks for ads and the slideshows. Added a few new images
sizes too.