
function ShowHide(){
    
    this._shown = "";
    this.interval = 0;
    this._element = {};
    this._shown = {};

    this.show = function(element){
        this._element = document.getElementById(element);
        try{
            if(this._shown != this._element){
                try{
                this._shown.style.display = 'none';
                }catch(e){}
            }
        }catch(e){}

        if(this._shown != this._element){
            this._shown = this._element;
        }

        if(this._element.style.display == "none"){
            this._element.style.display = "block";
        }else{
            this._element.style.display = "none";
        }
    }

    this.hide = function(element){
        var _this = this;
       
        this._element = document.getElementById(element);
        clearInterval(this.interval);
        this.interval = setInterval(function(){_this.hide2()}, 100);
       
    }
    
    this.hide2 = function(){
         this._element.style.display = 'none';
         clearInterval(this.interval);
    }

    this.stopHide = function(){
        
            clearInterval(this.interval);
        
        
    }
}

