
$(function(){

	$container = displayTest();
	
	$(".home").click(function() {
		$container.fadeOut("fast")
		$('#container').show("fade", {}, 1000);		
	});
	$("a#clk").click(function() {
		$container.fadeOut('fast');
		$("#info_container").load("info.html #RFCS-i", function() {
		$(this).fadeIn('slow');
		});
	});
	$("a#tvr").click(function() {
		$container.fadeOut('fast');
		$("#info_container").load("training_video.html #player", function() {
		$(this).fadeIn('slow');
		});
	});	
	$(".SP").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("info.html #policy", function() {
		$(this).fadeIn('slow');
		});
	});
	$("a.I-RFC").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("infoVideo.html #player", function() {	
		$(this).fadeIn('slow');
		});
	});
	$(".1s").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("info.html #1s", function() {	
		$(this).fadeIn('slow');
		});
	});
	$(".comp").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("info.html #comp", function() {	
		$(this).fadeIn('slow');
		});
	});
	$(".CO").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("overview.html #information", function() {	
		$(this).fadeIn('slow');
		});
	});
	$(".RQ").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("required.html #information", function() {	
		$(this).fadeIn('slow');
		});
	});
	$(".RP").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("policies.html #information", function() {	
		$(this).fadeIn('slow');
		});
	});
	$(".RT").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("training.html #information", function() {	
		$(this).fadeIn('slow');
		});
	});
	$(".cq").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("challenge.html #information", function() {	
		$(this).fadeIn('slow');
		});
	});
	$(".ID").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("verify.html #information", function() {	
		$(this).fadeIn('slow');
		});
	});
	$(".FP").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("fines.html #information", function() {	
		$(this).fadeIn('slow');
		});
	});
	$(".DS").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("disaster.html #information", function() {	
		$(this).slideDown('slow');
		});
	});
	$(".who").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("aboutus.html #information", function() {	
		$(this).slideDown('slow');
		});
	});
	//$(".BUY").click(function() {
	//	$container.fadeOut("fast");
	//	$("#info_container").load("pay_choice.html #temp", function() {	
	//	$(this).fadeIn('slow');
	//	});
	//});
	$(".CONTACT").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("contact.html #contact", function() {	
		$(this).slideDown('slow');
		});
	});
	$(".PR").click(function() {
		$container.fadeOut("fast");
		$("#info_container").load("special.html #deliver", function() {
		$(this).slideDown('slow');
		
		});
		
	});
	
	


});

function displayTest() {

	if($("#container").css("display") == "none") {
		var $container = $("#info_container");
	} else {
		var $container = $("#container");
	}
	
	return $container;

}


