$(function()
      {
        var win = $(window);
        // Full body scroll
        var isResizing = false;
        win.bind(
          'resize',
          function()
          {
            if (!isResizing) {
              isResizing = true;
              var container = $('#leftBar');
              var nH = $('#supersized');
              // Temporarily make the container tiny so it doesn't influence the
              // calculation of the size of the document
              container.css(
                {
                  'width': 1,
                  'height': 1
                }
              );
              // Now make it the size of the window...
              container.css(
                {
                  'width': 232,
                  'height': $(document).height() -28,
                  'z-index': 10000
                }
              );
             // alert(nH.height());
              isResizing = false;
              //container.jScrollPane(
                //{
                  //'showArrows': true
                //}
              //);
            }
          }
        ).trigger('resize');

        // Workaround for known Opera issue which breaks demo (see
        // http://jscrollpane.kelvinluck.com/known_issues.html#opera-scrollbar )
        //$('body').css('overflow', 'hidden');

        // IE calculates the width incorrectly first time round (it
        // doesn't count the space used by the native scrollbar) so
        // we re-trigger if necessary.
        if ($('#leftBar').height() != win.height()) {
          win.trigger('resize');
        }

        // Internal scrollpanes
        //$('.scroll-pane').jScrollPane({showArrows: true});
      });

