The bottom photo is the same YF-17 Cobra on display at the National Museum of Naval Aviation in Pensacola, Florida. The YF-17 was moved from the Navy museum to the USS Alabama to make room in the Navy museum for some older aircraft that they were otherwise unable to display.
Update — Battleship Park was badly damaged by Hurricane Katrina in August, 2005. Most aircraft floated off of their landing gear during the storm surge, resulting in planes tumbling into each other. Fortunately, the YF-17 escaped relatively unharmed. It has since been repaired and put back on display.