| Acquisition (Details 3) - USD ($) $ in Thousands | 12 Months Ended | |
|---|---|---|
| Dec. 31, 2015 | Dec. 31, 2014 | |
| Revenue | $ 9,434 | $ 5,449 | 
| Net loss | $ (19,590) | $ (33,978) | 
| X | ||||||||||
| 
- Definition The pro forma net Income or Loss for the period as if the business combination or combinations had been completed at the beginning of a period. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition The pro forma revenue for a period as if the business combination or combinations had been completed at the beginning of the period. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 |