It works very fine but to cope with my presentations I had just change \def by \long\def in line 3.
You're welcome. Yes, correct. powerdot.cls contains a \long def, forgot to put it in this piece of code, sorry. -Hendri.