function openDisclaimer(e, o)
{
  var msg = "You are entering an independent website.  Deere & Company and its affiliates (collectively \"John Deere\") are not responsible for information contained on the website, including, without limitation, any content, character, opinions, data, advertising claims, special offers, implied or express warranties, or endorsements.";

  if (confirm(msg)) {
    window.open(o.href, o.target, '');
  }

  if (window.event) { window.event.returnValue = false; } else { e.preventDefault(); }
}


function openGlossary(e, o)
{
  window.open(o.href, o.target, 'statusbar=no,scrollbars=yes,resizable=yes,width=548,height=405');

  if (window.event) { window.event.returnValue = false; } else { e.preventDefault(); }
}


function openReport(e, o)
{
  window.open(o.href, o.target, 'statusbar=no,scrollbars=yes,resizable=yes,width=400,height=300');

  if (window.event) { window.event.returnValue = false; } else { e.preventDefault(); }
}


// from Page 3 of  http://www.sitepoint.com/article/standards-compliant-world/
function externalLinks() {
  if (!document.getElementsByTagName) {
    return;
  }

  var anchors = document.getElementsByTagName("a");

  for (var i=0; i<anchors.length; i++) {
    var anchor = anchors[i];
    if ((anchor.getAttribute("href")) &&
	(anchor.getAttribute("rel") == "external")) {
      anchor.target = "_blank";
    }
  }
}

window.onload = externalLinks;

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;
