jQuery.noConflict();
jQuery(document).ready(function ($) {
	
	//hide content initially except summary of each
	
	$("#fdn_info_content").hide();
	$("#fdn_faq_content").hide();
	$("#fdn_links_content").hide();
	
	$("#spa_info_content").hide();
	$("#spa_faq_content").hide();
	$("#spa_links_content").hide();
	
	$("#tt_info_content").hide();
	$("#tt_faq_content").hide();
	$("#tt_links_content").hide();
	
	$("#sa_info_content").hide();
	$("#sa_faq_content").hide();
	$("#sa_links_content").hide();

	//apply on state to summary tabs of all boxes
	
	$("#fdn_summary_tab").css({ backgroundColor:"#a70000" });	
	$("#spa_summary_tab").css({ backgroundColor:"#a70000" });	
	$("#tt_summary_tab").css({ backgroundColor:"#a70000" });	
	$("#sa_summary_tab").css({ backgroundColor:"#a70000" });	

	// box 1 tabs (top left) ---------------------------------------
	
	$("#fdn_summary_tab").click(function () {
										  
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#fdn_info_tab").css({ backgroundColor:"#d37f7f" });
	    $("#fdn_faq_tab").css({ backgroundColor:"#d37f7f" });
	    $("#fdn_links_tab").css({ backgroundColor:"#d37f7f" });
		
		$("#fdn_info_content").hide();
		$("#fdn_faq_content").hide();
		$("#fdn_links_content").hide();
		$("#fdn_summary_content").show();							  
    });
	
    $("#fdn_info_tab").click(function () {
									   
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#fdn_summary_tab").css({ backgroundColor:"#d37f7f" });
	    $("#fdn_faq_tab").css({ backgroundColor:"#d37f7f" });
	    $("#fdn_links_tab").css({ backgroundColor:"#d37f7f" });
	  
	    $("#fdn_summary_content").hide();
	    $("#fdn_faq_content").hide();
	    $("#fdn_links_content").hide();
	    $("#fdn_info_content").show();							  
    });
	
	$("#fdn_faq_tab").click( function() {
									  
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#fdn_summary_tab").css({ backgroundColor:"#d37f7f" });
	    $("#fdn_info_tab").css({ backgroundColor:"#d37f7f" });
	    $("#fdn_links_tab").css({ backgroundColor:"#d37f7f" });

		$("#fdn_summary_content").hide();
		$("#fdn_info_content").hide();
		$("#fdn_links_content").hide();
		$("#fdn_faq_content").show();							  
	});
	
	$("#fdn_links_tab").click( function() {
										
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#fdn_summary_tab").css({ backgroundColor:"#d37f7f" });
	    $("#fdn_info_tab").css({ backgroundColor:"#d37f7f" });
	    $("#fdn_faq_tab").css({ backgroundColor:"#d37f7f" });

		$("#fdn_summary_content").hide();
		$("#fdn_info_content").hide();
		$("#fdn_faq_content").hide();
		$("#fdn_links_content").show();							  
	});
	
	// box 2 tabs (top right) ---------------------------------------
	
	$("#spa_summary_tab").click(function () {
										  
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#spa_info_tab").css({ backgroundColor:"#d37f7f" });
	    $("#spa_faq_tab").css({ backgroundColor:"#d37f7f" });
	    $("#spa_links_tab").css({ backgroundColor:"#d37f7f" });
		
		$("#spa_info_content").hide();
		$("#spa_faq_content").hide();
		$("#spa_links_content").hide();
		$("#spa_summary_content").show();							  
    });
	
    $("#spa_info_tab").click(function () {
									   
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#spa_summary_tab").css({ backgroundColor:"#d37f7f" });
	    $("#spa_faq_tab").css({ backgroundColor:"#d37f7f" });
	    $("#spa_links_tab").css({ backgroundColor:"#d37f7f" });
	  
	    $("#spa_summary_content").hide();
	    $("#spa_faq_content").hide();
	    $("#spa_links_content").hide();
	    $("#spa_info_content").show();							  
    });
	
	$("#spa_faq_tab").click( function() {
									  
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#spa_summary_tab").css({ backgroundColor:"#d37f7f" });
	    $("#spa_info_tab").css({ backgroundColor:"#d37f7f" });
	    $("#spa_links_tab").css({ backgroundColor:"#d37f7f" });

		$("#spa_summary_content").hide();
		$("#spa_info_content").hide();
		$("#spa_links_content").hide();
		$("#spa_faq_content").show();							  
	});
	
	$("#spa_links_tab").click( function() {
										
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#spa_summary_tab").css({ backgroundColor:"#d37f7f" });
	    $("#spa_info_tab").css({ backgroundColor:"#d37f7f" });
	    $("#spa_faq_tab").css({ backgroundColor:"#d37f7f" });

		$("#spa_summary_content").hide();
		$("#spa_info_content").hide();
		$("#spa_faq_content").hide();
		$("#spa_links_content").show();							  
	});
	
	// box 3 tabs (bottom left) ---------------------------------------
	
	$("#tt_summary_tab").click(function () {
										  
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#tt_info_tab").css({ backgroundColor:"#d37f7f" });
	    $("#tt_faq_tab").css({ backgroundColor:"#d37f7f" });
	    $("#tt_links_tab").css({ backgroundColor:"#d37f7f" });
		
		$("#tt_info_content").hide();
		$("#tt_faq_content").hide();
		$("#tt_links_content").hide();
		$("#tt_summary_content").show();							  
    });
	
    $("#tt_info_tab").click(function () {
									   
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#tt_summary_tab").css({ backgroundColor:"#d37f7f" });
	    $("#tt_faq_tab").css({ backgroundColor:"#d37f7f" });
	    $("#tt_links_tab").css({ backgroundColor:"#d37f7f" });
	  
	    $("#tt_summary_content").hide();
	    $("#tt_faq_content").hide();
	    $("#tt_links_content").hide();
	    $("#tt_info_content").show();							  
    });
	
	$("#tt_faq_tab").click( function() {
									  
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#tt_summary_tab").css({ backgroundColor:"#d37f7f" });
	    $("#tt_info_tab").css({ backgroundColor:"#d37f7f" });
	    $("#tt_links_tab").css({ backgroundColor:"#d37f7f" });

		$("#tt_summary_content").hide();
		$("#tt_info_content").hide();
		$("#tt_links_content").hide();
		$("#tt_faq_content").show();							  
	});
	
	$("#tt_links_tab").click( function() {
										
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#tt_summary_tab").css({ backgroundColor:"#d37f7f" });
	    $("#tt_info_tab").css({ backgroundColor:"#d37f7f" });
	    $("#tt_faq_tab").css({ backgroundColor:"#d37f7f" });

		$("#tt_summary_content").hide();
		$("#tt_info_content").hide();
		$("#tt_faq_content").hide();
		$("#tt_links_content").show();							  
	});
	
	// box 4 tabs (bottom right) ---------------------------------------
	
	$("#sa_summary_tab").click(function () {
										  
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#sa_info_tab").css({ backgroundColor:"#d37f7f" });
	    $("#sa_faq_tab").css({ backgroundColor:"#d37f7f" });
	    $("#sa_links_tab").css({ backgroundColor:"#d37f7f" });
		
		$("#sa_info_content").hide();
		$("#sa_faq_content").hide();
		$("#sa_links_content").hide();
		$("#sa_summary_content").show();							  
    });
	
    $("#sa_info_tab").click(function () {
									   
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#sa_summary_tab").css({ backgroundColor:"#d37f7f" });
	    $("#sa_faq_tab").css({ backgroundColor:"#d37f7f" });
	    $("#sa_links_tab").css({ backgroundColor:"#d37f7f" });
	  
	    $("#sa_summary_content").hide();
	    $("#sa_faq_content").hide();
	    $("#sa_links_content").hide();
	    $("#sa_info_content").show();							  
    });
	
	$("#sa_faq_tab").click( function() {
									  
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#sa_summary_tab").css({ backgroundColor:"#d37f7f" });
	    $("#sa_info_tab").css({ backgroundColor:"#d37f7f" });
	    $("#sa_links_tab").css({ backgroundColor:"#d37f7f" });

		$("#sa_summary_content").hide();
		$("#sa_info_content").hide();
		$("#sa_links_content").hide();
		$("#sa_faq_content").show();							  
	});
	
	$("#sa_links_tab").click( function() {
										
    	$(this).css({ backgroundColor:"#a70000" });
	    $("#sa_summary_tab").css({ backgroundColor:"#d37f7f" });
	    $("#sa_info_tab").css({ backgroundColor:"#d37f7f" });
	    $("#sa_faq_tab").css({ backgroundColor:"#d37f7f" });

		$("#sa_summary_content").hide();
		$("#sa_info_content").hide();
		$("#sa_faq_content").hide();
		$("#sa_links_content").show();							  
	});
	
});
