function openSwitcher() {
    if (navigator.platform == "Nintendo Wii") {
        return;
    }
    var popupRequest = new Ajax.Request("/personal-trainer.html", {
        method: 'get',
        onComplete: function(response) {
            var tempContainer = document.createElement("div");
            tempContainer.className = "hide";
            tempContainer.id = "temp_ajax_container";
            $$('body').reduce().insert({top: tempContainer});
            $("temp_ajax_container").update(response.responseText);
            $("switcher-wrapper").insert({top: $("switcher")});
            $("temp_ajax_container").remove();
            switcherPopup();
        }
    });
    function switcherPopup() {
        $('switcher-wrapper').hide();
        $('view-all-personal-trainer').writeAttribute('href', '#');
        $$('.toggle-view-all-personal-trainer').invoke('observe', 'click', function(e) {
        	e.stop();
            if (Prototype.Browser.IE) {
                $('switcher-wrapper').toggle();
            } else {
                Effect.toggle('switcher-wrapper', 'appear', { duration: .5, fps: 28 });
            }
        });
    }
}
document.observe("dom:loaded", function() {
    openSwitcher();
});