window.addEvent('domready', function() {


	var alertLinks 		= $$( "a.warn" );
	var confirmLinks 	= $$( "a.confirm, div.confirm a" );
	var confirmLinksNA 	= $$( "a.confirm-na, div.confirm-na a" );

	alertLinks.each(function(element, i) {
		element.addEvent('click', function(){

			return(alert("Please be advised that you are leaving Air Academy FCU's website. This link is provided as a courtesy.  Air Academy FCU does not endorse or control the content of third party websites."));

		});
	});

	confirmLinks.each(function(element, i) {
		element.addEvent('click', function( event ){
    	event = new Event(event);
			if( confirm("Please be advised you are leaving Air Academy Federal Credit Union's website (aafcu.com) to access services provided by a third party vendor. These services are brought to you through an agreement between AAFCU and a third party vendor, however: \n\nThe content on the site you are about to enter is not operated by or controlled by AAFCU. \n\nAAFCU is not responsible for the content of the website. \n\nAAFCU does not represent either party if the two enter into a transaction. \n\nPrivacy and security policies may differ from those practiced by AAFCU. We encourage our users to be aware when they leave our site, and read the privacy and security policies of each and every website that collects personal information.") ) {
				return true;
			} else {
				event.stop();
				return false;
			}

		});
	});
	confirmLinksNA.each(function(element, i) {
		element.addEvent('click', function( event ){
    	event = new Event(event);
			if( confirm("Please be advised you are leaving Air Academy Federal Credit Union's website (aafcu.com). This link is provided as a courtesy.\n\nAAFCU does not endorse or control the content of the third party website.\n\nAAFCU is not responsible for the content of the website.\n\nAAFCU does not represent either party if the two enter into a transaction.\n\nPrivacy and security policies may differ from those practiced by AAFCU. We encourage our users to be aware when they leave our site, and read the privacy and security policies of each and every website that collects personal information.") ) {
				return true;
			} else {
				event.stop();
				return false;
			}

		});
	});
 	
 
});

