// enable circular scrollables with a click handler
 
 $(document).ready(function(){
   $('a').focus(function(){
    $(this).blur();
  });

    set_min_height();

  $('#carusel_art').cycle({ 
    fx:     'scrollHorz', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#right_arrow', 
    prev:   '#left_arrow' 
});
  

  
 $(".non_link").click(function(){
    return false;
  });  
 $("#news_ul li").mouseover(function(){
   $(this).children(':first').stop(); 
   $(this).children(':first').animate({marginTop: -89},200);
  }).mouseout(function(){
    $(this).children(':first').stop();
    $(this).children(':first').animate({marginTop: 0},200);
 });
 /*$(".tags_list a").click(function(){
    FB.ui({display: 'iframe', method: 'stream.publish', message:'hello world'});
    return false;
  });  */
  
  $("#search").focus(function(){
    var ss_tt=$(this).val();
    if (ss_tt=='Търсене')
      $(this).val('');
  });
  $("#search").focusout(function(){
    var ss_tt=$(this).val();
    if (ss_tt=='')
      $(this).val('Търсене');
  });
  $("#lupa_btn").click(function(){
    if ($("#search").val()!='' &&  $("#search").val()!='Търсене')
      $("#serch_e_form").submit();
    else
      alert('Моля въведете дума или фраза за търсене');  
  });
   
});
function set_min_height()
{
  var win_height=$(window).height();
  $('.main_content').css('min-height',(win_height)-460);
  $('.container').css('min-height',(win_height)-460);
}

