Everything said here. But I would definitely lean towards buying it at the shop. I got my Specialized at Rassy's and at the end of the day, they gave me shoes half off, free pedals, free helmet and first tune up. You won't get that online.
I would also suggest getting a cross bike with an extra...