
<!--
// Hide the menu

function hidemenu(elemName) {
	if (document.all) {
	 	var brVer = navigator.userAgent;
	 	var brVerId = brVer.indexOf('MSIE 4');
		if ( brVerId < 1){
			ypSlideOutMenu.hideMenu(elemName.id);
		}
	}
}

// dynamically locate the coordinates of the menu object
function showmenu(elemName) {
	// ie check
	if (document.all) {
	 	var brVer = navigator.userAgent;
	 	var brVerId = brVer.indexOf('MSIE 4');
		if ( brVerId < 1){
			t = elemName.getBoundingClientRect().top;
			l = elemName.getBoundingClientRect().left;	
			s = document.body.scrollTop;
			w = document.body.scrollLeft;
			last = 0;	
			menuid = elemName.id.substr(elemName.id.indexOf('u')+1, elemName.id.length);
		
			menubox = document.getElementById('topnav').getBoundingClientRect();
			endMenu = document.getElementById(elemName.id).getBoundingClientRect();
			boxMenu = document.getElementById('tblmenu'+ menuid).getBoundingClientRect();
			menuwidth = menubox.right - menubox.left;
			dmboxwidth = boxMenu.right - boxMenu.left;
			menuitem = endMenu.right - endMenu.left;
			menuitemLength = endMenu.right;
			remain  = menuwidth - menuitem;
			//if the menuitem overflows align it to the right
			if((endMenu.left + dmboxwidth)  >  menubox.right){
				oflow = remain + dmboxwidth;
				last = oflow - menuwidth + (-1);
			}
			y = t + s + 22;
			x = l + w - last - 2;	
			divlayer = document.getElementById(elemName.id+"Container");
			divlayer.style.top = y;
			divlayer.style.left = x;
			ypSlideOutMenu.showMenu(elemName.id);
		}
	}
}
-->
