$(function(){
	$("a img").hover(
		function(){
			$(this).stop();
			$(this).fadeTo(300, 0.5);
		},
		function(){
			$(this).stop();
			$(this).fadeTo(500, 1.0);
		}
	);

    $("div.contaner").hover(
		function(){
			$(this).stop();
			$(this).css("borderColor","#a4c4ff");
		},
		function(){
			$(this).stop();
			$(this).css("borderColor","#dddddd");
		}
	);
});

function clear_input(){
  var value = $("input#search_key").attr("value");
  if((value == "поиск")){
     $("input#search_key").attr("value", '');
  }
}

function CheckSearchForm()
{
   var value = $("input#search_key").attr("value");
   if ( (document.SearchForm.search_key.value.length < 2) || (value == "поиск"))
   {
    clear_input();
    alert("Введите ключевое слово!");
    document.SearchForm.search_key.focus();
    return false;
   }
   else{
    SearchForm.submit();
   }
}$(function(){
	$("a img").hover(
		function(){
			$(this).stop();
			$(this).fadeTo(300, 0.5);
		},
		function(){
			$(this).stop();
			$(this).fadeTo(500, 1.0);
		}
	);

    $("div.contaner").hover(
		function(){
			$(this).stop();
			$(this).css("borderColor","#a4c4ff");
		},
		function(){
			$(this).stop();
			$(this).css("borderColor","#dddddd");
		}
	);
});

function clear_input(){
  var value = $("input#search_key").attr("value");
  if((value == "поиск")){
     $("input#search_key").attr("value", '');
  }
}

function CheckSearchForm()
{
   var value = $("input#search_key").attr("value");
   if ( (document.SearchForm.search_key.value.length < 2) || (value == "поиск"))
   {
    clear_input();
    alert("Введите ключевое слово!");
    document.SearchForm.search_key.focus();
    return false;
   }
   else{
    SearchForm.submit();
   }
}$(function(){
	$("a img").hover(
		function(){
			$(this).stop();
			$(this).fadeTo(300, 0.5);
		},
		function(){
			$(this).stop();
			$(this).fadeTo(500, 1.0);
		}
	);

    $("div.contaner").hover(
		function(){
			$(this).stop();
			$(this).css("borderColor","#a4c4ff");
		},
		function(){
			$(this).stop();
			$(this).css("borderColor","#dddddd");
		}
	);
});

function clear_input(){
  var value = $("input#search_key").attr("value");
  if((value == "поиск")){
     $("input#search_key").attr("value", '');
  }
}


