Hmm, I'm sorry to have to come back and ask a very simple question, but I really do.
I've searched google for a working implementation of the provided code, and code's like it (thanks again EraYaN), but I couldn't find anything that worked. and I have exhausted my own knowledge.
I'm actually surprised with myself because I usually don't have this hard of a time implementing pre-made java/php on my sites, and I do it a lot.
If you, or anyone has an extra minute to show how it might look, it would be a terrific help. no need to add all the body/head elements, obviously.
No rush.