(function(c){function e(){var a=[],b=document.getElementsByTagName("script"),f;for(f in b)"string"===typeof b[f].src&&""!==b[f].src&&a.push(b[f].src);l=a;a=app.config;null!==app.config.currentPage?b=app.config.currentPage:(b=c.location.pathname.toLowerCase(),b=b.replace(/[\?#].*$/,""),b=b.replace(/(^\/+|\/+$)/g,""),0===b.length&&(b="home/index"),!0!==/\//.test(b)&&(b+="/index"));a.currentPage=b;a=k([],h.global);b=app.config.currentPage.split("/");f="";d(h["*"+b[0]])||(b[0]="*"+b[0],a=[]);for(var e=
0,g=b.length;e<g;e++)f+=b[e],k(a,h[f]),f+="/";for(;a.length;)b=a.shift(),f=app.module(b),d(f)?console.log("module not found: "+b):(k(m,f.requires),n.push(f),j())}function j(){if(!p)if(m.length){p=!0;var a=m.shift();!0!==/^(http|\/\/)/.test(a)&&(a=app.config.vendorPath+a,!0!==/\.js$/.test(a)&&(a+=".js"));app.getScript(a,function(){p=!1;j()})}else for(;n.length;)a=n.shift(),"function"===typeof a.init&&a.init()}function d(a){return"undefined"===typeof a||null===a}function k(a,b){a.push.apply(a,b||[]);
return a}var q={},h={},l=[],m=[],n=[],p=!1,r=Math.floor(9999*Math.random()),g={};c.app=c.app||{};c.app.config={version:"1.6.1",currentPage:null,vendorPath:"/assets/js/vendor/"};c.app.startup=function(a,b){if("function"===typeof b){var c="mod"+r++;app.module(c,{init:b});b=[c]}"string"===typeof b&&(b=[b]);a=a.toLowerCase().replace(/(^\/+|\/+$)/g,"");h[a]=h[a]||[];k(h[a],b)};c.app.module=function(a,b){return d(b)?q[a]:q[a]=b};c.app.getScript=function(a,b){b=b||function(){};if(-1===l.indexOf(a)){l.push(a);
var c=document.createElement("script"),d=document.getElementsByTagName("script")[0];c.src=a;var e=!1;c.onload=c.onreadystatechange=function(){if(!e&&(!this.readyState||"loaded"===this.readyState||"complete"===this.readyState))e=!0,c.onload=c.onreadystatechange=null,b.apply(app)};d.parentNode.insertBefore(c,d)}else b.apply(app)};c.app.subscribe=function(a,b){b.handleNotifications=b.handleNotifications||function(){};g[a]=g[a]||[];g[a].push(b)};c.app.unsubscribe=function(a,b){d(g[a])||g[a].splice(g[a].indexOf(b),
1)};c.app.notify=function(a,b){for(var c=g[a]||[];c.length;)c.shift().handleNotifications(a,b)};if(d(window.addEventListener))if(d(document.addEventListener))if(d(window.attachEvent))if("function"==typeof window.onload){var s=onload;window.onload=function(){s();e()}}else window.onload=e;else window.attachEvent("onload",e);else document.addEventListener("load",e,!1);else window.addEventListener("load",e,!1)})(window);
Array.prototype.indexOf=Array.prototype.indexOf||function(c,e){var j=this.length>>>0,d=Number(e)||0,d=0>d?Math.ceil(d):Math.floor(d);for(0>d&&(d+=j);d<j;d++)if(d in this&&this[d]===c)return d;return-1};(function(c){c.module("homeSlideshow",{requires:["jquery-1.9.1.min","cycle.min"],init:function(){},setIndex:function(){},step:function(){}})})(app);(function(c){var e=c.module("facebookConnect",{requires:["jquery-1.9.1.min"],init:function(){this.is_loaded=!1;$("body").prepend('<div id="fb-root"></div>');c.getScript("//connect.facebook.net/en_US/all.js")},scrollTop:function(){this.is_loaded&&FB.Canvas.scrollTo(0,0)}});window.fbAsyncInit=function(){e.is_loaded=!0;FB.init({appId:c.config.facebook.appId,status:!0,cookie:!0,xfbml:!1});FB.Canvas.scrollTo(0,0);FB.Canvas.setSize({height:$("body").height()-100});setTimeout("FB.Canvas.setAutoGrow()",500);
$(document).trigger("facebookConnected");self!==top&&$("body").css("overflow","hidden")}})(app);(function(c){c.module("adminPages",{requires:["jquery-1.9.1.min"],init:function(){}})})(app);(function(c){c.module("modalErrorDialog",{requires:["jquery-1.9.1.min","jquery.modal.min"],show:function(){}})})(app);(function(c){c.module("registrationForm",{requires:["jquery-1.9.1.min","jquery.validate.min"],init:function(){}})})(app);(function(c){c.startup("*admin",["adminPages"]);c.startup("global",["facebookConnect"]);c.startup("home/index",["homeSlideshow"]);c.startup("register/index",["registrationForm","modalErrorDialog"])})(app);
