Cash and Cash Equivalents and Investments | Cash and Cash Equivalents and Investments Cash, cash equivalents and investments at June 30, 2015 and December 31, 2014 include all cash, money market funds, corporate debt securities, commercial paper and certificates of deposit. We consider our investments as available-for-sale. Available-for-sale securities are stated at fair value. Fair value is defined as the price that would be received to sell an asset or paid to transfer a liability in an orderly transaction between market participants at the measurement date. To increase the comparability of fair value measures, the following hierarchy prioritizes the inputs to valuation methodologies used to measure fair value: Level 1—Quoted prices in active markets for identical assets and liabilities, Level 2—Inputs other than Level 1 that are observable, either directly or indirectly, such as quoted prices for similar assets or liabilities; quoted prices in markets that are not active; or other inputs that are observable or can be corroborated by observable market data for substantially the full term of the assets or liabilities, and Level 3—Unobservable inputs in which there is little or no market data available, which requires us to develop our own assumptions. We measure the fair value of money market funds based on quoted prices in active markets for identical assets or liabilities. All other financial instruments were valued either based on recent trades of securities in inactive markets or based on quoted market prices of similar instruments and other significant inputs derived from or corroborated by observable market data. We did not hold any financial instruments categorized as Level 3 as of June 30, 2015 or December 31, 2014. Cash and cash equivalents and investments as of June 30, 2015 and December 31, 2014 consisted of the following (in thousands): June 30, 2015 Amortized Cost Gross Unrealized Fair Value Holding Gains Holding Losses Cash $ 1,382 $ — $ — $ 1,382 Level 1 Securities: Money market funds 6,425 — — 6,425 Level 2 Securities: U.S. government agencies 240 — — 240 Corporate debt securities 157,113 3 (284 ) 156,832 Certificates of deposit 9,620 10 (1 ) 9,629 $ 174,780 $ 13 $ (285 ) $ 174,508 December 31, 2014 Amortized Cost Gross Unrealized Fair Value Holding Gains Holding Losses Cash $ 767 $ — $ — $ 767 Level 1 Securities: Money market funds 17,771 — — 17,771 Level 2 Securities: Commercial paper 15,992 2 (1 ) 15,993 Corporate debt securities 131,586 — (398 ) 131,188 Certificates of deposit 22,115 4 (19 ) 22,100 $ 188,231 $ 6 $ (418 ) $ 187,819 As of June 30, 2015 , $2.2 million of certificates of deposit, $79.4 million of corporate debt securities and $0.2 million of U.S. government agencies mature in greater than one year, but less than two years. All other investment securities held at June 30, 2015 mature within 12 months. Market values were determined for each individual security in the investment portfolio. The declines in value of certain of these investments are primarily related to changes in interest rates and are considered to be temporary in nature. We evaluate, among other things, the duration and extent to which the fair value of a security is less than its cost, the financial condition of the issuer, and our intent to sell, or whether it is more likely than not we will be required to sell the security before recovery of the amortized cost basis. We do not consider these investments to be other-than-temporarily impaired as of June 30, 2015 . |