Issue using $(function () {...});

Issue using $(function () {...});

For some reason the $(function () {...}); code won't fire.  I know it's correct because run it in the IE Dev Tools it works, but when I refresh the screen it doesn't fire.  It doesn't make sence to me. Any ideas?
 
Full code:
 

$(

function () {

      $(

"#Fields").hide();

      $(

"#Location").hide();

      $(

"#Profile").show();

      $(

"#ProfileLink").click(function () {

            $(

"#Fields").hide();

            $(

"#Location").hide();

            $(

"#Profile").show("slow");

      });

      $(

"#LocationLink").click(function () {

            $(

"#Fields").hide();

            $(

"#Profile").hide();

            $(

"#Location").show("slow");

      });

      $(

"#FieldsLink").click(function () {

            $(

"#Location").hide();

            $(

"#Profile").hide();

            $(

"#Fields").show("slow");

      });

});