function buildForIE (){
  selectorsLastChild = '.flashbox li:last-child';
  jQuery(selectorsLastChild).addClass('last-child');

  selectorsFirstChild = '.breadcrumbs li:first-child';
  jQuery(selectorsFirstChild).addClass('first-child');

  var height_img = jQuery('.cat_container .image_block .cat_item img').height();
  jQuery('.big_cat_item .best_product, .big_cat_item .new_product').css('height',(height_img-3)/2);

  var width_img = jQuery('#textbar .image_block .cat_item img').width();
  jQuery('#textbar .big_cat_item .best_product, #textbar .big_cat_item .new_product').css('width',(width_img-3)/2);

}

jQuery(document).ready(function(){
  if(jQuery.browser.msie && jQuery.browser.version < 7){
    buildForIE();
  }

  jQuery("#search_query").focus(function(){
    var i = document.getElementById("search_query");
    i.value = "";
  });

  jQuery("#search_query").blur(function(){
      var i = document.getElementById("search_query");
      if(i.value == ""){
        i.value="Поиск";
      }
  });

  jQuery(".sect_title").hover(function(){
      var ddm = jQuery(this).next();
      ddm.show();
    },function(){

  });

  jQuery(".dropdown, .sect_item").hover(function(){},
  function(){
    jQuery(".dropdown").hide();
  });
});

