function Controller(){function e(){a.toggleMenu(l.home,Alloy.Globals.animations.menu)}function t(){l.home.removeEventListener("postlayout",t),Alloy.Globals.loading.showHide("hide")}function o(){r=Alloy.createController("newsItems",{itemCount:Ti.App.Properties.getInt("settingNumberNews")}),l.content.add(r.getView()),l.content.add(l.UI.create("Label",{text:"   "+L("Matches_Title"),classes:["header","bold"]})),l.content.add(Alloy.createController("homeMatches",{matchCount:8}).getView());var e=Ti.App.Properties.getInt("settingNumberVideos");e>0&&(l.content.add(l.UI.create("Label",{text:"   "+L("Videos_Title"),classes:["header","bold"]})),l.content.add(Alloy.createController("videoItems",{itemCount:e}).getView()))}require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="home",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var l=this,n={},i={};l.__views.home=Ti.UI.createView({backgroundColor:Alloy.CFG.colors.darkBlue,layout:"vertical",id:"home"}),l.__views.home&&l.addTopLevelView(l.__views.home),l.__views.titleBar=Ti.UI.createView({height:40,top:0,id:"titleBar"}),l.__views.home.add(l.__views.titleBar),l.__views.menuButton=Ti.UI.createView({width:33,height:33,left:12,backgroundImage:"images/iconMenu.png",id:"menuButton"}),l.__views.titleBar.add(l.__views.menuButton),e?l.__views.menuButton.addEventListener("click",e):i["$.__views.menuButton!click!toggleMenu"]=!0,l.__views.__alloyId1=Ti.UI.createView({width:60,height:27,backgroundImage:"images/goalLogoSmall.png",id:"__alloyId1"}),l.__views.titleBar.add(l.__views.__alloyId1),l.__views.content=Ti.UI.createScrollView({layout:"vertical",contentWidth:Ti.UI.FILL,id:"content"}),l.__views.home.add(l.__views.content),n.destroy=function(){},_.extend(l,l.__views);var a=require("helpers");require("feedSigner"),require("netConnect");var r;l.home.addEventListener("postlayout",t),o(),l.home.cancelRefresh=r.cancelRefresh,i["$.__views.menuButton!click!toggleMenu"]&&l.__views.menuButton.addEventListener("click",e),_.extend(l,n)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;