| Derivative Instruments and Hedging Activities (Tables)
 | 9 Months Ended | 
      
        | Mar. 31, 2014 | 
      
        | Derivative Instruments and Hedging Activities Disclosure [Abstract] |  | 
      
        | Schedule of Derivative Instruments, Location, Designated and Non-Designated, Gains (Losses) | 
The locations and amounts of designated and non-designated derivative instruments’ gains and losses reported in the condensed consolidated financial statements for the indicated periods were as follows: 
|  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|   |   | Three months endedMarch 31,
 |   | Nine months endedMarch 31,
 |  
| (In thousands) | Location in Financial Statements | 2014 |   | 2013 |   | 2014 |   | 2013 |  
| Derivatives Designated as Hedging Instruments |   |   |   |   |   |   |   |   |  
| Gains (losses) in accumulated OCI on derivatives (effective portion) | Accumulated OCI | $ | (1,752 | ) |   | $ | 842 | 
 |   | $ | 1,821 | 
 |   | $ | 2,843 | 
 |  
| Gains (losses) reclassified from accumulated OCI into income (effective portion): | Revenues | $ | 895 | 
 |   | $ | 720 | 
 |   | $ | 3,217 | 
 |   | $ | 146 | 
 |  
|   | Costs of revenues | 39 | 
 |   | 128 | 
 |   | 255 | 
 |   | (262 | ) |  
|   | Total gains (losses) reclassified from accumulated OCI into income (effective portion) | $ | 934 | 
 |   | $ | 848 | 
 |   | $ | 3,472 | 
 |   | $ | (116 | ) |  
| Gains recognized in income on derivatives (ineffective portion and amount excluded from effectiveness testing) | Interest income and other, net | $ | 38 | 
 |   | $ | 61 | 
 |   | $ | 64 | 
 |   | $ | 73 | 
 |  
| Derivatives Not Designated as Hedging Instruments |   |   |   |   |   |   |   |   |  
| Gains (losses) recognized in income | Interest income and other, net | $ | (1,179 | ) |   | $ | 4,514 | 
 |   | $ | 4,168 | 
 |   | $ | 14,408 | 
 |  | 
      
        | Schedule of Notional Amounts of Derivatives Outstanding | 
The U.S. dollar equivalent of all outstanding notional amounts of hedge contracts, with maximum maturity of 13 months, as of the dates indicated below was as follows: 
 
|  |  
|  |  |  |  |  |  |  |  |  
| (In thousands) | As of March 31, 2014
 |   | As of June 30, 2013
 |  
| Cash flow hedge contracts |   |   |   |  
| Purchase | $ | 7,598 | 
 |   | $ | 14,641 | 
 |  
| Sell | $ | 38,773 | 
 |   | $ | 35,178 | 
 |  
| Other foreign currency hedge contracts |   |   |   |  
| Purchase | $ | 122,156 | 
 |   | $ | 99,175 | 
 |  
| Sell | $ | 143,774 | 
 |   | $ | 97,901 | 
 |  | 
      
        | Schedule of Derivative Instruments, Fair Value | 
The locations and fair value amounts of the Company’s derivative instruments reported in its Condensed Consolidated Balance Sheets as of the dates indicated below were as follows:  
 
|  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|   | Asset Derivatives |   | Liability Derivatives |  
|   | Balance Sheet Location |   | As of March 31, 2014
 |   | As of June 30, 2013
 |   | Balance Sheet Location |   | As of March 31, 2014
 |   | As of June 30, 2013
 |  
| (In thousands) |   | Fair Value |   |   |   | Fair Value |  
| Derivatives designated as hedging instruments |   |   |   |   |   |   |   |   |   |   |   |  
| Foreign exchange contracts | Other current assets |   | $ | 460 | 
 |   | $ | 362 | 
 |   | Other current liabilities |   | $ | 115 | 
 |   | $ | 384 | 
 |  
| Total derivatives designated as hedging instruments |   |   | $ | 460 | 
 |   | $ | 362 | 
 |   |   |   | $ | 115 | 
 |   | $ | 384 | 
 |  
| Derivatives not designated as hedging instruments |   |   |   |   |   |   |   |   |   |   |   |  
| Foreign exchange contracts | Other current assets |   | $ | 2,193 | 
 |   | $ | 3,654 | 
 |   | Other current liabilities |   | $ | 845 | 
 |   | $ | 1,789 | 
 |  
| Total derivatives not designated as hedging instruments |   |   | $ | 2,193 | 
 |   | $ | 3,654 | 
 |   |   |   | $ | 845 | 
 |   | $ | 1,789 | 
 |  
| Total derivatives |   |   | $ | 2,653 | 
 |   | $ | 4,016 | 
 |   |   |   | $ | 960 | 
 |   | $ | 2,173 | 
 |  | 
      
        | Balances and Changes in Accumulated Other Comprehensive Income Related to Derivative Instruments | 
The following table provides the balances and changes in accumulated OCI, before taxes, related to derivative instruments for the indicated periods: 
|  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|   | Three months endedMarch 31,
 |   | Nine months endedMarch 31,
 |  
| (In thousands) | 2014 |   | 2013 |   | 2014 |   | 2013 |  
| Beginning balance | $ | 3,519 | 
 |   | $ | 2,003 | 
 |   | $ | 2,484 | 
 |   | $ | (962 | ) |  
| Amount reclassified to income | (934 | ) |   | (848 | ) |   | (3,472 | ) |   | 116 | 
 |  
| Net change | (1,752 | ) |   | 842 | 
 |   | 1,821 | 
 |   | 2,843 | 
 |  
| Ending balance | $ | 833 | 
 |   | $ | 1,997 | 
 |   | $ | 833 | 
 |   | $ | 1,997 | 
 |  | 
      
        | Offsetting of Assets and Liabilities | 
As of March 31, 2014 and June 30, 2013, information related to the offsetting arrangements was as follows (in thousands):
 
|  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| As of March 31, 2014 |   |   |   |   |   | Gross Amounts of Derivatives Not Offset in the Consolidated Balance Sheets |   |   |  
| Description |   | Gross Amounts of Derivatives |   | Gross Amounts of Derivatives Offset in the Consolidated Balance Sheets |   | Net Amount of Derivatives Presented in the Consolidated Balance Sheets |   | Financial Instruments |   | Cash Collateral Received |   | Net Amount |  
| Derivatives - Assets |   | $ | 2,653 | 
 |   | $ | — | 
 |   | $ | 2,653 | 
 |   | $ | (960 | ) |   | $ | — | 
 |   | $ | 1,693 | 
 |  
| Derivatives - Liabilities |   | $ | (960 | ) |   | $ | — | 
 |   | $ | (960 | ) |   | $ | 960 | 
 |   | $ | — | 
 |   | $ | — | 
 | 
|  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| As of June 30, 2013 |   |   |   |   |   | Gross Amounts of Derivatives Not Offset in the Consolidated Balance Sheets |   |   |  
| Description |   | Gross Amounts of Derivatives |   | Gross Amounts of Derivatives Offset in the Consolidated Balance Sheets |   | Net Amount of Derivatives Presented in the Consolidated Balance Sheets |   | Financial Instruments |   | Cash Collateral Received |   | Net Amount |  
| Derivatives - Assets |   | $ | 4,016 | 
 |   | $ | — | 
 |   | $ | 4,016 | 
 |   | $ | (1,520 | ) |   | $ | — | 
 |   | $ | 2,496 | 
 |  
| Derivatives - Liabilities |   | $ | (2,173 | ) |   | $ | — | 
 |   | $ | (2,173 | ) |   | $ | 1,520 | 
 |   | $ | — | 
 |   | $ | (653 | ) |  |