こことか参考になるかもしれないな
http://love-motif.com/article/art_13.shtml