| 
         
         Restricted Stock Unit Activities (Details) (USD $) Share data in Thousands, except Per Share data, unless otherwise specified  | 
       12 Months Ended | 60 Months Ended | 12 Months Ended | 60 Months Ended | 12 Months Ended | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
         
         Jun. 30, 2014  | 
       
         
         Jun. 30, 2013  | 
       
         
         Jun. 30, 2012  | 
       
         
         Jun. 30, 2014 
        
         Restricted Stock  | 
       
         
         Jun. 30, 2014 
        
         Restricted Stock Unit, Service-Based 
        
         Installment  | 
       
         
         Jun. 30, 2014 
        
         Restricted Stock Unit, Performance-Based And Service Based 
        
         Installment  | 
       
         
         Jun. 30, 2012 
        
         Restricted Stock Units (RSUs) 
        
         Installment  | 
       
         
         Jun. 30, 2014 
        
         First Anniversary 
        
         Restricted Stock Unit, Service-Based  | 
       
         
         Jun. 30, 2014 
        
         两周年纪念日 
        
         Restricted Stock Unit, Service-Based  | 
       
         
         Jun. 30, 2012 
        
         两周年纪念日 
        
         Restricted Stock Units (RSUs)  | 
       
         
         Jun. 30, 2014 
        
         Third Anniversary 
        
         Restricted Stock Unit, Service-Based  | 
       
         
         Jun. 30, 2014 
        
         Third Anniversary 
        
         Restricted Stock Unit, Performance-Based And Service Based  | 
       
         
         Jun. 30, 2014 
        
         Fourth Anniversary 
        
         Restricted Stock Unit, Service-Based  | 
       
         
         Jun. 30, 2014 
        
         Fourth Anniversary 
        
         Restricted Stock Unit, Performance-Based And Service Based  | 
       
         
         Jun. 30, 2012 
        
         Fourth Anniversary 
        
         Restricted Stock Units (RSUs)  | 
       
         
         Nov. 06, 2013 
        
         Two Thousand Four Plan  | 
       
         
         Nov. 05, 2013 
        
         Two Thousand Four Plan  | 
       
         
         Jun. 30, 2014 
        
         Management 
        
         Restricted Stock Unit, Performance-Based And Service Based  | 
       
         
         Jun. 30, 2013 
        
         Management 
        
         Restricted Stock Unit, Performance-Based And Service Based  | 
      ||||||
| Restricted Stock Units Activity Roll Forward | ||||||||||||||||||||||||
| Outstanding restricted stock units as of June 30, 2013, shares | 5,374 | [1],[2] | ||||||||||||||||||||||
| Granted, shares | 702 | [1],[2] | 300 | 300 | ||||||||||||||||||||
| Vested and released, shares | (1,589) | [2] | ||||||||||||||||||||||
| Withheld for taxes, shares | (871) | [2] | ||||||||||||||||||||||
| Forfeited. shares | (260) | [2] | ||||||||||||||||||||||
| Outstanding restricted stock units as of June 30, 2014, shares | 3,356 | [1],[2] | ||||||||||||||||||||||
| Outstanding restricted stock units as of June 30, 2013, weighted-average grant date fair value | $ 34.39 | [1] | ||||||||||||||||||||||
| Weighted-average grant date fair value per unit for restricted stock units granted | $ 53.28 | $ 47.71 | $ 32.19 | $ 53.28 | [1] | |||||||||||||||||||
| Vested and released, weighted-average grant date fair value | $ 33.28 | |||||||||||||||||||||||
| Withheld for taxes, weighted-average grant date fair value | $ 33.28 | |||||||||||||||||||||||
| Forfeited, weighted-average grant date fair value | $ 37.15 | |||||||||||||||||||||||
| Outstanding restricted stock units as of June 30, 2014, weighted-average grant date fair value | $ 38.95 | [1] | ||||||||||||||||||||||
| Impact on share reserve multiplier | 2.0 | 1.8 | ||||||||||||||||||||||
| Share-based compensation arrangement by share-based payment award, number of equal vesting installments | 4 | 2 | 2 | |||||||||||||||||||||
| Tax benefits realized by the Company in connection with vested and released restricted stock units | $ 44,298,000 | $ 29,204,000 | $ 28,914,000 | |||||||||||||||||||||
| Unrecognized stock-based compensation expense balance | 75,300,000 | |||||||||||||||||||||||
| Estimated weighted-average amortization period | 1 year 1 month | |||||||||||||||||||||||
| Intrinsic Value of outstanding restricted stock units | $ 243,800,000 | |||||||||||||||||||||||
| Share-based compensation arrangement by share-based payment award, percentage of equal vesting installments | 25.00% | 25.00% | 50.00% | 25.00% | 50.00% | 25.00% | 50.00% | 50.00% | ||||||||||||||||
        
  | 
      ||||||||||||||||||||||||