﻿$(document).ready(function() {

    $("div#masthead div.utility-nav fieldset input.text").val("Search");
    $("div#masthead div.utility-nav fieldset input.text").click(function() {
        if ($(this).val() == "Search")
            $(this).val("");
    });
    $("div#masthead div.utility-nav fieldset input.text").blur(function() {
        if ($(this).val() == "")
            $(this).val("Search");
    });

    $("div#body-content-home div.help-menu fieldset input.text").val("Enter Email Address");
    $("div#body-content-home div.help-menu fieldset input.text").click(function() {
    if ($(this).val() == "Enter Email Address")
            $(this).val("");
    });
    $("div#body-content-home div.help-menu fieldset input.text").blur(function() {
        if ($(this).val() == "")
            $(this).val("Enter Email Address");
    });

    $("div#footer fieldset input.text").val("Sign-Up Now!");
    $("div#footer fieldset input.text").click(function() {
        if ($(this).val() == "Sign-Up Now!")
            $(this).val("");
        });
    $("div#footer fieldset input.text").blur(function() {
        if ($(this).val() == "")
            $(this).val("Sign-Up Now!");
    });

    // stay connected text
    var strInput = "";
    $("div.stay-connected input.text").each(function() {
        switch ($(this).attr("class")) {
            case "text email":
                $(this).val("Email address");
                break;
            case "text cell":
                $(this).val("Cell # (for txts)");
                break;
            case "text zip":
                $(this).val("Zip");
                break;
        }
    });

    // home page tabs
    $("#home-tabs").tabs();

});

ddaccordion.init({
    headerclass: "schedule_header", //Shared CSS class name of headers group
    contentclass: "details-view-schedule", //Shared CSS class name of contents group
    collapseprev: false, //Collapse previous content (so only one open at any time)? true/false 
    defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
    animatedefault: false, //Should contents open by default be animated into view?
    persiststate: false, //persist state of opened contents within browser session?
    toggleclass: ["anchor-closed", "anchor-open"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
    togglehtml: ["prefix", "Show ", "Hide "], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
    animatespeed: "fast" //speed of animation: "fast", "normal", or "slow"
})