<!--
/***************************************************************************
	changeFAQVisibility();
	reAlign();
	initializeContents();
	Controls layers containing data that is collapsable within a window.  Uses DIV elements.
***************************************************************************/
document.WM = new Object();
document.WM.hirelist = new Object();
document.WM.hirelist.expandos = new Array();
document.WM.hirelist.heights = new Array();
document.WM.hirelist.names = new Array();

function changeFAQVisibility(id, length) {
// --- INTERNET EXPLORER Code ---


  if (document.all){
	
	
	
	// Make selected DIV id element visible
    if(document.all[id].style.display == 'none'){
	  document.all[id].style.display = "block";
    } else {
        document.all[id].style.display = "none";
    }
   // Hide all DIV elements that don't match the selected DIV id
   for(i=0; i<length; i++) {
   
		var strI = String(i);
		strI = "select" + strI;
		
		if(strI != String(id)) {
		//alert (length + " : " + strI + " : " + String(id));

			document.all[strI].style.display = 'none';
		} 
	}
 // --- NETSCAPE 6+, MOZILLA 1.x Code: does not use layers --- 
  } else if (document.getElementById){

	// Make selected DIV id element visible
    if(document.getElementById(id).style.display == 'none'){
		document.getElementById(id).style.display = 'block';
    } else {
        document.getElementById(id).style.display = 'none';
    }
	// Hide all DIV elements that don't match the selected DIV id
	for(k=0; k<length; k++) {
		var strK = String(k);
		strK = "select" + strK;

		if(strK != String(id)) {
			document.getElementById(strK).style.display = 'none';
		}
	}
 // --- NETSCAPE 4.x (Navigator) Code: use of layers ****** NOT TESTED YET ******---

  }  else if(document.layers) {
      if(parseInt(id + 1)){
	  ditem = id + 1;
      } else {
	  ditem = document.WM.hirelist.names[id];
      }
      if(document.WM.hirelist.expandos[ditem].clip.bottom == 0) {
	     document.WM.hirelist.expandos[ditem].clip.bottom = document.WM.hirelist.heights[ditem];
      }
	 for(m=1; m<length; m++) {
		if(m + 1 != ditem) {
			document.WM.hirelist.expandos[m + 1].clip.bottom = 0;
		}
	 }

  }
}


function reAlign() {
    var i,j,netscape_array_infinate_loop_error;
    netscape_array_infinate_loop_error = document.WM.hirelist.expandos.length;
    for(i=0; i<netscape_array_infinate_loop_error; i++) {
		j = i + 1;
		if(document.WM.hirelist.expandos[j]){
	    	if(document.layers) {
				document.WM.hirelist.expandos[j].top = document.WM.hirelist.expandos[i].top + document.WM.hirelist.expandos[i].clip.bottom;
	   		}
		}
    }
}

function initializeContents(){
    if(document.layers) {
		for(i=0; i<document.layers['container'].document.layers.length; i++){
	    	document.WM.hirelist.expandos[i] = document.layers['container'].document.layers[i];
	    	document.WM.hirelist.names[document.layers['container'].document.layers[i].name] = i;
	    	document.WM.hirelist.heights[i] = document.WM.hirelist.expandos[i].clip.bottom;
		}
		for (p=0;p<document.WM.hirelist.expandos.length;p=p+2){
	    	changeFAQVisibility(p);
		}
		document.layers['container'].visibility = 'visible';
    } else if (document.all){
		for(i = 0; i < document.all('container').all.length; i++){
		    document.all('container').all[i].style.position = 'absolute';
		    if(document.all('container').all[i].className == 'menu'){
			document.all('container').all[i].style.display = 'none';
		    }
		}
		document.all('container').style.visibility = 'visible';
    } else if (document.getElementsByTagName && document.getElementById){
		var contained = document.getElementById('container').getElementsByTagName('div');
		for(i = 0; i < contained.length; i++){
		    contained[i].style.position = 'absolute';
		    if(contained[i].getAttribute('class') == 'menu'){
			contained[i].style.display = 'none';
		    }
		}
		document.getElementById('container').style.visibility = 'visible';
    }
}

	// hide back and next buttons
	//changeFAQVisibility('0select',11,0);

//}

//-->
