//<![CDATA[
	function showSelects(){
		$('select').each(function(){
			$(this).css('display', '');
		});
	}
	
	function hideSelects(){
		$('select').each(function(){
			$(this).css('display', 'none');
		});
	}
	
	function externalLink(url){
		MM_showHideLayers('hiddenLayer','','show');
		hideSelects();
		document.getElementById('url').innerHTML='<a href="' + url + '" target="_new" onclick="showSelects(); MM_showHideLayers(\'hiddenLayer\',\'\',\'hide\');" >Continue</a>';
		return false;
	}
	
	$(document).ready(function(){
		$('a').each(function(){
			var url = $(this).attr('href');
			if(url.indexOf('http') > -1 || url.indexOf('ftp') > -1){
				//if(url.indexOf('http://www.simsburybank.com') == -1 && url.indexOf('https://www.simsburybank.com') == -1 && url.indexOf('http://simsburybank.com') == -1 && url.indexOf('https://simsburybank.com') == -1){
				//alloaw secure-simsburybank.com
				if(url.indexOf('simsburybank.com') == -1){
					$(this).attr('href', '#');
					$(this).removeAttr('target');
					$(this).click(function(){
						externalLink(url);
					});
				}
			}
			else if(url.indexOf('mailto:') > -1){
				//$(this).attr('href', '#');
				//$(this).removeAttr('target');
				$(this).click(function(){
					//externalLink(url);
					if(confirm('You are leaving a secure site. Using this link may take you to a less secure site. Please avoid sending personal or sensitive information to us by e-mail using this link.')){
						return true;
					}
					else{
						return false;
					}
				});
			}
		});
	});
//]]>