(function(a) { })(window.jQuery); $(document).ready(function() { $(window).scroll(function(a) { $el = $(".fixedElement"); if ($(this).scrollTop() > 53 && $el.css("position") != "fixed") { $("#header-wrapper").css({ background: "url(/templates/fpc/hocf/images/bg-header.png)" }) } else $("#header-wrapper").css({ background: "url(/templates/fpc/hocf/images/bg-header.jpg)" }) }); $(window).load(function() { $("#slider").blueberry({ hoverpause: "true" }) }); $(function() { $("input, textarea, select, button").uniform() }); $("#plus").click(function() { $("nav ol").slideToggle("slow") }) }); $(".plus").click(function() { $(this).fadeOut(); $(".minus").fadeIn(); $(".sub-footer-open-wrapper").slideToggle(); $(".sub-footer-closed-wrapper").slideToggle(); $(".minus").click(function() { $(this).fadeOut(); $(".plus").fadeIn(); $(".sub-footer-open-wrapper").slideUp("slow"); $(".sub-footer-closed-wrapper").slideDown("slow"); $(".plus-minus").removeClass("active").stop() }) })

$(function() {
var hashName = location.hash.substring(1);

        if (hashName == 'christian_education') {
            showContent1();
        }
        else if (hashName == 'facilities') {
            showContent2();
        }
        else if (hashName == 'scholarships') {
            showContent3();
        }
        else if (hashName == 'missions') {
            showContent4();
        }
});

$('li#menu1').click(function() {
    showContent1();
});

$('li#menu2').click(function() {
    showContent2();
});

$('li#menu3').click(function() {
    showContent3();
});

$('li#menu4').click(function() {
    showContent4();
});

$('li#menu5').click(function() {
    showContent5();
});

function showContent1() {
    $('#overview').hide('slow', function() {
        // Animation complete.
    });
    $('#content1').show('slow', function() {
        // Animation complete.
    });
    $('#content2').hide('slow', function() {
        // Animation complete.
    });
    $('#content3').hide('slow', function() {
        // Animation complete.
    });
    $('#content4').hide('slow', function() {
        // Animation complete.
    });
    $('#content5').hide('slow', function() {
        // Animation complete.
    });
};

function showContent2() {
    $('#overview').hide('slow', function() {
        // Animation complete.
    });
    $('#content1').hide('slow', function() {
        // Animation complete.
    });
    $('#content2').show('slow', function() {
        // Animation complete.
    });
    $('#content3').hide('slow', function() {
        // Animation complete.
    });
    $('#content4').hide('slow', function() {
        // Animation complete.
    });
    $('#content5').hide('slow', function() {
        // Animation complete.
    });
};

function showContent3() {
    $('#overview').hide('slow', function() {
        // Animation complete.
    });
    $('#content1').hide('slow', function() {
        // Animation complete.
    });
    $('#content2').hide('slow', function() {
        // Animation complete.
    });
    $('#content3').show('slow', function() {
        // Animation complete.
    });
    $('#content4').hide('slow', function() {
        // Animation complete.
    });
    $('#content5').hide('slow', function() {
        // Animation complete.
    });
};

function showContent4() {
    $('#overview').hide('slow', function() {
        // Animation complete.
    });
    $('#content1').hide('slow', function() {
        // Animation complete.
    });
    $('#content2').hide('slow', function() {
        // Animation complete.
    });
    $('#content3').hide('slow', function() {
        // Animation complete.
    });
    $('#content4').show('slow', function() {
        // Animation complete.
    });
    $('#content5').hide('slow', function() {
        // Animation complete.
    });
};

function showContent5() {
    $('#overview').hide('slow', function() {
        // Animation complete.
    });
    $('#content1').hide('slow', function() {
        // Animation complete.
    });
    $('#content2').hide('slow', function() {
        // Animation complete.
    });
    $('#content3').hide('slow', function() {
        // Animation complete.
    });
    $('#content4').hide('slow', function() {
        // Animation complete.
    });
    $('#content5').show('slow', function() {
        // Animation complete.
    });
};

