取り急ぎ。【追記】手直ししました。→ https://www.nicovideo.jp/watch/sm37756121
http://www.nicovideo.jp/watch/sm37753416