as simdog said man, you are one lucky man in a bad situation.
get quotes for the repairs/parts. if the car is declared a write off and you can fix it cheaply buy the wreck and fix it with some of the money from the payout.
once fixed you could sell it and end up on top financially