// JavaScript Document

var activeObj = null;
var aImgObj = null;
var aMenuItem = 0;

function menuAction(content,imgObj,mItem) 
{
	if (activeObj != null)
	{
		aImgObj.src = menuArr[aMenuItem].src;
		activeObj.style.display = "none";
	}
	
	if (content == "close") 
	{
		document.getElementById("contentbox").style.display = "none";
		document.getElementById("info").style.display = "block";
		
		aImgObj.src = menuArr[aMenuItem].src;
		
		activeObj = null;
		aImgObj = null;
		aMenuItem = 0;
	}
	else 
	{
		activeObj = document.getElementById(content);
		activeObj.style.display = "block";

		document.getElementById("contentbox").style.display = "block";
		document.getElementById("info").style.display = "none";

		if (content == "thanx")
		{
			imgObj = document.getElementById("mci");
			mItem = 1;
		}
		
		aImgObj = imgObj;
		aMenuItem = mItem;	
		menuOver(imgObj,mItem);
	}
}

function menuOver (imgObj,mItem) 
{
	imgObj.src = menuArrOver[mItem].src;
}

function menuOut (imgObj,mItem) 
{
	if (imgObj != aImgObj)
	{
		imgObj.src = menuArr[mItem].src;
	}
}
