
function ShowPresenter(element, container)
{
    element.style.display = '';
    var elementBounds = Sys.UI.DomElement.getBounds(element);
    var containerBounds = Sys.UI.DomElement.getBounds(container);
    element.style.display = 'none';

    if (elementBounds.y + elementBounds.height > containerBounds.y + containerBounds.height)
    {
        element.style.top = (elementBounds.height + 20) * -1 + 'px';
    }

    element.style.display = '';
}

function HidePresenter(element)
{
    element.style.display = 'none';
    element.style.top = 0;
}

if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();