requirejs.config({baseUrl:"app/src",paths:{jquery:"./libs/jquery/jquery-min",Modernizr:"./libs/modernizr/modernizr",underscore:"./libs/underscore/underscore-min",backbone:"./libs/backbone/backbone-min",handlebars:"./libs/handlebars/handlebars-src",Marionette:"./libs/marionette/backbone.marionette.min",Tmpl:"precompiled.handlebars",hammerjs:"./libs/hammer/hammer","jquery.hammer":"./libs/hammer/jquery.hammer",FastClick:"./libs/fastclick/FastClick",FTScroller:"./libs/ftscroll/ftscroller"},shim:{FTScroller:{FTScroller:"FTScroller"},handlebars:{exports:"Handlebars"},jquery:{exports:"$"},backbone:{deps:["underscore","jquery"],exports:"backbone"},underscore:{exports:"_"},Marionette:{deps:["jquery","underscore","backbone"],exports:"Marionette"},hammerjs:{exports:"hammerjs"},Modernizr:{exports:"Modernizr"}}}),lessonsModelsArr=window.myConfigApp.lessonsModelsArr,requirejs(["backbone","jquery","underscore","./AppCtrl","utils/Utils","Tmpl","FastClick","hammerjs","jquery.hammer"],function(a,b,c,d,e,f,g){conf={isBuildPhonegap:window.myConfigApp.isBuildPhonegap,debugConsole:!1},main={initialize:function(){b(document).ready(this.startApplication)},startApplication:function(){g.attach(document.body),window.Tmpl=f,e.initialize(),window.conf.debugConsole&&e.initConsoleView(),window.appCtrl&&window.appCtrl.close&&window.appCtrl.close(),window.appCtrl=new d,window.appCtrl.start(),document.getElementById("loaderRegion").style.display="none"}},route={initialize:function(){conf.isBuildPhonegap?(route.bindEvents(),requirejs(["cordova.js"],function(){})):main.initialize()},bindEvents:function(){document.addEventListener("pause",route.onDeviceResume,!1),document.addEventListener("resume",route.onDeviceResume,!1),document.addEventListener("backbutton",route.onDeviceResume,!1),document.addEventListener("menubutton",route.onDeviceResume,!1),document.addEventListener("searchbutton",route.onDeviceResume,!1),document.addEventListener("startcallbutton",route.onDeviceResume,!1),document.addEventListener("endcallbutton",route.onDeviceResume,!1),document.addEventListener("deviceready",route.onDeviceReady,!1),window.conf.isBuildPhonegap||main.initialize()},onDeviceReady:function(){route.receivedEvent("deviceready")},onDeviceResume:function(){route.receivedEvent("resume")},receivedEvent:function(a){switch(a){case"deviceready":document.getElementById("loaderTextRegion").innerHTML="Loading",main.initialize();break;case"resume":main.startApplication()}}},route.initialize()});