/*
    feindura - Flat File Content Management System
    Copyright (C) 2009 Fabian Vogelsteller [frozeman.de]

    This program is free software;
    you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along with this program;
    if not,see <http://www.gnu.org/licenses/>.
*/
// javascript/sidebar.js version 0.32 (requires mootools-core and mootools-more)


window.addEvent('domready', function() {
  
  // ->> LOG LIST
  // ------------
  if($('windowBoxSidebarContent') != null && $('windowBoxSidebarContent').hasClass('scroll')) {

    // vars
    //var minHeight = '200px';
    //var maxHeight = '450px';
    
    $('windowBoxSidebarContent').setStyle('overflow','hidden');
    
    
    // add DIV SCROLLER
    var contentScroller = new divScroller('windowBoxSidebarContent', {area: 150,direction: 'y', velocity: 0.4,scrollSpeed: 60});
  	// myContent
  	$('windowBoxSidebarContent').addEvent('mouseenter', contentScroller.start.bind(contentScroller));
  	$('windowBoxSidebarContent').addEvent('mouseleave', contentScroller.stop.bind(contentScroller));

   }
});