// przed: 3027, po: 1990, w czasie: 0.0280


var WindowObjectReference=null;var PreviousUrl=null;function openWindowUrl(strUrl){return window.open(strUrl,'Window',"resizable=yes,width=900,height=400,scrollbars=yes,status=no,location=no,toolbar=no,'menubar=no,left=5,top=5")}function openUrl(strUrl){if(WindowObjectReference==null||WindowObjectReference.closed){WindowObjectReference=openWindowUrl(strUrl)}else if(PreviousUrl!=strUrl){WindowObjectReference=openWindowUrl(strUrl)}WindowObjectReference.focus();PreviousUrl=strUrl}function ujecie(id){openUrl('/'+lang+'/galeria/ujecie/'+id)}function foto(id){openUrl('/'+lang+'/get/foto/'+id)}function bindImageHover(){$("img.hover").hover(function(){$(this).addClass("imghover")},function(){$(this).removeClass("imghover")})}function positionBottom(){var screenHeight=$(window).height();var leftHeight=$("#left").height();var bottomHeight=$("#bottom").height();var diff=screenHeight-(leftHeight+bottomHeight);if(diff>0){$("#left").height(leftHeight+diff-40)}setTimeout(positionBottom,500)}function doLocation(map,wsx,wsy,text){var point=new GLatLng(wsx,wsy);var marker=new GMarker(point);GEvent.addListener(marker,"click",function(){marker.openInfoWindowHtml(text)});map.addOverlay(marker);marker.openInfoWindowHtml(text)}function doMap(element,wsxCenter,wsyCenter,zoom,punkty){if(!GBrowserIsCompatible()){return}var map=new GMap2(document.getElementById(element));map.addControl(new GLargeMapControl());map.addControl(new GMapTypeControl());map.setCenter(new GLatLng(wsxCenter,wsyCenter),zoom);for(i=0;i<punkty.length;i++){doLocation(map,punkty[i][0],punkty[i][1],punkty[i][2])}}function doBind(wska){wska.unload(GUnload)}function bindCycle(element,time){$(element).cycle({fx:'fade',speed:500,timeout:time,pause:1,cleartype:1})}function bindCycleAll(elements){jQuery.each($(elements),function(i,val){if(i%2==0){bindCycle(val,5000)}else{bindCycle(val,4500)}})}$(document).ready(function(){bindImageHover();bindCycle("#slide-show-src",4500);$("a[@rel='lightbox-slide-show']").lightBox()});
