﻿MiniSearch = createSingleton(MiniSearch = {});

MiniSearch.prototype.init = function(args) {
    var filter = this;
	
    this.hide = function() {
        $(this.parentDiv).style.display = "none";        
    };

    this.show = function() {
        $(this.parentDiv).style.display = "";        
    };
    
    this.container = new LeftFilter({ 
        caption: "Modify Search",
        parentDiv: "MiniSearchDiv"
    });
    
	this.layout = {
	    parent: this.container.body
	};
	
	// Mini Search dom-manager
	this.domMgr = new DomMgr(this.layout);
	this.domMgr.create();
	
	this.domMgr.parent.appendChild($("MiniSearchContentsDiv"));
	$("MiniSearchContentsDiv").style.display = "block";
};


