/*
programmed by: flatline - 11-06-2004
made with: textpad
version: 0.9
*/
// fuer kirsten dritte funktion entfernt aber nicht umbenannt
function tripleStateButton( name, src1, src2, tip )
{
	this.name = name;
	this.tip  = tip;
	this.images = new Array();
	this.images["off"] = new Image();
	this.images["off"].src = src1;
	this.images["on"] = new Image();
	this.images["on"].src = src2;

	// methoden
	this.off    = tSBTurnOff;
	this.on     = tSBTurnOn;
}

function tSBTurnOff()
{
	if ( document.images )
		document.images[this.name].src = this.images["off"].src;

	if ( this.tip != null )
		window.status = window.defaultStatus;

	return true;
}

function tSBTurnOn()
{
	if ( document.images )
		document.images[this.name].src = this.images["on"].src;

	if ( this.tip != null )
		window.status = this.tip;

	return true;
}
