//  ROLLOVER BUTTON OBJECT by Geoff Black
//  v1.1 : 25 Feb 98 : rev 25 Nov 2003 
// ----------------------------------------

// pseudo constants
OFF = 0; ON = 1;

// Begin Flip Method Definition
function Flip(state){
	if(Image){
		if(state == ON){
			document.images[this.dest].src = this.on.src;
		}
		if(state == OFF){
			document.images[this.dest].src = this.off.src;
		}
	}
} // End Flip Method Definition

// **Begin Rollover Object Definition**
function RollOver(dest, on_img, off_img) {
	this.dest = dest;
	this.on = new Image();
	this.off = new Image();
	this.on.src = on_img;
	this.off.src = off_img;
	this.flip = Flip;
} // **End Rollover Object Definition**

// ----------------------------------------

// Begin SetState
function SetState(button, state){
	if(Image){
		button.flip(state);
	}
} // End SetState

