welcome to the world of snippet making lol.. just as a thought... if you gonna make more of these and of some size too.. post them as an addon rather than a snippet.
there are only about 2 or 3 of these addons floating about on the site so more would be welcome if they are original ideas and content etc. i always like these sort of things so have a think and see what can come up with..