//this script is to get ie working since it ignores the :hover psuedo class

function initMainNav() {

	if (document.all && document.getElementById) {

		navRoot = document.getElementById("mainnav");

		for (i=0; i<navRoot.childNodes.length; i++) {

			node = navRoot.childNodes[i];

			if (node.nodeName=="DIV") {

				node.onmouseover=function() {

					for (j=0; j<this.childNodes.length; j++) {

						subdiv = this.childNodes[j];

						if (subdiv.nodeName=="UL") {

							subdiv.style.display = 'block';

						}

					}

				}

				node.onmouseout=function() {

					for (j=0; j<this.childNodes.length; j++) {

						subdiv = this.childNodes[j];

						if (subdiv.nodeName=="UL") {

							subdiv.style.display = 'none';

						}

					}

				}

			}

		}

	}

}