﻿// Accordion Script
/*$(document).ready(function () {
    $("dd").hide();
    $("dt a").click(function () {
        $("dd").slideUp("fast");
        $(this).parent("dt").next("dd").slideDown("normal");
    });
});*/

// Image Fade Function
$.fn.myFunction = function (timeOut) {
    var $elem = this;
    this.children(':gt(0)').hide();
    $elem.mouseover(function () {
        var intVar = setInterval(function () {
            $elem.children().eq(0).fadeOut('slow').next('img').fadeIn('slow').end().appendTo($elem);
        }, 2500);
        $elem.mouseout(function () {
            clearInterval(intVar);
        });
    });
};

// Function to Show Option Based on Zip
function pinataStickOptions_onblur(txtValue) { //Function gets value from TextBox1 and sets it to txtValue, which checks against set zipCode value
    // Check your zip code value here  
    if (txtValue == '32828' || txtValue== "32827") {
        $('#pinataStickOptions').show('slow');
    }
    else {
        $('#pinataStickOptions').hide('slow');
    }
}
