
//this function displays or hides object t -- IE only
function toggle(t) {	
	var x=document.getElementById(t);
  if (x.style.display != "none") 
    x.style.display = "none";
  else 
    x.style.display = "inline";
}

function t(div,pic) {
  var d, p;
  if (document.getElementById) { // DOM-compliant browsers
    d=document.getElementById(div);
    p=document.getElementById(pic);
  }
  if (d.style.display == "block") {
    d.style.display="none";
    p.src="/pix/shut.gif";
  } else {
    d.style.display="block";
    p.src="/pix/open.gif";
  }
}


//this function will page backward or forward with the press of 
//an arrow key (in IE) or comma or dot (Netscape or IE)
function handler(e) {	
  if (navigator.appName.indexOf("Microsoft") != -1)
  {
    k = window.event.keyCode;
    shift = window.event.shiftKey;
  }
  else
  {
    k=e.which;
    shift=false;
  }

  if (shift) {
    if (k == 37) document.URL=document.links[0].href;	//left arrow
    if (k == 38) document.URL=document.links[1].href;	//up arrow
    if (k == 39) document.URL=document.links[2].href;	//right arrow
    // up and down arrows scroll
  } else {
    if (k==37 || k==44 || k==188) 
      document.URL=document.links[0].href;		//prev of navbar
    if (k==39 || k==46 || k==190) 
      document.URL=document.links[2].href;		//next of navbar
  }
}

document.onkeydown=handler;
