/**include
//_javascript/debug.js;
*/
var show_menu = {
    init : function (aMenu, winWr)
    {
        this.winWr = winWr ? winWr : _wrapper;
		this.aMenu = aMenu;
        this.winWr.createStyle(".jsHide", "display:none;");
        this.winWr.setOnloadListener(this);
    },

    onload : function(evtWr)
    {
        for (var id in this.aMenu) {
            var li = this.winWr.getElement(this.aMenu[id]);
            this.winWr.getElmWrapper(li.elm.firstChild).addListener(this, "onclick");
        }
    },

    onclick : function(evtWr, data)
    {
        evtWr.eventDrop();
        ul = this.winWr.getElmWrapper(evtWr.elmWr.elm.parentNode.lastChild);
       // prop(ul)
        if(ul.isDisplay()) {
            ul.addClass("jsHide");
        } else {
            ul.removeClass("jsHide");
        }

    }

}
