/****************************** nehnutelnosti ***************************************************/

function displayNehnutelnosti(section,kat,orderBy,orderType,limitDown,limitUp,mode)  
 {  
 
 	 document.getElementById('preloading').style.visibility = 'visible';

	 $.ajax({
	   type: "POST",
	   url: "result.php",
	   data: "mode=" + mode + "&section=" + section + "&orderBy=" + orderBy + "&orderType=" + orderType + "&limitDown=" + limitDown + "&limitUp=" + limitUp + "&kat=" + kat,
	   success: function(html){
	         document.getElementById('preloading').style.visibility = 'hidden';
 			 $("#page-content").html(html);
		 } 
	 });
	
	return true;
 }
 
/****************************************************************************************************/

function displayNehnutelnostDet(section,id,orderBy,orderType,limitDown,limitUp,kat,mode)  
 {  
 
 	 document.getElementById('preloading').style.visibility = 'visible';

	 $.ajax({
	   type: "POST",
	   url: "result.php",
	   data: "mode=" + mode + "&section=" + section + "&id=" + id + "&orderBy=" + orderBy + "&orderType=" + orderType + "&limitDown=" + limitDown + "&limitUp=" + limitUp + "&kat=" + kat,
	   success: function(html){
	         document.getElementById('preloading').style.visibility = 'hidden';
 			 $("#page-content").html(html);
	
			     $(function() {
			        $('#gallery a').lightBox();
    			 });
		 } 
	 });
	
	return true;
 }
 
 
 
 
 
 
 
 /***************************** vozidla ***************************************************************/

function displayVozidla(section,kat,orderBy,orderType,limitDown,limitUp,mode)  
 {  
 
 	 document.getElementById('preloading').style.visibility = 'visible';

	 $.ajax({
	   type: "POST",
	   url: "result.php",
	   data: "mode=" + mode + "&section=" + section + "&orderBy=" + orderBy + "&orderType=" + orderType + "&limitDown=" + limitDown + "&limitUp=" + limitUp + "&kat=" + kat,
	   success: function(html){
	         document.getElementById('preloading').style.visibility = 'hidden';
 			 $("#page-content").html(html);
		 } 
	 });
	
	return false;
 }
 
/****************************************************************************************************/

function displayVozidloDet(section,id,orderBy,orderType,limitDown,limitUp,kat,mode)  
 {  
 
 	 document.getElementById('preloading').style.visibility = 'visible';

	 $.ajax({
	   type: "POST",
	   url: "result.php",
	   data: "mode=" + mode + "&section=" + section + "&id=" + id + "&orderBy=" + orderBy + "&orderType=" + orderType + "&limitDown=" + limitDown + "&limitUp=" + limitUp + "&kat=" + kat,
	   success: function(html){
	         document.getElementById('preloading').style.visibility = 'hidden';
 			 $("#page-content").html(html);
			 
			     $(function() {
			        $('#gallery a').lightBox();
    			 });
		 } 
	 });
	
	return false;
 }
