(function(){var lastTime=0;var vendors=["ms","moz","webkit","o"];for(var x=0;x<vendors.length&&!window.requestAnimationFrame;++x){window.requestAnimationFrame=window[vendors[x]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[vendors[x]+"CancelAnimationFrame"]||window[vendors[x]+"CancelRequestAnimationFrame"]}if(!window.requestAnimationFrame)window.requestAnimationFrame=function(callback,element){var currTime=(new Date).getTime();var timeToCall=Math.max(0,17-(currTime-lastTime));var id=
window.setTimeout(function(){callback(currTime+timeToCall)},timeToCall);lastTime=currTime+timeToCall;return id};if(!window.cancelAnimationFrame)window.cancelAnimationFrame=function(id){clearTimeout(id)}})();function ArrAVG(arr){arr.splice(0,arr.length-1E3);var sum=0;var j=0;for(var i=0;i<arr.length;i++)if(isFinite(arr[i])){sum=sum+parseFloat(arr[i]);j++}if(j===0)return 0;else return sum/j}function triSize(n){return((2*n+1)*(2*n+1)-1)/8}
function getPageScroll(){var xScroll,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft}else if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft}return{x:xScroll,y:yScroll}}function ha2mkw(ha){return ha*1E4}function mkw2ha(ha){return ha/1E4}
function getPopulacja(ptak,las){var sr=mkw2ha(las.getSrodek())*ptak.DF;var br=mkw2ha(las.getStrefaBrzezna())*ptak.DE;console.log(sr+br)}function losujWyspy(p,i,r){var p1=p/i;for(var ii=0;ii<i;ii++)console.log(p1)};
