$(document).ready(function(){
	
			$(".lightbox").lightbox({
				fileLoadingImage : './public/plugins/loading.gif',
				fileBottomNavCloseImage : './public/plugins/close1.gif',
			    fitToScreen: true,
			    strings : {
					prevLinkTitle: 'poprzednie zdjęcie',
					nextLinkTitle: 'następne zdjęcie',
					prevLinkText:  '&laquo; Poprzednie',
					nextLinkText:  'Następne &raquo;',
					closeTitle: 'zamknij galerię',
					image: 'Zdjęcie ',
					of: ' z '
				}
		    });
		    
		 
			$('#mainBannerBox').cycle({
				    fx:     'fade',
				    speed:   1000,
				    timeout: 8000,
				    cleartypeNoBg: true,
				    pager:  '#studiesTypesItems'
			});
			 
			  $("#contactName").DefaultValue("Imię i nazwisko");
			  $("#contactSubject").DefaultValue("Temat");
			  $("#contactEmail").DefaultValue("E-mail");
			  $("#contactContent").DefaultValue("Wiadomość");
			  $("#searchPhrase").DefaultValue("Wyszukaj w serwisie ...");
		
			  $("#searchForm").submit(function(){
			  	
			  	if(jQuery.trim($("#searchPhrase").val())=="Wyszukaj w serwisie ..."  ||  jQuery.trim($("#searchPhrase").val())=="" || $("#searchPhrase").val().length<3) {
					jAlert('Wyszukiwana fraza powinna składać się z conajmniej 3 znaków','Komunikat systemu');
			  		return false;
		 		}
			  	
		 		return true;
			  });
			  
			  
	
});

		$(window).load(function() {
		  
			$(".leftImagesList img, .rightImagesList img").each(function() {
				 $(this).removeAttr("width");
				 var width = this.width;
				 $(this).parent().next("p").css("width",width);
			});
			
			
		
		});