var x = -380;
var out = 0;

function moveitin() {
out = 0;
movein();
}
function movein() {
		if(x<-20) x = x + 2; 
	
	//Move the image to the new location

	document.getElementById("steckbrief").style.left = x+'px';

	if ((x+2 < -20) && (out == 0)) {
		//Keep on calling this function every 100 microsecond 
		//	till the target location is reached
		window.setTimeout('movein()',10);
	}
}

function moveitout() {
	out = 1;
		if(x>-40) window.setTimeout('moveback()',500);
	else {moveback(); }
}

function moveback() {
			if(x>-380) x = x - 2; 
	
	//Move the image to the new location

	document.getElementById("steckbrief").style.left = x+'px';

	if ((x-2 > -380) && (out == 1)) {
		//Keep on calling this function every 100 microsecond 
		//	till the target location is reached
		window.setTimeout('moveback()',20);
	}
	else {out=0;
	}
}