    $(function() {
        $('a[@rel*=lightbox]').lightBox();
    });


		function pokaz_ukryj(blok) {
			if (document.getElementById(blok).style.display=="block") {		  
				$(".submenu").css("display","none");
			} else {
				$(".submenu").css("display","none");
				document.getElementById(blok).style.display="block";
			}
		}

		function ukryj(blok) {
				document.getElementById(blok).style.display="none";
		}
	function print_site() {
		window.print()
  }
	
	
function reset(){
	document.getElementById('jeden').className='kl';
	document.getElementById('dwa').className='kl';
	document.getElementById('trzy').className='kl';
	document.getElementById('cztery').className='kl';
	document.getElementById('piec').className='kl';
	}	
	
function reset2(co){
z = document.getElementById('kontroler').value;
if (co == z) document.getElementById(co).className='kldany';
else document.getElementById(co).className='kl';
}
	
function podaj_prezentacje(wartosc,divek,ile,dir) {
if (wartosc>=ile) wartosc = 0;
if (wartosc<0) wartosc = ile-1;

 var ajax_method = typeof XMLHttpRequest == "undefined"?new ActiveXObject('Microsoft.XMLHttp'):new XMLHttpRequest();
 ajax_method.onreadystatechange = function(){
									if (ajax_method.readyState == 1) 
									{
                        document.getElementById(divek).innerHTML=document.getElementById('zrodlo').innerHTML;
									}
								
                if (ajax_method.readyState == 4) {
                        if (ajax_method.status == 200) {
                                document.getElementById(divek).innerHTML=ajax_method.responseText;
																document.getElementById('kontroler').value=parseInt(wartosc);
                        }
                }
        };
        ajax_method.open( "POST", dir+'ajax/prezentacja.php', true );
        ajax_method.setRequestHeader('Content-Type',
        'application/x-www-form-urlencoded');
        ajax_method.send("limit="+wartosc);

        
			
}
function wyslijzapytanie(divek,dir,data_przyb,data_wyj,il_osob,il_pokoi,imie,mail,telefon) {

 var ajax_method = typeof XMLHttpRequest == "undefined"?new ActiveXObject('Microsoft.XMLHttp'):new XMLHttpRequest();
 ajax_method.onreadystatechange = function(){
									if (ajax_method.readyState == 1) 
									{
                        document.getElementById(divek).innerHTML=document.getElementById('zrodlo').innerHTML;
									}
								
                if (ajax_method.readyState == 4) {
                        if (ajax_method.status == 200) {
                                document.getElementById(divek).innerHTML=ajax_method.responseText;
                        }
                }
        };
        ajax_method.open( "POST", dir+'ajax/zapytanie.php', true );
        ajax_method.setRequestHeader('Content-Type',
        'application/x-www-form-urlencoded');
        ajax_method.send("data_przyb="+data_przyb+"&data_wyj="+data_wyj+"&il_osob="+il_osob+"&il_pokoi="+il_pokoi+"&imie="+imie+"&mail="+mail+"&telefon="+telefon);

        
			
}

function rozszerz(name) {
return document.getElementById(name).value;
}




