Restructuring and Related Charges (Details) (USD $) | 3 Months Ended | 6 Months Ended |
Feb. 28, 2015 | Feb. 28, 2014 | Feb. 28, 2015 | Feb. 28, 2014 |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | $20,358,000 | $32,203,000 | $32,616,000 | $53,206,000 |
2014 Restructuring Plan | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | | 27,865,000 | | 42,488,000 |
2014 Restructuring Plan | EMS | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | | 27,865,000 | | 42,488,000 |
2014 Restructuring Plan | Employee Severance | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | | 3,994,000 | | 16,373,000 |
2014 Restructuring Plan | Employee Severance | Restructuring Charges Cash | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | | 3,994,000 | | 16,373,000 |
2014 Restructuring Plan | Asset Write-Off Cost | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | | 22,321,000 | | 22,884,000 |
2014 Restructuring Plan | Lease Costs | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | | 1,381,000 | | 1,738,000 |
2014 Restructuring Plan | Lease Costs | Restructuring Charges Cash | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | | 1,381,000 | | 1,738,000 |
2014 Restructuring Plan | Other Related Costs | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | | 169,000 | | 1,493,000 |
2014 Restructuring Plan | Other Related Costs | Restructuring Charges Cash | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | | 169,000 | | 1,493,000 |
2013 Restructuring Plan | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | 20,640,000 | 4,338,000 | 34,109,000 | 10,718,000 |
Total pre-tax restructuring and other related costs expected to be recognized | 179,000,000 | | 179,000,000 | |
Restructuring related charges to date | 150,000,000 | | 150,000,000 | |
2013 Restructuring Plan | EMS | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | 20,102,000 | -4,103,000 | 31,850,000 | -1,416,000 |
Restructuring related charges to date | 113,300,000 | | 113,300,000 | |
2013 Restructuring Plan | DMS | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | 475,000 | 8,050,000 | 424,000 | 10,430,000 |
Restructuring related charges to date | 28,100,000 | | 28,100,000 | |
2013 Restructuring Plan | Other | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | 63,000 | 391,000 | 1,835,000 | 1,704,000 |
Restructuring related charges to date | 8,600,000 | | 8,600,000 | |
2013 Restructuring Plan | Restructuring Charges Cash | Minimum | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Total pre-tax restructuring and other related costs expected to be recognized | 131,000,000 | | 131,000,000 | |
2013 Restructuring Plan | Restructuring Charges Cash | Maximum | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Total pre-tax restructuring and other related costs expected to be recognized | 151,000,000 | | 151,000,000 | |
2013 Restructuring Plan | Employee Severance | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | 18,597,000 | 1,391,000 | 25,202,000 | 7,685,000 |
2013 Restructuring Plan | Employee Severance | Restructuring Charges Cash | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | 18,597,000 | 1,391,000 | 25,202,000 | 7,685,000 |
2013 Restructuring Plan | Asset Write-Off Cost | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | 581,000 | 2,013,000 | 4,987,000 | 2,013,000 |
2013 Restructuring Plan | Lease Costs | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | 816,000 | 387,000 | 2,777,000 | 387,000 |
2013 Restructuring Plan | Lease Costs | Restructuring Charges Cash | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | 816,000 | 387,000 | 2,777,000 | 387,000 |
2013 Restructuring Plan | Other Related Costs | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | 646,000 | 547,000 | 1,143,000 | 633,000 |
2013 Restructuring Plan | Other Related Costs | Restructuring Charges Cash | | | | |
Restructuring Cost and Reserve [Line Items] | | | | |
Restructuring and related charges | $646,000 | $547,000 | $1,143,000 | $633,000 |