$(window).load(function(){PreSearch.focus();});
News = {
  init : function(){ $(".yummy h3 span a").addClass('br-3px'); },    
  ajax :    function(o, f){$.post("/ajax.news.php", o, f, "xhtml");},
  loadLastNews : function(cat){                  
                  this.ajax({method:'lastnews', category : cat}, function(d){ $("#uptodate").html(d); });
                  $("#uptodate").parent().find("h3 span a").removeClass("sel");
                  if(cat == '') cat = 'összes';
                  $("#uptodate").parent().find("h3 span a:contains('"+cat+"')").addClass("sel");
                  return false;
                },
  loadTopNews : function(hour)
                {
                  this.ajax({method:'topnews', hour : hour}, function(d){ $("#fn").html(d); });
                  $("#fn").parent().find("h3 span a").removeClass("sel2");
                  $("#fn").parent().find("h3 span a[rel="+hour+"]").addClass("sel2");
                }
}
$(document).ready(News.init);