if (typeof(loadFirebugConsole) != 'undefined') { loadFirebugConsole(); }
if (typeof(console) == 'undefined') { console = {debug: function() {}}; }

$(document).ready(function() {
  var section = (location.hash.length > 0)?location.hash:'#overview';
  $('.section')
    .hide()
    .filter(section)
      .show();
  
  $('#nav a').click(function(e) {
    var href = $(this).attr('href');
    if (href.indexOf('#') === 0) {
      $('.section')
        .hide()
        .filter(href)
          .show();
    }
  });
  
  $('#htmlFaq #faqList').simpleFAQ();
  $('#htmlFaq #faqList').bind('show.simpleFAQ', function(jQEvent, faqNode) {
    console.debug(faqNode);
  });
    
});
