﻿google.setOnLoadCallback(function() {
    // Place init code here instead of $(document).ready()

    // Schedule Details Control
    $(".SchedDetailsButton").live('click', function(event) {
        $("#SchedDetailsDiv div").slideToggle();
        //console.log("clicked .SchedDetailsButton");
    });

    //Set Details hidden at first
    //$("#SchedDetailsDiv div").slideUp(0);

   


    // Menu Accordian Controls
    $("#one-header").click(function() {
        $(".content:not(#one-content)").slideUp(1000);
        $("#one-content").slideDown(1000);
    });
    $("#two-header").click(function() {
        $(".content:not(#two-content)").slideUp(1000);
        $("#two-content").slideDown(1000);
    });
    $("#three-header").click(function() {
        $(".content:not(#three-content)").slideUp(1000);
        $("#three-content").slideDown(1000);
    });
    $("#four-header").click(function() {
        $(".content:not(#four-content)").slideUp(1000);
        $("#four-content").slideDown(1000);
    });
    $("#five-header").click(function() {
        $(".content:not(#five-content)").slideUp(1000);
        $("#five-content").slideDown(1000);
    });
    $("#six-header").click(function() {
        $(".content:not(#six-content)").slideUp(1000);
        $("#six-content").slideDown(1000);
    });
    $("#seven-header").click(function() {
        $(".content:not(#seven-content)").slideUp(1000);
        $("#seven-content").slideDown(1000);
    });
    $("#eight-header").click(function() {
        $(".content:not(#eight-content)").slideUp(1000);
        $("#eight-content").slideDown(1000);
    });

});



function setMenu(MenuChoice) {


    $(".content").hide();

    if (MenuChoice == "one") {
        $("#one-content").show();
    }
    if (MenuChoice == "two") {
        $("#two-content").show();
    }
    if (MenuChoice == "three") {
        $("#three-content").show();
    }
    if (MenuChoice == "four") {
        $("#four-content").show();
    }
    if (MenuChoice == "five") {
        $("#five-content").show();
    }
    if (MenuChoice == "six") {
        $("#six-content").show();
    }
    if (MenuChoice == "seven") {
        $("#seven-content").show();
    }
    if (MenuChoice == "eight") {
        $("#eight-content").show();
    }


}