If you read the comments at http://www.hawkee.com/snippet/5792/, you'll see where zak based this script from. It's perfectly ok he took it from a source and changed it trying to perfect the code itself.
At least he should have the courtesy to say where I obtain it from. People shall never boast themselves and be pretentious to claim something that they've never done. It's the ethical principle that counts.