/* copyright 2010 Łukasz Łuba*/


   function gettekst(pic)
   {
			alert('Load was performed.'+pic);
			//load jest to 'A callback function that is executed when the request completes.'
			// przyjmuje I parametr jako url serwera, II to wywolanie funnkcji
			//po zakonczeniu zapytania, czyli zwroceniu statusu, tresci odp - response,
			//hmlHttpRequest - xhr 	
			$('#lcd-gal').load('./galeria-view/index.html', function(response, status, xhr){
				//.html umieszcza w kodzie html o podanym id lub class dana tresc
				$('#lcd-gal').html("tekst"+ response);
			});
					
			
	}
// funkcja pobierajaca zdjecie z okreslonej lokalizacji pic
function getpicture(pic)
   {
			//wyswitl alert
			//alert('Load was performed.'+pic);
			//load jest to 'A callback function that is executed when the request completes.'
			// przyjmuje I parametr jako url serwera, II to wywolanie funnkcji
			//po zakonczeniu zapytania, czyli zwroceniu statusu, tresci odp - response,
			//hmlHttpRequest - xhr  	
			$('#lcd-gal').load('./galeria-view/get-pic.php?name='+pic, function(response, status, xhr){
				//.html umieszcza w kodzie html o podanym id lub class dana tresc response
				//zwrocona przez skrypt php
				$('#lcd-gal').html(response);
			});
					
			
	}

