/* Shared JS fucntions for Culham site *//* The core pages in the site use a conditional comment for IE to call this JS file once the DOM is loaded so thatthe hover behaviour is added to the CSS pop-down menu:<!--[if IE]>  <script defer src="../../../culham_shared.js"></script><![endif]-->*//* Functions to add rollovers to the Culham top-bar menu */function IEHoverPseudo() { // add hover functionality in IE	var navItems = document.getElementById("primary-nav").getElementsByTagName("li");	for (var i=0; i<navItems.length; i++) {		if(navItems[i].className == "menuparent") {			navItems[i].onmouseover=function() { this.className += " over"; }			navItems[i].onmouseout=function() { this.className = "menuparent"; }		}	}}function init() {	if(document.all) { // test for IE browsers		IEHoverPseudo(); // call IE hover script	}}init(); // call init function
