I'm fairly unfamiliar with JS arrays, especially ones who's contents are pulled from a SQL database.
Essentially I want Previous and Next buttons either side of an image placeholder to click through the different images.
Much like how Facebook does it, with the exception that all images are directly clickable below the placeholder (this bit is done already).
http://18.104.22.168/en-gb/cars/default.aspx?mnui=1#DAX427 then click Photos.
EDIT: The photos aren't named in any sequential order, otherwise I would have just done +1, -1 etc!