
	var vWindowWidth
	var vContentWidth
	var vNavbarWidth
	var vTitleBarLeft
	var vRightOffset

	vContentWidth = 960;
	vRightOffset = 40;

	document.getElementById('NavbarDiv').style.width = vContentWidth;

	var vMenu = new Array()


	function ShowMenu(index) {
		MenuTab = "MenuTab_" + index;
		DropDown = "SubMenu_" + index;

		window.clearInterval(vMenu[index]);

		vParentTop = document.getElementById('NavbarDiv').offsetTop;
		vParentLeft = document.getElementById('MenuNavBar').offsetLeft;

		vChildTop = document.getElementById(MenuTab).offsetTop;
		vChildLeft = document.getElementById(MenuTab).offsetLeft;

		vChildHeight = document.getElementById(MenuTab).offsetHeight;
		vChildWidth = document.getElementById(MenuTab).offsetWidth;

		vWindowWidth = document.body.clientWidth;
		vLeftOffset = (vWindowWidth - vContentWidth)/2;

		//alert ("vParentLeft="+vParentLeft+"\nvChildLeft="+vChildLeft+"\nvChildWidth="+vChildWidth);

		document.getElementById(DropDown).style.top = (vParentTop + vChildTop + vChildHeight) + "px";
		document.getElementById(DropDown).style.left = (vParentLeft + vChildLeft + vLeftOffset) + "px";
		document.getElementById(DropDown).style.width = (vChildWidth) + "px";
		document.getElementById(DropDown).style.visibility = 'visible';

		document.getElementById(MenuTab).className  = 'DropDown-tab-over';
	}


	function HideMenu(index) {
		MenuTab = "MenuTab_" + index;
		DropDown = "SubMenu_" + index;
		window.clearInterval(vMenu[index]);
		document.getElementById(MenuTab).className  = 'DropDown-tab';
		vMenu[index] = window.setInterval("document.getElementById('"+DropDown+"').style.visibility = 'hidden';", 100);
	}


	function MaintainMenu(index) {
		MenuTab = "MenuTab_" + index;
		DropDown = "SubMenu_" + index;
		window.clearInterval(vMenu[index]);
		document.getElementById(MenuTab).className  = 'DropDown-tab-over';
	}


	function MenuCellOver(index) {
		MenuCell = "MenuCell_" + index;
		document.getElementById(MenuCell).className  = 'DropDown-MenuCell-over';
	}


	function MenuCellOut(index,url) {
		MenuCell = "MenuCell_" + index;
		document.getElementById(MenuCell).className  = 'DropDown-MenuCell';
	}



