function getAllPhoto(cat_id)
{
	_location = document.location.search
	if(_location[0] == '?')
		_location = _location.substr(1)
	
	params = _location
	if(tag_id!=0)
	{
		params += '&tag_id=' + tag_id;
	}
	params += '&cat_id='+cat_id+'&gal_is_out=1';
	url = "get_photo_gallery.php";
	if(hidden)
	{
		url = 'get_hidden_photos.php';
	}
	$.ajax({   
        type: "POST",   
        url: url,   
        data: params,   
        success: function(data){   
			$('#img_block').html(data);
			$('#pagesBlock').html('');
        }   
    });   
            
                
}
