var config = { baseUrl : s + 'assets/www/', paths : { css : '_main/js/css.js?ver=' + v, jquery : '_main/js/jquery.js?ver=' + v, init : '_main/js/migrate.js?ver=' + v, core : '_main/js/core.js?ver=' + v, fb : ['//connect.facebook.net/' + locale + '/sdk', '_main/js/3rdparty.js?ver=' + v], rc : ['https://www.google.com/recaptcha/api.js?hl=' + locale.split('_')[0], '_main/js/3rdparty.js?ver=' + v], re : '_main/js/resizeend.js?ver=' + v, ga : ['https://ssl.google-analytics.com/ga', '_main/js/3rdparty.js?ver=' + v], gmap : [ 'https://maps.googleapis.com/maps/api/js?language=' + locale.split('_')[0] + '®ion=' + locale.split('_')[1] + '&key=' + gmkey, '_main/js/3rdparty.js?ver=' + v], ps : '_main/js/photoswipe.js?ver=' + v, psui : '_main/js/photoswipe-ui.js?ver=' + v }, shim : { jquery : { exports : '$' }, init : { deps : ['jquery'] }, re : { deps : ['init'] }, core : { deps : ['re'] }, ps : { exports : 'PhotoSwipe' }, psui : { exports : 'PhotoSwipeUI_Default' }, fb : { deps : ['init'], exports : 'FB' }, gmap : { deps : ['init'] }, ga : { exports : '_gat' } } }; if (typeof requirement != 'undefined') { for ( var name in requirement) { var data = requirement[name]; if (data.path) { config.paths[name] = data.path + '.' + (data.type ? data.type : 'js') + '?ver=' + v; } if (data.shim) { config.shim[name] = data.shim; } if (data.deps) { config.deps = data.deps; } } } require.config(config);