There is probably a better way to do what you want, you just have to explain it.
Also, please quote your code: