$(document).ready(function() {
   $("#fsubmit").mouseover(function() {
      $("#fsubmit").attr("src","/stylesheets/images/search_submit_roll.gif");
   });
    $("#fsubmit").mouseout(function() {
      $("#fsubmit").attr("src","/stylesheets/images/search-btn.gif");
   });
	
	$("#submit").mouseover(function() {
      $("#submit").attr("src","/stylesheets/images/notes-submit-on.gif");
   });
    $("#submit").mouseout(function() {
      $("#submit").attr("src","/stylesheets/images/notes-submit.gif");  
   });
	
//Code for board member image swap

	// Code for swaping image if javascript enabled
	$(this).parent().parent().parent().find(".access").hide();		
	$(this).find(".gp1access").attr("src","/stylesheets/images/group1.jpg");
	
	
	$("#person1").mouseover(function() {
      $(".gp1access").attr("src","/stylesheets/images/gp1_hover1.jpg");
   });
    $("#person1").mouseout(function() {
      $(".gp1access").attr("src","/stylesheets/images/group1.jpg");
   });
	
	$("#person2").mouseover(function() {
      $(".gp1access").attr("src","/stylesheets/images/gp1_hover2.jpg");
   });
    $("#person2").mouseout(function() {
      $(".gp1access").attr("src","/stylesheets/images/group1.jpg");
   });
	
	$("#person3").mouseover(function() {
      $(".gp1access").attr("src","/stylesheets/images/gp1_hover3.jpg");
   });
    $("#person3").mouseout(function() {
      $(".gp1access").attr("src","/stylesheets/images/group1.jpg");
   });
	
	$(this).parent().parent().parent().find(".access").hide();		
	$(this).find(".gp2access").attr("src","/stylesheets/images/group2.jpg");
	
	$("#person4").mouseover(function() {
      $(".gp2access").attr("src","/stylesheets/images/gp2_hover1.jpg");
   });
    $("#person4").mouseout(function() {
      $(".gp2access").attr("src","/stylesheets/images/group2.jpg");
   });
	
	$("#person5").mouseover(function() {
      $(".gp2access").attr("src","/stylesheets/images/gp2_hover2.jpg");
   });
    $("#person5").mouseout(function() {
      $(".gp2access").attr("src","/stylesheets/images/group2.jpg");
   });
	
	
	$(this).parent().parent().parent().find(".access").hide();		
	$(this).find(".gp3access").attr("src","/stylesheets/images/group3.jpg");
	
	$("#person6").mouseover(function() {
      $(".gp3access").attr("src","/stylesheets/images/gp3_hover1.jpg");
   });
    $("#person6").mouseout(function() {
      $(".gp3access").attr("src","/stylesheets/images/group3.jpg");
   });
	
	$("#person7").mouseover(function() {
      $(".gp3access").attr("src","/stylesheets/images/gp3_hover2.jpg");
   });
    $("#person7").mouseout(function() {
      $(".gp3access").attr("src","/stylesheets/images/group3.jpg");
   });
	
	$(this).parent().parent().parent().find(".access").hide();		
	$(this).find(".gp4access").attr("src","/stylesheets/images/group4.jpg");
	
	$("#person8").mouseover(function() {
      $(".gp4access").attr("src","/stylesheets/images/gp4_hover1.jpg");
   });
    $("#person8").mouseout(function() {
      $(".gp4access").attr("src","/stylesheets/images/group4.jpg");
   });
	
	$("#person9").mouseover(function() {
      $(".gp4access").attr("src","/stylesheets/images/gp4_hover2.jpg");
   });
    $("#person9").mouseout(function() {
      $(".gp4access").attr("src","/stylesheets/images/group4.jpg");
   });
	
	$(this).parent().parent().parent().find(".access").hide();		
	$(this).find(".gp5access").attr("src","/stylesheets/images/group5.jpg");
	
	$("#person10").mouseover(function() {
      $(".gp5access").attr("src","/stylesheets/images/gp5_hover1.jpg");
   });
    $("#person10").mouseout(function() {
      $(".gp5access").attr("src","/stylesheets/images/group5.jpg");
   });
	
	$("#person11").mouseover(function() {
      $(".gp5access").attr("src","/stylesheets/images/gp5_hover2.jpg");
   });
    $("#person11").mouseout(function() {
      $(".gp5access").attr("src","/stylesheets/images/group5.jpg");
   });
	
	
	$(this).parent().parent().parent().find(".access").hide();		
	$(this).find(".gp6access").attr("src","/stylesheets/images/group6.jpg");
	
	$("#person12").mouseover(function() {
      $(".gp6access").attr("src","/stylesheets/images/gp6_hover1.jpg");
   });
    $("#person12").mouseout(function() {
      $(".gp6access").attr("src","/stylesheets/images/group6.jpg");
   });
	
	$("#person13").mouseover(function() {
      $(".gp6access").attr("src","/stylesheets/images/gp6_hover2.jpg");
   });
    $("#person13").mouseout(function() {
      $(".gp6access").attr("src","/stylesheets/images/group6.jpg");
   });
	
	
	
//Hide all board member panels
$(".member-name").hide();

$(".tabLink").click(function() {
	
	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();
		 $(this).find(".panelBtn").attr("src","/stylesheets/images/profile_button.jpg");
	}
	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();		
		 $(this).find(".panelBtn").attr("src","/stylesheets/images/search-btn-orange.gif");
	}
	
	return false;
});


	

 });   