$(document).ready(function(){

	$("#request-bt").click(function(){
		$("#popupOne").fadeIn();
	});
	
	$("#file-bt").click(function(){
		$("#popupTwo").fadeIn();
	});
	
	$("#refer-bt").click(function(){
		$("#popupThree").fadeIn();
	});
	
	$("#quiz-bt").click(function(){
		$("#flashContent").fadeIn();
	});
	
	
	$(".close").click(function(){
		$("#popupOne").fadeOut();
		$("#popupTwo").fadeOut();
		$("#popupThree").fadeOut();
		$("#flashContent").fadeOut();
	});
	
		$("#close2").click(function(){
		$("#flashContent").fadeOut();
	});
	
	$('#spin').cycle({
  		speed: 3800
	});
	
//End drop nav

//instant

	$(".insta").click(function(e){
		$("#instantOne").hide();
		$("#instantTwo").fadeIn();
	});
	$(".agent").click(function(e){
		$("#instantTwo").hide();
		$("#instantOne").fadeIn();
	});

});

function leaving(turl){

	var a=confirm("You are leaving Fortner Insurance 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{
		
	}

}

