function buildForIE ()
{
  selectorsLastChild = '.flashbox li:last-child, .main_menu li:last-child, .faq_page #menu li:last-child';
  jQuery(selectorsLastChild).addClass('last-child');

}

jQuery(document).ready(function()
{
  if(jQuery.browser.msie)
    buildForIE();

  jQuery('.table').each(function(){
      jQuery(this).find('tr').each(function(i){
            if (i % 2 == 0)
              jQuery(this).addClass('odd');

      });
  });

  jQuery('.table').attr('border','0');
  jQuery('.table .odd:first-child th:first-child, .table .odd:first-child td:first-child').addClass("first-child-top");
  jQuery('.table .odd:first-child th:last-child, .table .odd:first-child td:last-child').addClass("last-child-top");
  jQuery('.table .odd:last-child td:first-child').addClass("first-child-bot");
  jQuery('.table .odd:last-child td:last-child').addClass("last-child-bot");

  jQuery(".lightbox").lightbox();

  var objSearch = document.getElementById('search_field')
  objSearch.onfocus = function() 	{  if(objSearch.value=='Поиск') objSearch.value = '';}
  objSearch.onblur = function() 	{ if(objSearch.value=='') objSearch.value = 'Поиск';}

  jQuery('.flashbox .close').click(function(){
     jQuery('.flashbox').hide();
  });


});





