Investments And Fair Value Measurement Disclosure [Text Block] | 2. Investments and Fair Value Measurement Investments The Company classifies its marketable securities as available-for-sale and records its investments at fair value. Available-for-sale securities are carried at estimated fair value based on quoted market prices or observable market inputs of almost identical assets, with the unrealized holding gains and losses included in accumulated other comprehensive income. Marketable securities which have maturities beyond one year as of the end of the reporting period are classified as non-current. The table below summarizes the Company’s cash, cash equivalents and investments (in thousands): As of June 30, 2015 Amortized Cost Gross Unrealized Gross Unrealized Fair Cash and cash equivalents: Cash $ 35,839 $ — $ — $ 35,839 Money market funds 3 — — 3 Total cash and cash equivalents 35,842 — — 35,842 Marketable securities: U.S. government agency securities 15,352 1 — $ 15,353 Total marketable securities 15,352 1 — $ 15,353 Total cash, cash equivalents and investments $ 51,194 $ 1 $ — $ 51,195 As of December 31, 2014 Amortized Cost Gross Unrealized Gross Unrealized Fair Cash and cash equivalents: Cash $ 60,005 $ — $ — $ 60,005 Money market funds 33 — — 33 Total cash and cash equivalents 60,038 — — $ 60,038 Marketable securities: U.S. government agency securities 15,316 — (4 ) 15,312 Total marketable securities 15,316 — (4 ) $ 15,312 Total cash, cash equivalents and investments $ 75,354 $ — $ (4 ) $ 73,350 As of June 30, 2015 and December 31, 2014, none of the available-for-sale securities held by the Company had material unrealized losses. There were no other-than-temporary impairments for these securities at June 30, 2015 or December 31, 2014. No gross realized gains or losses were recognized on the available-for-sale securities and, accordingly, there were no amounts reclassified out of accumulated other comprehensive income to earnings during the three and six months ended June 30, 2015 and 2014. As of June 30, 2015 and December 31, 2014, the contractual maturity of all investments held was less than one year. Fair Value Measurement The Company’s financial instruments consist of Level I and Level II assets and Level III liabilities. Level I securities include highly liquid money market funds and are valued based on quoted market prices. For Level II instruments, the Company estimates fair value by utilizing third party pricing services in developing fair value measurements where fair value is based on valuation methodologies such as models using observable market inputs, including benchmark yields, reported trades, broker/dealer quotes, bids, offers and other reference data. Such Level II instruments typically include U.S. treasury and U.S. government agency obligations. As of June 30, 2015 and December 31, 2014, the Company held, in addition to Level I and Level II assets, a contingent put option liability associated with the Company’s Amended and Restated Loan and Security Agreement, or the Amended Loan Agreement, with Hercules Technology II, L.P. and Hercules Technology Growth Capital, Inc., collectively referred to as Hercules, which amends and restates the loan and security agreement with Hercules dated as of June 29, 2011, or the Original Loan Agreement, and which was classified as a Level III liability. See Note 5 “Long-Term Debt,” for further description. The Company’s estimate of fair value of the contingent put option liability was determined by using a risk-neutral valuation model, wherein the fair value of the underlying debt facility is estimated both with and without the presence of the default provisions, holding all other assumptions constant. The resulting difference between the two estimated fair values is the estimated fair value of the default provisions, or the contingent put option. Changes to the estimated fair value of these liabilities are recorded in interest income and other income (expense), net in the condensed statements of comprehensive loss. The fair value of the underlying debt facility is estimated by calculating the expected cash flows in consideration of an estimated probability of default and expected recovery rate in default, and discounting such cash flows back to the reporting date using a risk-free rate. As of June 30, 2015 and December 31, 2014, the Company also held a Level III liability associated with warrants, or PIPE warrants, issued in connection with the Company’s private placement equity offering, completed in June 2012. The PIPE warrants are considered a liability and are valued using the Black-Scholes option-pricing model, the inputs for which include exercise price of the PIPE warrants, market price of the underlying common shares, expected term, volatility based on a group of the Company’s peers and the risk-free rate corresponding to the expected term of the PIPE warrants. Changes to any of the inputs can have a significant impact to the estimated fair value of the PIPE warrants. The following table sets forth the fair value of the Company’s financial assets and liabilities by level within the fair value hierarchy (in thousands): As of June 30, 2015 Fair Value Level I Level II Level III Assets Money market funds $ 3 $ 3 $ — $ — U.S. government agency obligations 15,353 — 15,353 — Total assets measured at fair value $ 15,356 $ 3 $ 15,353 $ — Liabilities PIPE warrants $ 916 — — $ 916 Contingent put option liability 251 — — 251 Total liabilities measured at fair value $ 1,167 $ — $ — $ 1,167 As of December 31, 2014 Fair Value Level I Level II Level III Assets Money market funds $ 33 $ 33 $ — $ — U.S. government agency obligations 15,312 — 15,312 — Total assets measured at fair value $ 15,345 $ 33 $ 15,312 $ — Liabilities PIPE warrants $ 5,577 — — $ 5,577 Contingent put option liability $ 282 — — $ 282 Total liabilities measured at fair value $ 5,859 $ — $ — $ 5,859 The following table sets forth the assumptions used in the Black-Scholes option-pricing model to estimate the fair value of the PIPE warrants as of June 30, 2015: Market price $ 4.24 Exercise price $ 3.40 Risk-free interest rate 0.64 % Expected volatility 57.0 % Expected life (in years) 2.42 Expected dividend yield 0.0 % The following table sets forth the assumptions used in the Black-Scholes option-pricing model to estimate the fair value of the PIPE warrants as of December 31, 2014: Market price $ 6.73 Exercise price $ 3.40 Risk-free interest rate 1.10 % Expected volatility 61.0 % Expected life (in years) 2.92 Expected dividend yield 0.0 % The following tables set forth a summary of the changes in the fair value of the Company’s Level III financial liabilities for the three and six months ended June 30, 2015 and June 30, 2014 (in thousands): Three Months Six Months Fair value—beginning of period $ 1,155 $ 5,859 Change in fair value of PIPE warrants 68 (4,661 ) Change in fair value of contingent put option associated with Original Loan Agreement with Hercules (56 ) (31 ) Fair value—end of period $ 1,167 $ 1,167 Three Months Six Months Fair value—beginning of period $ 14,091 $ 13,445 Change in fair value of PIPE warrants (2,507 ) (1,823 ) Change in fair value of contingent put option associated with Original Loan Agreement with Hercules 142 104 Fair value—end of period $ 11,726 $ 11,726 |