$(document).ready(function() {
    $("#faq a.minus").removeClass('minus').addClass('plus');
    $("#faq>li").append($("<p></p>").attr("class", "empty"));
    $("#faq .answer").hide();
    $("#faq a.plus").bind("click", function(e) {
        if ($(this).hasClass("plus")) {
            $(this).removeClass("plus").addClass("minus");
            $(this).parent().children(".empty").hide();
            $(this).parent().children(".answer").show();
        }
        else {
            $(this).removeClass("minus").addClass("plus");
            $(this).parent().children(".empty").show();
            $(this).parent().children(".answer").hide();
        }
      return false;
    });
        
    if (location.href.indexOf("#") > 0) {
        var toOpen = location.href.substr(location.href.indexOf("#") + 1);
        location.href = "#" + toOpen;
        $("a[name=" + toOpen + "]").parent().children("a.plus").click();
    }
});