i changed the links of some of the images to absolute ones(see gallery illusion) , but even that did not work.
the problem seems to be something else as when i put a "image" link on that page to one of the images it worked fine,but the thumbnails do not link.
one more thing i would like to add is that the links work fine in IE6 and OPERA but not in firefox and safari