        $(document).ready(function() {
            $('#frmRefineMatch').keypress(function(event) {
                if (event.keyCode == '13') {
                    $('.provider_search').click();
                }
            });

            $(".splash_providers_search_type").click(function() {
                var id = $(this).attr("id");
                var type = id.substr(33);
                $(".splash_providers_search_form").hide();
                $("#splash_providers_search_" + type).show();
                $("#splash_providers_search_launcher").hide();
                $("#splash_providers_search_title").html(" by " + type.substr(0, 1).toUpperCase() + type.substr(1));
                $("#splash_providers_search_button").show();
                if (type != "name") {
                    $("#splash_providers_search_filters").show();
                }
            });

            $(".splash_providers_search_form_cancel").click(function() {
                $(".splash_providers_search_form").hide();
                $("#splash_providers_search_launcher").show();
                $("#splash_providers_search_title").html("");
                $("#splash_providers_search_button").hide();
            });

            // This gets the current mouse location
            $(document).mousemove(function(e) {
                posx = e.pageX + 10;
                posy = e.pageY + 80;
            });

            if ($.browser.msie && $.browser.version.substr(0, 1) < 8) {
                $("#splash_providers_search_body").prepend($(".taxonomy"));
                var ul = $(".taxonomy");
                ul.css("top", "180px");
                ul.css("left", "220px");
            }
        });

        function swapLocator(type) {
            if (type == "zip") {
                $("#zipSearch").show();
                $("#citySearch").hide();
            } else {
                $("#zipSearch").hide();
                $("#citySearch").show();
            }
        }

        function swapLocation(type) {
            if (type == "zip") {
                $("#zipLocSearch").show();
                $("#cityLocSearch").hide();
            } else {
                $("#zipLocSearch").hide();
                $("#cityLocSearch").show();
            }
        }
   
