﻿
var galleryTimeLine = function() {
    var galleryHeight = "-230px";

    $(".footer-gallery").css("bottom", galleryHeight)
    $(".open-gallery").click(function() {
        var objHeight;
        objHeight = ($(".footer-gallery").height() + 20);

        if ($(this).parent().hasClass("isOpen") == true) {
            $(this).parent().removeClass("isOpen");
            $(".footer-gallery").animate({
                bottom: '-=' + objHeight
            });
        } else {
            $(this).parent().addClass("isOpen");
            $(".footer-gallery").animate({
                bottom: '+=' + objHeight
            });
        }
    });
}
