/*
var oTR =
	{
		UWAGI
	}
*/
strTooltipIcon = 'egzemplarze_info/ico_info.gif';

$(function()
{
	$('.title_info_from_parent').each(function(iIndex)
	{
		// get title
		var strTit;
		try
		{
			strTit = this.parentNode.getAttribute('title');
			if (strTit.length<1)
			{
				return;
			}
		}
		catch (e) { return; }
		
		// remove title
		this.parentNode.setAttribute('title', '');
		

		// basic
		var elContainer, nel;
		var strCurID = 'info_div_'+iIndex;

		// add info show-er
		elContainer = this;
		nel = document.createElement('span');
		nel.className = 'info_div_show_container';
		$(nel).hover(
			function() { $('#'+strCurID).stop(true,true).show('fast'); }
			,
			function() { $('#'+strCurID).stop(true,true).hide(); }
		);
		nel.innerHTML = ' (<a href="javascript:void()">'+oTR.UWAGI+' <img src="'+strTooltipIcon+'" alt=" " title=""></a>)';
		elContainer.appendChild(nel);
		
		// add info msg
		elContainer = nel;
		nel = document.createElement('span');
		nel.className = 'info_div_container';
		nel.innerHTML = '<span id="'+strCurID+'" class="info_div"><strong>'+oTR.UWAGI+'</strong>: '+strTit+'</span>';
		elContainer.appendChild(nel);
	})
})
