function potwierdz(url){
    var v = confirm('Czy napewno chcesz to wykonać?');
    
    if(v == true){
        window.location = url;
    }
}


jQuery.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);
};

jQuery.fn.zwinToggle = function(speed, easing, callback) {
   return this.animate({opacity: '.2', height: '50'}, speed, easing, callback);
};

jQuery.fn.rozwinToggle = function(speed, easing, callback) {
   return this.animate({opacity: '1', height: '226'}, speed, easing, callback);
};

$(function () {
			$('a[title=close]').click(function () {
				$('#banner').zwinToggle();
				$('a[title=open]').toggle();
				$('a[title=close]').toggle();
							
												
												});
			
			$('a[title=open]').click(function () {
				$('#banner').rozwinToggle();
				$('a[title=close]').toggle();
				$('a[title=open]').toggle();
												
												});
			
			});

$(function() {

	$('a[title=katalog]').click(function() {
		$('#content-left').slideToggle(1000);
		$('#katalog-menu').slideToggle(1000);
		
		});
				
	});

    $(function () {
        $('a[title=horeca]').click(function () {
        $('#menu-horeca').slideToggle('normal');
        $('#horeca-content').slideToggle('normal');
    });
});


function activ()
{
    $('#menu-horeca').slideToggle('normal');
    $('#horeca-content').slideToggle('normal');
}

$(function() {
            $('#content img').animate({"opacity": .5 });
            $('#content img').hover(function() {
                $(this).stop().animate({ "opacity": 1 });
            }, function() {
                $(this).stop().animate({ "opacity": .5 });
            });
        });


