I tried running my code through the w3c validation service:
http://validator.w3.org/

It said that name="x" was an illegal attribute of <img>.

But, when I change it to id="x" the validator likes it, but then this JavaScript line fails:
document.x.src=picture;

I want validated code, but I also want my rollovers to work. Any ideas?

cudabean