var indicatorShow = '<img src="../img/common/faq_expand.gif" width="14" height="14" border="0" alt="" />';
var indicatorHide = '<img src="../img/common/faq_collapse.gif" width="14" height="14" border="0" alt="" />';
var currentQuestion = 0;

function initFAQ()
{
   for (var i=1; i<=questions.length-1; i++)
      document.getElementById("questionIndicator"+i).innerHTML = indicatorShow;
   currentQuestion = 0;
}

function toggleFAQ(qNr)
{
   // hide current
   if (currentQuestion)
   {
      document.getElementById("question"+currentQuestion).innerHTML = "";
      document.getElementById("questionIndicator"+currentQuestion).innerHTML = indicatorShow;
   }
   // show
   if (qNr != currentQuestion)
   {
      document.getElementById("question"+qNr).innerHTML = "<br />" + questions[qNr] + "<br />";
      document.getElementById("questionIndicator"+qNr).innerHTML = indicatorHide;
      currentQuestion = qNr;
   }
   else
   {
      currentQuestion = 0; // none showed
   }

}

