So you want the image to change to image2 when rolled over, but to image3 if clicked, and it not to change back to image2 if it is image3 on rollover?
If so, you want to run a function on mouse over that checks if the src of the image is image3, then it will do nothing... Else, the image will...