function InitSwap( Name, OffPicture, OnPicture, szStatus)
{
	this.Name           = Name;
	this.OffPicture     = new Image();
	this.OffPicture.src = OffPicture;
	this.OnPicture      = new Image();
	this.OnPicture.src  = OnPicture;
	this.szStatus       = szStatus;
	this.Swap           = SwapImage;
} /* end of InitSwap */

function SwapImage( bFlag)
{
	if( document.images[this.Name] != null)
	{
		if( bFlag)
		{
			document.images[this.Name].src = this.OnPicture.src;
			self.status = this.szStatus;
			return true;
		}
		else
		{
			document.images[this.Name].src = this.OffPicture.src;
		}
	}
} /* end of Swap */
