$(function() {
  $('#button-forward').click(function() {
//    alert(document.body.clientWidth);
//    alert(__left);
    if($.browser.msie) {
      $('#container').css({width: 4159 + 'px'});
      $('#container').animate({left: -310 + 'px'}, 400, 'swing');
    } else {
      var __left = - (2260 - document.body.clientWidth) / 14.157 - 22;
      $('#container').animate({left: __left + '%'}, 400, 'swing');
    }
  });
  $('#button-backward').click(function() {
    if($.browser.msie) {
      var __left = document.body.clientWidth / 2;
      $('#container').animate({left: __left + 'px', width: document.body.clientWidth + 'px'}, 400, 'swing');
    } else {
      $('#container').animate({left: '50%'}, 400, 'swing');
    }
  });
/*  if($.browser.msie && document.body.clientWidth < 1012) {
    $('#container').css({left: '36%'});
  }*/
});

// Параметры "left" для контейнера в зависимости от document.body.clientWidth
// 2260 -22%
// 1994 -33%
// 1728 -44%
// 1257 -77%
// 1000 -111%
// Для IE
// 1000 -309px
