activateTopNav = function() {	

	if (document.getElementById && document.getElementById("topnav")) {
		navRoot = document.getElementById("topnav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="DIV") {
				if (document.all && document.getElementById) {
					node.onmouseover=function() {
						this.className+="over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace("over", "");
					}
				}
				navRoot2 = node;
				for (j=0; j<navRoot2.childNodes.length; j++) {
					node2 = navRoot2.childNodes[j];
					if (node2.nodeName == "UL") {
						navRoot3 = node2;
						var m = 0;
						for (k=0; k<navRoot3.childNodes.length; k++) {
							node3 = navRoot3.childNodes[k];
							node3.onmouseover=function() {
								if (document.all && document.getElementById) {
									this.className+="over";
								}
								tempArray = this.id.split("_");
							}
							if (document.all && document.getElementById) {
								node3.onmouseout=function() {
									this.className=this.className.replace("over", "");
								}
							}
						}
					}
				}
			}
		}
	}
	
	


	if (document.all && document.getElementById && document.getElementById("leftsubnav")) {
		leftNavRoot = document.getElementById("leftsubnav");
		liArray = leftNavRoot.getElementsByTagName('li');
		for (n=0; n<liArray.length; n++) {
			liArray[n].onmouseover=function() {
				this.className+="over";
			}
			liArray[n].onmouseout=function() {
				this.className=this.className.replace("over", "");
			}
		}
	}
}
var movieName = "navBanner";

function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  } else {
    return document[movieName]
  }
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  // First make sure the movie's defined.
  if (typeof(theMovie) != "undefined") {
    // If it is, check how much of it is loaded.
    return theMovie.PercentLoaded() == 100;
  } else {
    // If the movie isn't defined, it's not loaded.
    return false;
  }
}


function playmovie(x) {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).GotoFrame(x);
  }
	thisMovie(movieName).Play();
}
window.onload=activateTopNav;