this is done using an image as the background for the outer div.
The image should be created to have the same width as the outer div, it should be transparent in the middle, on the left and right sides, it should have a border about 5 - 10pixels that creates the shadow effect.
use the background-repeat:repeat-x; so that the image repeats horizontally down the page.