Hi Greg,
Thank you very much and thanks for explaining some of the more egregious errors in my original code, it makes a lot of sense now!
Your updated template seems to work perfectly and is incredibly easy to add new templates etc as well.
Thanks again
Bookmarks