function Button(title)
{
	this.title = title;
	
	extend(this, Widget);
}

Button.prototype = new Widget;

Button.prototype.createDOMContainer = function()
{
	var theme = Theme.getCurrentTheme();
	var skin = (theme ? theme.getSkin(this.getWidgetName()) : null);
	
	if(skin)
	{
		return document.createElement("div");
	} else
	{
		return document.createElement("button");
	}
};

Button.prototype.initialize = function()
{
	Widget.prototype.initialize.apply(this);
	
	this.domContainer.value = this.title;
}

Button.prototype.toString = function()
{
	return "Widget/Button [title = " + title + "]";
}

Button.prototype.getWidgetName = function()
{
	return "button";
}
