My photo experiment with a Class

Please have a look at my file so far. It is the beginning of a photo gallery that i’m trying to create. So far i have created a class that controls the behaviour of all the photos.

Each photo should be draggable, it should animate when rolled over, if dragged it should come to the top of the pile and eventually when double-clicked a full size image will be seen.

I’ve run into a couple of problems. There’s a couple of strange things happening that i can’t figure out. When i drag a photo it should go to the top. This isn’t working properly. Sometimes other photos are shifting depths which is bizzare. Also I don’t think i’ve done my rollovers correctly as they are acting strangely too.

Please have a look if you have time, thanks