/* menu stuff */
/* $Id: menu.js,v 1.2 2007/07/10 00:22:16 pete Exp pete $ */

var preloaded = new Array();
function preload_images() {
    for (var i = 0; i < arguments.length; i++){
        preloaded[i] = document.createElement('img');
        preloaded[i].setAttribute('src',arguments[i]);
    };
};
preload_images(
    './images/navabout.gif',
    './images/navabout_over.gif',
    './images/navaccntmgmnt.gif',
    './images/navaccntmgmnt_over.gif',
    './images/navadvantage.gif',
    './images/navadvantage_over.gif',
    './images/navcreative.gif',
    './images/navcreative_over.gif',
    './images/navcustomers.gif',
    './images/navcustomers_over.gif',
    './images/navcustserv.gif',
    './images/navcustserv_over.gif',
    './images/navdcreleases.gif',
    './images/navdcreleases_over.gif',
    './images/navdiecast.gif',
    './images/navdiecast_over.gif',
    './images/navglobal.gif',
    './images/navglobal_over.gif',
    './images/navinfotech.gif',
    './images/navinfotech_over.gif',
    './images/navinthenews.gif',
    './images/navinthenews_over.gif',
    './images/navnews.gif',
    './images/navnews_over.gif',
    './images/navoemopps.gif',
    './images/navoemopps_over.gif',
    './images/navpreschool.gif',
    './images/navpreschool_over.gif',
    './images/navprodsel.gif',
    './images/navprodsel_over.gif',
    './images/navproducts.gif',
    './images/navproducts_over.gif',
    './images/navprograms.gif',
    './images/navprograms_over.gif',
    './images/navretailopps.gif',
    './images/navretailopps_over.gif',
    './images/navstudies.gif',
    './images/navstudies_over.gif',
    './images/navtruplay.gif',
    './images/navtruplay_over.gif',
    './images/navtruplayjr.gif',
    './images/navtruplayjr_over.gif',
    './images/navwaredist.gif',
    './images/navwaredist_over.gif'
);






navList = function() {
	if (document.all&&document.getElementById) {
		var menus = document.getElementById("nav").getElementsByTagName("ul");
		/*Main Navs*/
		for (i = 0; menus[i]; i++) {
			menus[i].parentNode.onmouseover = function() {
				this.className += " over";
				this.style.zIndex=90;
			}
			menus[i].parentNode.onmouseout = function() {
				this.style.zIndex=80;
				this.className = this.className.replace(" over", "");
			}
		}
	}
}

//window.onload=navList;

