$(document).ready(function() {
   $("#fSubmit").mouseover(function() {
      $("#fSubmit").attr("src","/images/search_submit_roll.gif");
   });
    $("#fSubmit").mouseout(function() {
      $("#fSubmit").attr("src","/images/search-btn.gif");
   });
	
	
 }); 


// media centre form button rollover
$(document).ready(function() {
   $("#searchpress").mouseover(function() {
      $("#searchpress").attr("src","/images/search_rollover.gif");
   });
    $("#searchpress").mouseout(function() {
      $("#searchpress").attr("src","/images/search.gif");
   });
	
	
 }); 


// contact us form button rollover
$(document).ready(function() {
   $("#contactbtn").mouseover(function() {
      $("#contactbtn").attr("src","/images/send_rollover.gif");
   });
    $("#contactbtn").mouseout(function() {
      $("#contactbtn").attr("src","/images/contact-btn.gif");
   });
	
	
 }); 


$(document).ready(function() {
						   //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","/images/search-btn.gif");
	}
	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","/images/search-btn-orange.gif");
	}
	
	 
	return false;
	
	
	
	
	
	
});


	

 });