drag = 0;
move = 0;

function setDiv(dragger)
{
dragDiv = dragger;
drag = 1;
}

function startdrag()
{
window.document.onmousedown = mouseDown;
window.document.onmouseup = mouseUp;
window.document.onmousemove = mouseMove;
window.document.ondragstart = mouseEnd;
}

function mouseDown()
{
if (drag==1)
{
clickleft = window.event.x - parseInt(dragDiv.style.left);
clicktop = window.event.y - parseInt(dragDiv.style.top);
move = 1;
}
}

function mouseEnd()
{
window.event.returnValue = false;
}

function mouseMove()
{
if (move==1)
{
dragDiv.style.left = window.event.x - clickleft;
dragDiv.style.top = window.event.y - clicktop;
}
}

function mouseUp()
{
move = 0
}

	function tancaLogo(id)
	{
		id.style.visibility = "hidden";
	}
