//-----------------------------------
// Browser detection
var agt = navigator.userAgent.toLowerCase();
var is_opera = (agt.indexOf("opera") != -1);
var is_ie = (agt.indexOf("msie") != -1) && document.all && !is_opera;
var is_ie5 = (agt.indexOf("msie 5") != -1) && document.all;
//----------------------------------
// shelled functions for old javascript
function tog() {}

// ----------------------------------
// visibility functions
function tog() {
// tog: toggle the visibility of html elements (arguments[1..]) from none to
// arguments[0]. Return what should be returned in a javascript onevent().
display = arguments[0];
for( var i=1; i<arguments.length; i++ ) { var x = document.getElementById(arguments[i]);
if (x.style.display == "none" || x.style.display == "") {
x.style.display = display;
} else {
x.style.display = "none";
}
} var e = is_ie ? window.event : this;
if (e) {
if (is_ie) {
e.cancelBubble = true;
e.returnValue = false;
return false;
} else {
return false;
}
}
}
// ----------------------------------

function op( idnum,question )  // hide/show headers
{
  optionLink = document.getElementById( 'o'+idnum );
  x = tog('block', 'h'+idnum );
  if( optionLink.innerHTML.indexOf( question ) != -1 ) //"show options"
  {
    optionLink.innerHTML = question; //"hide options";
  } else {
    optionLink.innerHTML = question; //"show options";
  }
  optionLink.blur();
  return x;
}

