﻿$(document).ready(function() {



    $(".financeQuote").colorbox({ width: "635", height: "500", iframe: true });



    $("div.product-container").each(function() {
        $(this).find("a.animated").anchorAnimate();
        $(this).find("div.content-container").each(function() {

            var container = this;

            var msie7 = $.browser.msie && $.browser.version < 8;

            if (!msie7) {
                var top = $(this).offset().top - parseFloat($(this).css('margin-top').replace(/auto/, 0));

                $(window).scroll(function(event) {

                    var y = $(this).scrollTop() + 10;

                    if (y >= top) {
                        $(container).find("div.menu-container").addClass('menu-container-fixed');
                    } else {
                        $(container).find("div.menu-container").removeClass('menu-container-fixed');
                    }
                });
            }

            //$(this).find("div.menu-container").height($(this).height());
        });
    });
});



