').addClass('ncOverlay-inner-scroll').append(data.content));\r\n\r\n $('body').append($('
').attr('id', 'ncOverlay').fadeIn(\"fast\"));\r\n\r\n $('body').append($('
').attr('id', 'ncOverlay-content').append(btnClose).append(overlayInner).fadeIn(\"fast\", function () {\r\n if (typeof data.callbackOpen == 'function') {\r\n data.callbackOpen();\r\n }\r\n }));\r\n\r\n $('#ncOverlay').height($('body').height());\r\n\r\n if (data['class'] !==undefined) {\r\n $('#ncOverlay-content').addClass(data['class']);\r\n }\r\n\r\n $('#ncOverlay-content').css({ 'margin-top': ((document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop) + 40 });\r\n\r\n $('#ncOverlay,.ncOverlay-close').on(\"click\", function (e) {\r\n e.preventDefault();\r\n $('#ncOverlay-content').stop().fadeOut(\"fast\", function () {\r\n $(this).remove();\r\n });\r\n\r\n $('#ncOverlay').stop().fadeOut(\"fast\", function () {\r\n $(this).remove();\r\n if (typeof data.callbackClose == 'function') {\r\n data.callbackClose();\r\n }\r\n });\r\n });\r\n\r\n // escape click bind on close button\r\n $(document).keyup(function (e) {\r\n if (e.keyCode == 27) {\r\n $('.ncOverlay-close').click();\r\n }\r\n });\r\n\r\n }\r\n\r\n return {\r\n set:set\r\n };\r\n}(jQuery);","'use strict';\r\n\r\n(function ($) {\r\n/**\r\n* Copyright 2012, Digital Fusion\r\n* Licensed under the MIT license.\r\n* http://teamdf.com/jquery-plugins/license/\r\n*\r\n* @author Sam Sehnert\r\n* @desc A small plugin that checks whether elements are within\r\n* the user visible viewport of a web browser.\r\n* only accounts for vertical position, not horizontal.\r\n*/\r\n\r\n$.fn.visible = function (partial) {\r\n var $t = $(this),\r\n $w = $(window),\r\n viewTop = $w.scrollTop(),\r\n viewBottom = viewTop + $w.height(),\r\n _top = $t.offset().top,\r\n _bottom = _top + $t.height(),\r\n compareTop = partial === true ? _bottom : _top,\r\n compareBottom = partial === true ? _top : _bottom;\r\n\r\n return ((compareBottom <= viewBottom) && (compareTop >= viewTop));\r\n};\r\n\r\n})(jQuery);","\"use strict\";\r\n/*\r\n* Novicell master\r\n* Author: APN modified by DLA\r\n* Use this file to call functions in other files, on document ready, window.resize etc.\r\n* ------\r\n* Dependencies: jquery, novicell.js, other files with awesome functions.\r\n* Usage: $(function () {\r\n* projectName.slider.heroSlider($('.owl-carousel'));\r\n* }); // Document ready end\r\n*/\r\n\r\nvar novicell = novicell || {};\r\nvar fdf = fdf || {};\r\n\r\n// Document ready\r\n(function ($) {\r\n // Only include Novicell functions that you use!\r\n fdf.video.onLoad();\r\n fdf.siteHeader.onLoad();\r\n fdf.mobileNavigation.onLoad();\r\n fdf.facebookPage.onLoad();\r\n\r\n if ($('.responsiveLazyload').length) {\r\n novicell.responsiveLazyloadImage.onLoad();\r\n }\r\n\r\n // Call new functions here like this:\r\n //projectName.slider.heroSlider($('.owl-carousel'));\r\n svg4everybody(); // Fix SVG spritemap in IE/Edge\r\n \r\n /*\r\n * Use the following if needed\r\n */\r\n\r\n // Window resize (debounced)\r\n $(window).smartresize(function (e) {\r\n fdf.video.onResize();\r\n fdf.siteHeader.onResize();\r\n fdf.facebookPage.onResize();\r\n novicell.responsiveLazyloadImage.onResize();\r\n }); // Window resize\r\n\r\n // Window scroll (debounced)\r\n $(window).smartscroll(function (e) {\r\n // call functions here\r\n fdf.video.onScroll();\r\n novicell.responsiveLazyloadImage.onScroll();\r\n }); // Window scroll\r\n\r\n $(window).scroll(function(e) {\r\n fdf.siteHeader.onScroll();\r\n });\r\n\r\n $(\"#setCookieControlCookie\").click(function () {\r\n Cookies.set('cookieFDF', '1', { expires: 365 });\r\n $(\"#cookieControl\").remove();\r\n });\r\n\r\n if (typeof Cookies.get('cookieFDF') === 'undefined') {\r\n console.log(\"doesn't exist\");\r\n $(\"#cookieControl\").show();\r\n } else {\r\n console.log(\"exists\");\r\n }\r\n\r\n})(jQuery); // Document ready end\r\n\r\n"]}