/* Source code taken and simplified from original DAPAAA site
 * Author: Willy Wong '99
**/
    //Declare constants
	IE = "Microsoft Internet Explorer";
	N = "Netscape";
	O = "Other";
	MAC = "mac";
	EMPTY = "";
	NONE ="none";
	PLUS_IMG = "assets/images/plus.gif";
	MINUS_IMG = "assets/images/minus.gif"

  //Function to check platform type
  function checkPlatform()
  {
	var sPlatform;

    var agt = navigator.userAgent.toLowerCase();
	var is_mac    = (agt.indexOf(MAC)!=-1);

	if(is_mac)
	{
		sPlatform = MAC;
	}

	return sPlatform;
  }

  //Function to check browser type
  function checkBrowser()
  {
	var sBrowser;

	if(document.all)
	{
	  sBrowser = IE;
	}
	else if(document.getElementById)
	{
	  sBrowser = N;
	}

	return sBrowser;
  }

function popSection(id, sign)
{
	if (checkBrowser() == IE)
	{
		if (id.style.display == EMPTY)
		{
			id.style.display = NONE;
			sign.src = PLUS_IMG;
		}
		else
		{
			id.style.display = EMPTY;
			sign.src = MINUS_IMG;
		}
	}
	else if (checkBrowser() == N)
	{
		if (document.getElementById(id).style.display == EMPTY)
		{
			document.getElementById(id).style.display = NONE;
			document.getElementById(sign).src = PLUS_IMG;
		}
		else
		{
			document.getElementById(id).style.display = EMPTY;
			document.getElementById(sign).src = MINUS_IMG;
		}
	}
}
