		
function info_ukryj(id){ 								
	var  info= document.getElementById(id);								
	if (info){										
	info.className='zwin';
	}
     }
							
							
function info_pokaz(id){								
         var  info= document.getElementById(id);
         if (info){
            info.className='podpowiedz';
            }
      }					
//----------------------------------------- funkcje do pozycjonowania

function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	var printstring = '';
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			printstring += ' element ' + obj.tagName + ' has ' + obj.offsetTop;
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;

	return curtop;
}


function help_p(obj,lyr)
{
	var newX = findPosX(obj);
	var newY = findPosY(obj);
	
	var x = document.getElementById(lyr);
	x.style.top = (newY+10) + 'px';       //o obiektu (obrazka)10 pixeli  w dół i
	x.style.left = (newX+30) + 'px';      //30 pikesli w prawo
	x.className='podpowiedz';
	
}


function help_l(obj,lyr)
{
	var newX = findPosX(obj);
	var newY = findPosY(obj);
	
	var x = document.getElementById(lyr);
	x.style.top = (newY-10) + 'px';
	x.style.left = (newX-380) + 'px';
	x.className='podpowiedz';
	
}					
