Photoshop CS3 has a feature which creates panoramic views. The new photomerge feature combines several photographs into one continuous image. It automatically stitches them together to create panoramic views. You can also create interactive panoramic views.
I think this feature is available in CS2 and CS to some extent.
To view a video tutorial on how to use the photomerge feature on CS3 click here.