Hi,
This was going to be a tutorial (as you can see from the title) but it didn't work and a load of coding just appeared when I posted it. I would really appreciate it if admins didn't lock this thread as I am going to re-type it all, however for now it will have to stay like this (as you can't delete a thread). Sorry about this!
I will fix it as soon as I can.
-DT10