function ExtractPathfile(data)
{
	var m = data.match(/(.*)[\/\\]([^\/\\]+)\.\w+$/);
	return {path: m[1], file: m[2]}
}


function MenuItemOver(obj)
{
	var itemId = obj.id;
	var itemSrc = obj.src;
	var itemClassName = obj.className;
	var itemPathFile = ExtractPathfile(itemSrc);
	if(itemClassName.indexOf('Active') < 0)
	{
		obj.src = itemPathFile.path+'/'+itemPathFile.file+'Active.gif';
	} 
	if(itemId != null && itemId != '')
	{
		var dropDownId = 'DropDown'+itemId.replace('MenuItem','');
		var dropDownObj = document.getElementById(dropDownId);
		if(dropDownObj != null && dropDownObj != 'undefined')
		{
			var menuItemPos = getObjPosition(obj);
			dropDownObj.style.left = (menuItemPos.x -4) + 'px';
			dropDownObj.style.top = (menuItemPos.y + 34) + 'px';
			dropDownObj.style.display = 'block';
		}
	}
}

function MenuItemOut(obj)
{
	var itemId = obj.id;
	var itemSrc = obj.src;
	var itemClassName = obj.className;
	var itemPathFile = ExtractPathfile(itemSrc);
	if(itemClassName.indexOf('Active') < 0)
	{
		obj.src = itemPathFile.path+'/'+itemPathFile.file.replace('Active','')+'.gif';
	} 
	if(itemId != null && itemId != '')
	{
		var dropDownId = 'DropDown'+itemId.replace('MenuItem','');
		var dropDownObj = document.getElementById(dropDownId);
		if(dropDownObj != null && dropDownObj != 'undefined')
		{
			dropDownObj.style.display = 'none';
		}
	}
	
}

function DropDownOver(obj)
{
	obj.style.display = 'block';
}

function DropDownOut(obj)
{
	obj.style.display = 'none';
}