var $j=jQuery.noConflict();
var message = "Please be advised that you are leaving Florence Savings Bank's website. This link is provided as a courtesy.  Florence Savings Bank does not endorse or control the content of third party websites.";

$j(document).ready(function(){
// jQuery replacement for warn
	if( $j('a.warn').length > 0 ){
		$j('a.warn').click( function(){
			alert( message );
		});
	}
	
	if( $j('a.confirm').length > 0 ){
		$j('a.confirm').click( function( event ){
			event = new Event(event);
			if( confirm(message) ) {
				return true;
			} else {
				event.stop();
				return false;
			}
		});
	}
	
// toggle Online Banking Help
	$j('div#faqs> div').hide();
	$j('div#faqs> h2').click(function() {
		var $nextDiv = $j(this).next();
		var $visibleSiblings = $nextDiv.siblings('div:visible');
		if ($visibleSiblings.length ) {
			$visibleSiblings.slideUp('fast', function() {
				$nextDiv.slideToggle('fast');
			});
		} else {
			$nextDiv.slideToggle('fast');
		}
	});
    
});
