Please, ask only 1 question at a time. Also, "it doesn't work" is very broad. Your question would be better if you posted an SSCCE. That makes it easier for people to help you.
–
S.L. BarthAug 10 '12 at 12:22