<!--
function doC(el)
{
	doCmain(el, "orange");
}

function doCa(el)
{
	doCmain(el, "#FF0099"); // FFFF99 FFCC77
}

function doCmain(el, color)	// switch active color for navigation cell
{
    var link = el.getAttribute("lk");
	var savcolor = getElementStyle(el, 'backgroundColor', 'backgroundColor');
    if( (getLoc()!=getName(link)) && link!="skip")
    {
      el.onmouseout = function(){el.style.background = savcolor;}
      el.style.background = color;
      if(link != null)
          el.onclick = function(){window.location=link;};    }
}

function getName(str)
{	if(str==null)
		return str;
	else
	    return str.substring(str.lastIndexOf('/')+1, str.length);
}

function getLoc()
{
	var loc = getName(window.location.pathname);
	if(loc=="") loc="index.htm";
	return loc;
}

function getElementStyle(elem, IEStyleProp, CSSStyleProp) {
    if (elem.currentStyle)
       return elem.currentStyle[IEStyleProp];
    else if (window.getComputedStyle)
       return window.getComputedStyle(elem, "").getPropertyValue(CSSStyleProp);
    else
       return "#CCFFFF";
}

function initNav()
{
	cur = getLoc();
	na = document.getElementById('nav');
	th = na.getElementsByTagName('th');
	for(c=1; th[c]!=null;c++)
	  {
	  lk = getName(th[c].getAttribute('lk'))
	  if(lk.substr(0,7) == cur.substr(0,7))
	  	th[c].style.background =  '#CCAA66';
	  }
}
-->