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

$j(document).ready(function(){
	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;
			}
		});
	}
	
	$j('#productCatagory #secondaryProducts ul li .productContent h4').mouseenter( function(){
		$j(this).animate({ marginRight : "0px", paddingRight : "25px" }, 500);
	});
	$j('#productCatagory #secondaryProducts ul li .productContent h4').mouseleave( function(){
		$j(this).animate({ marginRight : "10px", paddingRight : "15px" }, 1000);
	});
	
	if( $j('body').hasClass('homePage') ){
		$j('body').append('<div id="specialMessage"><p>Center National Bank is participating in the FDIC\'s Transaction Account Guarantee Program. Under that program through June 30, 2010, all noninterest-bearing transaction accounts are fully guaranteed by the FDIC for the entire amount in the account. Coverage under the Transaction Account Guarantee Program is in addition to and separate from the coverage available under the FDIC\'s general deposit insurance rules.</p><span id="closeThis">Close</span></div>');
		$j('#closeThis').click(function () { 
			$j('#specialMessage').css('display', 'none'); 
		});
	}
});