Annual report pursuant to Section 13 and 15(d)

16. FAIR VALUE MEASUREMENTS (Details - Level 3)

v3.3.1.900
16. FAIR VALUE MEASUREMENTS (Details - Level 3) - Level 3 [Member] - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2015
Dec. 31, 2014
Dec. 31, 2013
Warrant      
Changes in the fair value of the Company's Level 3 inputs      
Beginning Balance $ 1,986 $ 8,215 $ 4,892
Adjustments to fair value for the period (1,114) 35,260 (646)
Ending Balance 273 1,986 8,215
Warrant | Issuance In January [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Issuances     2,657
Warrant | Issuance In March [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Issuances     1,572
Warrant | Issuance In June [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Issuances     0
Warrant | Conversions of Notes [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Transfers out     0
Warrant | Exercises of Warrants [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Transfers out (72)   (260)
Warrant | Expiration of Warrants [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Transfers out (527) (3)  
Conversion Features [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Beginning Balance 0 0  
Adjustments to fair value for the period   875  
Ending Balance $ 0 0 0
Conversion Features [Member] | Issuance In March [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Issuances     1,401
Conversion Features [Member] | Issuance In June [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Issuances     2,929
Conversion Features [Member] | Conversions of Notes [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Transfers out     $ (5,205)
Conversion Features [Member] | Exercises of Warrants [Member]      
Changes in the fair value of the Company's Level 3 inputs      
Transfers out   $ (41,486)