			function movingObject( name ) {
				this.name = name;
				this.id = name;
				
				this.a0 = Math.random()*500;
				this.b0 = Math.random()*1000;
				
				this.i = 0;
				this.direction = Math.random()*360;
				this.a = 0;
				this.b = 0;
				this.dx = 0;
				this.dy = 0;
				
				this.timer = null;
				
				this.object = null;
				
				this.init = function(){
					this.a = this.a0;
					this.b = this.b0;
					this.object = document.getElementById(this.id);
					this.object.style.top = this.a + 'px';;
					this.object.style.left = this.b + 'px';;
					this.start();
				}

				this.move = function (){
					if( parseInt(this.object.style.top) + this.dy > 400 ) this.dy*= -1;
					if( parseInt(this.object.style.left) + this.dy > 800 ) this.dx*= -1;
					this.object.style.top = (parseInt(this.object.style.top) + this.dy) + 'px';
					this.object.style.left = (parseInt(this.object.style.left) + this.dx) + 'px';

					this.a+= 0.05;
					this.b+= 0.05;
					this.i++;
					if( this.i%50==0) {
						this.direction = Math.random()*360;
						//document.getElementById('feedback').innerHTML=Math.round(Math.random())*2-1;
						this.dx = Math.round(Math.random())*2-1 * Math.cos(this.direction);
						this.dy = Math.round(Math.random())*2-1 * Math.sin(this.direction);
					}
					this.timer = setTimeout(this.id+'.move()',40);
				}
				this.start = function (){
					this.move();
				}
				this.stop = function (){
					clearTimeout(this.timer)
				}
				
			}

			function crossHair( name ) {
				this.name = name;
				this.id = name;
				this.i = 0;
				
				this.timer = null;
				
				this.object = null;
				
				this.init = function(){
					this.object = $(this.id);
					
					this.hor=this.object.childElements().first();
					this.ver=this.object.childElements().last();
					
					this.hor.style.height = 100 + 'px';
					this.ver.style.width = 100 + 'px';
					
					this.dx = Math.round(Math.random() );
					this.dy = Math.round(Math.random() );
					this.start();
				}

				this.move = function (){
					if( parseInt(this.hor.style.height) + this.dy > 400 ) this.dy*= -1;
					if( parseInt(this.ver.style.width) + this.dx > 800 ) this.dx*= -1;
					this.hor.style.height = parseInt(this.hor.style.height) + this.dy + 'px';
					this.ver.style.width = parseInt(this.ver.style.width) + this.dx + 'px';
					this.i++;
					if( this.i%50==0) {
						//	document.getElementById('feedback').innerHTML=Math.round(Math.random())*2-1;
						this.dx = Math.round(Math.random())*2-1;
						this.dy = Math.round(Math.random())*2-1;
						
						this.dx *= 2
						this.dy *=2
					}
					this.timer = setTimeout(this.id+'.move()',10);
				}
				this.start = function (){
					this.move();
				}
				this.stop = function (){
					clearTimeout(this.timer)
				}
				
			}


		
//			var cross = new crossHair('cross');
//			cross.init()
