 
















$(document).ready(function() {
//search button image swap					   
   $("#submit").mouseover(function() {
      $("#submit").attr("src","/images/search_on.gif");
   });
    $("#submit").mouseout(function() {
      $("#submit").attr("src","/images/search_off.gif");
   });
	
//email registration button image swap
	 $("#esubmit").mouseover(function() {
      $("#esubmit").attr("src","/images/submitbtn.gif");
   });
    $("#esubmit").mouseout(function() {
      $("#esubmit").attr("src","/images/submitbtn_off.gif");
   });
	
//contact us button image swap
	 $("#csubmit").mouseover(function() {
      $("#csubmit").attr("src","/images/send.gif");
   });
    $("#csubmit").mouseout(function() {
      $("#csubmit").attr("src","/images/send_off.gif");
   });
	
	
//FAQ show and hide	

	//Hide all faq-content panels
	$(".faq-content").hide();
	
	$(".toggleLink").click(function() {
	
		if($(this).parent().hasClass("off"))
		{
			//Close the panel
			$(this).parent().addClass("activated").removeClass("off");
			
			 //Reveal the Image and associated text
			 $(this).parent().parent().find(".faq-content").show();
		}
		else
		{
			//Show the panel
			$(this).parent().removeClass("activated").addClass("off");
			
			 //Reveal the Image and associated text
			 $(this).parent().parent().find(".faq-content").hide();		
		}
	
		return false;

});
	
//board page	
	//Hide all board director panels
	$(".member-name").hide();
	
	$(".tabLink").click(function() {
		
		this.blur();//takes the focus off the link once it has been clicked so you get no outline
		
		if($(this).parent().parent().hasClass("heading_on"))
		{
			//Close the panel
			$(this).parent().parent().addClass("heading").removeClass("heading_on");
			
			 //Reveal the Image and associated text
			 $(this).parent().parent().parent().find(".member-name").hide();
			
		}
		else
		{
			//Show the panel
			$(this).parent().parent().removeClass("heading").addClass("heading_on");
			
			 //Reveal the Image and associated text
			 $(this).parent().parent().parent().find(".member-name").show();		
			
		}
		
		return false;
	});
	
	
	//Hide the second and third tabs
	$(".fragment-2").hide();
    $(".fragment-3").hide();
    
	//Shiw or hide financial tabs 
	$('a[@href*="fragment"]').click(function() {
		
    	
    	$(this ).parent().parent().children().removeClass("linkon");
    	$(this ).parent().addClass("linkon");
    	var tabID = $(this ).parent().attr("id");
    	//hide all divs 
    	$(".fragment-1").hide();
    	$(".fragment-2").hide();
    	$(".fragment-3").hide();
    	
    	//show the div contains that class
    	if (tabID == "fragment-1") {
		$(".fragment-1").show();
		
		} else if (tabID == "fragment-2") {
		$(".fragment-2").show();

		} else if (tabID == "fragment-3") {
		$(".fragment-3").show();
		}
    	
    	return false;
  	});
	
	
		 
 });   