
function InitalizeHomePageGallery() {
    $('#slideshow').crossSlide({
        sleep: 2,
        fade: 1,
        variant: true,
        easing: 'easeInOutQuad'
    }, [
            { src: 'images/C93_small.jpg' },
            { src: 'images/C15_small.jpg' },
            { src: 'images/C35_small.jpg' },
            { src: 'images/C45_small.jpg' },
            { src: 'images/C93_small.jpg' },
            { src: 'images/C97_small.jpg' },
            { src: 'images/C109_small.jpg' },
            { src: 'images/C122_small.jpg' },
            { src: 'images/Breakfast2008_small.jpg' }
        ]);
}

function InitalizeAreaInfoGallery() {
    $('#slideshow').crossSlide({
        sleep: 2,
        fade: 1,
        variant: true,
        easing: 'easeInOutQuad'
    }, [
            { src: 'images/C151T_small.jpg' },
            { src: 'images/C153T_small.jpg' },
            { src: 'images/C155T_small.jpg' },
            { src: 'images/IMG_3193_small.jpg' },
            { src: 'images/IMG_3194_small.jpg' },
            { src: 'images/IMG_3195_small.jpg' },
            { src: 'images/IMG_3196_small.jpg' },
            { src: 'images/IMG_3199_small.jpg' },
            { src: 'images/IMG_3200_small.jpg' },
            { src: 'images/IMG_3201_small.jpg' },
            { src: 'images/IMG_3202_small.jpg' },
            { src: 'images/IMG_3203_small.jpg' }
        ]);
}




function InitalizeAttractionsPageGallery() {
    $('#slideshow').crossSlide({
        sleep: 2,
        fade: 1,
        variant: true,
        easing: 'easeInOutQuad'
    }, [
            { src: 'images/C93_small.jpg' },
            { src: 'images/C15_small.jpg' },
            { src: 'images/C35_small.jpg' },
            { src: 'images/C45_small.jpg' },
            { src: 'images/C93_small.jpg' },
            { src: 'images/C97_small.jpg' },
            { src: 'images/C109_small.jpg' },
            { src: 'images/C122_small.jpg' },
            { src: 'images/Breakfast2008_small.jpg' }
        ]);
}

function InitalizeAmenitiesPageGallery() {
    $('#slideshow').crossSlide({
        sleep: 2,
        fade: 1,
        variant: true,
        easing: 'easeInOutQuad'
    }, [
            { src: 'images/C45_small.jpg' },
            { src: 'images/C82_small.jpg' },
            { src: 'images/C97_small.jpg' },
            { src: 'images/C109_small.jpg' },
            { src: 'images/C139_small.jpg' },
            { src: 'images/lounge_2_small.jpg' },
            { src: 'images/Breakfast2008_small.jpg' },
            { src: 'images/business_center_2_small.jpg' }
        ]);
}

function InitalizeGuestRoomsPageGallery() {
    $('#slideshow').crossSlide({
        sleep: 2,
        fade: 1,
        variant: true,
        easing: 'easeInOutQuad'
    }, [
            { src: 'images/C93_small.jpg' },
            { src: 'images/C75_small.jpg' },
            { src: 'images/C86_small.jpg' },
            { src: 'images/C122_small.jpg' },
            { src: 'images/C144_small.jpg' },
            { src: 'images/C149_small.jpg' },
            { src: 'images/Cumberland_Inn_small.jpg' }
        ]);
}

function InitalizeGalleryPageGallery() {
    $('#slideshow').crossSlide({
        sleep: 2,
        fade: 1,
        variant: true,
        easing: 'easeInOutQuad'
    }, [
            { src: 'images/C93_small.jpg' },
            { src: 'images/C75_small.jpg' },
            { src: 'images/C86_small.jpg' },
            { src: 'images/C122_small.jpg' },
            { src: 'images/C144_small.jpg' },
            { src: 'images/C149_small.jpg' },
            { src: 'images/Cumberland_Inn_small.jpg' }
        ]);
}

function InitalizeMeetingsPageGallery() {
    $('#slideshow').crossSlide({
        sleep: 2,
        fade: 1,
        variant: true,
        easing: 'easeInOutQuad'
    }, [
            { src: 'images/C53logo_small.jpg' },
            { src: 'images/business_center_2_small.jpg' }
        ]);
}

$(document).ready(function () {
    $('#head').load('menu.inc');
    $("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)  


    $("ul.topnav li span").click(function () { //When trigger is clicked...  
        //Following events are applied to the subnav itself (moving subnav up and down)  
        $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click  
        $(this).parent().hover(function () {
        }, function () {
            $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up  
        });
        //Following events are applied to the trigger (Hover events for the trigger)  
    }).hover(function () {
        $(this).addClass("subhover"); //On hover over, add class "subhover"  
    }, function () {  //On Hover Out  
        $('#AreaMenu').removeClass("activemenu"); //On hover over, add class "subhover"  
        $(this).removeClass("subhover"); //On hover out, remove class "subhover"  
    });

    $("#AreaMenu").hover(function () {
        //Following events are applied to the subnav itself (moving subnav up and down)  
        $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click  
        $("#AreaMenu").addClass("activemenu");
        $(this).parent().hover(function () {
        }, function () {
            $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up  
            $('#AreaMenu').removeClass("activemenu"); //On hover over, add class "subhover"  
        });
        $(this).addClass("subhover"); //On hover over, add class "subhover"  
    }, function () {  //On Hover Out 

        $('#AreaMenu').addClass("activemenu"); //On hover over, add class "subhover"  
    });
});  
