function HiderisClass(){

	this.h		= null; // header instance
	this.aTab	= null;	// active tab
	this.opened = false;
	
	/*
	*	Construct div and show
	*/
	this._init = function() {
		$('.bg-holder').remove();
		$('#header').append(jQuery('<div class="bg-holder"></div>'));
		this.h = jQuery('.bg-holder');
	}
	
	
	/*
	*	Lunches all other event listeners and closes hideris
	*/
	this.allBackToWork = function() {
		var owner = this;
		this.h.css({
			display: 'none'
		});

		owner.h.remove();
		owner.opened = false;
		hideShade();
		rebindAll();
		
		$('.bg-holder').remove();
	}

	
	/*
	*	Loads Tab HTML
	*/
	this.loadTab = function( tab, params ) {
		
		this.opened = true;
		coolMenu.hide();
		var owner = this;
		showShade('hideris');
		connectingShow(); 
		
		if(!tab)
		{
			tab = 0;
		}
		this.aTab = parseInt(tab);
		var d = 'tab=' + this.aTab + (params!=undefined ? params : '');
		
		$.ajax({
			type: "POST",
			url: "/ll/common/_ajax_hideris",
			data: d,
			beforeSend: function(){ loadedJSON = false; },
			success: function( out ){
				loadedJSON = true;
				connectingHide();
				jQuery(owner.h)
					.html(out)
					.css({display : 'block'});
				jQuery('.bg-header .bg-close').click(function(){
					owner.allBackToWork();
				});
			}
		});	
		
	}
}
