| **Stock Compensation Plan**                                                   | 12 Months Ended                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
||
| **Disclosure of Compensation Related Costs, Share-based Payments [Abstract]** |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Stock Compensation Plan                                                       | Stock Compensation PlanThe Company has a share award plan (the “Plan”) which has been approved by the Company’s stockholders. Under the Plan, up to 7.5 million shares of common stock could be issued in the form of options, stock appreciation rights, restricted shares, restricted share units, performance shares, performance share units, dividend equivalents or other share-based awards to employees, directors or consultants of the Company or its subsidiaries or affiliates. The terms of awards granted under the Plan, including exercise price, vesting period and life, are set by the Compensation Committee of the Board of Directors. All share-based awards (except for restricted shares and restricted share units) granted under the Plan have a life of ten years. Most awards vest ratably over three years; however, some have been granted with different vesting schedules. To date, no awards have been granted to non-employees (except those granted to non-employee members of the Board of Directors of the Company and of a consolidated subsidiary) under the Plan. At July 31, 2012, approximately 2.8 million share based awards were available to be granted under the Plan.The fair value of stock-settled stock appreciation rights (“SARs”) granted in the years ended July 31, 2012, 2011 and 2010 were estimated on the date of grant using a lattice-based option valuation model that applies the assumptions noted in the table below. A lattice-based model considers factors such as exercise behavior, and assumes employees will exercise equity awards at different times over the contractual life of the equity awards. As a lattice-based model considers these factors, and is more flexible, the Company considers it to be a better method of valuing equity awards than a closed-form Black-Scholes model. Because lattice-based option valuation models incorporate ranges of assumptions for inputs, those ranges are disclosed. Expected volatility is based on historical volatility of the Company’s stock. The Company uses historical data to estimate equity award exercises and employee terminations within the valuation model; separate groups of employees that have similar historical exercise behavior are considered separately for valuation purposes. The expected term of equity awards granted is derived from the output of the option valuation model and represents the period of time that equity awards granted are expected to be outstanding; the range given below results from certain groups of employees exhibiting different behavior. The risk-free rate for periods within the contractual life of the equity award is based on the United States Treasury yield curve in effect at the time of grant. Year Ended July 31,  201220112010Expected volatility42.8%42.5%43.3%Expected dividends1.5%—%—%Expected term (average in years)5.07-5.324.64.7Risk-free rate0.1-4.2%0.3-4.5%0.4-4.6%The Company has estimated forfeiture rates that range from 15.5% to 20.8% based upon the class of employees receiving stock-based compensation in its calculation of stock-based compensation expense for the year ended July 31, 2012. These estimates are based on historical forfeiture behavior exhibited by employees of the Company.A summary of aggregate option and SARs award activity under the Plan as of July 31, 2010, 2011 and 2012, and changes during the years then ended is presented below (in thousands, except exercise price and contractual term):  AwardsWeighted-AverageExercise PriceWeighted-AverageRemainingContractual TermAggregateIntrinsicValueOutstanding at, August 1, 20092,183$30.49  Granted37735.86  Exercised(46)23.60  Forfeited or expired(137)42.30  Outstanding at, July 31, 20102,377$30.80  Granted37137.40  Exercised(67)20.06  Forfeited or expired(20)28.59  Outstanding at, July 31, 20112,661$32.02  Granted65141.94  Exercised(74)27.10  Forfeited or expired(68)30.77  Outstanding at, July 31, 20123,170$34.206.3 years$50,632Exercisable at, July 31, 20122,193$31.505.3 years$41,467The weighted-average grant-date fair value of SARs granted during the years ended July 31, 2012, 2011 and 2010 was $12.71, $13.84 and $13.70, respectively. The total intrinsic value of options and SARs exercised during the years ended July 31, 2012, 2011 and 2010 was $1.3 million, $2.0 million and $0.7 million, respectively. The Company had 930,000, 288,000 and 241,000 SARs that vested during the years ended July 31, 2012, 2011 and 2010, respectively. These awards had a total fair value of $10.7 million, $0.7 million and $0.6 million at the date of vesting for the years ended July 31, 2012, 2011 and 2010, respectively.A summary of the status of the Company’s nonvested SARs as of July 31, 2012, and changes during the year then ended, is presented below (in thousands, except fair value amounts):  AwardsWeighted-AverageGrant-DateFair ValueOutstanding at, July 31, 20111,300$11.17Granted65112.71Vested(930)10.12Forfeited(45)13.82Nonvested at, July 31, 2012976$13.43A summary of the status of the Company’s nonvested restricted share units as of July 31, 2012, and changes during the year then ended, is presented below (in thousands, except fair value amounts):  AwardsWeighted-AverageGrant-DateFair ValueOutstanding at, July 31, 2011408$33.47Granted18038.15Vested(234)39.31Forfeited(36)36.38Nonvested at, July 31, 2012318$37.82The Company granted 180,000 restricted share units during the year ended July 31, 2012 with a weighted-average grant-date fair value of $38.15. The Company granted 201,000 restricted share units during the year ended July 31, 2011 with a weighted-average grant-date fair value of $37.03. The Company granted 136,000 restricted share units during the year ended July 31, 2010 with a weighted-average grant-date fair value of $36.11. The Company had 234,000, 143,000 and 135,000 restricted share units that vested during the years ended July 31, 2012, 2011 and 2010, respectively. These units had a total fair value of $9.2 million, $5.9 million and $4.9 million at the date of vesting for the years ended July 31, 2012, 2011 and 2010, respectively.As of July 31, 2012, there was $14.6 million of total unrecognized compensation expense related to nonvested share-based compensation arrangements granted under the Plan, of which $8.7 million, $5.2 million and $0.8 million of expense is expected to be recognized in the years ending July 31, 2013, 2014 and 2015, respectively, assuming no future share-based awards are granted.Cash received from options exercised under all share-based payment arrangements was $0.5 million, $1.1 million and $0.5 million for the years ended July 31, 2012, 2011 and 2010, respectively. The tax benefit realized or to be realized from options/SARs exercised and restricted stock units vested was $3.9 million, $2.5 million and $2.1 million for the years ended July 31, 2012, 2011 and 2010, respectively.The Company has a policy of using either authorized and unissued shares or treasury shares, including shares acquired by purchase in the open market or in private transactions, to satisfy equity award exercises. |

| X                                                                                                                                                                                                  |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract**Namespace Prefix:**us-gaap_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
The entire disclosure for compensation-related costs for equity-based compensation, which may include disclosure of policies, compensation plan details, allocation of equity compensation, incentive distributions, equity-based arrangements to obtain goods and services, deferred compensation arrangements, employee stock ownership plan details and employee stock purchase plan details.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Staff Accounting Bulletin (SAB) -Number Topic 14Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 50 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6406099&loc=d3e25284-112666Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5047-113901Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Statement of Position (SOP) -Number 93-6 -Paragraph 53 -LegacyDoc This reference is SUPERSEDED by the Accounting Standards Codification effective for interim and annual periods ending after September 15, 2009.  This reference is included to help users transition from the previous accounting hierarchy and will be removed from future versions of this taxonomy.Reference 6: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 40 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6418621&loc=d3e17540-113929Reference 7: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 123R -Paragraph 64, 65, A240 -LegacyDoc This reference is SUPERSEDED by the Accounting Standards Codification effective for interim and annual periods ending after September 15, 2009.  This reference is included to help users transition from the previous accounting hierarchy and will be removed from future versions of this taxonomy.Reference 8: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5444-113901
+ Details**Name:**us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock**Namespace Prefix:**us-gaap_**Data Type:**nonnum:textBlockItemType**Balance Type:**na**Period Type:**duration |