$(document).ready(function() {
  // multicolumns blocks
  $('div.cols div.col:first-child').addClass('col_left');
  $('div.cols div.col:last-child').addClass('col_right');

  // tables
  //$('table.table1 tr:nth-child(even)').addClass('even');
  
  // pagination  
  $('div.pagination div.element a').parent().box('box_style3');
  $('div.pagination div.element span.space').parent().box('box_style3');
  $('div.pagination div.element span.active').parent().box('box_style4');
  $('div.pagination div.element table td.content div.content_block').css({marginTop: '-6px', marginBottom: '-6px'});

  // forms
  $('form.main .errors').box('box_style3');
  
  // forum messages and comments
  $('div.forum_messages div.message').box('box_style1');
  $('div.comments div.comment').box('box_style1');
  $('div.comments div.rating_static').box('box_style3');
  if ($.browser.msie && parseInt($.browser.version) == 6) {
    $('form.comment_add').css('padding', '20px 20px 10px 20px');
  } else {
    $('form.comment_add').box('box_style3');
  }
  $('form.comment_add span.field span.formed').box('box_style6');
  $('form.comment_add div.textarea').box('box_style6');
  
  // faq
  $('div.faq_answers div.answer div.data div.date').box('box_style2');
  $('div.faq_answers div.answer div.responded').box('box_style3');
  
  // news
  $('div#content div.news_list div.news_item:last-child').addClass('last');
  $('div#sidebar div.news_list_bg div.news_list_items').box('box_style3');

  // catalog search form
  $('form.catalogue_search').box('box_style3');
  $('form.catalogue_search span.field span.formed').box('box_style6');
  
  //catalog
  $('div#content div.catalog_marks div.mark').box('box_style5');
  $('div#content div.catalog_marks div.mark div.lines div.line:nth-child(3n)').css({paddingRight: '0'});
  $('div#content div.catalog_marks div.mark div.lines_5 div.line').css({paddingRight: '36px'});
  $('div#content div.catalog_marks div.mark div.lines_5 div.line:nth-child(5n)').css({paddingRight: '0'});
  $('div#sidebar div.marks_list_bg div.marks_list_items').box('box_style3');
  $('div#sidebar div.marks_list_items div.mark div.title').box('box_style6');
  
  $('div.catalog_items div.catalog_item:last-child').addClass('last');
  
  $('div.catalog_item div.info table.chars tr:nth-child(even)').addClass('even');
  $('div#content div.catalog_item div.info div.marks_list_bg div.marks_list_items').box('box_style3');
  $('div#content div.catalog_item div.mark div.title').box('box_style6');
});
