if (typeof ps == 'undefined') ps= {};
if (typeof ps.ui == 'undefined') ps.ui= {};

ps.ui.PopupWindow = new Class(
{

	els : {
		main: null
	},

    initialize: function(visible, className)
	{
		this.els = {};
        this.els.main = new Element('div');
		if (className) this.els.main.className = className;
		this.setVisible(visible);
		
		document.body.appendChild(this.els.main);
    },

	getContent : function()
	{
		return this.els.main;
	},

	show : function()
	{
		this.setVisible(true);
	},
	
	hide : function()
	{
		this.setVisible(false);
	},
	
	setVisible : function(visible)
	{
		this.els.main.style.display = (visible) ? '' : 'none';
	}

});
