$(function() {
      $('.lightbox').lightBox();
			$("#content3 .menu div:visible").prev("a.promo").next("div").removeClass("links").addClass("links2");
			$("#content3 .menu div").prev("a.category").click( 
					function () {
							$("a.category").css("background","url(images/2_10.jpg) no-repeat");
							$("a.promo").css("background","url(images/3_26.jpg) no-repeat #f2ca1d");
							$("a.category").css("color","white");
							$("a.promo").css("color","#562800");
							$("#content3 .menu div.links:visible").slideUp();
							$("#content3 .menu div.links2:visible").slideUp();
							$(this).next("div.links").not("div:visible").prev("a").css("background","url(images/3_10a.jpg) no-repeat #dc0107");
							$(this).next("div.links").not("div:visible").slideDown();
							return false;
					});   
			$("#content3 .menu div").prev("a.promo").click( 
					function () {
							$("a.category").css("background-image","url(images/2_10.jpg)");
							$("a.promo").css("background","url(images/3_26.jpg) no-repeat #f2ca1d");
							$("a.category").css("color","white");
							$("a.promo").css("color","#562800");
							$("#content3 .menu div a.active").removeClass("active");
							$("#content3 .menu div.links:visible").slideUp();
							$("#content3 .menu div.links2:visible").slideUp();
							$(this).css("color","#562800");
							$(this).next("div").not("div:visible").prev("a").css("background","url(images/3_10a.jpg) no-repeat #dc0107");
							$(this).next("div").not("div:visible").prev("a").css("color","white");
							$(this).next("div.links").not("div:visible").removeClass("links").addClass("links2");
							$(this).next("div.links2").not("div:visible").slideDown();
							return false;
					});  
			$(".lbte").click( 
					function () {
							$(".lbtc2").hide();
							$(".lbtbg").hide();
							$(".lbtc").hide("slow");
							$(this).hide();
							$("body").css("overflow", "visible");
							return false;
					}); 
			$(".lbt").click( 
					function () {
					    $('.lbtc').load($(this).attr('href'));
							$(".lbtbg").show();
							$(".lbtc2").show();
							$(".lbte").show();
							$(".lbtc").slideDown("slow");
							$("body").css("overflow", "hidden");
							return false;
					}); 
			$(".sws *").click( 
					function () {
					    $('.lbtc').load($(this).attr('href'));
							$(".lbtbg").show();
							$(".lbtc2").show();
							$(".lbte").show();
							$(".lbtc").slideDown("slow");
							$("body").css("overflow", "hidden");
							return false;
					});
      $(".bottom_logo img").hover(
          function() {
							$(this).css("-moz-opacity", "1.0");
							$(this).css("opacity", "1.00");
							$(this).css("filter", "alpha(opacity=100)");
          },
          function() {
							$(this).css("-moz-opacity", "0.4");
							$(this).css("opacity", ".40");
							$(this).css("filter", "alpha(opacity=40)");
          });
});
function test(f) {
  if (f.name.value.length<1) { alert("Proszę wypełnić pole 'imię i nazwisko/nazwa firmy'"); return false; }
  if (f.telefon.value.length<1) { alert("Proszę wypełnić pole 'telefon kontaktowy'"); return false; }
  if (f.tresc.value.length<1) { alert("Proszę wypełnić pole 'Treść'"); return false; }
  if (f.email.value.length<1) { alert("Proszę wypełnić pole 'adres e-mail'"); return false; }
 return true;
}
