/**include
//_javascript/debug.js;
*/
var show_report = {
    init : function (sPref, winWr)
    {
        this.winWr = winWr ? winWr : _wrapper;
        this.sPref = sPref;
        this.showBlockId = null;
        this.winWr.createStyle(".jsHide", "display:none;");

        this.winWr.setOnloadListener(this);
    },

    onload : function(evtWr)
    {
        var currentDiv
        for (var i=1; i<10;  i++) {
            if (!this.winWr.checkElement(this.sPref+i)) {
                break;
            }
            currentDiv = this.winWr.getElement(this.sPref+i);
            currentDiv.addListener(this, "onclick", "onclickVacType");
            if (this.showBlockId == this.sPref+i){
                this.winWr.getElmWrapper(currentDiv.elm.nextSibling).show();
            }
        }
    },

    onclickVacType : function(evtWr)
    {
        var div = this.winWr.getElmWrapper(evtWr.elmWr.elm.nextSibling);
        if (div.isDisplay()){
            evtWr.elmWr.removeClass("show_select");
            div.hide();
        } else {
            evtWr.elmWr.addClass("show_select");
            div.show();
        }

    },

    setShowBlock : function($sId)
    {
        this.showBlockId = $sId;
    }

}

