$(document).ready(function() {
						   
	// USUWANIE FOCUSA
	$('a').attr('onfocus', 'blur()');
	
	// NOWE OKNO DLA LINKÓW Z ATRYBUTEM REL="TARGET"
	$('a[rel="target"]').click(function() {
		var newWindow = window.open(this.href);
		return false;
	});
	
	// PŁYNNY POWRÓT DO GÓRY
	$('a[href="#top"]').click(function(){
		$('html, body').animate({scrollTop:0}, 'slow');
		return false;
	});
	
	// PIERWSZA POZYCJA MENU
	$('div.menu ul li:first').css('background', 'none');
	
	// OSTATNIA POZYCJA MENU
	$('div.menu ul li a:last').addClass('last');
	
	// CIENIE
	$.fn.textDropShadow = function(){
		$(this).html('<span class="cien">'+$(this).html()+'</span><span>'+$(this).html()+'</span>');
		return $(this);
	}
	$("div.menu ul li a").each(function(){$(this).textDropShadow();});
	
	//WTYCZKA FACEBOOK-owa
	$('div.facebook').mouseenter(function(){
		$(this).stop(true, false).animate({"right": "0"}, 400);
	});
	$('div.facebook').mouseleave(function(){
		$(this).stop(true, false).animate({"right": "-320px"}, 400);
	});
	
});
