if cost of repair were more than cash value of the car, it would be more cost effective for insurance company to salvage the car. cash value is determined based on kelly's blue book. (i guess)
you can sue for any additional loss, have you talked to a lawyer?