    var slider1Value = 0;
    var slider1Stepping = .25;
    var slider1Min = 0;
    var slider1Max = 120;
    $(function () {
        
        // Accordion
        $(".accordion").accordion({
            header: ".accordionHeading",
            autoHeight: false,
            collapsible: true
        });
        
        // Tabs
        $(".tabs").tabs({
            fx: {
                opacity: 'toggle'
            }
        }).find(".ui-tabs-nav").sortable({
            axis: 'x'
        });
        
        // Dialog
        $('.dialog').dialog({
            autoOpen: false,
            width: 600,
            buttons: {
                "Ok": function () {
                    $(this).dialog("close");
                },
                "Cancel": function () {
                    $(this).dialog("close");
                }
            }
        });
        
        // Dialog Link
        $('.dialog_link').click(function () {
            $('.dialog').dialog('open');
            return false;
        });
        //hover states on the static widgets
        $('.dialog_link, ul#icons li').hover(
        function () {
            $(this).addClass('ui-state-hover');
        },
        function () {
            $(this).removeClass('ui-state-hover');
        });
        
        
        // Datepicker
        $('.date-pick').datepicker({
            changeMonth: true,
            changeYear: true,
            dateFormat: 'yy-mm-dd'
        });
        
        // hours Slider
        $('.slider').slider({
            handle: '#slider-handle',
            animate: true,
            step: slider1Stepping,
            min: slider1Min,
            max: slider1Max, // 120 hours = 4 weeks = 1 month;
            startValue: function (e, ui) {
                $('.slider-input').val(ui.value);
            },
            slide: function (e, ui) {
                $('.slider-input').val(ui.value);
            }
        });
        
        // Progressbar
        $(".progressbar").progressbar({
            value: 20
        });
        
        //Tablesorter
        $(".tablesorter").tablesorter();
        
        //Time Entry
        $('#defaultEntry').timeEntry();
    });
