SECURITIES SOLD UNDER AGREEMENTS TO REPURCHASE (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Securities sold under agreements to repurchase      
Outstanding balance at end of period $ 173,473 $ 395,433  
Securities sold under agreements to repurchase      
Securities sold under agreements to repurchase      
Securities pledged more than repurchase agreements (as a percent) 2.00%    
Outstanding balance at end of period $ 173,473 $ 395,433  
Weighted average interest rate at end of period (as a percent) 0.05% 0.02%  
Fair Value of securities pledged $ 203,074 $ 458,194  
Average outstanding balance during the period $ 280,296 $ 379,477 $ 296,196
Average interest rate during the period (as a percent) 0.02% 0.02% 0.04%
Maximum outstanding at any month end during the period $ 367,373 $ 442,981 $ 408,891
Securities sold under agreements to repurchase | U.S. Treasury securities and U.S. Government agencies      
Securities sold under agreements to repurchase      
Fair Value of securities pledged 116,025 244,707  
Securities sold under agreements to repurchase | Mortgage backed securities - residential      
Securities sold under agreements to repurchase      
Fair Value of securities pledged 45,894 82,666  
Securities sold under agreements to repurchase | Collateralized mortgage obligations      
Securities sold under agreements to repurchase      
Fair Value of securities pledged $ 41,155 $ 130,821