Im very very ashamed, I have just found the same code on http://planet-source-code.com and I don't think that ergowolf copied anything -- Because his posts were here 3 months before theirs. For those who want the URL, here it is...Here.