参考URL https://ameblo.jp/takabacker126/entry-12724748150.html 長くなってしまったので、分けてとか、高速化してお聞きください。
http://www.nicovideo.jp/watch/sm39984425