function TimeMenu() {
    // uses a points based system to score and sort
    // the meal order

    /*var currentDate = new Date()
    var currentHour = currentDate.getHours();

    var currentMinute = currentDate.getMinutes();
    if(currentMinute < 10) {
        currentMinute = String('0' + currentMinute);
    }
    
    // our clock
    function tickTock() {
        currentDate = new Date()
        currentHour = currentDate.getHours();

        currentMinute = currentDate.getMinutes();
        if(currentMinute < 10) {
            currentMinute = String('0' + currentMinute);
        }
        if(currentHour > 12) {
            // if after noon, show PM
            $('#menuTime').html((currentHour - 12) + ':' + currentMinute + '<sub>pm</sub>');
        } else if (currentHour == 0) {
            // if midnight, it's actually 12am
            $('#menuTime').html('12' + ':' + currentMinute + '<sub>am</sub>');
        } else if (currentHour == 12) {
            // if noon, display pm
            $('#menuTime').html('12' + ':' + currentMinute + '<sub>pm</sub>');
        } else {
            $('#menuTime').html(currentHour + ':' + currentMinute + '<sub>am</sub>');
        }
    }
    
    setInterval(tickTock, 5000);
    
    // separate dictionaries for meal points and
    // the data obj to control them
    var allMealsData = {
        // 'breakfast': $('#breakfast'),
        // 'lunch': $('#lunch'),
        // 'dinner': $('#dinner')
        'breakfast': $('#menu-1'),
        'lunch': $('#menu-2'),
        'dinner': $('#menu-4')

    };
    
    var dropMenu = {
        'breakfast': 'menu-1',
        'lunch': 'menu-2',
        'dinner': 'menu-4'
    }
    
    var allMealsPoints = { 
        'breakfast': 0, 
        'lunch': 0, 
        'dinner': 0 
    };
    

    // the main logic for the point system    
    if(currentHour < 11) {
        // before 11am
        allMealsPoints['breakfast']+=10;
        allMealsPoints['lunch']+=5;
        
    } else if(currentHour >= 11 && currentHour <= 15) {
        // between 11am and 4pm
        allMealsPoints['lunch']+=10;
        allMealsPoints['dinner']+=5;
        
    } else if(currentHour > 15) {
        // 4pm and later
        allMealsPoints['dinner']+=10;
        allMealsPoints['breakfast']+=5;
        
    }
    
    // how we're going to sort everything
    function keys(obj) {
        var keys = [];
    
        for(var key in obj) {
            keys.push(obj[key]);
        }
    
        return keys;
    }
    
    // logic to sort numbers
    function sortNumber(a,b) {
        return a - b;
    }
    
    // applies the sorted number array order 
    // to the array of words
    function applySort( p_arr, p_obj ) {
    
        var order = [];
    
        for(var num in p_arr) {
            for(var meal in p_obj) {
                if(p_obj[meal] == p_arr[num] && num != 'findIndex') {
                    order.push(meal);              
                }
            }
        }
        
        return order;
    
    }
    
    // where the sorting starts to happen
    mealOrder = keys(allMealsPoints).sort(sortNumber);
    // console.log(mealOrder);
    
    // now let's set it to the name of the items instead of their points
    mealOrder = applySort(mealOrder, allMealsPoints);
    
    var iter = 0;

    // let's actually write the correct order
    for(var meal in mealOrder) {
        /*$(allMealsData[mealOrder[meal]]).prependTo($('#allMeals'));
        iter++;
        if(iter == 3) {
            $('#menuSelect li').each(function(index) {
//                console.log(dropMenu[mealOrder[meal]]);
//                console.log( $(this).html() );
//                console.log( $(this).data("id") );
                if( $(this).data('id') == dropMenu[mealOrder[meal]] ) {
                    $('#menuSelect .default').css('display', 'none');
                    $('#menuSelect .default').removeClass('default');
                    $(this).css('display', 'block');
                    $(this).addClass('default');
                }
            });
        }*/
    //}

}
