$(document).ready(function() {

$("a").not(".photo a").css({color:'#0cf'}).fadeTo(0,0.7).hover(function() {
	$(this).stop().fadeTo(200,1).css({color:'#fff'});
}, function() {
	$(this).stop().fadeTo(350,0.7).css({color:'#0cf'});
});


$(".container a").not("#menu a, #header h1, .pobierz, .photo a").css({color:'#0cf'}).fadeTo(0,0.7).hover(function() {
	$(this).stop().animate({opacity:"1", borderWidth: "4px"}, 300);
}, function() {
	$(this).stop().animate({opacity:"0.7", borderWidth: "1px"}, 200);
});
$("#container a img").css({borderWidth: "0px"});



   $('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                $('html,body').animate({scrollTop: targetOffset-170}, 1000);
                return false;
            }}
    });




});


