(function(){var b=Flavors.Global.namespace("Flavors.Layout.Sentence"),c=Flavors.Logger.getLogger(b.__name__);Flavors.Layout=b;b.preInit=function(){c("preInit")};b.init=function(){c("init");Flavors.Layout.Shared.init();b.initNavigation();b.narrowScreen();$(window).resize(function(){b.aboutChangePosition();b.narrowScreen()});c("Initialized")};b.aboutChangePosition=function(){c("aboutChangePosition")};b.narrowScreen=function(){c("narrowScreen");Flavors.Layout.Shared.narrowScreen(minWidth=1E3)};b.initNavigation=
function(){c("initNavigation");$(window).bind("service-nav-load-complete",function(){$(".layout-content-button-close").show()});$(window).bind("service-nav-open",function(){$("#layout-content-overlay").show()});$(".layout-about-nav-label").live("click",function(a){c("nav click handler");a.preventDefault();var e=$(this).hasClass("about_text"),f=$(this);$(this).parents("span").each(function(){var d=this.id.replace("layout-about-nav-","");if(!(d&&d=="0-contact"))if(d){c("serviceAnchor="+d);if(d=Flavors.Layout.Shared.preparePanel(d))if(e){Flavors.Layout.Shared.closeAllServices();
$(".layout-content-button-close").hide();$("#layout-content-overlay").hide()}else{Flavors.Layout.Shared.transitionToPanel(d);Flavors.Layout.Shared.setNavState(f)}}})});$(".layout-content-button-close, #layout-content-overlay").click(function(a){c("nav click handler");a.preventDefault();Flavors.Layout.Shared.closeAllServices();$(".layout-content-button-close").hide();$("#layout-content-overlay").hide()})};b.parseServiceLinks=function(a){c("parseServiceLinks");var e=a.match(/({[^>]*?})/g);if(e!=null)for(i=
0;i<e.length;i++){var f=e[i].replace("{","");f=f.replace("}","");var d=f.split("|");$.each(accounts,function(g,h){if(d[0]==g){anchorText=d[1]||h.type;html='<span id="layout-about-nav-'+g+'" class="layout-about-nav-'+h.serviceId+' layout-about-item"><span class="layout-about-nav-label about_links">'+anchorText+"</span></span>";a=a.replace(e[i],html)}})}return a};b.addService=function(a){c("addService");Flavors.Layout.Shared.addService(a)};b.removeService=function(a){c("removeService");Flavors.Layout.Shared.removeService(a);
$(".layout-content-button-close").hide();$("#layout-content-overlay").hide()};b.replaceService=function(a){c("replaceService");Flavors.Layout.Shared.replaceService(a)};b.reorderServices=function(a){c("reorderServices");Flavors.Layout.Shared.reorderServices(a)};b.addLink=function(a){c("addLink");Flavors.Layout.Shared.addLink(a)};b.reorderLinks=function(a,e){c("reorderLinks");Flavors.Layout.Shared.reorderLinks(a,e)}})();Flavors.Layout.preInit();

