var server = 'http://localhost/jurapark24/';

jQuery(function() {
  jQuery('a.read-more-news').click(function(){  	
    //jQuery(this).html('<img src="/images/admin/refresh.gif" alt="czekaj..."/>');
    ob =jQuery(this);    
    jQuery.ajax({
      url: 'request/show_news.php?id=' + jQuery(this).attr("id"),
      type: 'GET',
      data: '',
      error: function(){
        alert('Error loading');
      },
      success: function(data){
		jQuery("#message").remove();
        ob.after(data);   
        jQuery("#message").show("slow");  
      }      
    });
    return false;
  }); 
  
  jQuery('a.read-more-picnic').click(function(){    
    //jQuery(this).html('<img src="/images/admin/refresh.gif" alt="czekaj..."/>');
    ob =jQuery(this);    
    jQuery.ajax({
      url: 'request/show_picnic.php?id=' + jQuery(this).attr("id"),
      type: 'GET',
      data: '',
      error: function(){
        alert('Error loading');
      },
      success: function(data){
    jQuery("#message").remove();
        ob.after(data);   
        jQuery("#message").show("slow");  
      }      
    });
    return false;
  });
  
  jQuery('a.read-more-highlights').click(function(){  	
    //jQuery(this).html('<img src="/images/admin/refresh.gif" alt="czekaj..."/>');
    ob =jQuery(this);    
    jQuery.ajax({
      url: 'request/show_integration.php?id=' + jQuery(this).attr("id"),
      type: 'GET',
      data: '',
      error: function(){
        alert('Error loading');
      },
      success: function(data){
		jQuery("#message").remove();
        ob.after(data);   
        jQuery("#message").show("slow");  
      }      
    });
    return false;
  }); 
  
   jQuery('a.read-more-ref').click(function(){    
    ob =jQuery(this);    
    jQuery.ajax({
      url: 'request/show_reference.php?id=' + jQuery(this).attr("id"),
      type: 'GET',
      data: '',
      error: function(){
        alert('Error loading');
      },      
      success: function(data){
		jQuery("#message-ref").remove();
        ob.after(data);   
        jQuery("#message-ref").show("slow");  
      }      
    });
    return false;
  }); 
  
});       
