function showMenu( id, parent )
{
	var el = null;
	var parent_el = null;

	el = document.getElementById( id );
	if(parent != null) {
	    parent_el = document.getElementById( parent );
	}
	if( el )
	{
		var isIE8 = false;
		var isIE7 = false;
		if(navigator.appName == "Microsoft Internet Explorer")
		{
            var ua = navigator.userAgent;        
            var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
            if (re.exec(ua) != null) {
                rv = parseFloat(RegExp.$1);
                if(rv == 8.0) {
                    isIE8 = true;
                }
                if(rv == 7.0) {
                    isIE7 = true;
                }
            }
		}
		el.style.display = 'block';
		el.style.zIndex = '100';
		if(parent_el != null && !isIE8) {
		    el.style.left = parent_el.offsetLeft;
		    el.style.top = parent_el.offsetTop;
		    
		    if(isIE7) {
		        el.style.top = parent_el.offsetTop - 2;
		    }
		} else {
		    
		}
	}
	else
	{
		alert( 'Unable to find element: ' + id );
		return( false );
	}

	return( true );
}

function hideMenu( id )
{
	var el = null;

	el = document.getElementById( id );
	if( el )
	{
		el.style.display = 'none';
	}
	else
	{
		alert( 'Unable to find element: ' + id );
		return( false );
	}

	return( true );
}

function hideMenus( prefix )
{
	var el = null;
	var i = 1;

	while( el = document.getElementById( prefix + i++ ) )
		el.style.display = 'none';

	return( true );
}

