| 
           Share-based compensation - Additional Information (Detail) (USD $) 
         | 
        3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
| 
           Dec. 31, 2011 
         | 
        
           Dec. 31, 2010 
         | 
        
           Dec. 31, 2011
 
          Year 
         | 
        
           Dec. 31, 2010 
         | 
      |
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
| Weighted average fair value of options granted during the period | $ 15.68 | $ 15.70 | $ 14.90 | $ 15.02 | 
| Total intrinsic value of options exercised | $ 0 | $ 1,500,000 | $ 34,000 | $ 1,800,000 | 
| Total fair value of options vested | 627,000 | 628,000 | 698,000 | 677,000 | 
| Stock-based compensation cost | 858,000 | 714,000 | 1,148,000 | 850,000 | 
| Total unrecognized compensation cost related to non-vested stock options | $ 2,300,000 | $ 2,300,000 | ||
| Weighted average period over which the compensation cost is expected to be recognized | 1.4 | |||
| X | ||||||||||
| 
             
- Definition 
          Share-based Compensation Arrangement by Share-based Payment Award, Grant Date Fair Value of Options Vested. No definition available. 
  | 
        
| X | ||||||||||
| 
             
- Definition 
          As of the balance sheet date, the aggregate unrecognized cost of equity-based awards made to employees under equity-based compensation awards that have yet to vest. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
        
| X | ||||||||||
| 
             
- Definition 
          The weighted average period over which unrecognized compensation is expected to be recognized for equity-based compensation plans, using a decimal to express in number of years. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
        
| X | ||||||||||
| 
             
- Details 
          
  | 
        
| X | ||||||||||
| 
             
- Definition 
          The total accumulated difference between fair values of underlying shares on dates of exercise and exercise price on options which were exercised (or share units converted) into shares during the reporting period under the plan. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
        
| X | ||||||||||
| 
             
- Definition 
          The weighted average grant-date fair value of options granted during the reporting period as calculated by applying the disclosed option pricing methodology. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
        
| X | ||||||||||
| 
             
- Definition 
          The noncash expense that accounts for the value of stock or unit options distributed to employees as compensation. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  |