	$(document).ready(function() {
		$("#oblicz").click(function() {
			pakietA = Math.ceil( parseInt($("#wartosc").val())*55/100000 );
			pakietB = Math.ceil( parseInt($("#wartosc").val())*55/100000+70 );
			pakietC = Math.ceil( parseInt($("#wartosc").val())*55/100000+130 );
			pakietD = Math.ceil( (parseInt($("#wartosc").val()) * 55 ) / 100000 + 320 );
			sumaM = Math.ceil( (parseInt($("#wartosc").val()) * 1 ) );
			if(pakietA<55) pakietA = 55;
			if(pakietB<55) pakietB = 55;
			if(pakietC<55) pakietC = 55;
			if(pakietD<55) pakietD = 55;
			$("#pakietZero").html(pakietA+' zł');
			$("#pakietMini").html(pakietB+' zł');
			$("#pakietMidi").html(pakietC+' zł');
			$("#pakietMax").html(pakietD+' zł');
			$("#sumaMurow").html(sumaM+' zł');
			$("#sumaMurow1").html(sumaM+' zł');
			$("#sumaMurow2").html(sumaM+' zł');
			$("#sumaMurow3").html(sumaM+' zł');
		});
	});
	function przelicz() {
			pakietA = Math.ceil( parseInt($("#wartosc").val())*55/100000 );
			pakietB = Math.ceil( parseInt($("#wartosc").val())*55/100000+70 );
			pakietC = Math.ceil( parseInt($("#wartosc").val())*55/100000+130 );
			pakietD = Math.ceil( (parseInt($("#wartosc").val()) * 55 ) / 100000 + 320 );
			sumaM = Math.ceil( (parseInt($("#wartosc").val()) * 1 ) );
			if(pakietA<55) pakietA = 55;
			if(pakietB<55) pakietB = 55;
			if(pakietC<55) pakietC = 55;
			if(pakietD<55) pakietD = 55;			
			$("#pakietZero").html(pakietA+' zł');
			$("#pakietMini").html(pakietB+' zł');
			$("#pakietMidi").html(pakietC+' zł');
			$("#pakietMax").html(pakietD+' zł');
			$("#sumaMurow").html(sumaM+' zł');
			$("#sumaMurow1").html(sumaM+' zł');
			$("#sumaMurow2").html(sumaM+' zł');
			$("#sumaMurow3").html(sumaM+' zł');
		}

	function Chmurka(T,t){
	 T.title=''
	 T.parentNode.lastChild.style.display=t?'block':'none'
	}

	function pop_me(location,width,height,full){
		noweW=window.open(location, 'pop_me', 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,fullscreen='+full+',channelmode=no,width='+width+',height='+height+',left=0,top=0');
	}
