Hi I have this snippet of code which shows an image based on what radio button is selected, problem is that the names, id's, values etc are dynamically created via the admin panel of my cart so what happens is that the buttons are not recognised as being 'checked' if I make them 'checked'...

I can sort of see where its trying to check if 'checked' but quite sure how to make it suit my radio button without changing the buttons id's.