Annual report pursuant to Section 13 and 15(d)

Debt - Notes (Details)

v3.6.0.2
Debt - Notes (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Debt Instrument [Roll Forward]      
Amortization of debt discount, debt issuance cost $ 237 $ 1,212 $ 2,007
Change in fair value of embedded derivative 2,778 (39,083) (10,632)
Notes      
Debt Instrument [Roll Forward]      
Embedded conversion option, beginning balance 23,737 65,947  
Convertible notes, beginning balance 32,200 87,642  
Discount, beginning balance (6,525) (22,135)  
Debt issuance costs, net beginning balance (426) (1,638)  
Total, beginning balance 48,986 129,816  
Amortization of debt discount, discount 1,913 2,613  
Amortization of debt discount, debt issuance cost 153 233  
Amortization of debt discount and debt issuance costs 2,066 2,846  
Change in fair value of embedded derivative (7,001) 36,587  
Embedded conversion option, conversion 0 (78,797)  
2033 Senior Notes, conversion (350) (55,442)  
Discount, conversion 0 12,997  
Converstion of debt issuance cost 0 979  
Conversion (350) (120,263)  
Embedded conversion option, ending balance 16,736 23,737 65,947
Convertible notes, ending balance 31,850 32,200 87,642
Discount, ending balance (4,612) (6,525) (22,135)
Debt issuance costs, net ending balance (273) (426) (1,638)
Total, ending balance $ 43,701 $ 48,986 $ 129,816