$(document).ready(function(){ 

    //Toggles the from-field on the frontpage
    $(".from").click(function(){
        $("#from").slideToggle();
        return false;
    });

    $(".advanced").click(function(){
        $("#advanced").slideToggle();
        return false;
    });

    //Initialize the popup for Forgot password on the frontpage
    $("#forgot-pass").jqm();

    //Initialize the popup for Forward file on the my account page
    $("#forward-file").jqm();

    //Initialize the popup for terms on the startpage
    $("#terms-info").jqm({trigger:'.showterms'});

    //Toggles the click here to see all on the my account page
    $(".show-all").click(function(){
        $(".all").hide();
        $(this).next("div").fadeIn();
        return false;
    });
    //Toggles the click here to see all on the my account page
    $(".close").click(function(){
        //$(this).parent("div").fadeOut("fast");
        $(".all").fadeOut("fast");
        return false;
    });

});

