function parseLL(input) {
  var degrees = Math.floor(input / 100);
  var remainder = (input - degrees * 100) / 60;
  return degrees + remainder;
}

function setTimelineZoom(zoom) {
  $('#timeline')[0].className = 'zoom-' + zoom;
  $('#timeline-draggable').width($('#timeline-internal ol').width());
}

function roundTo(input, precision) {
  return Number(input).toFixed(precision);
}

function changeSidebarBottom(showOrHide) {
  if (showOrHide == 'show') {
    $('#sidebar-wrapper').addClass('showbottom');
  } else if (showOrHide == 'hide') {
    $('#sidebar-wrapper').removeClass('showbottom');
  }
  if ($('#sidebar-wrapper').hasClass('showbottom')) {
    $('#sidebar-top').height($('#content').height() - ($('#sidebar-bottom').height() + 12));
  } else {
    $('#sidebar-top').height($('#content').height());    
  }
}