﻿startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		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", "");
				}
			}
		}
	}



	if (document.all&&document.getElementById) {
		navRoot2 = document.getElementById("nav2");
		for (i=0; i<navRoot2.childNodes.length; i++) {
			node2 = navRoot2.childNodes[i];
			if (node2.nodeName=="LI") {
				node2.onmouseover=function() {
					this.className+=" over";
				}
				node2.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}

	if (document.all&&document.getElementById) {
		navRoot3 = document.getElementById("nav3");
		for (i=0; i<navRoot3.childNodes.length; i++) {
			node3 = navRoot3.childNodes[i];
			if (node3.nodeName=="LI") {
				node3.onmouseover=function() {
					this.className+=" over";
				}
				node3.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}

	if (document.all&&document.getElementById) {
		navRoot4 = document.getElementById("nav4");
		for (i=0; i<navRoot4.childNodes.length; i++) {
			node4 = navRoot4.childNodes[i];
			if (node4.nodeName=="LI") {
				node4.onmouseover=function() {
					this.className+=" over";
				}
				node4.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}



}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
preloadImages = function() {
	if (document.images) {
		SearchButton_over = newImage("/gl_images/newimages/searchbutton-over.gif");
		preloadFlag = true;
	}
}


