Saving an Animation

I followed a tutorial on this and it still didn't work. Can someone help? I'm using Adobe ImageReady and I've made an animation, all the frames are in place, timed and when I hit the play button working perfectly. I then went to the drop down list on the animation window and clicked optimize animation. Then went to file and clicked save optimized as. Instead of allowing me to save as a .gif file it tells me I can save it as either .html or .jpg. Why? What did I do wrong? Thanks :)