function fixie() 
{
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("menu");
		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", "");
   				}
   			}
  		}
 	}
}

var hiimgs=new Object;

var menuimgnames=[
	'about',
	'cathodes',
	'cnt',
	'cntprop',
	'contact',
	'coverview',
	'display',
	'employ',
	'home',
	'materials',
	'mngt',
	'nanooverv',
	'nanotech',
	'news',
	'news2',
	'press',
	'products',
	'visitinfo',
	'xips',
	'xray'
];

function loadimgs()
{
	var len=menuimgnames.length;
	var i;
	
	for(i=0;i<len;i++){
		var name=menuimgnames[i];
		var path=menuimgdir + name + '_f2.gif';
		hiimgs[name]=new Image;
		hiimgs[name].src=path;
	}
}

function hilight(img)
{
	var ele=document.getElementById(img);
	
	if(ele){
		if(!ele.oSrc){
			ele.oSrc=ele.src;
		}
		ele.src=hiimgs[img].src;
	}
}

function lolight(img)
{
	var ele=document.getElementById(img);
	
	if(ele){
		if(ele.oSrc){
			ele.src=ele.oSrc;
		}
	}
}

function clear_search()
{
	var ele=document.getElementById('search');
	ele.value='';
}

function do_search()
{
	var ele=document.getElementById('searchform');
	ele.submit();
}