No could not get jQuery to load. Just used standard javascript at the end as I was pressed for time. But thanks DBeer had a quick look at prototype (http://api.prototypejs.org/dom/) and it looks very similar to jQuery (this confused me as simple jQuery syntax sometimes worked (but now I know the reason for it)).