Gallery Tut: End of Gallery, making NEXT button disabled

Hi all,

i’ve been looking at the XML photogallery tutorial and was thinking, is there a way to set the PREVIOUS and NEXT buttons to be disabled/invisible on the FIRST and LAST images in the gallery respectively?

This would be fantastic if I could do it, but I can’t, so I’m crying for some help now!