Change defualt image rollover depending on id value

I have javaScript rollovers in my dynamic design, using ASP as the server scripting language. However what I require is to disable the link if id=value where the user cannot click the link again as they currently reside on that link.

Also for the default out image to be the over image. I am not sure how to achieve this but maybe its possible I dont see why not, can anyone help me figure this out. Maybe a command in the database where mouse out = image, not sure

please help me find the solution

trev