/* Twenty by Pixelarity pixelarity.com @pixelarity License: pixelarity.com/license */ (function($) { skel.init({ reset: 'full', breakpoints: { global: { range: '*', href: 'css/style.css?cache=25', containers: 1400, grid: { gutters: 50 } }, wide: { range: '-1680', href: 'css/style-wide.css?cache=25', containers: 1200, grid: { gutters: 40 } }, normal: { range: '-1280', href: 'css/style-normal.css?cache=25', containers: 960, viewport: { scalable: false } }, narrow: { range: '-980', href: 'css/style-narrow.css?cache=25', containers: '95%', grid: { gutters: 30 } }, narrower: { range: '-840', href: 'css/style-narrower.css?cache=25', grid: { collapse: 1 } }, mobile: { range: '-640', href: 'css/style-mobile.css?cache=25', containers: '100%', grid: { gutters: 15, collapse: 2 } } } }, { layers: { transformTest: function() { return (skel.vars.isMobile); }, layers: { topPanel: { states: '/global/wide/normal/narrow/narrower/mobile', position: 'top-center', side: 'top', hidden: true, animation: 'pushY', width: '100%', height: 275, html: '', clickToClose: true, swipeToClose: false, orientation: 'vertical' }, topButton: { states: '/global/wide/normal/narrow/narrower/mobile', position: 'top-center', width: 120, height: 50, html: '' }, sidePanel: { states: '/global/wide/normal/narrow/narrower', position: 'top-left', side: 'left', hidden: true, animation: 'revealX', width: 250, height: '100%', html: '', clickToClose: true, orientation: 'vertical' }, sideButton: { states: '/global/wide/normal/narrow/narrower', position: 'top-left', width: 100, height: 60, html: '' } } } }); $(function() { // Text cycle on home page var spans = $('span[id^="title-"]').hide(), i = 0; (function cycle() { spans.eq(i).fadeIn(800) .delay(1000) .fadeOut(800, cycle); i = ++i % spans.length; })(); var $window = $(window), $body = $('body'), $header = $('#header'), $banner = $('#banner'); // Disable animations/transitions until the page has loaded. $body.addClass('is-loading'); $window.on('load', function() { $body.removeClass('is-loading'); }); // CSS polyfills (IE<9). if (skel.vars.IEVersion < 9) $(':last-child').addClass('last-child'); // Forms (IE<10). var $form = $('form'); if ($form.length > 0) { if (skel.vars.IEVersion < 10) { $.fn.n33_formerize=function(){var _fakes=new Array(),_form = $(this);_form.find('input[type=text],textarea').each(function() { var e = $(this); if (e.val() == '' || e.val() == e.attr('placeholder')) { e.addClass('formerize-placeholder'); e.val(e.attr('placeholder')); } }).blur(function() { var e = $(this); if (e.attr('name').match(/_fakeformerizefield$/)) return; if (e.val() == '') { e.addClass('formerize-placeholder'); e.val(e.attr('placeholder')); } }).focus(function() { var e = $(this); if (e.attr('name').match(/_fakeformerizefield$/)) return; if (e.val() == e.attr('placeholder')) { e.removeClass('formerize-placeholder'); e.val(''); } }); _form.find('input[type=password]').each(function() { var e = $(this); var x = $($('