Investment securities (Investments Classified by Contractual Maturity Date) (Details) (USD $)
In Thousands, unless otherwise specified
Dec. 31, 2014
Dec. 31, 2013
Available-for-sale    
Available-for-sale, Amortized cost, Due in one year or less $ 377  
Available-for-sale, Amortized cost, Due after one year through five years 13,883  
Available-for-sale, Amortized cost, Due after five years through ten years 71,304  
Available-for-sale, Amortized cost, Due after ten years 229,347  
Available-for-sale, Amortized cost, Mutual fund 514  
Available-for-sale, Amortized cost, Tax credit investments 0  
Available-for-sale Securities, Debt Maturities, Amortized Cost Basis 315,425  
Available-for-sale, Estimated fair value, Due in one year or less 379  
Available-for-sale, Estimated fair value, Due after one year through five years 13,914  
Available-for-sale, Estimated fair value, Due after five years through ten years 70,826  
Available-for-sale, Estimated fair value, Due after ten years 234,236  
Available-for-sale, Estimated fair value, Mutual fund 527  
Available-for-sale, Estimated fair value, Tax credit investments 0  
Available-for-sale Securities, Debt Securities 319,882  
Held-to-maturity    
Held-to-maturity Securities, Amortized cost, Due in one year or less 195  
Held-to-maturity Securities, Amortized cost, Due after one year through five years 19,331  
Held-to-maturity Securities, Amortized cost, Due after five years through ten years 102,002  
Held-to-maturity Securities, Amortized cost, Due after ten years 30,487  
Held-to-maturity Securities, Amortized cost, Mutual fund 0  
Held-to-maturity Securities, Amortized cost, Tax credit investments 564  
Held-to-maturity Securities, Debt Maturities, Net Carrying Amount 152,579 1,320
Held-to-maturity Securities, Estimated fair value, Due in one year or less 201  
Held-to-maturity Securities, Estimated fair value, Due after one year through five years 19,377  
Held-to-maturity Securities, Estimated fair value, Due after five years through ten years 104,190  
Held-to-maturity Securities, Estimated fair value, Due after ten years 31,223  
Held-to-maturity Securities, Estimated fair value, Mutual fund 0  
Held-to-maturity Securities Estimated fair value, Tax credit investments 564  
Held-to-maturity Securities, Debt Maturities, Fair Value $ 155,555 $ 1,342