$("#button_NY").click(function () {
location.href="/"+lng+"/newyork.html";
    });
	$("#button_WAW").click(function () { 
   location.href="/"+lng+"/warszawa.html";
    });
	$("#button_wlo").click(function () { 
   location.href="/"+lng+"/wloclawek.html";
    });
	$("#button_bia").click(function () { 
   location.href="/"+lng+"/bialystok.html";
    });
	$("#button_krk").click(function () { 
	location.href="/"+lng+"/krakow.html";
    });
	$("#button_wil").click(function () { 
	location.href="/"+lng+"/wilno.html";
    });
	$("#button_kat").click(function () { 
	location.href="/"+lng+"/katowice.html";
    });
	$("#button_kie").click(function () { 
	location.href="/"+lng+"/kielce.html";
    });
	$("#button_tro").click(function () { 
	location.href="/"+lng+"/trojmiasto.html";
    });
	$("#button_lublin").click(function () { 
	location.href="/"+lng+"/lublin.html";
    });
	$("#button_london").click(function () { 
	location.href="/"+lng+"/london.html";
    });
	$("#logo_szb").click(function () { 
	location.href="/"+lng+"/index.html";
    });
	$("#by").click(function () { 
	location.href="/by/"+kurrpage+".html";
    });
		$("#en").click(function () { 
	location.href="/en/"+kurrpage+".html";
    });
		$("#pl").click(function () { 
	location.href="/pl/"+kurrpage+".html";
    });
	$("#button_lodz").click(function () { 
	location.href="/"+lng+"/lodz.html";
    });
	$("#button_wlo").hover(
                function () {
				wloclawek.setAnimation(google.maps.Animation.BOUNCE);
                $(this).animate({
                            'left':'0px'
                        }, 300);
                },
				function () {
				wloclawek.setAnimation(google.maps.Animation.NONE);
                $(this).animate({
                            'left':'-30px'
                        }, 300);
                }
            );
		$("#button_NY").hover(
                function () {
				
                $(this).animate({
                            'left':'0px'
                        }, 300);
                },
				function () {
                $(this).animate({
                            'left':'-30px'
                        }, 300);
                }
            );
		$("#button_WAW").hover(
                function () {
				warszawa.setAnimation(google.maps.Animation.BOUNCE);
                $(this).animate({
                            'left':'0px'
                        }, 300);
                },
				function () {
				warszawa.setAnimation(google.maps.Animation.NONE);
                $(this).animate({
                            'left':'-30px'
                        }, 300);
                }
            );
		$("#button_bia").hover(
                function () {
				bialystok.setAnimation(google.maps.Animation.BOUNCE);
                $(this).animate({
                            'left':'0px'
                        }, 300);
                },
				function () {
				bialystok.setAnimation(google.maps.Animation.NONE);
                $(this).animate({
                            'left':'-30px'
                        }, 300);
                }
            );
		$("#button_krk").hover(
                function () {
				krakow.setAnimation(google.maps.Animation.BOUNCE);
                $(this).animate({
                            'left':'0px'
                        }, 300);
                },
				function () {
				krakow.setAnimation(google.maps.Animation.NONE);
                $(this).animate({
                            'left':'-30px'
                        }, 300);
                }
            );
			$("#button_wil").hover(
                function () {
				wilno.setAnimation(google.maps.Animation.BOUNCE);
                $(this).animate({
                            'left':'0px'
                        }, 300);
                },
				function () {
				wilno.setAnimation(google.maps.Animation.NONE);
                $(this).animate({
                            'left':'-30px'
                        }, 300);
                }
            );
			$("#button_tro").hover(
                function () {
				trojmiasto.setAnimation(google.maps.Animation.BOUNCE);
                $(this).animate({
                            'left':'0px'
                        }, 300);
                },
				function () {
				trojmiasto.setAnimation(google.maps.Animation.NONE);
                $(this).animate({
                            'left':'-30px'
                        }, 300);
                }
            );
			$("#button_kie").hover(
                function () {
				kielce.setAnimation(google.maps.Animation.BOUNCE);
                $(this).animate({
                            'left':'0px'
                        }, 300);
                },
				function () {
				kielce.setAnimation(google.maps.Animation.NONE);
                $(this).animate({
                            'left':'-30px'
                        }, 300);
                }
            );
			$("#button_kat").hover(
                function () {
				katowice.setAnimation(google.maps.Animation.BOUNCE);
                $(this).animate({
                            'left':'0px'
                        }, 300);
                },
				function () {
				katowice.setAnimation(google.maps.Animation.NONE);
                $(this).animate({
                            'left':'-30px'
                        }, 300);
                }
            );
			$("#button_lodz").hover(
                function () {
				lodz.setAnimation(google.maps.Animation.BOUNCE);
                $(this).animate({
                            'left':'0px'
                        }, 300);
                },
				function () {
				lodz.setAnimation(google.maps.Animation.NONE);
                $(this).animate({
                            'left':'-30px'
                        }, 300);
                }
            );
			$("#button_lublin").hover(
                function () {
				lublin.setAnimation(google.maps.Animation.BOUNCE);
                $(this).animate({
                            'left':'0px'
                        }, 300);
                },
				function () {
				lublin.setAnimation(google.maps.Animation.NONE);
                $(this).animate({
                            'left':'-30px'
                        }, 300);
                }
            );
						$("#button_london").hover(
                function () {
				london.setAnimation(google.maps.Animation.BOUNCE);
                $(this).animate({
                            'left':'0px'
                        }, 300);
                },
				function () {
				london.setAnimation(google.maps.Animation.NONE);
                $(this).animate({
                            'left':'-30px'
                        }, 300);
                }
            );
			$("#photos").click(function() {
                $("#vlightbox1").css('visibility','visible');
				$("#content").css('visibility','hidden');
				$("#pressdiv").css('visibility','hidden');
				$("#contactsdiv").css('visibility','hidden');
				}
            );
			$("#forpress").click(function() {
                $("#vlightbox1").css('visibility','hidden');
				$("#content").css('visibility','hidden');
				$("#pressdiv").css('visibility','visible');
				$("#contactsdiv").css('visibility','hidden');
				}
            );
			$("#contacts").click(function() {
                $("#vlightbox1").css('visibility','hidden');
				$("#content").css('visibility','hidden');
				$("#pressdiv").css('visibility','hidden');
				$("#contactsdiv").css('visibility','visible');
				}
            );
			$("#events").click(function() {
                $("#vlightbox1").css('visibility','hidden');
				$("#content").css('visibility','visible');
				$("#pressdiv").css('visibility','hidden');
				$("#contactsdiv").css('visibility','hidden');
				}
            );
			  $("#content").jScrollPane();
			  $("#contactsdiv").jScrollPane();
			  $(window).resize(function() {
			  sizeakt=$(window).height() - 169;
 $("#bg2").css('height',sizeakt);
 $("#content").jScrollPane();
});
				sizeakt=$(window).height() - 169;
			  $("#bg2").css('height',sizeakt);
