function Explosion(px,py,pid, pDivReference){
	this.base = ScreenObject;
	this.base(px,py,"expl",pid,32,32,pDivReference,"expl1_1.gif");

	this.numFrames=5;
	this.curFrame=1;
	
	this.status=0;
	
	this.threshold=1;
	this.counter=0;

	this.draw = function(){
		//overrides parent draw() function for frames...
		if(this.curFrame<=this.numFrames){
			screenRef = $( this.ref + this.id );
			screenRef.src=kImageFolder+"expl1_"+this.curFrame+".gif";
			screenRef.style.left=this.x;
			screenRef.style.top=this.y;
			if(this.counter++>this.threshold){
				this.curFrame++;
				this.counter=0;
			}
		}
		else{
			this.remove();
		}
	}
	
	this.remove=function(){
		this.curFrame=1;
		this.x=-40;this.y=-40;
		this.status=0;
		this.draw();
	}
	
	this.reset=function(px,py,pStatus){
		this.curFrame=1;
		this.x=px;
		this.y=py;
		this.status=pStatus;
		this.draw();
	}
}
//Explosion.protoype = new ScreenObject; //inherits from screenobject
