  $(document).ready(function(){
    $('div.ql-head-move').bind("click", function(){
        strName = this.id;
        if ($('#' + strName + '-content').css("display") == "none") {
            $('#' + strName + '-content').slideDown("fast");
            $('#' + strName).addClass("ql-head-move-open");
            $('#quicklangnav-button').css("width", "139");
        } else {
            $('#' + strName + '-content').slideUp("fast");
            $('#' + strName).removeClass("ql-head-move-open");
            $('#quicklangnav-button').css("width", "89");
        }
    });

    $('div.head-move').bind("click", function(){
        strName = this.id;
        if ($('#' + strName + '-content').css("display") == "none") {
            $('#' + strName + '-content').slideDown("fast");
            $('#' + strName).addClass("head-move-open");
        } else {
            $('#' + strName + '-content').slideUp("fast");
            $('#' + strName).removeClass("head-move-open");
        }
    });  
    
    $('div.head-move-open').bind("click", function(){
        strName = this.id;
        if ($('#' + strName + '-content').css("display") == "none") {
            $('#' + strName + '-content').slideDown("fast");
            $('#' + strName).addClass("head-move-open");
        } else {
            $('#' + strName + '-content').slideUp("fast");
            $('#' + strName).removeClass("head-move-open");
            $('#' + strName).addClass("head-move");
        }
    });  
  });