Unaudited Consolidated Statements of Cash Flows (USD $)
In Thousands, unless otherwise specified
3 Months Ended
Nov. 30, 2011
Nov. 30, 2010
Net income (loss) $ 50,407 $ (15,250)
Adjustments to reconcile net gain (loss) to net cash provided by (used in) operating activities:    
Depreciation and amortization 18,501 17,570
(Benefit from) provision for deferred income taxes 17,009 (18,378)
Stock-based compensation expense 9,870 8,922
(Earnings) losses from unconsolidated entities, net of taxes (6,953) (2,872)
Distributions from unconsolidated entities 2,128 3,873
Taxes paid upon net-share settlement of equity awards (50) (236)
Excess tax benefits from stock based compensation (112) (205)
Foreign currency transaction (gains) losses, net (27,359) 11,412
Other noncash Items 995 4,197
Changes in assets and liabilities, net of effects of acquisitions and consolidation of variable interest entities:    
(Increase) decrease in accounts receivables 36,658 (11,566)
(Increase) decrease in costs and estimated earnings in excess of billings on uncompleted contracts, including claims 12,501 93,869
(Increase) decrease in inventories (18,912) (8,818)
(Increase) decrease in other current assets 25,972 (4,897)
Increase(decrease) in accounts payable (78,155) (109,335)
Increase (decrease) in accrued liabilities (44,724) (15,556)
Increase (decrease) in advanced billings and billings in excess of costs and estimated earnings on uncompleted contracts (128,628) (155,711)
Net change in other assets and liabilities (10,044) (8,988)
Net cash provided by (used in) operating activities (140,896) (211,969)
Cash flows from investing activities:    
Purchases of property and equipment (24,307) (30,237)
Proceeds from sale of businesses and assets, net of cash surrendered 1,599 715
Investment(s) in notes receivable   (10,100)
Cash deposited into restricted and escrowed cash (10,010) (474,623)
Cash withdrawn from restricted and escrowed cash 17,608 416,824
Purchases of short-term investments (75,104) (329,704)
Proceeds from sale and redemption of short-term investments 58,003 279,562
Proceeds from sale of restricted short term investments 138,851 58,673
Net cash provided by (used in) investing activities 106,640 (88,890)
Cash flows from financing activities:    
Purchase of treasury stock (21) (436)
Repayment of debt and capital leases (85) (3,429)
Payment of deferred financing costs (16)  
Issuance of common stock 519 2,464
Excess tax benefits from exercise of stock options and vesting of restricted stock 112 205
Contributions received from noncontrolling interest 3,075 600
Distributions paid to noncontrolling interest (900) (1,385)
Net cash provided by (used in) financing activities 2,684 (1,981)
Net effects on cash of deconsolidation of VIE(s)   (12,800)
Effects of foreign exchange rate changes on cash (5,462) 2,733
Net change in cash and cash equivalents (37,034) (312,907)
Cash and cash equivalents — beginning of year 674,080 912,736
Cash and cash equivalents — end of year $ 637,046 $ 599,829