
var ids=new Array('faq1','faq2','faq3','faq4','faq5','faq6','faq7','faq8','faq9','faq10','faq11','faq12','faq13','faq14','faq15','faq16','faq17','faq18','faq19','faq20','faq21','faq22','faq23','faq24','faq25','faq26','faq27','faq28','faq29');
//here you place the ids of every element you want.
function collapse(id) {
 //safe function to hide an element with a specified id
 if (document.getElementById) { // DOM3 = IE5, NS6
  document.getElementById(id).style.display = 'none';
 }
}

function collapseAll(){
 //loop through the array and hide each element by id
  for (var i=0;i<ids.length;i++){
  collapse(ids[i]);
 }    
}

function expand(id) {
 //safe function to show an element with a specified id 
 if (document.getElementById) { // DOM3 = IE5, NS6
  document.getElementById(id).style.display = 'block';
 }
}

function expandAll(){
//loop through the array and hide each element by id
for (var i=0;i<ids.length;i++){
	expand(ids[i]);
}
}

function toggle(a){
  var e=document.getElementById(a);
  if(e.style.display=="none"){
    e.style.display="block";
  } else {
    e.style.display="none";
  }
  return true;
}




