function changeCategory(nazev, id, lang) {
    
	catid = nazev.options[id].value;
	$.ajax({
							method: "get",url: "/admin/ajax/ajax_menu.php",data: "catid="+catid+"&alang="+lang,
							beforeSend: 
							  function(){$("#loading").show("fast");}, //show loading just when link is clicked
							
                            complete: 
							  function(){ $("#loading").hide("fast");}, //stop showing loading when the process is complete
								  
							success: 
							  function(html){ //so, if data is retrieved, store it in html
							    $("#podkat").show(); //animation
							    $("#podkat").html(html); //show the html inside .content div
                              }
	});
	
}	

function changePoradi(nazev, id, lang) {
    
	catid = nazev.options[id].value;
	$.ajax({
							method: "get",url: "/admin/ajax/ajax_poradi.php",data: "catid="+catid+"&alang="+lang,
							beforeSend: 
							  function(){$("#loading").show("fast");}, //show loading just when link is clicked
							
                            complete: 
							  function(){ $("#loading").hide("fast");}, //stop showing loading when the process is complete
								  
							success: 
							  function(html){ //so, if data is retrieved, store it in html
							    $("#poradibox").show(); //animation
							    $("#poradibox").html(html); //show the html inside .content div
                              }
	});
	
}	

function Ajax_load_poradi(catid, lang) {
 
    $.ajax({
							method: "get",url: "/admin/ajax/ajax_poradi.php",data: "catid="+catid+"&alang="+lang,
								  
							success: 
							  function(html){ //so, if data is retrieved, store it in html
							    $("#poradibox").show(); //animation
							    $("#poradibox").html(html); //show the html inside .content div
                              }
	});

}

function Ajax_load_galerie(id, catid, lang) {
 
    $.ajax({
							method: "get",url: "/admin/ajax/ajax_galerie.php",data: "ID="+id+"&catid="+catid+"&alang="+lang,
								  
							success: 
							  function(html){ //so, if data is retrieved, store it in html
							    $("#fotogalerie").show(); //animation
							    $("#fotogalerie").html(html); //show the html inside .content div
                              }
	});

}
