This is certainly overdoing it but I first selected all, went to edit>transform>warp, in PS CS2, and pulled at the boxes to straighten out the curves. Then I used the crop tool and trimmed off the parts that had to go and before clicking ok put a checkmark in the perspective box on the tool options bar. Then I pulled the end boxes so that the sides of the crop box were parallel to the sides of the windows.