var x = 0; //Starting Location - left
var y = 0; //Starting Location - top
var dest_x = 1850;  //Ending Location - left
var dest_y = 300;  //Ending Location - top
var interval = 1; //Move 10px every initialization
var i = -50;
var j = 0.1;

function moveImage() {
	//Keep on moving the image till the target is achieved
	if(x<dest_x) x = /*x + (Math.abs(Math.sin(i)) * 5)*/ i ;
	/*if(y<dest_y)*/ y = y + (Math.sin(j) * 2);
	i = i + 1;
	j = j + 0.03;

	//Move the image to the new location
	document.getElementById("deltaplano").style.top  = y+'px';
	document.getElementById("deltaplano").style.left = x+'px';

	if ((x+interval < dest_x)/* && (y+interval < dest_y)*/) {
		//Keep on calling this function every 100 microsecond 
		//	till the target location is reached
		window.setTimeout('moveImage()',100);
	}
}
