One way to do it:
Start from the bottom. Create one zigzag line of bones and name them: 1, 2, 3, 4, 5, 6...
Select any odd bone and let its angle be controlled by bone #1 with "2".
Select any even bone and let its angle be controlled by bone #1 with "-2".
Repeat for the other zigzag line.
Thanks GCharb, I tried the dynamics but I can not get it to work well with the falling ball with physics.
Thanks slowtiger, I tried to do it the way you explained but It did not work. I am sure It was the way I set it up was wrong though.
What I am trying to do is use physics and drop a ball on the spring(like the one used in Mario Brothers games) to compress the spring enough to trigger a switch and then bounce back to its original uncompressed state.