| Derivative Instruments and Hedging Activities (Details) (USD $)In Thousands, unless otherwise specified
 | 3 Months Ended | 9 Months Ended |  | 
      
        | Mar. 31, 2014 | Mar. 31, 2013 | Mar. 31, 2014 | Mar. 31, 2013 | Jun. 30, 2013 | 
      
        | Location in Financial Statements |  |  |  |  |  | 
      
        | Gains (losses) in accumulated OCI on derivatives (effective portion) | $ (1,752) | $ 842 | $ 1,821 | $ 2,843 |  | 
      
        | Gains (losses) reclassified from accumulated OCI into income (effective portion) | 934 | 848 | 3,472 | (116) |  | 
      
        | Derivative Assets and Liabilities, at Fair Value, Net, by Balance Sheet Classification |  |  |  |  |  | 
      
        | Asset derivatives fair value | 2,653 |  | 2,653 |  | 4,016 | 
      
        | Liability derivatives fair value | 960 |  | 960 |  | 2,173 | 
      
        | Other Current Assets |  |  |  |  |  | 
      
        | Derivative Assets and Liabilities, at Fair Value, Net, by Balance Sheet Classification |  |  |  |  |  | 
      
        | Asset derivatives fair value | 2,653 |  | 2,653 |  | 4,016 | 
      
        | Other Current Liabilities |  |  |  |  |  | 
      
        | Derivative Assets and Liabilities, at Fair Value, Net, by Balance Sheet Classification |  |  |  |  |  | 
      
        | Liability derivatives fair value | 960 |  | 960 |  | 2,173 | 
      
        | Derivatives Designated as Hedging Instruments |  |  |  |  |  | 
      
        | Derivative Instruments |  |  |  |  |  | 
      
        | Hedge contracts maximum maturity | 13 months |  |  |  |  | 
      
        | Location in Financial Statements |  |  |  |  |  | 
      
        | Gains (losses) reclassified from accumulated OCI into income (effective portion) | 934 | 848 | 3,472 | (116) |  | 
      
        | Derivatives Designated as Hedging Instruments | Other Current Assets |  |  |  |  |  | 
      
        | Derivative Assets and Liabilities, at Fair Value, Net, by Balance Sheet Classification |  |  |  |  |  | 
      
        | Foreign exchange contracts, other current assets | 460 |  | 460 |  | 362 | 
      
        | Asset derivatives fair value | 460 |  | 460 |  | 362 | 
      
        | Derivatives Designated as Hedging Instruments | Other Current Liabilities |  |  |  |  |  | 
      
        | Derivative Assets and Liabilities, at Fair Value, Net, by Balance Sheet Classification |  |  |  |  |  | 
      
        | Foreign exchange contracts, other current liabilities | 115 |  | 115 |  | 384 | 
      
        | Liability derivatives fair value | 115 |  | 115 |  | 384 | 
      
        | Not Designated as Hedging Instrument | Other Current Assets |  |  |  |  |  | 
      
        | Derivative Assets and Liabilities, at Fair Value, Net, by Balance Sheet Classification |  |  |  |  |  | 
      
        | Foreign exchange contracts, other current assets | 2,193 |  | 2,193 |  | 3,654 | 
      
        | Asset derivatives fair value | 2,193 |  | 2,193 |  | 3,654 | 
      
        | Not Designated as Hedging Instrument | Other Current Liabilities |  |  |  |  |  | 
      
        | Derivative Assets and Liabilities, at Fair Value, Net, by Balance Sheet Classification |  |  |  |  |  | 
      
        | Foreign exchange contracts, other current liabilities | 845 |  | 845 |  | 1,789 | 
      
        | Liability derivatives fair value | 845 |  | 845 |  | 1,789 | 
      
        | Revenues | Derivatives Designated as Hedging Instruments |  |  |  |  |  | 
      
        | Location in Financial Statements |  |  |  |  |  | 
      
        | Gains (losses) reclassified from accumulated OCI into income (effective portion) | 895 | 720 | 3,217 | 146 |  | 
      
        | Costs of revenues | Derivatives Designated as Hedging Instruments |  |  |  |  |  | 
      
        | Location in Financial Statements |  |  |  |  |  | 
      
        | Gains (losses) reclassified from accumulated OCI into income (effective portion) | 39 | 128 | 255 | (262) |  | 
      
        | Interest income and other, net | Derivatives Designated as Hedging Instruments |  |  |  |  |  | 
      
        | Location in Financial Statements |  |  |  |  |  | 
      
        | Gains recognized in income on derivatives (ineffective portion and amount excluded from effectiveness testing) | 38 | 61 | 64 | 73 |  | 
      
        | Interest income and other, net | Not Designated as Hedging Instrument |  |  |  |  |  | 
      
        | Location in Financial Statements |  |  |  |  |  | 
      
        | Gains (losses) recognized in income | (1,179) | 4,514 | 4,168 | 14,408 |  | 
      
        | Accumulated OCI | Derivatives Designated as Hedging Instruments |  |  |  |  |  | 
      
        | Location in Financial Statements |  |  |  |  |  | 
      
        | Gains (losses) in accumulated OCI on derivatives (effective portion) | (1,752) | 842 | 1,821 | 2,843 |  | 
      
        | Cash Flow Hedging | Purchase |  |  |  |  |  | 
      
        | Cash flow hedge contracts |  |  |  |  |  | 
      
        | Cash flow hedge contracts | 7,598 |  | 7,598 |  | 14,641 | 
      
        | Cash Flow Hedging | Purchase | Foreign Exchange Forward |  |  |  |  |  | 
      
        | Other foreign currency hedge contracts |  |  |  |  |  | 
      
        | Derivative, Notional Amount | 122,156 |  | 122,156 |  | 99,175 | 
      
        | Cash Flow Hedging | Sell |  |  |  |  |  | 
      
        | Cash flow hedge contracts |  |  |  |  |  | 
      
        | Cash flow hedge contracts | 38,773 |  | 38,773 |  | 35,178 | 
      
        | Cash Flow Hedging | Sell | Foreign Exchange Forward |  |  |  |  |  | 
      
        | Other foreign currency hedge contracts |  |  |  |  |  | 
      
        | Derivative, Notional Amount | $ 143,774 |  | $ 143,774 |  | $ 97,901 | 
      
        | Cash Flow Hedging | Derivatives Designated as Hedging Instruments |  |  |  |  |  | 
      
        | Derivative Instruments |  |  |  |  |  | 
      
        | Derivative maximum maturity, cash flow hedges |  |  | 18 months |  |  |