var cmTheme;
(function($){
    cmTheme = {
        init: function(){
        		jQuery.fn.example.defaults.className = 'inactive';
            jQuery('#search-query').example(function(){
                return jQuery(this).attr('title');
            }, {className : 'inactive'});
        },
        /**
         * Used by the collection and CM.
         * @param {Elements} group
         */
        equalHeight: function(group){
            var tallest = 0;
            group.each(function(){
                var thisHeight = jQuery(this).height();
                if (thisHeight > tallest) {
                    tallest = thisHeight;
                }
            });
            group.height(tallest);
        }
    };
    jQuery(document).ready(function(){
        cmTheme.init();

        // Fixing Anchors with the base tag.
        jQuery("a[href^='#']").click(function(e){
            e.preventDefault();
            document.location.hash = this.href.substr(this.href.indexOf('#') + 1);
        });
    });
})(jQuery);
