 
 begin_time = null
 end_time = null
-slider_ticks = 1000
+slider_ticks = 100000
 
 info = ->
     ###

    ###
    null
    
on_slide = (value) ->
    ###
    # Do AJAX associated with slider movement.
    ###

    url = 'service/slide?time1=' + begin_time + '&time2=' + end_time + '&amount=' + value
    $.ajax url,
        async    : false
        dataType : 'json'

        max: slider_ticks-1
        value: slider_ticks/2
        create: (event, ui) ->
            on_slide(0.5)
        slide: (event, ui) ->
            on_slide(ui.value/(slider_ticks-1))
    $('#slider').bind 'keydown', (event) ->
        null
        
$ ->
    ###
    # Run when document has loaded.
