﻿/// <reference path="jquery-ui.min1.8.js" />
/// <reference path="jquery-1.6.4.min.js" />

$(document).ready(function () {
 
    $(document).ready(function () {
		 
        $("#topnav li").hover(function () {
            $(this).find("span").slideDown();
        },
                function () {
            $(this).find("span").slideUp();
        });


    });

  
   

   

    var prenavfn = function (ev, obj) {
        if (ev == "ovr") {
            obj.css({ "background-position": "20px -30px" });

        }else {
            if (ev == "out") {
                obj.css({ "background-position": "20px 0px" });
            }else {
                obj.css({ "background-position": "20px 0px" });
            }
        }
    };
    $("#jquery li").each(function () {
        $("a strong", this).css("opacity", "0");
    });

    $("#jquery li").hover(function () { // Mouse over
        $(this)
			.stop().fadeTo(500, 1)
			.siblings().stop().fadeTo(500, 0.2);

        $("a strong", this)
			.stop()
			.animate({
            opacity: 1,
            top: "-10px"
        }, 300);

    }, function () { // Mouse out
        $(this)
			.stop().fadeTo(500, 1)
			.siblings().stop().fadeTo(500, 1);

        $("a strong", this)
			.stop()
			.animate({
            opacity: 0,
            top: "-1px"
        }, 300);
    });
    $(function () {
        $('.default').dropkick();
        $('.change').dropkick({
            change: function (value, label) {
                alert('You picked: ' + label + ':' + value);
            }
        });

        $('.existing_event').dropkick({
            change: function () {
                $(this).change();
            }
        });
    });
    $('#ca-container').contentcarousel();
    $(function () {
        var defaultSlider = new RoyalSlider("#myGallery1", {
            slideTransitionSpeed: 200,
            slideTransitionEasing: "easeInOutCubic",
            captionShowEffects: ["moveleft", "fade"],
            captionShowDelay: 200,
            captionShowSpeed: 400,
            captionShowEasing: "easeOutBack",
            slideshowEnabled: true,
            slideshowDelay: 5000,
        });
    });


});
