// JavaScript Document

	function activateNav(rootName) {	
			root = document.getElementById(rootName);
			
			imgs = root.getElementsByTagName("IMG");
			var i=0
			while(imgs[i]) {
			
			imgs[i].onmouseover = function() {
				switchImage(this);
			}
			imgs[i].onmouseout = function() {
				revertimage(this);
			}
			i++;	
			}
	}
	
	function currentNav(rootName) {	
	root = document.getElementById(rootName);
			hnode = toolbox_nodes_getActiveLink(root,location);
			inode = toolbox_nodes_getFirstOf(hnode,'IMG');
			var nSrc = new String(inode.src);
			inode.src = nSrc.replace('_up','_over');
			inode.onmouseout=function(){}
	}
			
	function switchImage(obj) {	
	oldsrc = new String(obj.src);
	obj.src = oldsrc.replace('_up','_over');
	obj.lastsrc = oldsrc;	
	}
	
	function showSub(objID) {
		obj = document.getElementById(objID);
		obj.style.display="block";
	}
	
	function manualActive(objID) {
			obj = document.getElementById(objID);
			switchImage(obj);
			obj.onmouseout = function() { }
	}
	
	function revertimage(obj) {
		obj.src = obj.lastsrc;
	}
	
	function writeEA() {
		
	document.write('<a href="mailto:'+'info'+'@'+'wannabanna.com">info'+'@'+'wannabanna.com</a>');
		
	}

