Thanks Nitun I will install an older version.
I just restored an old version into a test area and updated all the plugins apart from rtMEdia so the theme and everything else was exactly the same except the restored site was running rtMedia 4.0.1 and it worked fine. As soon as I updated rtMedia to the latest version the lightbox stopped working so there must be some conflict with the latest rtMedia and something else running.