Annual report pursuant to section 13 and 15(d)

12. FAIR VALUE MEASUREMENTS (Details 2)

v2.4.0.6
12. FAIR VALUE MEASUREMENTS (Details 2) (Level 3 [Member], USD $)
In Thousands, unless otherwise specified
12 Months Ended
Dec. 31, 2012
Dec. 31, 2011
Dec. 31, 2010
Changes in the fair value of the Company's Level 3 inputs      
Warrants $ 4,892 $ 1,921 $ 5,718
Convertible notes     38,108
Retirement of convertible notes   (35,000)  
Issuance of warrants   1,809  
Exercises of warrants (113) (1,155)  
Adjustments to fair value of warrant (1,954) (4,451)  
Adjustments to fair value of convertible notes   (3,108)  
July Offering [Member]
     
Changes in the fair value of the Company's Level 3 inputs      
Retirement of convertible notes 3,380    
September Offering [Member]
     
Changes in the fair value of the Company's Level 3 inputs      
Retirement of convertible notes $ 1,658