function activateLink(nodeID) {
	root = document.getElementById(nodeID);
   var active = toolbox_nodes_getActiveLink(root,document.location);
   if (active) {
   active.className = "active";
   }
 }
 
 //# DOM
			
function toolbox_nodes_getFirstOf(obj,ntype) {
   chElements = obj.getElementsByTagName(ntype);
   return chElements[0];
}
   
function toolbox_nodes_getActiveLink(root,url) {
   var refList = root.getElementsByTagName("a");
   var i = 0;
   while(refList[i]) {
   if (refList[i].href == url) {
   return refList[i];
   }
   i++;
   }
}

function activateIndex() {
	document.getElementById('homelink').className='active';	
}
