var listMenu = new FSMenu('listMenu', true, 'display', 'block', 'none');

//listMenu.animations[listMenu.animations.length] = FSMenu.animFade;
//listMenu.animations[listMenu.animations.length] = FSMenu.animSwipeDown;
listMenu.cssLitClass = "helixCMSListMenuLinkHighlightedHelixOnState";
var arrow = null;

if (document.createElement && document.documentElement)
{
 //arrow = document.createElement('div');
 // Feel free to replace the above two lines with these for a small arrow image...
 arrow = document.createElement('img');
 arrow.src = '/App_Themes/divestcomain/img/submenu_arrow_off.gif';
 arrow.style.borderWidth = '0';
 //arrow.innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;";
 //arrow.style.backgroundImage = "url(/App_Themes/divestcomain/img/submenu_arrow_off.gif)";
 arrow.className = 'subind';
 //arrow.style.backgroundRepeat = "no-repeat";
}
addEvent(window, 'load', new Function('listMenu.activateMenu("helixMenuSystem", arrow)'));

function SetArrowWhite(el)
{
        // Only the first one is the image we want
		var list = el.getElementsByTagName("img");
		if(list.length > 0)
       		list[0].src = '/App_Themes/divestcomain/img/submenu_arrow_over.gif';
}

function SetArrowGrey(el)
{
        // Only the first one is the image we want
		var list = el.getElementsByTagName("img");
       	if(list.length > 0)
			list[0].src = '/App_Themes/divestcomain/img/submenu_arrow_off.gif';
}

function DoNothing()
{
	return false;
}