var C4=C4||{};
C4.Controller=(function articleLandingControllerInit(C){var B={enhanceArticleList:function(){C("#ArticleList ul.articleList").addClass("fl");
var F=C("<ul />").addClass("fr articleList").insertAfter("#ArticleList ul.articleList");
var D=0,E=0;
C("#ArticleList ul.articleList:first li").each(function(){D+=C(this).height()
});
if(C("#ArticleList ul.articleList:first li").length===2){D=1
}else{if(C("#ArticleList ul.articleList:first li").length==1){C("#ArticleList ul").addClass("singleItem")
}}C("#ArticleList ul.articleList:first li").each(function(){if(E>D/2){C(this).remove().appendTo(F)
}E+=C(this).height()
});
C("#ArticleList ul.articleList li:first-child").addClass("first");
C("#ArticleList ul.articleList li:last-child").addClass("last")
}};
return{init:function A(){C4.OO.insistRequired({object:C,names:["history","poshTabsLite","outerHtml"]},{object:C4.Brand.Views,names:["buildPocketsAndTabs","enhanceQuickLinks"]});
B.enhanceArticleList();
C4.Brand.Views.enhanceQuickLinks();
C4.Brand.Views.buildPocketsAndTabs();
C4.Brand.Views.enhanceSponsorship();
C4.Brand.Views.enhanceBrandPageAds()
},_set$:function(D){C=D
},_setViews:function(D){B=D
},_getViews:function(){return B
},_reset:(function(){var D=C,E=B;
return function(){C=D;
B=E
}
})()}
})(jQuery);