The results of this trial will help us to develop a larger study in 1000 hip fracture and joint replacement patients to determine whether atorvastatin protects orthopedic surgery patients from heart injury and other complications of surgery.