/**
 * @author     Tom Malone
 * @email      tmalone@leadingstar.com
 */

// Toggle staff bio display in content div
$(document).ready(function() {
     $('#nla').click(function() {
          $.get("/cmc/success_stories/clients/national_lipid_association.html", '',
          function(response){
               $('#showhide').fadeOut("fast");                     
               setTimeout("finishAjax('showhide', '"+escape(response)+"')", 400);
          });
     });
          
     $('#fogs').click(function() {
          $.get("/cmc/success_stories/clients/florida_obstetric_and_gynecologic_society.html", '',
          function(response){
               $('#showhide').fadeOut("fast");                     
               setTimeout("finishAjax('showhide', '"+escape(response)+"')", 400);
          });
     });
     
     $('#fso').click(function() {
          $.get("/cmc/success_stories/clients/florida_society_of_ophthalmology.html", '',
          function(response){
               $("#showhide").fadeOut("fast");
               setTimeout("finishAjax('showhide', '"+escape(response)+"')", 400);
          });
     });
     
     $('#arf').click(function() {
          $.get("/cmc/success_stories/clients/american_retina_foundation.html", '',
          function(response){
               $("#showhide").fadeOut("fast");
               setTimeout("finishAjax('showhide', '"+escape(response)+"')", 400);
          });
     });
     
     $('#flf').click(function() {
          $.get("/cmc/success_stories/clients/florida_lipid_foundation.html", '',
          function(response){
               $("#showhide").fadeOut("fast");
               setTimeout("finishAjax('showhide', '"+escape(response)+"')", 400);
          });
     });
     
     $('#fsgs').click(function() {
          $.get("/cmc/success_stories/clients/florida_society_of_general_surgeons.html", '',
          function(response){
               $("#showhide").fadeOut("fast");
               setTimeout("finishAjax('showhide', '"+escape(response)+"')", 400);
          });
     });
     
     $('#abcl').click(function() {
          $.get("/cmc/success_stories/clients/american_board_of_clinical_lipidology.html", '',
          function(response){
               $("#showhide").fadeOut("fast");
               setTimeout("finishAjax('showhide', '"+escape(response)+"')", 400);
          });
     });
     
     $('#accl').click(function() {
          $.get("/cmc/success_stories/clients/accreditation_council_for_clinical_lipidology.html", '',
          function(response){
               $("#showhide").fadeOut("fast");
               setTimeout("finishAjax('showhide', '"+escape(response)+"')", 400);
          });
     });      
});	

function finishAjax(id, response) {
     $('#'+id).html(unescape(response));
     $('#'+id).fadeIn();
} //finishAjax