function ban_menu() {
	$jq(".ban_menu").hover(
		function () {
			$jq(this).children(".banner_a_left").addClass("banner_a_left_hover");
			$jq(this).children(".banner_a_tlo").addClass("banner_a_tlo_hover");
			$jq(this).children(".banner_a_right").addClass("banner_a_right_hover");
		}, 
		function () {
			$jq(this).children(".banner_a_left").removeClass("banner_a_left_hover");
			$jq(this).children(".banner_a_tlo").removeClass("banner_a_tlo_hover");
			$jq(this).children(".banner_a_right").removeClass("banner_a_right_hover");
		}
	);
}

function foto() {
	$jq(".foto_dot").hover(
		function () {
			var f_index = $jq(".foto_dot").index(this);
			$jq(".zdjecie_270").hide();
			$jq("#fot"+f_index).show();
			$jq(".foto_dot").addClass("foto_dot_inactive");
			$jq(this).removeClass("foto_dot_inactive");
		},
		function () {
		}
	);
}

function toolfoto() {
	$jq(".zdjecie_85").hover(
		function () {
			$jq(this).next().slideDown(200);
		},
		function () {
			$jq(this).next().slideUp(200);
		}
	);
}

function pokaz_wiecej() {
	$jq('.zobacz_wiecej').toggle(function() {
		$jq('.zobacz_wiecej_pokaz').show();
	}, function() {
		$jq('.zobacz_wiecej_pokaz').hide();
	});
}

function info() {
	$jq('.info').hover(function() {
		$jq(this).children('.info2').show();
	}, function() {
		$jq(this).children('.info2').hide();
	});
}

function tooltip() {
	$jq('.tooltip').hover(function() {
		$jq(this).children('.tooltip2').show();
	}, function() {
		$jq(this).children('.tooltip2').hide();
	});
}

function send_newsletter(){
	$jq.ajax({
		type: "POST",
		url: "newsletter.html",
		async: false,
		data: "news_mail="+encodeURI($jq("#news_mail").val())+"&news_imie="+encodeURI($jq("#news_imie").val()),
		success: function(msg){
			wynik=msg.split(":");
			if(wynik[0]=='eml_error'){
//				$jq("#newsletter_txt").html("<span style='color:#EF3D23;'>Podany adres e-mail jest nieprawidłowy.</span>");
			}
			else if(wynik[0]=='dane_error'){
//				$jq("#newsletter_txt").html("<span style='color:#EF3D23;'>Proszę uzupełnić wszystkie pola formularza.</span>");
			}
			else if(wynik[0]=='eml_exist'){
				$jq('.newsl_imie_box').hide();
				$jq('.newsl_mail_box').hide();
				$jq('.newsl_submit_box').hide();
				$jq("#newsletter_txt").addClass('newsletter_wide');
//				$jq("#newsletter_txt").html("<span style='color:#EF3D23;'>Adres e-mail znajduje się w bazie danych. Na podany adres został wysłany link dezaktywacyjny.</span>");
			}
			else{
				$jq('.newsl_imie_box').hide();
				$jq('.newsl_mail_box').hide();
				$jq('.newsl_submit_box').hide();
				$jq("#newsletter_txt").addClass('newsletter_wide');
//				info=wynik[1];
//				$jq("#newsletter_txt").html("<span style='color:#EF3D23;'>Na podany adres e-mail został wysłany link aktywacyjny</span>");
//				$("#boxModulBtn").hide();
//				$("#frm_newsletter").hide();
			}
			$jq("#newsletter_txt").html("<span style='color:#EF3D23;'>"+wynik[1]+"</span>");
		}
	});	
	
//	return false;
}

