詳しくはここ http://workingn.blog.fc2.com/blog-entry-21.html 見ればわかる
http://www.nicovideo.jp/watch/sm16914717