Condensed Consolidating Statements of Cash Flows (Detail) (USD $) In Thousands, unless otherwise specified
|
12 Months Ended |
Aug. 31, 2014
|
Aug. 31, 2013
|
Aug. 31, 2012
|
Operating activities |
|
|
|
Net cash provided by (used in) operating activities |
$ 125,234
|
$ 193,789
|
$ 182,329
|
Investing activities |
|
|
|
Proceeds from sale of property, plant and equipment |
44,274
|
1,621
|
8,501
|
Proceeds from sale of businesses |
289,590
|
4,854
|
0
|
Intercompany investment |
0
|
|
|
Capital expenditures |
(41,857)
|
(23,668)
|
(22,740)
|
Business acquisitions, net of cash acquired |
(30,500)
|
(235,489)
|
(69,309)
|
Cash provided by (used in) investing activities |
261,507
|
(252,682)
|
(83,548)
|
Financing activities |
|
|
|
Net repayments on revolver |
(125,000)
|
125,000
|
(58,167)
|
Intercompany loan activity |
0
|
0
|
0
|
Net repayments on revolver |
0
|
(7,500)
|
(2,500)
|
Intercompany capital contribution |
0
|
|
|
Repurchases of 2% Convertible Notes |
0
|
0
|
(102)
|
Proceeds from issuance of 5.625% Senior Notes |
0
|
0
|
300,000
|
Redemption of 6.875% Senior Notes |
0
|
0
|
(250,000)
|
Payment of deferred acquisition consideration |
(1,585)
|
(5,378)
|
(958)
|
Debt issuance costs |
0
|
(2,035)
|
(5,490)
|
Purchase of treasury shares |
(283,712)
|
(41,832)
|
(63,083)
|
Intercompany loan activity |
32,224
|
33,261
|
10,913
|
Cash dividend |
(2,919)
|
(2,911)
|
(2,748)
|
Cash (used in) provided by financing activities |
(380,992)
|
98,605
|
(72,135)
|
Effect of exchange rate changes on cash |
(723)
|
(3,910)
|
(2,683)
|
Net increase in cash and cash equivalents |
5,026
|
35,802
|
23,963
|
Cash and cash equivalents—beginning of year |
103,986
|
68,184
|
44,221
|
Cash and cash equivalents—end of year |
109,012
|
103,986
|
68,184
|
Parent
|
|
|
|
Operating activities |
|
|
|
Net cash provided by (used in) operating activities |
75,924
|
81,597
|
97,454
|
Investing activities |
|
|
|
Proceeds from sale of property, plant and equipment |
85
|
563
|
1,909
|
Proceeds from sale of businesses |
(4,586)
|
0
|
|
Intercompany investment |
0
|
|
|
Capital expenditures |
(4,498)
|
(2,022)
|
(5,062)
|
Business acquisitions, net of cash acquired |
(30,500)
|
0
|
0
|
Cash provided by (used in) investing activities |
(39,499)
|
(1,459)
|
(3,153)
|
Financing activities |
|
|
|
Net repayments on revolver |
(125,000)
|
125,000
|
(57,990)
|
Intercompany loan activity |
354,791
|
(179,050)
|
(11,482)
|
Net repayments on revolver |
|
(7,500)
|
(2,500)
|
Intercompany capital contribution |
0
|
|
|
Repurchases of 2% Convertible Notes |
|
|
(102)
|
Proceeds from issuance of 5.625% Senior Notes |
|
|
300,000
|
Redemption of 6.875% Senior Notes |
|
|
(250,000)
|
Payment of deferred acquisition consideration |
0
|
(1,350)
|
(290)
|
Debt issuance costs |
|
(2,035)
|
(5,490)
|
Purchase of treasury shares |
(283,712)
|
(41,832)
|
(63,083)
|
Intercompany loan activity |
32,224
|
33,261
|
10,913
|
Cash dividend |
(2,919)
|
(2,911)
|
(2,748)
|
Cash (used in) provided by financing activities |
(24,616)
|
(76,417)
|
(82,772)
|
Effect of exchange rate changes on cash |
0
|
0
|
0
|
Net increase in cash and cash equivalents |
11,809
|
3,721
|
11,529
|
Cash and cash equivalents—beginning of year |
16,122
|
12,401
|
872
|
Cash and cash equivalents—end of year |
27,931
|
16,122
|
12,401
|
Guarantors
|
|
|
|
Operating activities |
|
|
|
Net cash provided by (used in) operating activities |
(20,966)
|
26,095
|
20,363
|
Investing activities |
|
|
|
Proceeds from sale of property, plant and equipment |
484
|
206
|
353
|
Proceeds from sale of businesses |
250,748
|
0
|
|
Intercompany investment |
(99,963)
|
|
|
Capital expenditures |
(4,675)
|
(4,021)
|
(4,069)
|
Business acquisitions, net of cash acquired |
0
|
0
|
0
|
Cash provided by (used in) investing activities |
146,594
|
(3,815)
|
(3,716)
|
Financing activities |
|
|
|
Net repayments on revolver |
0
|
0
|
0
|
Intercompany loan activity |
(122,303)
|
(22,371)
|
(16,556)
|
Net repayments on revolver |
|
0
|
0
|
Intercompany capital contribution |
0
|
|
|
Repurchases of 2% Convertible Notes |
|
|
0
|
Proceeds from issuance of 5.625% Senior Notes |
|
|
0
|
Redemption of 6.875% Senior Notes |
|
|
0
|
Payment of deferred acquisition consideration |
0
|
0
|
0
|
Debt issuance costs |
|
0
|
0
|
Purchase of treasury shares |
0
|
0
|
0
|
Intercompany loan activity |
0
|
0
|
0
|
Cash dividend |
0
|
0
|
0
|
Cash (used in) provided by financing activities |
(122,303)
|
(22,371)
|
(16,556)
|
Effect of exchange rate changes on cash |
0
|
0
|
0
|
Net increase in cash and cash equivalents |
3,325
|
(91)
|
91
|
Cash and cash equivalents—beginning of year |
0
|
91
|
0
|
Cash and cash equivalents—end of year |
3,325
|
0
|
91
|
Non-Guarantors
|
|
|
|
Operating activities |
|
|
|
Net cash provided by (used in) operating activities |
84,992
|
86,097
|
64,512
|
Investing activities |
|
|
|
Proceeds from sale of property, plant and equipment |
43,705
|
852
|
6,239
|
Proceeds from sale of businesses |
43,428
|
4,854
|
|
Intercompany investment |
0
|
|
|
Capital expenditures |
(32,684)
|
(17,625)
|
(13,609)
|
Business acquisitions, net of cash acquired |
0
|
(235,489)
|
(69,309)
|
Cash provided by (used in) investing activities |
54,449
|
(247,408)
|
(76,679)
|
Financing activities |
|
|
|
Net repayments on revolver |
0
|
0
|
(177)
|
Intercompany loan activity |
(232,488)
|
201,421
|
28,038
|
Net repayments on revolver |
|
0
|
0
|
Intercompany capital contribution |
99,963
|
|
|
Repurchases of 2% Convertible Notes |
|
|
0
|
Proceeds from issuance of 5.625% Senior Notes |
|
|
0
|
Redemption of 6.875% Senior Notes |
|
|
0
|
Payment of deferred acquisition consideration |
(1,585)
|
(4,028)
|
(668)
|
Debt issuance costs |
|
0
|
0
|
Purchase of treasury shares |
0
|
0
|
0
|
Intercompany loan activity |
0
|
0
|
0
|
Cash dividend |
(14,716)
|
0
|
0
|
Cash (used in) provided by financing activities |
(148,826)
|
197,393
|
27,193
|
Effect of exchange rate changes on cash |
(723)
|
(3,910)
|
(2,683)
|
Net increase in cash and cash equivalents |
(10,108)
|
32,172
|
12,343
|
Cash and cash equivalents—beginning of year |
87,864
|
55,692
|
43,349
|
Cash and cash equivalents—end of year |
77,756
|
87,864
|
55,692
|
Eliminations
|
|
|
|
Operating activities |
|
|
|
Net cash provided by (used in) operating activities |
(14,716)
|
0
|
0
|
Investing activities |
|
|
|
Proceeds from sale of property, plant and equipment |
0
|
0
|
0
|
Proceeds from sale of businesses |
0
|
0
|
|
Intercompany investment |
99,963
|
|
|
Capital expenditures |
0
|
0
|
0
|
Business acquisitions, net of cash acquired |
0
|
0
|
0
|
Cash provided by (used in) investing activities |
99,963
|
0
|
0
|
Financing activities |
|
|
|
Net repayments on revolver |
0
|
0
|
0
|
Intercompany loan activity |
0
|
0
|
0
|
Net repayments on revolver |
|
0
|
0
|
Intercompany capital contribution |
(99,963)
|
|
|
Repurchases of 2% Convertible Notes |
|
|
0
|
Proceeds from issuance of 5.625% Senior Notes |
|
|
0
|
Redemption of 6.875% Senior Notes |
|
|
0
|
Payment of deferred acquisition consideration |
0
|
0
|
0
|
Debt issuance costs |
|
0
|
0
|
Purchase of treasury shares |
0
|
0
|
0
|
Intercompany loan activity |
0
|
0
|
0
|
Cash dividend |
14,716
|
0
|
0
|
Cash (used in) provided by financing activities |
(85,247)
|
0
|
0
|
Effect of exchange rate changes on cash |
0
|
0
|
0
|
Net increase in cash and cash equivalents |
0
|
0
|
0
|
Cash and cash equivalents—beginning of year |
0
|
0
|
0
|
Cash and cash equivalents—end of year |
$ 0
|
$ 0
|
$ 0
|