// JavaScript Document

// if js is disabled we want defaultFaqdiv elements to be visible
// so they are visible by default in the CSS

document.write("<" + "style type='text/css'>.defaultFaqdiv{display:none;}<" + "/" + "style>");

window.onload = function()
{
  Faqsection_onload();
}

function Faqsection_onload()
{
  var faqln=1, // faqlnk number
      faqlo=1; // faqlnk object

  for (; faqlo; ++faqln)
  {
    faqlo = document.getElementById('Faqlnk' + faqln);
    if (faqlo)
	{
      faqlo.FaqcontentId = 'FaqContentdiv' + faqln;
      faqlo.onclick = Faqsection_onclick;
    }
  }
  window.currentfaqdivId = null; // global
}

// assumes defaultFaqdiv elements have display:none initially
function Faqsection_onclick()
{
	var e;
	if (currentfaqdivId && currentfaqdivId != this.FaqcontentId)
	{
		e = document.getElementById(currentfaqdivId);
		e.style.display = 'none';
	}
	
	e = document.getElementById(this.FaqcontentId);
	document.getElementById('defaultFaqdivShow').style.display = 'none';	
	if (e.style.display == 'block')
	{
		e.style.display = 'none';
		currentfaqdivId = null;
	}
	else
	{
		e.style.display = 'block';
		currentfaqdivId = this.FaqcontentId;
	}
  return false;
}
