Hi! I killed my plugin-idea and rewrote the whole thing and now I have it working.
Thanks for your advice, ricardobeat! The result can be seen on http://www.coolstuff.se/Humunga_Tunga. Open an image och forward to #4. The code is in product.js. Best regards, Pom