$(document).ready(function(){
    $("a[rel=question]").click(toggleAnswer);

    var myFile = document.location.toString();
    if (myFile.match('#')) { // the URL contains an anchor
        // click the navigation item corresponding to the anchor
        var faq_id = myFile.split('#')[1];
        $("#answer_"+faq_id).show("slow");
    }    
    
});

function toggleAnswer()
{
    var faq_id = $(this).attr("id");
    $("#answer_"+faq_id).toggle("slow");
    return false;
}
