var coordX =0;
var coordY =0;

function knutErOver(objname,x,y)
{
	var obj = document.getElementById(objname);
	obj.style.width='270px';
	obj.style.height='auto';
	obj.style.visibility='visible';
	if (x+coordX>=360)
		obj.style.left='-270px';
	else
		obj.style.left='0px';

	if (theimg = document.getElementById('theimg'))
	{
		theimg.style.visibility='hidden';
		theimg.style.height='0px';
	}
	document.getElementById('thumbnail').style.height='150px';
	document.getElementById('thumbnail').src=objname+'_thumb.jpg';
}
function knutErUt(objname,x,y)
{
	var obj = document.getElementById(objname);
	obj.style.visibility='hidden';
	obj.style.width='0px';
	obj.style.height='0px';

	if (theimg = document.getElementById('theimg'))
	{
		theimg.style.visibility='visible';
		theimg.style.height='150px';
	}
	document.getElementById('thumbnail').style.height='0px';
	document.getElementById('thumbnail').src='transparent.gif';
}

function knutMoveBy(x, y)
{
	coordX -= x;
	coordY -= y;
			
	obj = document.getElementById('kart');
	obj.style.top = coordY + 'px';
 	obj.style.left = coordX + 'px';
}

function knutMoveTo(x, y)
{
	coordX = -x;
	coordY = -y;

	obj = document.getElementById('kart');
	obj.style.top = coordY + 'px';
 	obj.style.left = coordX + 'px';
}
