$(function () {
	var search = $("input[name=q]");
	search.focus(function(){
		$(this).addClass("out");
	});
	search.blur(function(){
		if ($(this).val() == "") $(this).removeClass("out");
	});	
	$(".jCarouselLite").jCarouselLite({
	  btnNext: ".next",
	  btnPrev: ".prev",
	  visible: 1,
	  speed: 500,
	  btnGo: [".1", ".2",".3",".4", ".5",".6",".7", ".8",".9",".10"],
	  circular: false
	});
	$(".gallery_carousel .gCarousel").jCarouselLite({
	  btnNext: ".next",
	  btnPrev: ".prev",
	  visible: 5,
	  speed: 500,
	  circular: true
	});
});

addToFavorites = function(url, title) {
  try {
    if (jQuery.browser.mozilla) {
      window.sidebar.addPanel (title,url, "");
    } else if (jQuery.browser.msie) {
      window.external.AddFavorite(url, title);
    } else {
      alert('Нажмите комбинацию клавиш Ctrl+D для добавления страницы ва закладки');
    }
    return false;
  }
  catch(e) { 
    return false;
  }
}

