//Solyaris JS engine
function setEqualHeight(columns){
	var tallestcolumn = 0;
	columns.each(function(){
		currentHeight = $(this).height();
		if(currentHeight > tallestcolumn)
			tallestcolumn = currentHeight;
	});
	columns.height(tallestcolumn);
}

$(document).ready(function(){
  setEqualHeight($("div.difhihead"));
  setEqualHeight($("div.difhi"));
  $('.search .search_input').focus(function(){
    if($(this).val()=='поисковый запрос'){
      $(this).val('');
    }
  });
  $("a.pirobox_gall").mouseover(function(){
    $("#main_img").attr("src", $(this).attr("href"));
    $("#main_img").attr("alt", $(this).attr("title"));
    $("#main_img").attr("title", $(this).attr("title"));
  });
})

