Cash Equivalents and Investments | 3. Cash Equivalents and Investments The amortized cost and fair value of cash equivalents and investments at June 30, 2015 and December 31, 2014 were as follows (in thousands): June 30, 2015 Amortized Gross Unrealized Fair Cost Gains Losses Value Money market fund $ 9,613 $ — $ — $ 9,613 U.S. treasury securities 17,071 20 — 17,091 Government-sponsored agencies 31,035 19 (1 ) 31,053 Corporate debt securities 34,484 1 (28 ) 34,457 Total available-for-sale securities $ 92,203 $ 40 $ (29 ) $ 92,214 Classified as: Cash equivalents $ 9,613 Short-term investments 58,877 Long-term investments 23,724 Total available-for-sale securities $ 92,214 December 31, 2014 Amortized Gross Unrealized Fair Cost Gains Losses Value Money market fund $ 15,922 $ — $ — $ 15,922 U.S. treasury securities 19,117 5 (2 ) 19,120 Government-sponsored agencies 29,772 4 (13 ) 29,763 Commercial paper 1,500 — — 1,500 Corporate debt securities 48,226 4 (68 ) 48,162 Total available-for-sale securities $ 114,537 $ 13 $ (83 ) $ 114,467 Classified as: Cash equivalents $ 15,922 Short-term investments 57,282 Long-term investments 41,263 Total available-for-sale securities $ 114,467 Cash equivalents in the tables above exclude cash of $2.0 million and $0.2 million as of June 30, 2015 and December 31, 2014, respectively. All available-for-sale securities held as of June 30, 2015 had contractual maturities of less than two years. There have been no significant realized gains or losses on available-for-sale securities for the periods presented. No significant available-for-sale securities held as of June 30, 2015 have been in a continuous unrealized loss position for more than 12 months. As of June 30, 2015, unrealized losses on available-for-sale investments are not attributed to credit risk and are considered to be temporary. The Company believes that it is more-likely-than-not that investments in an unrealized loss position will be held until maturity or the recovery of the cost basis of the investment. The Company believes it has no other-than-temporary impairments on its securities because it does not intend to sell these securities and it believes it is not more likely than not that it will be required to sell these securities before the recovery of their amortized cost basis. To date, the Company has not recorded any impairment charges on marketable securities related to other-than-temporary declines in market value. |