Your way seems a lot better. I'm doing unnecessary work by saving it to the array.
I will have a play about with the code now and see what I can do.
EDIT: Awesome, got it working!
Last edited by LearningCoder; 11-10-2012 at 01:41 AM..