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>All funds in a “noninterest-bearing account” are insured in full by the Federal Deposit Insurance Corporation from December 31, 2010, through December 31, 2012. This temporary unlimited coverage is in addition to, and separate from, the coverage of at least $250,000 available to depositors under the FDIC’s general deposit insurance rules. The term “noninterest-bearing account” includes a traditional checking account or demand deposit account on which the insured depository institution pays no interest. It also includes Interest on Lawyers Trust Accounts (“IOLTAs”). It does not include other accounts, such as traditional checking or demand deposit accounts that may earn interest, NOW accounts, and money-market deposit accounts. For more information about temporary FDIC insurance coverage of transaction accounts, visit www.fdic.gov.</p><span id="closeThis">Close</span></div>');
		// $j('#closeThis').click(function () { 
		// 	$j('#specialMessage').css('display', 'none'); 
		// });
	}
});
