var show_behaviour = {
    init : function (winWr)
    {
        this.winWr = winWr ? winWr : _wrapper;

        this.lastZn = null;
        this.lastElm = null;
        this.winWr.setOnloadListener(this);
    },

    onload : function(evtWr)
    {
        var i;
        for (var i=1; i<10;  i++) {
            if (!this.winWr.checkElement("elm_"+i)) {
                break;
            }
            this.winWr.getElement("elm_"+i).addListener(this, "onclick", "onclickVacType").id = i;

        }
    },

    onclickVacType : function(evtWr, data)
    {
        var div = this.winWr.getElement("zn_"+data['id']);

        if (!this.lastZn) {
            this.lastZn = this.winWr.getElement("zn_1");
            this.lastElm = this.winWr.getElement("elm_1");
        }

        this.lastZn.invDisplay();
        this.lastZn = div;
        div.invDisplay();

        this.lastElm.removeClass("current_elm");
        evtWr.elmWr.addClass("current_elm");
        this.lastElm = evtWr.elmWr;
    }

}
