8. FAIR VALUE MEASUREMENTS (Details-Fair value measurements) (USD $) In Thousands, unless otherwise specified
|
Mar. 31, 2015
|
Dec. 31, 2014
|
Assets: |
|
|
Assets |
$ 812us-gaap_AssetsFairValueDisclosure
|
$ 1,586us-gaap_AssetsFairValueDisclosure
|
Liabilities: |
|
|
Liabilities |
2,569us-gaap_LiabilitiesFairValueDisclosure
|
3,135us-gaap_LiabilitiesFairValueDisclosure
|
Commodity contracts [Member] |
|
|
Assets: |
|
|
Assets |
812us-gaap_AssetsFairValueDisclosure / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
1,586us-gaap_AssetsFairValueDisclosure / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
Liabilities: |
|
|
Liabilities |
449us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
1,149us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
Warrants [Member] |
|
|
Liabilities: |
|
|
Liabilities |
2,120us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FinancialInstrumentAxis = us-gaap_WarrantMember
|
1,986us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FinancialInstrumentAxis = us-gaap_WarrantMember
|
Level 1 [Member] |
|
|
Assets: |
|
|
Assets |
812us-gaap_AssetsFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel1Member
|
1,586us-gaap_AssetsFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel1Member
|
Liabilities: |
|
|
Liabilities |
449us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel1Member
|
1,149us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel1Member
|
Level 1 [Member] | Commodity contracts [Member] |
|
|
Assets: |
|
|
Assets |
812us-gaap_AssetsFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel1Member / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
1,586us-gaap_AssetsFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel1Member / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
Liabilities: |
|
|
Liabilities |
449us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel1Member / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
1,149us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel1Member / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
Level 1 [Member] | Warrants [Member] |
|
|
Liabilities: |
|
|
Liabilities |
0us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel1Member / us-gaap_FinancialInstrumentAxis = us-gaap_WarrantMember
|
0us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel1Member / us-gaap_FinancialInstrumentAxis = us-gaap_WarrantMember
|
Level 2 [Member] |
|
|
Assets: |
|
|
Assets |
0us-gaap_AssetsFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel2Member
|
0us-gaap_AssetsFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel2Member
|
Liabilities: |
|
|
Liabilities |
0us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel2Member
|
0us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel2Member
|
Level 2 [Member] | Commodity contracts [Member] |
|
|
Assets: |
|
|
Assets |
0us-gaap_AssetsFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel2Member / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
0us-gaap_AssetsFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel2Member / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
Liabilities: |
|
|
Liabilities |
0us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel2Member / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
0us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel2Member / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
Level 2 [Member] | Warrants [Member] |
|
|
Liabilities: |
|
|
Liabilities |
0us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel2Member / us-gaap_FinancialInstrumentAxis = us-gaap_WarrantMember
|
0us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel2Member / us-gaap_FinancialInstrumentAxis = us-gaap_WarrantMember
|
Level 3 [Member] |
|
|
Assets: |
|
|
Assets |
0us-gaap_AssetsFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel3Member
|
0us-gaap_AssetsFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel3Member
|
Liabilities: |
|
|
Liabilities |
2,120us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel3Member
|
1,986us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel3Member
|
Level 3 [Member] | Commodity contracts [Member] |
|
|
Assets: |
|
|
Assets |
0us-gaap_AssetsFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel3Member / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
0us-gaap_AssetsFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel3Member / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
Liabilities: |
|
|
Liabilities |
0us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel3Member / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
0us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel3Member / us-gaap_FinancialInstrumentAxis = us-gaap_CommodityContractMember
|
Level 3 [Member] | Warrants [Member] |
|
|
Liabilities: |
|
|
Liabilities |
$ 2,120us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel3Member / us-gaap_FinancialInstrumentAxis = us-gaap_WarrantMember
|
$ 1,986us-gaap_LiabilitiesFairValueDisclosure / us-gaap_FairValueByFairValueHierarchyLevelAxis = us-gaap_FairValueInputsLevel3Member / us-gaap_FinancialInstrumentAxis = us-gaap_WarrantMember
|