Disable 'empty' thumbnails

Hi Kirupians,
… wondering if someone might be able to help me?

I am working with the famous thumbnail gallery and because of my design
display 3x3 thumnails.
But not all of the 9 thumbnails have correlating projects yet, and for that
reason I am loading thumbnails in that say ‘Content pending’.

It is these ‘Content pending’ thumbs that I would like to have enabled = 0;!
But I am stuck on how to?
Can I check if thumbs.contentpending, this thumb=enabled = 0;
Or is there a way of having the big image=""; and enabling the correlating thumb?
Any advice is gratefully appreciated :wink: Thanks.

The disabling/enabling of the thumbs is done like this right now:

function disButtons(d) {
	for (var i = 0; i<tArray.length; i++) {
		if (i != d) {
		this.thumbs.th_nav["thmb"+i].enabled = 1;
		} else {
		this.thumbs.th_nav["thmb"+i].enabled = 0;