/* GMT JavaScript Document */


/* BEGIN CHANGE IMAGE SCRIPTS */
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages(imgName,imgSrc) {
	if (document.images && (preloadFlag == true)) {
		document.getElementById(imgName).src = imgSrc;
	}
}
/* END CHANGE IMAGE SCRIPTS */

/* BEGIN IMAGE PRELOAD SCRIPT */
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		btn_aboutus_over = newImage("images/btn_aboutus-over.gif");
		btn_services_over = newImage("images/btn_services-over.gif");
		btn_careers_over = newImage("images/btn_careers-over.gif");
		btn_info_over = newImage("images/btn_info-over.gif");
		preloadFlag = true;
	}
}

/* BEGIN OPEN CALC SCRIPT */
function openCalc(url) {
	window.open(url,'','width=600,height=600,left=100,top=50,scrollbars=yes,resizable=yes');
}

/* BEGIN MENU SCRIPT */
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav1");
		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) {
		navRoot = document.getElementById("nav2");
		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) {
		navRoot = document.getElementById("nav3");
		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) {
		navRoot = document.getElementById("nav4");
		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", "");
				}
			}
		}
	}
}

// END MENU SCRIPT -->

