function visi(nr, show)
{
	if (document.layers)
	{
		vista = (show == 1) ? 'show' : 'hide'
		document.layers[nr].visibility = vista;
	}
	else if (document.all)
	{
		vista = (show == 1) ? 'visible'	: 'hidden';
		document.all[nr].style.visibility = vista;
	}
	else if (document.getElementById)
	{
		vista = (show == 1) ? 'visible' : 'hidden';
		document.getElementById(nr).style.visibility = vista;
	}
}

function getposition(nr){
	var element = document.getElementById(nr);
	var coords = { x: 0, y: 0};
	while (element) {
		coords.x += element.offsetLeft;
		coords.y += element.offsetTop;
		element = element.offsetParent;
	}
	return coords;
}

function changeposition_x(nr, left){
        var x = left;
        document.getElementById(nr).style.left = x;
}