$(document).ready(function(){

$('#cycle').cycle({
   speed:  3500
});

$('#tube').cycle({
  	speed: 4500
});

// Call to actions //

$("#pop1").click(function(){
	$("#inloan").fadeIn();
});
$("#pop2").click(function(){
	$("#saveonefive").fadeIn();
});

$(".x").click(function(){
	$(".pops").fadeOut();
});



});



function leaving(turl){

	var a=confirm("You are leaving Brimfield Bank website; we are not responsible for the content of the next site. If you wish to proceed click OK, if not click CANCEL.");
	
	if(a){
		window.open(turl,'_blank');
	}
	else{
		
	}

}

function email(turl){

	var a=confirm("Please do not send any personal information to Brimfield Bank through email, the email accounts are not secured for the transmission of sensitive materials. If you wish to proceed click OK, if not click CANCEL.");
	
	if(a){
		window.open(turl);
	}
	else{
		
	}

}

function call(){

	var a=confirm("This response will be directed to a Brimfield Bank email address which is not secured for transmission of sensitive material. If you which to proceed, click OK if not click CANCEL.");
	
	if(a){
		alert("Your message will be processed.");
	}
	else{
		alert("Your message was not sent.");
		history.back();
	}

}
