
var active = false;
var ajaxStop = false;
var obrazocekTENTOK = null;

function getSectionPic(param,obj) {
  if(active==true)
    return false;
  
  var outputElement = $("div#articel"); 
  id = obj.replace("cat_","");
    
  active = $.ajax({
    type:"GET",
    url:"getCategory.php",
    data: "s=0&c="+id,
    beforeSend: function(msg) {
      if(ajaxStop == true)
        return false;
    },
    success: function(data){
      //alert(data);
    
      if(ajaxStop == true)
        return false;
       
      outputElement.fadeOut("fast",
        function(){ 
              outputElement.html(data).fadeIn("fast", function(){active = false;});  });
    }
    
  });
}





