hs.graphicsDir = 'highslide/graphics/';
hs.wrapperClassName = 'wide-border';
hs.captionEval = 'this.a.title';
var USER_CHAT = 'user_log';
var contorSearch = 0;
$(document).ready(function(){
  $("#login").keyup(function(){ 
  $.cookie(USER_CHAT, $("#login").val() , { expires: 200 });
  });
  $("#login").val($.cookie(USER_CHAT));
//  $("#siteContent").html('');
/*
  $("#findTxtId").keyup(function(){
    if($("#findTxtId").val().length > 2){
      $('#findLoader').show();
      contorSearch++;
      $.get("/ajax-find.php", {find: $("#findTxtId").val(), categorie: $("#findCategorie").val()},
      function(data){
        $("#siteContent").html(data);
        $('#findLoader').hide();
      });
    }
  });
  */
	$("#findTxtId").autocomplete("/ajax-find.php", {
		width: 260,
		cacheLength: 10,
		autoFill: false,
		mustMatch: true,
		matchCase: 1,
		maxItemsToShow: -1,
		noCache: false,
		selectFirst: false,
		matchContains: false
	});

});

function s_h(id){

  if($("#"+id).css('display') != 'block'){
    $(".subcats").hide();
  }
  $("#"+id).slideToggle("fast");
}




