Bw.Widgets.View = 
{
	superclassName: "Bw.Widgets.Widget",
	selfclassName: "Bw.Widgets.View",
	
	create: function (opened)
	{
		var obj = document.createElement ('div');
		
		obj.setAttribute ("opened", opened);
		
		Bw.Core.bootstrap (obj, "Bw.Widgets.View");
		
		return obj;
	},
	
	initialize: function ()
	{
		Bw.Widgets.Widget.initialize.call (this);			
		
		this.hide();
		this.bootstrapped = false;
		
		var v = this.getAttribute ("opened");
		if (v == 'true' || v == true) {
			this.show();	
		}
	
		return false;
	},
	
	show: function ()
	{
		Bw.Widgets.Widget.show.call (this);
		
		if (!this.bootstrapped)
		{
			Bw.Core.bootstrap (this);
			this.bootstrapped = true;
		}
	},

	clear: function ()
	{
		this.innerHTML = '';
	}
};


