// for updating the text
function kozepreugrik(x,y) {

		$('motor').kozepreugrik(x, y);

}

function logobetolt (layerid) {

		$('motor').katbetolt(layerid);

}

function egylogobetolt (logoid) {

		$('motor').egylogobetolt(logoid, true);
	
}

function gotoXY(X, Y, mit) {
	X = parseInt(X);
	Y = parseInt(Y);
	
	if (!$('motor')) {
		window.setTimeout("gotoXY(" + X + ", " + Y + ", '" + mit + "')", 4000)
	}
	else
	{
		$('motor').utcakeres(X, Y, mit);
		//kozepreugrik(X,Y);
	}
}
