Particle3D=function(a){THREE.Particle.call(this);this.material=a instanceof Array?a:[a];this.velocity=new THREE.Vector3(0,-8,0);this.velocity.rotateX(randomRange(-45,45));this.velocity.rotateY(randomRange(0,360));this.gravity=new THREE.Vector3(0,0,0);this.drag=1};Particle3D.prototype=new THREE.Particle();Particle3D.prototype.constructor=Particle3D;Particle3D.prototype.update=function(){this.velocity.multiplyScalar(this.drag);this.velocity.addSelf(this.gravity);this.position.addSelf(this.velocity)};var TO_RADIANS=Math.PI/180;THREE.Vector3.prototype.rotateY=function(c){cosRY=Math.cos(c*TO_RADIANS);sinRY=Math.sin(c*TO_RADIANS);var a=this.z;var b=this.x;this.x=(b*cosRY)+(a*sinRY);this.z=(b*-sinRY)+(a*cosRY)};THREE.Vector3.prototype.rotateX=function(c){cosRY=Math.cos(c*TO_RADIANS);sinRY=Math.sin(c*TO_RADIANS);var a=this.z;var b=this.y;this.y=(b*cosRY)+(a*sinRY);this.z=(b*-sinRY)+(a*cosRY)};THREE.Vector3.prototype.rotateZ=function(c){cosRY=Math.cos(c*TO_RADIANS);sinRY=Math.sin(c*TO_RADIANS);var b=this.x;var a=this.y;this.y=(a*cosRY)+(b*sinRY);this.x=(a*-sinRY)+(b*cosRY)};function randomRange(b,a){return((Math.random()*(a-b))+b)}; 
