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


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

	alertLinks.each(function(element, i) {
		element.addEvent('click', function( event ){
    	event = new Event(event);
			if( confirm("Please be advised that you are leaving Pacific Premier Bank's website and will be taken to Pacific Premier Bancorp which is the Holding Company of Pacific Premier Bank. This link is provided as a courtesy.") ) {
				return true;
			} else {
				event.stop();
				return false;
			}

		});
	});

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

		});
	});
 	
 
});
