Premises and equipment (Details Textual) - USD ($)
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Property, Plant and Equipment [Line Items]      
Depreciation, Depletion and Amortization, Total $ 765,000 $ 843,000 $ 681,000