// to cater for customised submenu items to show onmouseover 
//function calls are from navigation.xsl
//originally display is hidden by css although the siteconf.xml sets the subitems to be shown.
//INFO: js is used instead of just css to show and hide items on hover because IE6 can't do it
//IMPORTANT: only works for menu with the folder as parent (see navigation document)
//IMPORTANT: in siteconf.xml, contextualised menu MUST BE FALSE  

function displaySubItems(item) {
	var navtree = document.getElementById(item);
	var subitems = navtree.getElementsByTagName('ul');
	subitems[0].style.display = 'block';
}

function hideSubItems(item) {
	var navtree = document.getElementById(item);
	var subitems = navtree.getElementsByTagName('ul');
	subitems[0].style.display = 'none';	
}

function setSecondaryNav(item) {
	var navtree = document.getElementById(item);
	var subitems = navtree.getElementsByTagName('ul');
	//alert(subitems[0]);
}