

var answers = document.getElementsByClassName('answer');

for (var i = 0; i < answers.length; i++)
{
  answers[i].style.display = 'none';
}

function toggleQuestion()
{
  var answer_id = this.id + '_answer';
  var answer = document.getElementById(answer_id);
  if (answer.style.display == 'block')
  {
    this.style.backgroundImage = 'url(/css/images_new/plus.gif)';
    //no-repeat 0 .5em';
    answer.style.display = 'none';
  }
  else
  {
    this.style.backgroundImage = 'url(/css/images_new/minus.gif)';
    //no-repeat 0 .5em';
    answer.style.display = 'block';
  }
  return false;
}

var questions = document.getElementsByClassName('question');

for (var i = 0; i < questions.length; i++)
{
  questions[i].onclick = toggleQuestion;
  if (questions[i].id == document.location.hash.substr(1))
  {
    questions[i].onclick();
  }
}
