/**************************************************
  Coppermine 1.5.x Plugin - Mouse wheel support for filmstrip
  *************************************************
  Copyright (c) 2010 Timo Schewe (www.timos-welt.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.
  ********************************************
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/branches/cpg1.5.x/plugins/stripwheel/makewheel.js $
  $Revision: 7057 $
  $LastChangedBy: timoswelt $
  $Date: 2010-01-14 15:57:29 +0100 (Do, 14 Jan 2010) $
  **************************************************/


  jQuery(function($) {
    $(document).ready(function() {
      $('#filmstrip').bind('mousewheel', function(event, delta) {
              if (delta > 0)
              {
                if ($('#filmstrip_prev').css('visibility') == 'visible') $('#filmstrip_prev').click();
              }
              else
              {
                if ($('#filmstrip_next').css('visibility') == 'visible') $('#filmstrip_next').click();
              }
              return false;
          });
      try { $('#filmstrip').css("cursor", 'url(plugins/stripwheel/mousescroll.cur),e-resize');} catch(woschd_err) {}

    });
  });
  

