﻿App.namespace('App.views.shared');
App.views.shared.Utility = (function () {
    return {
        resize: function(el, width, height) {
            height = height || width;
            el.resizeImg({
                    maxWidth: width,
                    maxHeight: height
                }).css('margin-top', (height - (el.height())) / 2);
        },
        lightBoxSettings: {
            imageLoading: '/Content/images/lightbox-ico-loading.gif',
            imageBtnPrev: '/Content/images/lightbox-btn-prev.gif',
            imageBtnNext: '/Content/images/lightbox-btn-next.gif',
            imageBtnClose: '/Content/images/lightbox-btn-close.gif',
            imageBlank: '/Content/images/lightbox-blank.gif'
        }
    };
})(jQuery);

