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


	var alertLinks 		= $$( "a.warn" );
	var confirmLinks 	= $$( "a.confirm" );
	var emailLinks		= $$( ".notify" );

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

			return(alert("You are opening a window that is controlled by a third party. These calculators should be used for estimation purposes only. Independent Bank is not liable for the accuracy of the calculations."));

		});
	});

	confirmLinks.each(function(element, i) {
		element.addEvent('click', function( event ){
    	event = new Event(event);
			if( confirm("Please be advised that you are leaving Independent Bank's website. This link is provided as a courtesy.  Independent Bank does not endorse or control the content of third party websites.") ) {
				return true;
			} else {
				event.stop();
				return false;
			}

		});
	});
 	
 	emailLinks.each(function(element, i) {
		element.addEvent('click', function(){

			return(alert("FOR YOUR SAFETY: Please do not enter personal or private information such as account information or social security numbers as this information may not be secure when sent through normal email channels. Thank you."));

		});
	});
 
});
