mEvent_old = mEvent;
mEvent = function (m, i, e) {
    for (var menu in window.CMenus)
        if (menu != m)
            window.CMenus[menu].hide();
        mEvent_old(m, i, e);
}

var STYLE = {
    border:0,           // item's border width, pixels; zero means "none"
    shadow:0,           // item's shadow size, pixels; zero means "none"
    color:{
        border:"#770011",   // color of the item border, if any
        shadow: null,   // color of the item shadow, if any
        bgON:"#991133",       // background color for the items
        bgOVER:null    // background color for the item which is under mouse right now
    },
    css:{
        ON:"clsCMOn",       // CSS class for items
        OVER:"clsCMOver"    // CSS class  for item which is under mouse
    }
};

var zSTYLE = {
    border:1,           // item's border width, pixels; zero means "none"
    shadow:0,           // item's shadow size, pixels; zero means "none"
    borders:[1,1,1,1],
    color:{
        border:"#770011",   // color of the item border, if any
        shadow: null,   // color of the item shadow, if any
        bgON:"#991133",       // background color for the items
        bgOVER:"#000000"    // background color for the item which is under mouse right now
    },
    css:{
        ON:"clsCMOn1",       // CSS class for items
        OVER:"clsCMOverDown1"    // CSS class  for item which is under mouse
    }
};

