Added init method for Dialog element

Ignore-this: 9ad5087617f8f788befed544080f96ee

darcs-hash:20100104160054-56b4d-8c9abec09b7e19006ccbdde634cb9ce8033e1882