//Copyright (c) 2008 Anent Software, L.L.C.


function getControl(DOM_ID)
{
	if (document.getElementById)
	{
		// this is the way the standards work
		return document.getElementById(DOM_ID);
	}
		else if (document.all)
	{
		// this is the way old msie versions work
		return document.all[DOM_ID];
	}
		else if (document.layers)
	{
		// this is the way nn4 works
		return document.layers[DOM_ID];
	}
}

//used for main menu ---------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
function swapNavImg(mode, el) {   
    switch (mode)
     {
         case "on":
             el.src = "/Resources/Common/" + el.id + "_on.gif";
             break;
	
	     case "off":
	         el.src = "/Resources/Common/" + el.id + ".gif";
	     break;
    }
}

