function showGallery(cat, id, title) {
	document.title = title;
	$.ajax({
		type: "POST",
		url: "/gallery.php",
		data: 'cat='+cat+'&alb='+id,
		success: function(msg){
			if(parseInt(msg)!=0){
				$("#home").html('<div id="photos">'+msg+'</div>');
			}
		}
	});
  

}
