jQuery.noConflict();
var WebFontConfig = {
		custom: {
			families: [
				'UniversLTW01-47LightCn',
				'UniversLTW01-55Oblique',
				'Univers LT W01 55 Roman',
				'UniversLTW01-57Condense 723821',
				'UniversLTW01-59UltraCn', 
				'Univers LT W01 65 Bold', 
				'UniversLTW01-67BoldCn'
			]
		},
		// monotype: {
		// 	projectId: 'c129eae1-fa4e-4821-86f9-8c861e5915df'
		// },
		active: function() {
			if (typeof GS.Navigation.setSubNavPositions === 'function') {
				GS.Navigation.setSubNavPositions();
			}
		}
	}


/* GS JavaScript Framework
 *
 * @author Andy Hawkes, Mehmet Duran, Franco Zanki 
 * @GS = Goldman Sachs	
 */

var GS = GS || {};

//We need to allow page-level variables in the "window" context to override specific default variables
//Define the base path for JS file refernces (if required)
GS.jsRoot = (window.GS.jsRoot && window.GS.jsRoot !== 'undefined') ? window.GS.jsRoot : '/';


GS.Page = (function ($){
    Page = {
        registry: [],

        register: function ( where, what ){
            if( !(where == '*' || "className" in where || "id" in where) && !!what )
                throw new Error('Parameters missing for GS.Page.register');

            var key = where == '*' ? '*' : (where.className ? "." + where.className : '#' + where.id);
            Page.registry[key] = Page.registry[key] || [];

            Page.registry[key].push(what);
        },

        run: function (){
            Page.runAll(Page.registry['*'] || []);
            
            var classes = $(document.body).attr('class').split(' ');
            for( var i = 0, cl = classes.length; i < cl; i++ ){
                Page.runAll(Page.registry['.' + classes[i]] || []);
            }
            
            Page.runAll(Page.registry[ '#' + $(document.body).attr('id')] || []);
        },
        
        runAll: function ( group ){
            if( !!group ){
                for( var i = 0, gl = group.length; i < gl; i++ ){
                    if( group[i] instanceof Function )
                        group[i]();
                }
            }
        }
    }

    return Page;
})(jQuery);

jQuery(function (){
    GS.Page.run();
})
