// JavaScript Document

//This functions controls the toggle of the index_wrapper for the Ministry Index (above the header)
  $(document).ready(function(){
    
    $("#clicker").click(function () {
      if ($("#index_wrapper:first").is(":hidden")) {
        $("#index_wrapper").slideDown("slow");
      } else {
        $("#index_wrapper").slideUp();
      }
    });

  });


//Initializes Facebook integration.
FB.init("461d8e4f9ffd815cd8067ae7e47d7516");


//Initializes typekit intergration
try{Typekit.load();}catch(e){}


//Initializes superfish for navigation
    $(document).ready(function(){ 
        $("ul.sf-menu").superfish({ 
            pathClass:  'current' 
        }); 
    }); 
	

//Readies Facebook publisher actions
function callPublish(msg, attachment, action_link) {
  FB.ensureInit(function () {
    FB.Connect.streamPublish('', attachment, action_link);
  });
}