function RolloverButton( )
{
	
	
}

RolloverButton.prototype.preload = function( imageName, imagePath, imageType )
{
	
	this.imageName = imageName;
	this.imagePath = imagePath;
	this.imageType = imageType;
	
	this.img = new Image();
	this.img.src = this.imagePath+this.imageName+'_over.'+this.imageType;
}

RolloverButton.prototype.rollover = function()
{
	over = new Image();
	over.src = this.imagePath+this.imageName+'_over.'+this.imageType;
	
	if (document.images)
	{
    	document.getElementById(this.imageName).src = over.src;
	}
}

RolloverButton.prototype.rollout = function()
{
	out = new Image();
	out.src = this.imagePath+this.imageName+'.'+this.imageType
	
	if (document.images)
	{
    	document.getElementById(this.imageName).src =  out.src;
	}
}
