﻿$(function() {

    //  Create the navigation
    $("#navigation ul li").hover(
        function() {
            $(this).find("ul").show();
        },
        function() {
            $(this).find("ul").hide();
        }
    );

    });

    function slideSwitch() {
        // Create Lander Slider
        var $active = $('#lander a.active');

        if ($active.length == 0) $active = $('#lander a:last');

        var $next = $active.next().length ? $active.next()
        : $('#lander a:first');


        $active.addClass('last-active');

        $next.css({ opacity: 0.0 })
        .addClass('active')
        .animate({ opacity: 1.0 }, 1000, function() {
            $active.removeClass('active last-active');
        });
    }