function workingInfoOn()
{
	var infoText = "Proszę czekać...";
	var div = document.getElementById('info');
	setPosition('info',(screen.width/2)-100,(screen.height/2)-200);
	div.style.display = "block";
	div.innerHTML = '<img src="images/icons/wait.gif" style="float:left;margin:0 5px 0 0;" />';
	div.innerHTML += infoText;
}

function workingInfoOff()
{
	var div = document.getElementById('info');
	div.style.display = "none";
}

function setPosition(div,x,y)
{
	var obj = document.getElementById(div);
	obj.style.position = "absolute";

	if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) 
	{
		x += document.body.scrollLeft;
		y += document.body.scrollTop;
	} 
	else if
	( 
		document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		x += document.documentElement.scrollLeft;
		y += document.documentElement.scrollTop;
	}
	obj.style.left = x + "px";
	obj.style.top = y + "px";		
}

function getXY(e) 
{
   var x = (window.Event) ? e.pageX : window.event.clientX;
   var y = (window.Event) ? e.pageY : window.event.clientY;
   
   if (window.navigator.userAgent.indexOf( 'MSIE' ) + 1)
   {
	   if (document.body && ( document.body.scrollLeft || document.body.scrollTop )) 
	   {
    	   x += document.body.scrollLeft;
        	y += document.body.scrollTop;
		} 
		else if (document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop )) 
		{
    	   x += document.documentElement.scrollLeft;
	      y += document.documentElement.scrollTop;
    	}
    	document.getElementById('n3').style.width = "auto";
   }
	document.getElementById("n3").style.left = x + 20 + "px";
	document.getElementById("n3").style.top = y + 20 + "px";
}

function showText(text,div)
{
	document.getElementById(div).style.display = 'block';
	document.getElementById(div).style.posiotion = 'abolute';
	document.getElementById(div).innerHTML = text;
	document.onmousemove = getXY;
}

function hideText(div) { document.getElementById(div).style.display = 'none'; }

