
	/*****************************************************************/

	function uruchomAkordeon(nazwa)
	{
		var pole=$('#akordeonU');
		var wartosc=parseInt(pole.val());
		
	  	$(document).ready(function()
		{
	   	$('#'+nazwa).accordion(
			{
				active:wartosc,
				animated:false,
				change:function(event,ui) 
				{ 
					var indeks=$('#'+nazwa+' h3').index($('#'+nazwa+' h3.ui-state-active'));
					pole.val(indeks);
			 	}	
			});
	  	});
	}
	
	/*****************************************************************/
	
	function wyswietlOknoDialog(id,szerokosc,wysokosc,otworz)
	{
		$(document).ready(function() 
		{
			$('#'+id).dialog(
			{
				width:szerokosc,
				height:wysokosc,
				modal:true,
				autoOpen:otworz,
				resizable:false,
				buttons: 
				{
					'OK':function() 
					{
						$(this).dialog('close');
					}
				}
			});
		});	
	}
	
	/*****************************************************************/
	
	function dodajToolTip(id)
	{
		$(function(){
			$('#'+id).tooltip({ 
				track:true, 
				showURL:false,
				extraClass:"body" 
			});
		});
	}

	/*****************************************************************/

