buy the 17-55 f2.8 if you like photography using nature lighting available and also often shoot in low light environment..
buy the 17-40 if you like the red ring and also intending to buy a flash later on ..
lastly, but what you want or lust for and get infected by the BBB virus..