function responsiveAbsBg(e,s,i){"use strict";if(0!==i.length){var t=i.attr("data-bg-top"),n=i.attr("data-bg-height");if(e.isResponsive){("undefined"==typeof t||t===!1)&&(i.attr("data-bg-top",i.css("top")),i.attr("data-bg-height",i.css("height")));var r=s.offset().top,o=s.outerHeight();i.css("top",r+"px"),i.css("height",o+"px")}else"undefined"!=typeof t&&t!==!1&&(i.css("top",t),i.css("height",n),i.removeAttr("data-bg-top"),i.removeAttr("data-bg-height"))}}var responsiveDesign={isResponsive:!1,isDesktop:!1,isTablet:!1,isPhone:!1,lockedResponsiveMode:"",responsiveType:"desktop",responsiveTypeIdx:1,lockedResponsiveType:"",isCurrentDefaultResponsive:!1,defaultResponsive:[!1,!0,!0,!0,!0],windowWidth:0,responsive:function(e){"use strict";return function(){var s=e("html");this.windowWidth=e(window).width();var i=!1,t=e("#art-resp").is(":visible");if("desktop"===this.lockedResponsiveMode&&(t=!1),t&&!this.isResponsive?(s.addClass("responsive").removeClass("desktop"),this.isResponsive=!0,this.isDesktop=!1,i=!0):t||this.isDesktop||(s.addClass("desktop").removeClass("responsive default-responsive responsive-tablet responsive-phone"),this.isResponsive=this.isTablet=this.isPhone=!1,this.isDesktop=!0,i=!0),this.isResponsive){var n="tablet"===this.lockedResponsiveMode||e("#art-resp-t").is(":visible")&&""===this.lockedResponsiveMode,r="phone"===this.lockedResponsiveMode||e("#art-resp-m").is(":visible")&&""===this.lockedResponsiveMode;n&&!this.isTablet?(s.addClass("responsive-tablet").removeClass("responsive-phone"),this.isTablet=!0,this.isPhone=!1,i=!0):r&&!this.isPhone&&(s.addClass("responsive-phone").removeClass("responsive-tablet"),this.isTablet=!1,this.isPhone=!0,i=!0)}var o=this.responsiveTypeIdx;"tabletlandscape"===this.lockedResponsiveType||e("#art-resp-tablet-landscape").is(":visible")&&""===this.lockedResponsiveType?(this.responsiveType="tabletlandscape",this.responsiveTypeIdx=1):"tabletportrait"===this.lockedResponsiveType||e("#art-resp-tablet-portrait").is(":visible")&&""===this.lockedResponsiveType?(this.responsiveType="tabletportrait",this.responsiveTypeIdx=2):"phonelandscape"===this.lockedResponsiveType||e("#art-resp-phone-landscape").is(":visible")&&""===this.lockedResponsiveType?(this.responsiveType="phonelandscape",this.responsiveTypeIdx=3):"phoneportrait"===this.lockedResponsiveType||e("#art-resp-phone-portrait").is(":visible")&&""===this.lockedResponsiveType?(this.responsiveType="phoneportrait",this.responsiveTypeIdx=4):(this.responsiveType="desktop",this.responsiveTypeIdx=0),(i||o!==this.responsiveTypeIdx)&&(i=!0,this.isResponsive&&this.defaultResponsive[this.responsiveTypeIdx]?(this.isCurrentDefaultResponsive=!0,s.removeClass("custom-responsive").addClass("default-responsive")):(this.isCurrentDefaultResponsive=!1,s.removeClass("default-responsive").addClass("custom-responsive"))),i&&e(window).trigger("responsive",this),e(window).trigger("responsiveResize",this)}}(jQuery),initialize:function(e){"use strict";return function(){"undefined"!=typeof defaultResponsiveData&&(responsiveDesign.defaultResponsive=defaultResponsiveData),e('
').appendTo("body"),e('
').appendTo("body"),e(window).resize(function(){responsiveDesign.responsive()}),e(window).trigger("resize")}}(jQuery),lockResponsiveType:function(e){responsiveDesign.lockedResponsiveType=e,0===e.indexOf("tablet")&&(e="tablet"),0===e.indexOf("phone")&&(e="phone"),responsiveDesign.lockedResponsiveMode=e},toogleDefaultResponsive:function(e,s){var i=responsiveDesign.defaultResponsive[e];responsiveDesign.defaultResponsive[e]=s,i!==s&&(responsiveDesign.responsiveTypeIdx=-1)}},responsiveImages=function(e){"use strict";return function(s){e("img[width]").each(function(){var i=e(this),t="",n="",r="";if(s.isResponsive){t="auto",r="auto",n="100%";var o=i.attr("width");null!==o&&"string"==typeof o&&-1===o.indexOf("%")&&(t="100%",n=parseInt(e.trim(o),10)+"px")}i.css("width",t).css("max-width",n).css("height",r)})}}(jQuery),responsiveVideos=function(e){"use strict";return function(s){e("iframe[width],object[width],embed[width]").each(function(){var i=e(this);if(!(i.is("[width]")&&-1!==i.attr("width").indexOf("%")||i.is("[class]")&&-1!==i.attr("class").indexOf("twitter")||i.id&&-1!==i.id.indexOf("google"))){var t=i.parent(".art-responsive-embed");if(s.isResponsive){if(0!==t.length)return;t=e('
').insertBefore(i),i.appendTo(t)}else t.length>0&&(i.insertBefore(t),t.remove())}})}}(jQuery),responsiveTextblocks=function(e){"use strict";return function(s,i){s.find(".art-textblock").each(function(){if(0===parseInt(s.attr("data-width"),10))return!0;var t=e(this),n=s.width()/s.attr("data-width");if(t.css({height:"",width:"",top:"","margin-left":""}),i.isResponsive){var r=parseInt(t.css("height"),10),o=parseInt(t.css("width"),10),a=parseInt(t.css("top"),10),p=parseInt(t.css("margin-left"),10);t.add(t.find("div")).css({height:r*n,width:o*n}),t.css("top",a*n),t.attr("style",function(e,s){return s+"margin-left: "+p*n+"px !important"})}})}}(jQuery),responsiveSlider=function(e){"use strict";return function(s){e(".art-slider").each(function(){var i=e(this),t=i.parent(".art-header").length>0||i.parent(".art-pageslider").length>0;if(!t&&s.isResponsive)return void responsiveTextblocks(i,s);var n=i.attr("data-width"),r=i.attr("data-height"),o=i.data("slider");if(!o)return!1;var a=i.find(".art-slider-inner");return!s.isResponsive&&o.settings.helper?void o.settings.helper.updateSize(a,{width:n,height:r}):void(o&&o.settings.helper&&e(window).on("responsiveResize",function p(){"fade"!==o.settings.animation&&(s.isCurrentDefaultResponsive?(o.settings.helper.updateSize(a,{width:n,height:r}),e.each(a.children(),function(){e(this).css("background-position",-Math.floor(n/2-parseInt(a.outerWidth(),10)/2)+"px"+-Math.floor(r/2-parseInt(a.outerHeight(),10)/2)+"px ")})):e(window).off("responsiveResize",p))}))})}}(jQuery),responsiveCollages=function(e){"use strict";return function(s){e(".art-collage").each(function(){var i=e(this),t=i.find(".art-slider"),n=t.attr("data-width"),r=t.attr("data-height"),o=i.closest(":not(.image-caption-wrapper, .art-collage)"),a=i.closest(".image-caption-wrapper"),p=o.width(),d=i.width(),v=i.add(t).add(i.closest(".image-caption-wrapper"));(s.isResponsive&&d>p||a.length>0&&d>a.width())&&v.css("width","100%"),d=i.width(),d>n&&v.css("width","");var l=t.width()/n,h=l*r;t.css("height",h+"px")})}}(jQuery);jQuery(window).bind("responsive",function(e){"use strict";return function(s,i){e(window).trigger("responsivePage",i),responsiveImages(i),responsiveVideos(i),responsiveSlider(i),responsiveNavigator(i)}}(jQuery)),jQuery(window).bind("responsiveResize",function(e){"use strict";return function(e,s){responsiveCollages(s),responsiveNavigator(s)}}(jQuery)),jQuery(function(e){if(browser.ie&&!(browser.version>8)){var s;e(window).on("resize",function(){clearTimeout(s),s=setTimeout(function(){responsiveCollages(responsiveDesign),responsiveNavigator(responsiveDesign)},25)}),responsiveCollages(responsiveDesign),responsiveNavigator(responsiveDesign)}});var responsiveHeader=function(e){"use strict";return function(s){var i=e("header.art-header"),t=i.find(".art-slider");if(t.length){var n=t.find(".art-slide-item").first(),r=n.css("background-image").split(","),o=t.prev(),a=t.siblings(".art-slidenavigator");r.length&&s.isResponsive?o.is("nav.art-nav")&&a.attr("data-offset",o.height()):(a.removeAttr("data-offset"),i.removeAttr("style"))}}}(jQuery);jQuery(window).bind("responsiveResize",function(e){"use strict";return function(s,i){responsiveAbsBg(i,e(".art-header"),e("#art-header-bg"))}}(jQuery)),jQuery(window).bind("responsive",function(e){"use strict";return function(s,i){browser.ie&&browser.version<=8||(i.isResponsive?e(window).on("responsiveResize.header",function(){responsiveHeader(i)}):(e(window).trigger("responsiveResize.header"),e(window).off("responsiveResize.header")))}}(jQuery)),jQuery(window).bind("responsiveResize",function(e){"use strict";return function(s,i){responsiveAbsBg(i,e("nav.art-nav"),e("#art-hmenu-bg")),e(window).trigger("responsiveNav",{responsiveDesign:i})}}(jQuery));var menuInHeader,menuInHeaderHack,responsiveNav=function(e){"use strict";return function(s){var i=e(".art-header"),t=e(".art-nav:not(.art-bar)");if("undefined"==typeof menuInHeader&&(t=e(".art-header .art-nav"),menuInHeader=0!==t.length,menuInHeaderHack=!1),menuInHeader)if(s.isResponsive){if(menuInHeaderHack)return;menuInHeaderHack=!0,t.insertAfter(i)}else{if(!menuInHeaderHack)return;menuInHeaderHack=!1,i.append(t)}}}(jQuery);jQuery(window).bind("responsivePage",function(e,s){"use strict";responsiveNav(s)}),jQuery(function(e){"use strict";e(".art-hmenu a").each(function(){var s=e(this);return s.get(0).href===location.href?(s.addClass("active").parents("li").addClass("active"),!1):void 0})}),jQuery(function(e){e('').insertBefore(".art-hmenu").click(function(s){var i=e(this).next();i.is(":visible")?i.slideUp("fast",function(){e(this).removeClass("visible").css("display","")}):i.slideDown("fast",function(){e(this).addClass("visible").css("display","")}),s.preventDefault()})});var responsiveLayoutCell=function(e){"use strict";return function(s){e(".art-content .art-content-layout-row,.art-footer .art-content-layout-row").each(function(){var i=e(this),t=i.children(".art-layout-cell");if(t.length>0){var n;if(i.removeClass("responsive-layout-row-2").removeClass("responsive-layout-row-3").removeClass("responsive-layout-row-1"),1===t.length)n=1,i.addClass("responsive-layout-row-1");else if(t.length%2===0){var n=2;i.addClass("responsive-layout-row-2")}else{var n=3;i.addClass("responsive-layout-row-3")}n>0&&s.isTablet?t.addClass("responsive-tablet-layout-cell").each(function(s){(s+1)%n===0&&e(this).after('
')}):(t.removeClass("responsive-tablet-layout-cell"),i.children(".responsive-cleared").remove())}})}}(jQuery);jQuery(window).bind("responsive",function(e,s){"use strict";responsiveLayoutCell(s)}),!browser.ie||browser.version>8?jQuery(responsiveDesign.initialize):jQuery("html").addClass("desktop");