		function axj_load_news(vybor)
		{ 
				if((ajx_load==true))
				{
					ajx_load_activite=true;
					urls="/ajx/load_news.php?vybor="+vybor;
					$.ajax({
					url: urls,
					cache: false,
					success: function(html){
					if(ajx_load==true)
						{
							if(html.length>0){$("#gl_news").html(html); mas_news[ajx_num_load[1]]=html;};
						}
					$("#gl_news").css('opacity',1);	
					$("#ajx_load_img").html(''); 
					ajx_load_activite=false;
					}
					});
				}
		
		}

$(document).ready(function(){

	def_news=$("#gl_news").html();
	ajx_load=false;
	mas_news = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
	ajx_load_activite=false;
	$(".preview").hover(function(){
	ajx_num_load=this.id.split('l_n_');
	//& (ajx_load_activite==false)
	if((ajx_num_load.length==2))
		{
		if(mas_news[ajx_num_load[1]]==0)
		 {
			ajx_load=true;
			$("#ajx_load_img").html('<img src="im/ico/load.gif" width="16" height="16" />'); 
			$("#gl_news").css('opacity',0.8);
			axj_load_news(ajx_num_load[1]);
		  }
		  else {$("#gl_news").html(mas_news[ajx_num_load[1]]);}
		}},
      function () {
	  if(ajx_load==true)
	   { 
	    $("#ajx_load_img").html(''); 
		$("#gl_news").css('opacity',1);
		ajx_load=false;
		
	   }
      }
);




$(".gallery").hover(function() {},
      function () {$("#gl_news").html(def_news); 
});



  });
