//
// JavaScript code used on all pages of the site.
//

// fix for Netscape 4 resize bug that causes loss of DHTML layout
// [from www.webreference.com/dhtml/diner/resize/]
if (document.layers) {  // sniff for NS4
	origWidth = innerWidth;
	origHeight = innerHeight;
	window.onresize = function() {
		if (innerWidth != origWidth || innerHeight != origHeight) {
			location.reload();
		}
	}
}


// fix for WinIE6 bug that truncates long floated <div>s
// [adapted from "Designing with Web Standards", p. 290]
if (document.all && window.attachEvent) {  // sniff for WinIE6
	window.attachEvent('onload', function() {
		var div = document.all.item('leftcol');
		if (div && document.body.scrollHeight < div.offsetHeight) {
			div.style.display = 'block';
		}
	} );
}


// construct the "breadcrumb" area
// example:
//    breadcrumb("Web Site", "/c/website/index.html", "Site Info");
//
function breadcrumb() {
  document.write('<div id="breadcrumb"><p>');
  document.write('<a href="/index.php">Home</a> &#187; ');
  for (var i=0; i<arguments.length; i++) {
    if (i == arguments.length-1)	// last
      document.write('<strong>' + arguments[i] + '</strong>');
    else {					// intermediate level
      if (arguments[i+1] == null)	// w/o hyperlink
        document.write(arguments[i] + ' &#187; ');
      else					// w/ hyperlink
        document.write('<a href="' + arguments[i+1] + '">' + arguments[i] + '</a> &#187; ');
      i++
    }
  }
  document.write('</p></div>');
}

//Minutes Menu Function
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
