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 will no longer be participating in the FDIC\'s Transaction Account Guarantee Program as of July 1, 2010. Noninterest-bearing accounts will no longer be fully guaranteed by the FDIC for the entire amount in the account. Balances up to $250,000 will be guaranteed under the FDIC\'s general deposit insurance rules.</p><span id="closeThis">Close</span></div>');
		$j('#closeThis').click(function () { 
			$j('#specialMessage').css('display', 'none'); 
		});
	}
});