aboutOff = new Image();
aboutOff.src = "../pix/menu/about_off.gif";
aboutOn = new Image();
aboutOn.src = "../pix/menu/about_on.gif";

businessOff = new Image();
businessOff.src = "../pix/menu/business_groups_off.gif";
businessOn = new Image();
businessOn.src = "../pix/menu/business_groups_on.gif";

investorOff = new Image();
investorOff.src = "../pix/menu/investor_info_off.gif";
investorOn = new Image();
investorOn.src = "../pix/menu/investor_info_on.gif";

transactionsOff = new Image();
transactionsOff.src = "../pix/menu/transactions_off.gif";
transactionsOn = new Image();
transactionsOn.src = "../pix/menu/transactions_on.gif";

newsOff = new Image();
newsOff.src = "../pix/menu/news_off.gif";
newsOn = new Image();
newsOn.src = "../pix/menu/news_on.gif";

communityOff = new Image();
communityOff.src = "../pix/menu/com_involvement_off.gif";
communityOn = new Image();
communityOn.src = "../pix/menu/com_involvement_on.gif";

carepaymentOff = new Image();
carepaymentOff.src = "../pix/menu/carepayment_off.gif";
carepaymentOn = new Image();
carepaymentOn.src = "../pix/menu/carepayment_on.gif";

careersOff = new Image();
careersOff.src = "../pix/menu/careers_off.gif";
careersOn = new Image();
careersOn.src = "../pix/menu/careers_on.gif";

contactOff = new Image();
contactOff.src = "../pix/menu/contact_off.gif";
contactOn = new Image();
contactOn.src = "../pix/menu/contact_on.gif";

function swingMenu(itemID, whichWay, hideLeft, hideRight) {
	if(whichWay == 'open') {
		if (document.layers) {
			swingCommand = "document." + itemID + ".display = 'block'";
		} else if (document.all) {
			swingCommand = "document.all." + itemID + ".style.display='block';";
		} else if (document.getElementById) {
			swingCommand = "document.getElementById('" + itemID + "').style.display = 'block'";
		}
		eval(swingCommand);
		if (hideLeft != '') {
			if (document.layers) {
				hideLeftCommand = "document." + hideLeft + ".display = 'none'";
			} else if (document.all) {
				hideLeftCommand = "document.all." + hideLeft + ".style.display='none';";
			} else if (document.getElementById) {
				hideLeftCommand = "document.getElementById('" + hideLeft + "').style.display = 'none'";
			}
			eval(hideLeftCommand);
		}
		
		if (hideRight != '') {
			if (document.layers) {
				hideRightCommand = "document." + hideRight + ".display = 'none'";
			} else if (document.all) {
				hideRightCommand = "document.all." + hideRight + ".style.display='none';";
			} else if (document.getElementById) {
				hideRightCommand = "document.getElementById('" + hideRight + "').style.display = 'none'";
			}
			eval(hideRightCommand);
		}	
	} else if (whichWay == 'close') {
		if (document.layers) {
			swingCommand = "document." + itemID + ".display = 'none'";
		} else if (document.all) {
			swingCommand = "document.all." + itemID + ".style.display='none';";
		} else if (document.getElementById) {
			swingCommand = "document.getElementById('" + itemID + "').style.display = 'none'";
		}
		setTimeout("eval(swingCommand)", 350);
	}
}

function closeNeighbors(hideLeft, hideRight) {
	if (hideLeft != '') {
		if (document.layers) {
			hideLeftCommand = "document." + hideLeft + ".display = 'none'";
		} else if (document.all) {
			hideLeftCommand = "document.all." + hideLeft + ".style.display='none';";
		} else if (document.getElementById) {
			hideLeftCommand = "document.getElementById('" + hideLeft + "').style.display = 'none'";
		}
		eval(hideLeftCommand);
	}
	if (hideRight != '') {
		if (document.layers) {
			hideRightCommand = "document." + hideRight + ".display = 'none'";
		} else if (document.all) {
			hideRightCommand = "document.all." + hideRight + ".style.display='none';";
		} else if (document.getElementById) {
			hideRightCommand = "document.getElementById('" + hideRight + "').style.display = 'none'";
		}
		eval(hideRightCommand);
	}
}