
var simpleScrollTimer   = null;
var simpleScrollSource  = null;

function simpleScroll(sourceObject, scrollTo) {

  var simpleScrollSource  = sourceObject;

  var castWrap      = document.getElementById('cast-list-master');

  var castListTable = document.getElementById('cast-list-table');
  var castListWidth = castListTable.scrollWidth;

  switch(scrollTo) {
  case 'right': castWrap.scrollLeft += 1; break;
  case 'left':  castWrap.scrollLeft -= 1; break;
  } // ! switch (direction?)

  if( !simpleScrollTimer ) {
    simpleScrollTimer = setInterval("simpleScroll(simpleScrollSource , '" + scrollTo + "')", 6);

    if( typeof(simpleScrollSource) == 'object' ) {
      simpleScrollSource.onmouseout = function() {
        clearInterval(simpleScrollTimer);
        simpleScrollTimer = null;
      }
    }
  }

} // ! simpleScroll()