start = function() {
	startList("footer");
	tableruler();
}
function startList(id) {
	navLI = document.getElementById(id).getElementsByTagName("LI");
	for (i=0; i<navLI.length; i++) {
		node = navLI[i];
		node.onmouseover=function() { this.className+="over"; }
		node.onmouseout=function() { this.className=this.className.replace("over", ""); }
	}
}

function tableruler() {
	if (document.getElementById && document.createTextNode) {
		var tables=document.getElementById('main').getElementsByTagName('table');
		for (var i=0;i<tables.length;i++) {
			if(tables[i].className.indexOf('fancy')!=-1) {
				var trs=tables[i].getElementsByTagName('tr');
				for(var j=0;j<trs.length;j++) {
//					if (trs[j].className.length == 0) {
						if (j%2==1) {
								trs[j].className = 'alt ' +trs[j].className;
								trs[j].onmouseover=function(){this.className='hilited';return false}
								trs[j].onmouseout=function(){this.className='alt';return false}
						} else {
							trs[j].onmouseover=function(){this.className='hilited';return false}
							trs[j].onmouseout=function(){this.className='';return false}
}	
//}
}	}	}	}	}



startStack=function() { };  // A stack of functions to run onload/domready

registerOnLoad = function(func) {
   var orgOnLoad = startStack;
   startStack = function () {
      orgOnLoad();
      func();
      return;
   }
}

var ranOnload=false; // Flag to determine if we've ran the starting stack already.

if (document.addEventListener) {
  // Mozilla actually has a DOM READY event.
   document.addEventListener("DOMContentLoaded", function(){if (!ranOnload) {ranOnload=true; startStack();}}, false);
}  else if (document.all && !window.opera) {
  // This is the IE style which exploits a property of the (standards defined) defer attribute
  document.write("<scr" + "ipt id='DOMReady' defer=true " + "src=//:><\/scr" + "ipt>");  
  document.getElementById("DOMReady").onreadystatechange=function(){
    if (this.readyState=="complete"&&(!ranOnload)){
      ranOnload=true;
      startStack();
    }
  }
}

var orgOnLoad=window.onload;
window.onload=function() {
   if (typeof(orgOnLoad)=='function') {
      orgOnLoad();
   }
   if (!ranOnload) {
     ranOnload=true;
     startStack();
   }
}

registerOnLoad(start);

