$(document).ready(function() {

	// NOWE OKNO JEŚLI ATRYBUT REL='TARGET'
	$("a[rel='target']").click(function() {
		var newWindow = window.open(this.href);
		return false;
	});


	// DYMKI POD ODNOŚNIKAMI
	$('#right #gallery a').jqPLTooltip({
		tekst: 'kliknij, aby powiększyć',
		gora: -35,
		lewa: -60,
		title: false,
		center: true,
		przezroczystosc: 0.80
	});
	
	// ROZWIJANE MENU
	$('ul.menu').superfish(); 
	
	$('ul.menu li').mouseover(function() {
	  $(this).addClass("podswietlenie");
	});
	
	$('ul.menu li').mouseout(function() {
	  $(this).removeClass("podswietlenie");
	});
	
	$('.nr_bankowy').hide();
	
	$('.brak-konta').click(function() {
	  $('.nr_bankowy').slideToggle('fast', function() {
		// Animation complete.
	  });
	});
	
	// FACEBOOK 
	$('div.facebook').mouseenter(function(){
	$(this).stop(true, false).animate({"left": "0"}, 400);
	});
	$('div.facebook').mouseleave(function(){
		$(this).stop(true, false).animate({"left": "-490px"}, 400);
	});
	
});

