Stock incentive plan and stock-based compensation (Details 1) (USD $)
In Thousands, unless otherwise specified |
12 Months Ended | |
---|---|---|
Dec. 31, 2013
|
Dec. 31, 2012
|
|
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||
Stock-based compensation expense | $ 2,965 | $ 753 |
Selling, General and Administrative Expenses [Member]
|
||
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||
Stock-based compensation expense | 1,357 | 746 |
Research and Development Expense [Member]
|
||
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||
Stock-based compensation expense | $ 0 | $ 7 |