﻿
/******************************************************************************************************************************/
/****************************************** BANNER START **********************************************************************/
/******************************************************************************************************************************/

MST.Controls.Banner.ChangeButton = function(newBtn)
{
    this.CurrentButton.className = "normal";
    this.CurrentButton = newBtn;
    this.CurrentButton.className = "current";
}


MST.Controls.Banner.FindContent = function(obj, contentid)
{
    var wrapper = MST.Common.FindParentById(
        obj
        , "content");
    
    var main_banner = MST.Common.FindDirectChildById(wrapper, ["main_banner"])

    return MST.Common.FindDirectChildById(
        main_banner
        , contentid);
}

/******************************************************************************************************************************/
/****************************************** BANNER END ************************************************************************/
/******************************************************************************************************************************/
/******************************************************************************************************************************/
/****************************************** POPUP START ***********************************************************************/
/******************************************************************************************************************************/


MST.Controls.Popup.SetDisplay = function(display)
{
    this.FindPopup().style.display = display;
}

/******************************************************************************************************************************/
/****************************************** POPUP END *************************************************************************/
/******************************************************************************************************************************/
