function Particle()

{

	this.x = 0;

	this.y = 0;

	this.vx = 0;

	this.vy = 0;

	this.vr = 0;

	this.ix = 0;

	this.iy = 0;

	this.time = 0;

	this.life = 0;

	this.dead = false;


	
this.init = function(x,y,vx,vy,mid)

	{

		this.x = x;

		this.y = y;

		this.vx = ( this.x - (poolX + (pool.width/2)) ) * 2;

		this.vy = vy;

		this.vr = 0;

		this.ix = x;

		this.iy = y;

		this.time = 0;

		this.dead = false;

		this.life = (Math.random()*0.5)+1.2;

	}


	this.render = function()

	{

		context.save();

		context.translate(this.x, this.y);

		context.rotate(this.vr*Math.PI/180);

		context.beginPath();

		context.rect(0, 0, 4, 4);

		context.fillStyle = "#666666"
;
		context.fill();

		context.restore();

	}

}