The first post of this thread links to this example What about adjusting these blocks to your needs?
Taifun