// Rev. 09/07/2003

function Toggle(item,theid,themenu,thepage) {
   obj=document.getElementById(item);
   visible=(obj.style.display!="none")
   key=document.getElementById("x" + item);
   if (visible) {
     obj.style.display="none";
   } else {
      obj.style.display="block";
   }
   switch (thepage)
	{
	case (thepage = "education"):
	      self.frames['main'].location.href = 'maineducation.asp?theid=' + theid + '&themenu='+ themenu; 
	break
	case (thepage = "business"):
	      self.frames['main'].location.href = 'mainbusiness.asp?theid=' + theid + '&themenu='+ themenu; 
	break
	case (thepage = "rdas"):
	      self.frames['main'].location.href = 'mainrdas.asp?theid=' + theid + '&themenu='+ themenu; 
	break
	case (thepage = "ideasexplorers"):
	      self.frames['main'].location.href = 'mainideasexplorers.asp?theid=' + theid + '&themenu='+ themenu; 
	break
	} 
}

function Expand() {
   divs=document.getElementsByTagName("DIV");
   for (i=0;i<divs.length;i++) {
     divs[i].style.display="block";
     key=document.getElementById("x" + divs[i].id);
     key.innerHTML="img src='images/textfolder.gif' width='16' height='16' hspace='0' vspace='0' border='0'>";
   }
}

function Collapse() {
   divs=document.getElementsByTagName("DIV");
   for (i=0;i<divs.length;i++) {
     divs[i].style.display="none";
     key=document.getElementById("x" + divs[i].id);
     key.innerHTML="img src='images/folder.gif' width='16' height='16' hspace='0' vspace='0' border='0'>";
   }
}


