//button

function ButtonObject(idCon,idNos,idSel)
{
	// eigenschaften
	this.id        = idCon;
	this.conLayer  = new LayerObject(idCon);
	this.nosLayer  = new LayerObject(idNos);
	this.selLayer  = new LayerObject(idSel);
	this.strHref   = null;
	this.strTarget = null;
	this.bolActive = false;
	// methoden
	this.setButtonHref   = _setButtonHref;
	this.setButtonTarget = _setButtonTarget;
	this.setButtonActive = _setButtonActive;
	this.doButtonAction  = _doButtonAction;
	return;
}

function _setButtonHref(value)
{
	this.strHref = value;
	return;
}

function _setButtonTarget(value)
{
	this.strTarget = value;
	return;
}

function _setButtonActive(value)
{
	if(value)
	{
		this.selLayer.setVisible(true);
		this.nosLayer.setVisible(false);
	}
	else
	{
		if(!this.bolActive)
		{
			this.selLayer.setVisible(false);
			this.nosLayer.setVisible(true);
		}
	}
	return;
}

function _doButtonAction()
{
	this.bolActive = true;
	if(!this.strHref)
	{
		return false;
	}
	if(this.strTarget)
	{
		parent.frames[this.strTarget].location.href = this.strHref;
	}
	else
	{
		location.href = this.strHref;
	}
	return;
}

