
  var MSIE = navigator.userAgent.indexOf("MSIE");
  var Gecko = navigator.userAgent.indexOf("Gecko");
  var noClear;
  var url = "http://" + document.domain;

  if (MSIE != -1) {
    MSIE += 5;
    var c = navigator.userAgent.charAt(MSIE);
    MSIE = (c < "0" || c > "9")? 0:
      parseInt(navigator.userAgent.substring(MSIE, navigator.userAgent.length));
    noClear = (MSIE < 4);
  } else {
    MSIE = noClear = 0;
  }

  function StartUp() {
    if (MSIE >= 4 || Gecko != -1) {

      for (i = 0; i < document.images.length; i++) {
        if (document.images[i].src == url + '/images/minus.gif') {
            document.images[i].src = url + '/images/plus.gif';
        }
      }

      if ( MSIE >= 4 ) {
        var psub = document.all.tags("P");
        for (i = 0; i < psub.length; i++) {
          if (psub[i].className == "Sub") {
            psub[i].style.display = "none";
          }
        }
      }else if ( Gecko != -1 ) {
				var psub = document.getElementsByTagName('P');
        for (i = 0; i < psub.length; i++) {
          if (psub[i].getAttribute('class') == "Sub") {
            psub[i].setAttribute('style', 'display: none;');
          }
        }

				var psub = document.getElementsByTagName('IMG');
        for (i = 0; i < psub.length; i++) {
          if (psub[i].getAttribute('class') == "CursorHand") {
            psub[i].addEventListener('mousedown', Expand, true);
            psub[i].addEventListener('keypress',  Expand, true);
          }
        }
			}

    }
  }

  function Expand(e) {
    if (MSIE >= 4) {
      var img = window.event.srcElement;
      if (img.src.indexOf('plus.gif') == -1) {
        img.src = url + '/images/plus.gif';
        document.all.item(e).style.display = "none";
      } else {
        img.src = url + '/images/minus.gif';
        document.all.item(e).style.display = "block";
      }
    }else if( Gecko != -1 ) {
			var pid = e.target.id.substr(2);
			var p = document.getElementById(pid);
			if ( e.target.src.indexOf('plus.gif') == -1 ) {
				e.target.src = url + '/images/plus.gif';
				p.setAttribute('style', 'display: none;');
			} else {
				e.target.src = url + '/images/minus.gif';
				p.setAttribute('style', 'display: block;');
			}
		}
  }
