<!--
function __ajaxTimer(ImageBoxID, frameTime)	{
	this.ImageBoxID = ImageBoxID;
	this.intervalID = null;
	this.frameCount = 0;
	this.frameTime = (!frameTime)?100:frameTime;	//set to 100ms if no define frametime
	this.animating = false;
}

__ajaxTimer.prototype.advanceFrame = function ()	{
	if (this.frameCount>12)	this.frameCount -= 9;	//trims frame count if beyond 12
	$(this.ImageBoxID).style.backgroundPosition = (30 * this.frameCount * -1) + 'px 0';
	this.frameCount++;
	return;
}
	
__ajaxTimer.prototype.startAnimation = function ()	{
	this.animating = true;
	this.frameCount = 0;	//set timer to 0
	this.intervalID = setInterval(this.advanceFrame.bind(this), this.frameTime);
}

__ajaxTimer.prototype.stopAnimation = function ()	{
	this.animating = false;
	clearInterval (this.intervalID);
	$(this.ImageBoxID).style.backgroundPosition = '0px 0px';
}
//-->
