theX = 0;
theY =200;

function startMeUp(){
	timeoutID = setTimeout(animateFoo,100);

}             

function animateFoo(){    
	theX += 4;
	theY +=4;                



	document.getElementById('foo').style.left = (Math.sin(theX/1000)+Math.sin(theX/239)+2)*200+'px';   
	document.getElementById('foo').style.top =  (Math.cos(theY/779)+Math.cos(theY/333)+2)*30+'px';

	document
	//alert(document.getElementById("foo").style.left);
	timeoutID = setTimeout(animateFoo,40);      

}

