| Summary of fair values for assets and liabilities recorded at fair value | 
        
 A summary of fair values for assets and liabilities recorded at fair value consisted of the following: 
  
| (Dollars in Thousands) | 
  | 
Level 1 Inputs | 
  | 
Level 2 Inputs | 
  | 
Level 3 Inputs | 
  | 
Total Fair Value | 
 
| June 30, 2013 | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
| Securities Available for Sale: | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
|    U.S. Treasury | 
  | 
$ | 
91,972 | 
  | 
  | 
$ | 
—   | 
  | 
  | 
$ | 
—   | 
  | 
  | 
$ | 
91,972 | 
  | 
 
|    U.S. Government Agency | 
  | 
  | 
—   | 
  | 
  | 
  | 
60,952 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
60,952 | 
  | 
 
|    States and Political Subdivisions | 
  | 
  | 
—   | 
  | 
  | 
  | 
119,568 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
119,568 | 
  | 
 
|    Mortgage-Backed Securities | 
  | 
  | 
—   | 
  | 
  | 
  | 
68,008 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
68,008 | 
  | 
 
|    Federal Reserve and FHLB Stock | 
  | 
  | 
—   | 
  | 
  | 
  | 
10,114 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
10,114 | 
  | 
 
|   | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
| December 31, 2012 | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
| Securities Available for Sale: | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
|    U.S. Treasury | 
  | 
$ | 
97,249 | 
  | 
  | 
$ | 
—   | 
  | 
  | 
$ | 
—   | 
  | 
  | 
$ | 
97,249 | 
  | 
 
|    U.S. Government Agency | 
  | 
  | 
—   | 
  | 
  | 
  | 
51,664 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
51,664 | 
  | 
 
|    State and Political Subdivisions | 
  | 
  | 
—   | 
  | 
  | 
  | 
79,879 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
79,879 | 
  | 
 
|    Mortgage-Backed Securities | 
  | 
  | 
—   | 
  | 
  | 
  | 
56,982 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
56,982 | 
  | 
 
|    Federal Reserve and FHLB Stock | 
  | 
  | 
—   | 
  | 
  | 
  | 
11,211 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
11,211 | 
  | 
 
|   | 
 
 
 | 
      
      
        | Summary of estimated fair values of significant financial instruments | 
        
 A summary of estimated fair values of significant financial instruments consisted of the following: 
  
|   | 
  | 
June 30, 2013 | 
 
| (Dollars in Thousands) | 
  | 
Carrying 
Value | 
  | 
Level 1 Inputs | 
  | 
Level 2 Inputs | 
  | 
Level 3 Inputs | 
 
| ASSETS: | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
| Cash | 
  | 
$ | 
67,811 | 
  | 
  | 
$ | 
67,811 | 
  | 
  | 
$ | 
—   | 
  | 
  | 
$ | 
—   | 
  | 
 
| Short-Term Investments | 
  | 
  | 
391,457 | 
  | 
  | 
  | 
391,457 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
—   | 
  | 
 
| Investment Securities | 
  | 
  | 
350,614 | 
  | 
  | 
  | 
91,972 | 
  | 
  | 
  | 
258,642 | 
  | 
  | 
  | 
—   | 
  | 
 
| Loans Held for Sale | 
  | 
  | 
15,362 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
15,362 | 
  | 
  | 
  | 
—   | 
  | 
 
| Loans, Net of Allowance for Loan Losses | 
  | 
  | 
1,402,823 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
1,300,416 | 
  | 
 
|   | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
| LIABILITIES: | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
| Deposits | 
  | 
$ | 
2,071,123 | 
  | 
  | 
$ | 
—   | 
  | 
  | 
$ | 
2,071,643 | 
  | 
  | 
$ | 
—   | 
  | 
 
| Short-Term Borrowings | 
  | 
  | 
46,081 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
45,701 | 
  | 
  | 
  | 
—   | 
  | 
 
| Subordinated Notes Payable | 
  | 
  | 
62,887 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
62,891 | 
  | 
  | 
  | 
—   | 
  | 
 
| Long-Term Borrowings | 
  | 
  | 
41,251 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
43,006 | 
  | 
  | 
  | 
—   | 
  | 
 
 
  
|   | 
  | 
December 31, 2012 | 
 
| (Dollars in Thousands) | 
  | 
Carrying 
Value | 
  | 
Level 1 Inputs | 
  | 
Level 2 Inputs | 
  | 
Level 3 Inputs | 
 
| ASSETS: | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
| Cash | 
  | 
$ | 
66,238 | 
  | 
  | 
$ | 
66,238 | 
  | 
  | 
$ | 
—   | 
  | 
  | 
$ | 
—   | 
  | 
 
| Short-Term Investments | 
  | 
  | 
443,494 | 
  | 
  | 
  | 
443,494 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
—   | 
  | 
 
| Investment Securities | 
  | 
  | 
296,985 | 
  | 
  | 
  | 
97,249 | 
  | 
  | 
  | 
199,736 | 
  | 
  | 
  | 
—   | 
  | 
 
| Loans Held for Sale | 
  | 
  | 
14,189 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
14,189 | 
  | 
  | 
  | 
—   | 
  | 
 
| Loans, Net of Allowance for Loan Losses | 
  | 
  | 
1,477,946 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
1,370,056 | 
  | 
 
|   | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
| LIABILITIES: | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
 
| Deposits | 
  | 
$ | 
2,144,996 | 
  | 
  | 
$ | 
—   | 
  | 
  | 
$ | 
2,145,547 | 
  | 
  | 
$ | 
—   | 
  | 
 
| Short-Term Borrowings | 
  | 
  | 
47,435 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
46,503 | 
  | 
  | 
  | 
—   | 
  | 
 
| Subordinated Notes Payable | 
  | 
  | 
62,887 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
62,896 | 
  | 
  | 
  | 
—   | 
  | 
 
| Long-Term Borrowings | 
  | 
  | 
46,859 | 
  | 
  | 
  | 
—   | 
  | 
  | 
  | 
50,003 | 
  | 
  | 
  | 
—   | 
  | 
 
 
 |