8. Stock Plans (Details - Unrecognized Compensation Cost )
$ in Thousands
12 Months Ended
Dec. 31, 2015
USD ($)
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]  
Unrecognized Compensation Cost, stock options $ 362
Total Unrecognized Compensation Cost $ 2,080
Stock Option [Member]  
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]  
Weighted Average Remaining Years in Amortization Period 1 year 2 months 12 days
Restricted Stock [Member]  
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]  
Unrecognized Compensation Cost, other than options $ 584
Weighted Average Remaining Years in Amortization Period 1 year 2 months 12 days
Restricted Stock Units R S U [Member]  
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]  
Unrecognized Compensation Cost, other than options $ 1,134
Weighted Average Remaining Years in Amortization Period 3 years