// Create the tooltips only on document load
$(document).ready(function() 
{
   // Notice the use of the each() method to acquire access to each elements attributes
   $('a[tip]').each(function()
   {
   var slowo = $(this).attr('tip');	//'agatis' wczytuje atrybut tip z nazwa ze slownika
      $(this).qtip({
         content: 'Ładowanie słownika...',

		api: {
			onRender: function() {
			
			var x = '/go/_files/?file=slownik.html .' + slowo;
				this.elements.content.load(x);
			}
		},			
        
		style: {
			width: 400,
			background: '#cccfff',
			color: 'black',
			tip: true,
			border: {
				width: 1,
				radius: 3,
				color: '#cccccf'
			}
		}
		
      });
   });
});
