//---StyleOBJECT---------------------------------------------------------------
function StyleObject(obj)
{
	this.obj=obj;
	this.style=obj.style;

	this.hide=_hide;
	this.show=_show;
	this.isVisible=_isVisible;
	
	this.setBgColor=_setBgColor;
	this.getBgColor=_getBgColor;
}


//---COMMON METODS-------------------------------------------------------------
function _hide()
{
	this.style.visibility="hidden";
}  


function _show()
{
	this.style.visibility="inherit";
}  	


function _isVisible()
{
	return (this.style.visibility=="hidden") ? false : true;
}


function _setBgColor(color)
{
	this.style.backgroundColor=color;
}


function _getBgColor()
{
	return this.style.backgroundColor;
}



