	loadPage = function(page)
	{
		  new Ajax.Request(page, {
		  method: 'get',
		  
		  asynchronous: true,		
	      
			onCreate: function(transport) {					
					$('tresc').update("<img src=\"./style/js/loader.gif\" alt=\"wczytywanie...\" />");
			},
	      
		  onLoading: function(transport)
		  {		  		
				//$('tresc').update("<img src=\"./style/js/loader.gif\" alt=\"wczytywanie...\" />");
				
		  },
		  
		  
		  onSuccess: function(transport) {
		  	  Element.hide('tresc'); 
		  	  $('tresc').update(transport.responseText);
		      new Effect.Appear('tresc', {duration: 0.4});
		  }
		});
	}
	
