/*var message			= "Please be advised that you are leaving Cabarrus Bank and Trust's website. This link is provided as a courtesy.  Bank of Stanly does not endorse or control the content of third party websites.";

function warn() {
	return(alert(message));
}

window.addEvent('domready', function() {


	var alertLinks 		= $$( "a.warn" );
	var confirmLinks 	= $$( "a.confirm" );
	

	alertLinks.each(function(element, i) {
		element.addEvent('click', warn);
	});

	confirmLinks.each(function(element, i) {
		element.addEvent('click', function( event ){
    	event = new Event(event);
			if( confirm(message) ) {
				return true;
			} else {
				event.stop();
				return false;
			}

		});
	});
 	
 
});*/

var $j=jQuery.noConflict();

var message = "You are leaving Bank of Stanly's website and will be redirected to another site.  Bank of Stanly makes no endorsement or claims about the accuracy or content of the information contained in these sites.  The security and privacy policies on these sites may be different than those of Bank of Stanly.";

$j(document).ready(function(){
// jQuery replacement for warn
	if( $j('.warn').length > 0 ){
		$j('.warn').click( function(){
			alert( message );
		});
	}
	
	if( $j('.confirm').length > 0 ){
		$j('.confirm').click( function( event ){
			event = new Event(event);
			if( confirm(message) ) {
				return true;
			} else {
				event.stop();
				return false;
			}
		});
	}
});
	
	

