I'm following this rigging tutorial. Everything worked perfectly until 10:40, where the uploader asks to set parent with automatic weights. This completely deforms the mesh, as shown below.
aa http://dl.dropboxusercontent.com/u/62862049/Screenshots/023.png
bb http://dl.dropboxusercontent.com/u/62862049/Screenshots/024.png
What is wrong?