  // scrollowanie
  var Scrolling = function(up, scrto, intervals, speed, speedboost, s_bst , acceleration)
  {    
    var intv;
    var scrolling = $("html").scrollTop();
    this.ScrollUp = function()
    {
      if(up)
        var bool = (scrolling <= scrto);
      else
        var bool = (scrolling >= scrto);
      
      if(bool)
      {
        clearInterval(intv);
      }
      else
      {
        $("html").scrollTop(scrolling);
        
        if(speedboost <= 0)
        {
          speedboost = s_bst;
          speed*=acceleration;
        }
        else
        {
          speedboost--;
        }
        if(up)
          scrolling-=1*speed;
        else
          scrolling+=1*speed;          
      }
    };
    var intv = setInterval("this.ScrollUp()", intervals);
  };    
 

