function pageOverlay() {

	var container = document.body;
	if (null == (this.container = $(container))) throw("container is not valid");
	this.overlay = new Element('div', { 'class': 'overlay' }).hide();
	Event.observe(this.overlay, 'click', this.hide.bindAsEventListener(this));
	this.container.insert(this.overlay);
}

pageOverlay.prototype.show = function() {
	Effect.BlindDown('resourceBar',{duration:0.25});
new Effect.Appear(this.overlay, { duration: 0.5,  to: 0.5 });
	return this;
};
pageOverlay.prototype.hide = function(event) {	
	resetSearch();
	Effect.BlindUp('resourceBar',{duration:0.25});
	new Effect.Fade(this.overlay, { duration: 0.5 });
	return this;
};