1browser=function($){'use strict';var data=[{str:navigator.userAgent,sub:'Chrome',ver:'Chrome',name:'chrome'},{str:navigator.vendor,sub:'Apple',ver:'Version',name:'safari'},{prop:window.opera,ver:'Opera',name:'opera'},{str:navigator.userAgent,sub:'Firefox',ver:'Firefox',name:'firefox'},{str:navigator.userAgent,sub:'MSIE',ver:'MSIE',name:'ie'},{str:navigator.userAgent,sub:'Trident/7.0',ver:'rv',name:'ie'}];var v=function(s,n){var i=s.indexOf(data[n].ver);return(i!==-1)?parseFloat(s.substring(i+data[n].ver.length+1)):0;};var result={name:'unknown',version:0};var html=$('html');for(var n=0;n<data.length;n++){if(!result[data[n].name]){result[data[n].name]=false;} 2if((data[n].str&&(data[n].str.indexOf(data[n].sub)!==-1))||data[n].prop){result.name=data[n].name;result[result.name]=true;result.version=v(navigator.userAgent,n)||v(navigator.appVersion,n);html.addClass(result.name+' '+result.name+parseInt(result.version,10));}} 3return result;}(jQuery);jQuery(function($){if(typeof responsiveDesign==="undefined"){$("html").addClass("desktop");}});jQuery(function($){'use strict';var i,j,k,l,m;if(!browser.ie||browser.version!==9){return;} 4var splitByTokens=function(str,startToken,endToken,last){if(!last){last=false;} 5var startPos=str.indexOf(startToken);if(startPos!==-1){startPos+=startToken.length;var endPos=last?str.lastIndexOf(endToken):str.indexOf(endToken,startPos);if(endPos!==-1&&endPos>startPos){return str.substr(startPos,endPos-startPos);}} 6return'';};var splitWithBrackets=function(str,token,brackets){if(!token){token=',';} 7if(!brackets){brackets='()';} 8var bracket=0;var startPos=0;var result=[];if(brackets.lenght<2){return result;} 9var pos=0;while(pos<str.length){var ch=str[pos];if(ch===brackets[0]){bracket++;} 10if(ch===brackets[1]){bracket--;} 11if(ch===token&&bracket<1){result.push(str.substr(startPos,pos-startPos));startPos=pos+token.length;} 12pos++;} 13result.push(str.substr(startPos,pos-startPos));return result;};var byteToHex=function(d){var hex=Number(d).toString(16);while(hex.length<2){hex="0"+hex;} 14return hex;};for(i=0;i<document.styleSheets.length;i++){var s=document.styleSheets[i];var r=[s];for(j=0;j<s.imports.length;j++){r.push(s.imports[j]);} 15for(j=0;j<r.length;j++){s=r[j];var n=[];for(k=0;k<s.rules.length;k++){var css=s.rules[k].cssText||s.rules[k].style.cssText;if(!css){continue;} 16var value=splitByTokens(css,'-svg-background:',';');if(value===''){continue;} 17var values=splitWithBrackets(value);for(l=0;l<values.length;l++){var g=splitByTokens(values[l],'linear-gradient(',')',true);if(g===''){continue;} 18var args=splitWithBrackets(g);if(args.length<3){continue;} 19var maxOffset=0;var stops=[];for(m=1;m<args.length;m++){var stopValues=splitWithBrackets($.trim(args[m]),' ');if(stopValues.length<2){continue;} 20var stopColor=$.trim(stopValues[0]);var stopOpacity=1;if(stopColor=='transparent'){stopColor='#000000';stopOpacity=0;} 21var colorRgba=splitByTokens(stopColor,'rgba(',')',true);var stopOffset=$.trim(stopValues[1]);if(colorRgba!==""){var rgba=colorRgba.split(',');if(rgba.length<4){continue;} 22stopColor='#'+byteToHex(rgba[0])+byteToHex(rgba[1])+byteToHex(rgba[2]);stopOpacity=rgba[3];} 23var isPx=stopOffset.indexOf('px')!==-1;if(isPx){maxOffset=Math.max(maxOffset,parseInt(stopOffset,10)||0);} 24stops.push({offset:stopOffset,color:stopColor,opacity:stopOpacity,isPx:isPx});} 25var stopsXML='';var lastStop=null;for(m=0;m<stops.length;m++){if(stops[m].isPx){stops[m].offset=((parseInt(stops[m].offset,10)||0)/(maxOffset/100))+'%';} 26stopsXML+='<stop offset="'+stops[m].offset+'" stop-color="'+stops[m].color+'" stop-opacity="'+stops[m].opacity+'"/>';if(m===stops.length-1){lastStop=stops[m];}} 27var isLeft=$.trim(args[0])==='left';var direction='x1="0%" y1="0%" '+(isLeft?'x2="100%" y2="0%"':'x2="0%" y2="100%"');var gradientLength='100%';if(maxOffset>0){gradientLength=maxOffset+'px';} 28var size=(isLeft?'width="'+gradientLength+'" height="100%"':'width="100%" height="'+gradientLength+'"');var last="";if(lastStop!==null&&maxOffset>0){last='<rect '+ 29(isLeft?'x="'+maxOffset+'" y="0"':'x="0" y="'+maxOffset+'"')+' width="100%" height="100%" style="fill:'+lastStop.color+';opacity:'+lastStop.opacity+';"/>';} 30var svgGradient='<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><linearGradient id="g" gradientUnits="objectBoundingBox" '+direction+'>'+stopsXML+'</linearGradient><rect x="0" y="0" '+size+' fill="url(#g)" />'+last+'</svg>';values[l]=values[l].replace('linear-gradient('+g+')','url(data:image/svg+xml,'+escape(svgGradient)+')');} 31n.push({s:s.rules[k].selectorText,v:'background: '+values.join(",")});} 32for(k=0;k<n.length;k++){s.addRule(n[k].s,n[k].v);}}}});jQuery(function($){"use strict";if(!browser.ie||browser.version>8)return;$('.art-shapes').each(function(){if($(this).siblings('.art-slider').length){$(this).remove();}else{$(this).css('z-index',1);}});if(!browser.ie||browser.version>7)return;var textblockTexts=$('.art-textblock div[class$="-text"]');textblockTexts.each(function(){var tbText=$(this);var valign=tbText.css('vertical-align')?tbText.css('vertical-align'):'top';if(valign==='middle'){var wrapper=tbText.wrap('<div/>').parent();tbText.css({'position':'relative','top':'-50%','height':'auto'});wrapper.css({'position':'absolute','top':'50%'});}else if(valign==='bottom'){tbText.css({'position':'absolute','height':'auto','bottom':0});}});});jQuery(function($){"use strict";var video=["youtube"];$("iframe[src]").each(function(){var iframe=$(this),src=iframe.attr("src"),isVideo=false,i;for(i=0;i<video.length;i++){if(src.toLowerCase().indexOf(video[i].toLowerCase())!==-1){isVideo=true;break;}} 33if(!isVideo){return;} 34if(src.lastIndexOf("?")!==-1){src+="&wmode=transparent";}else{src+="?wmode=transparent";} 35iframe.attr("src",src);});});jQuery(function($){"use strict";$(window).bind("resize",function(){navigatorResizeHandler($("html").hasClass("responsive"));});});var navigatorResizeHandler=(function($){"use strict";return function(responsiveDesign){if(responsiveDesign)return;$(".art-slider").each(function(){var slider=$(this);var sliderWidth=slider.width();var nav=slider.siblings(".art-slidenavigator");var navWidth=nav.outerWidth();if(nav.length&&navWidth<sliderWidth){var left=nav.attr("data-left");var margin=sliderWidth-sliderWidth*parseFloat(left)/100-nav.outerWidth(false);
35if(margin<0){nav.css("margin-left",margin);}}});};})(jQuery);var processElementMultiplyBg=(function($){return(function(selector,info){if(!selector||!info||!info.bgimage||!info.bgposition||!info.images||!info.positions)return;var path="";var script=$('head script[src*="script.js"]');if(script.length){path=(script.attr('src')||'');path=path.substr(0,path.lastIndexOf('/')+1);} 36var html='';var el=$(selector);var bgimages=info.images.split(",");var bgpositions=info.positions.split(",");for(var i=bgimages.length-1;i>=0;i--){var bgimage=$.trim(bgimages[i]);if(bgimage==="") 37continue;var imgIdx=bgimage.lastIndexOf('images/');var className=bgimage.substring(imgIdx+7,bgimage.length-6);el.append("<div class=\"ie8fix "+className+"\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;background:"+bgimage.replace(/(images\/[^\/]+)$/,path+'$1')+" "+bgpositions[i]+" no-repeat\"></div>");} 38el.css('background-image',info.bgimage.replace(/(images\/[^\/]+)$/,path+'$1'));el.css('background-position-x',"50%");el.css('background-position-y',"50%");});})(jQuery);var responsiveNavigator=(function($){"use strict";return function(){if(typeof headerObjectResizer!=='undefined'&&headerObjectResizer.isPreview)return;var sheet=$('.art-sheet');var sheetWidth=sheet.outerWidth();$(".art-slider").each(function(){var currentSlider=$(this);var currentSliderWidth=currentSlider.width();var sliderNavigator=currentSlider.siblings(".art-slidenavigator");if(sliderNavigator.length){var off=sheetLeftFunc(sheet,sliderNavigator);var calcWidth=isContentSlider(sliderNavigator)?currentSliderWidth:sheetWidth;var navigatorWidth=sliderNavigator.outerWidth();var offset=parseInt(sliderNavigator.attr('data-offset')||0,10);sliderNavigator.css('margin-left','0px');var left=parseFloat(sliderNavigator.attr("data-left"),10);var newLeft=off+uniToPx(left,navigatorWidth,calcWidth);sliderNavigator.css('left',newLeft+'px');sliderNavigator.css("top","");var navigatorHeight=sliderNavigator.outerHeight();var uniy=parseFloat(sliderNavigator.attr('data-top'),10);var sliderHeight=parseInt(currentSlider.css('height'),10);var newTop=uniToPx(uniy,navigatorHeight,sliderHeight);sliderNavigator.css("top",(newTop+offset)+'px');}});};})(jQuery);jQuery(function($){"use strict";if(typeof responsiveDesign==="undefined"){$(window).bind("resize",responsiveNavigator);} 39$(window).on("load",function pageInitialize(){$(window).trigger("resize");$(window).off("load",pageInitialize);});});if(browser.opera){jQuery(function($){$(".art-header a[class$='tag-icon']").css("display","block");});} 40jQuery(function($){"use strict";$(window).bind("resize",function(){"use strict";if(typeof responsiveDesign!=="undefined"&&responsiveDesign.isResponsive) 41return;var sheetLeft=$(".art-sheet").offset().left;$("header.art-header #art-flash-area").each(function(){var object=$(this);object.css("left",sheetLeft+"px");});});});jQuery(function($){"use strict";$('nav.art-nav').addClass("desktop-nav");});jQuery(function($){"use strict";if(!browser.ie||browser.version>7){return;} 42$('ul.art-hmenu>li:not(:first-child)').each(function(){$(this).prepend('<span class="art-hmenu-separator"> </span>');});});jQuery(function($){"use strict";$("ul.art-hmenu a:not([href])").attr('href','#').click(function(e){e.preventDefault();});});jQuery(function($){"use strict";if(!browser.ie||browser.version>7){return;} 43$.each($("ul.art-hmenu ul"),function(){var maxSubitemWidth=0;var submenu=$(this);var subitem=null;$.each(submenu.children("li").children("a"),function(){subitem=$(this);var subitemWidth=subitem.outerWidth(false);if(maxSubitemWidth<subitemWidth){maxSubitemWidth=subitemWidth;}});if(subitem!==null){var subitemBorderLeft=parseInt(subitem.css("border-left-width"),10)||0;var subitemBorderRight=parseInt(subitem.css("border-right-width"),10)||0;var subitemPaddingLeft=parseInt(subitem.css("padding-left"),10)||0;var subitemPaddingRight=parseInt(subitem.css("padding-right"),10)||0;maxSubitemWidth-=subitemBorderLeft+subitemBorderRight+subitemPaddingLeft+subitemPaddingRight;submenu.children("li").children("a").css("width",maxSubitemWidth+"px");}});});jQuery(function($){"use strict";var setDirection=function(){setHMenuOpenDirection({container:"div.art-sheet",defaultContainer:"#art-main",menuClass:"art-hmenu",leftToRightClass:"art-hmenu-left-to-right",rightToLeftClass:"art-hmenu-right-to-left"});};if(typeof responsiveDesign!=="undefined"){$(window).on('responsive',setDirection);}else{setDirection();}});var setHMenuOpenDirection=(function($){"use strict";return(function(menuInfo){var defaultContainer=$(menuInfo.defaultContainer);defaultContainer=defaultContainer.length>0?defaultContainer=$(defaultContainer[0]):null;$("ul."+menuInfo.menuClass+">li>ul").each(function(){var submenu=$(this);var submenuWidth=submenu.outerWidth(false);var submenuLeft=submenu.offset().left;var mainContainer=submenu.parents(menuInfo.container);mainContainer=mainContainer.length>0?mainContainer=$(mainContainer[0]):null;var container=mainContainer||defaultContainer;if(container!==null){var containerLeft=container.offset().left;var containerWidth=container.outerWidth(false);
43if(submenuLeft+submenuWidth>=containerLeft+containerWidth){submenu.addClass(menuInfo.rightToLeftClass).find("ul").addClass(menuInfo.rightToLeftClass);}else if(submenuLeft<=containerLeft){submenu.addClass(menuInfo.leftToRightClass).find("ul").addClass(menuInfo.leftToRightClass);}}});});})(jQuery);jQuery(function($){'use strict';$(window).bind('resize',function(){var bh=$('body').height();var mh=0;var c=$('div.art-content');c.removeAttr('style');$('#art-main').children().each(function(){if($(this).css('position')!=='absolute'){mh+=$(this).outerHeight(true);}});if(mh<bh){var r=bh-mh;c.css('height',(c.parent().outerHeight(true)+r)+'px');}});if(browser.ie&&browser.version<8){$(window).bind('resize',function(){var c=$('div.art-content');var s=c.parent().children('.art-layout-cell:not(.art-content)');var w=0;c.hide();s.each(function(){w+=$(this).outerWidth(true);});c.w=c.parent().width();c.css('width',c.w-w+'px');c.show();});} 44$(window).trigger('resize');});jQuery(function($){"use strict";if(!$('html').hasClass('ie7')){return;} 45$('ul.art-vmenu li:not(:first-child),ul.art-vmenu li li li:first-child,ul.art-vmenu>li>ul').each(function(){$(this).append('<div class="art-vmenu-separator"> </div><div class="art-vmenu-separator-bg"> </div>');});});var artButtonSetup=(function($){'use strict';return(function(className){$.each($("a."+className+", button."+className+", input."+className),function(i,val){var b=$(val);if(!b.hasClass('art-button')){b.addClass('art-button');} 46if(b.is('input')){b.val(b.val().replace(/^\s*/,'')).css('zoom','1');} 47b.mousedown(function(){var b=$(this);b.addClass("active");});b.mouseup(function(){var b=$(this);if(b.hasClass('active')){b.removeClass('active');}});b.mouseleave(function(){var b=$(this);if(b.hasClass('active')){b.removeClass('active');}});});});})(jQuery);jQuery(function(){'use strict';artButtonSetup("art-button");});jQuery(function($){'use strict';$('input.art-search-button, form.art-search input[type="submit"]').attr('value','');});var Control=(function($){'use strict';return(function(){this.init=function(label,type,callback){var chAttr=label.find('input[type="'+type+'"]').attr('checked');if(chAttr==='checked'){label.addClass('art-checked');} 48label.mouseleave(function(){$(this).removeClass('hovered').removeClass('active');});label.mouseover(function(){$(this).addClass('hovered').removeClass('active');});label.mousedown(function(event){if(event.which!==1){return;} 49$(this).addClass('active').removeClass('hovered');});label.mouseup(function(event){if(event.which!==1){return;} 50callback.apply(this);$(this).removeClass('active').addClass('hovered');});};});})(jQuery);jQuery(function($){'use strict';$('.art-pager').contents().filter(function(){return this.nodeType===this.TEXT_NODE;}).remove();});var fixRssIconLineHeight=(function($){"use strict";return function(className){$("."+className).css("line-height",$("."+className).height()+"px");};})(jQuery);jQuery(function($){"use strict";var rssIcons=$(".art-rss-tag-icon");if(rssIcons.length){fixRssIconLineHeight("art-rss-tag-icon");if(browser.ie&&browser.version<9){rssIcons.each(function(){if($.trim($(this).html())===""){$(this).css("vertical-align","middle");}});}}});var ThemeLightbox=(function($){'use strict';return(function(){var images=$(".art-lightbox");var current;this.init=function(ctrl){$(".art-lightbox").mouseup({_ctrl:ctrl},function(e){if((e.data._ctrl===true&&!e.ctrlKey)||(e.which&&e.which!==1)){return;} 51images=$(".art-lightbox");current=images.index(this);var imgContainer=$('.art-lightbox-wrapper');if(imgContainer.length===0){imgContainer=$('<div class="art-lightbox-wrapper">').css('line-height',$(window).height()+"px").appendTo($("body"));var closeBtn=$('<div class="close"><div class="cw"> </div><div class="ccw"> </div><div class="close-alt">✗</div></div>').click(close);closeBtn.appendTo(imgContainer);showArrows();} 52move(current);});};function move(index){if(index<0||index>=images.length){return;} 53showError(false);current=index;$(".art-lightbox-wrapper .art-lightbox-image:not(.active)").remove();var active=$(".art-lightbox-wrapper .active");var target=$('<img class="art-lightbox-image" alt="" src="'+getFullImgSrc($(images[current]).attr("src"))+'" />').click(function(){if($(this).hasClass("active")){move(current+1);}});if(active.length>0){active.after(target);}else{$(".art-lightbox-wrapper").append(target);} 54showArrows();showLoader(true);bindMouse($(".art-lightbox-wrapper").add(target));target.load(function(){showLoader(false);active.removeClass("active");target.addClass("active");});target.error(function(){showLoader(false);active.removeClass("active");target.addClass("active");target.attr("src",$(images[current]).attr("src"));});} 55function showArrows(){if($(".art-lightbox-wrapper .arrow").length===0){$(".art-lightbox-wrapper").append($('<div class="arrow left"><div class="arrow-t ccw"> </div><div class="arrow-b cw"> </div><div class="arrow-left-alt">←</div></div>').css("top",$(window).height()/2-40).click(function(){if(!$(this).hasClass("disabled")){move(current-1);}}));$(".art-lightbox-wrapper").append($('<div class="arrow right"><div class="arrow-t cw"> </div><div class="arrow-b ccw"> </div><div class="arrow-right-alt">→</div></div>').css("top",$(window).height()/2-40).click(function(){if(!$(this).hasClass("disabled")){move(current+1);}}));} 56if(current===0){$(".art-lightbox-wrapper .arrow.left").addClass("disabled");}else{$(".art-lightbox-wrapper .arrow.left").removeClass("disabled");} 57if(current===images.length-1){$(".art-lightbox-wrapper .arrow.right").addClass("disabled");}else{$(".art-lightbox-wrapper .arrow.right").removeClass("disabled");}} 58function showError(enable){if(enable){$(".art-lightbox-wrapper").append($('<div class="lightbox-error">The requested content cannot be loaded.<br/>Please try again later.</div>
58').css({"top":$(window).height()/2-60,"left":$(window).width()/2-170}));}else{$(".art-lightbox-wrapper .lightbox-error").remove();}} 59function showLoader(enable){if(!enable){$(".art-lightbox-wrapper .loading").remove();} 60else{$('<div class="loading"> </div>').css({"top":$(window).height()/2-16,"left":$(window).width()/2-16}).appendTo($(".art-lightbox-wrapper"));}} 61var close=function(){$(".art-lightbox-wrapper").remove();};function bindMouse(img){img.bind('mousewheel DOMMouseScroll',function(e){var orgEvent=window.event||e.originalEvent;var delta=(orgEvent.wheelDelta?orgEvent.wheelDelta:orgEvent.detail*-1)>0?1:-1;move(current+delta);e.preventDefault();}).mousedown(function(e){if(e.which===2){close();} 62e.preventDefault();});} 63function getFullImgSrc(src){var fileName=src.substring(0,src.lastIndexOf('.'));var ext=src.substring(src.lastIndexOf('.'));return fileName+"-large"+ext;}});})(jQuery);jQuery(function(){'use strict';new ThemeLightbox().init();});(function($){'use strict';$.support.themeTransition=(function(){var thisBody=document.body||document.documentElement,thisStyle=thisBody.style,support=thisStyle.transition!==undefined||thisStyle.WebkitTransition!==undefined||thisStyle.MozTransition!==undefined||thisStyle.MsTransition!==undefined||thisStyle.OTransition!==undefined;return support&&{event:(function(){return"transitionend webkitTransitionEnd otransitionend oTransitionEnd";})(),prefix:(function(){return({opera:"-o-",firefox:"-moz-",chrome:"-webkit-",safari:"-webkit-",ie:""}[browser.name]||"");})()};})();window.BackgroundHelper=function(){var slides=[];var direction="next";var motion="horizontal";var width=0;var height=0;var multiplier=1;var originalWidth=0;var originalHeight=0;var transitionDuration="";this.init=function(motionType,dir,duration){direction=dir;motion=motionType;slides=[];width=0;height=0;multiplier=1;originalWidth=0;originalHeight=0;transitionDuration=duration;};this.processSlide=function(element,modify){this.updateSize(element,null);var pos=[];var bgPosition=element.css("background-position");var positions=bgPosition.split(",");$.each(positions,function(i){var position=$.trim(this);var point=position.split(" ");var zeroValue=browser.ie&&browser.version>=10?0.1:0;if(point.length>1){var x=point[0].indexOf('%')===-1?parseFloat(point[0],10):zeroValue;var y=point[1].indexOf('%')===-1?parseFloat(point[1],10):zeroValue;pos.push({x:x,y:y});}else{pos.push({x:zeroValue,y:zeroValue});}});slides.push({"images":element.css("background-image"),"sizes":element.css("background-size"),"positions":pos});if(modify) 64element.css("background-image","none");};this.updateSize=function(element,initialSize){width=element.outerWidth(false);height=element.outerHeight();if(initialSize&&parseInt(initialSize.width,10)!==0){originalWidth=parseInt(initialSize.width,10);originalHeight=parseInt(initialSize.height,10);if(motion==="fade"){$.each(element.children(),function(i){$(this).css("background-position",getCssPositions(slides[i].positions,{x:0,y:0}));});}}};this.setBackground=function(element,items){var bg=[];var sizes=[];$.each(items,function(i,o){bg.push(o.images);sizes.push(o.sizes);});element.css({"background-image":bg.join(", "),"background-repeat":"no-repeat"});};this.setPosition=function(element,items){var pos=[];$.each(items,function(i,o){pos.push(o.positions);});element.css({"background-position":pos.join(", ")});};this.current=function(index){return slides[index]||null;};this.next=function(index){var next;if(direction==="next"){next=(index+1)%slides.length;}else{next=index-1;if(next<0){next=slides.length-1;}} 65return slides[next];};this.items=function(prev,next,move){var prevItem={x:0,y:0};var nextItem={x:0,y:0};var isDirectionNext=direction==="next";var verticalOffset=-(originalHeight-height)/2;var horizontalOffset=-(originalWidth-width)/2;if(motion==="horizontal"){prevItem.y=nextItem.y=-(originalHeight-height)/2;prevItem.x=horizontalOffset;nextItem.x=(isDirectionNext?originalWidth:-originalWidth)+horizontalOffset;if(move){prevItem.x+=isDirectionNext?-originalWidth:originalWidth;nextItem.x+=isDirectionNext?-originalWidth:originalWidth;}}else if(motion==="vertical"){prevItem.x=nextItem.x=horizontalOffset;
65prevItem.y=verticalOffset;nextItem.y=(isDirectionNext?originalHeight:-originalHeight)+verticalOffset;if(move){prevItem.y+=isDirectionNext?-originalHeight:originalHeight;nextItem.y+=isDirectionNext?-originalHeight:originalHeight;}} 66var result=[];if(!!prev){result.push({images:prev.images,positions:getCssPositions(prev.positions,prevItem),sizes:prev.sizes});} 67if(!!next){result.push({images:next.images,positions:getCssPositions(next.positions,nextItem),sizes:next.sizes});} 68if(direction==="next"){result.reverse();} 69return result;};this.transition=function(container,on){container.css($.support.themeTransition.prefix+"transition",on?"background-position "+transitionDuration+" ease-in-out":"");};function getCssPositions(positions,offset){var result=[];if(positions===undefined){return"";} 70offset.x=offset.x||0;offset.y=offset.y||0;for(var i=0;i<positions.length;i++){result.push((positions[i].x*1+offset.x)+"px "+(positions[i].y*1+offset.y)+"px");} 71return result.join(", ");}};var ThemeSlider=function(element,settings){var interval=null;var active=false;var children=element.find(".active").parent().children();var last=false;var running=false;this.settings=$.extend({},{"animation":"horizontal","direction":"next","speed":600,"pause":2500,"auto":true,"repeat":true,"navigator":null,"clickevents":true,"hover":true,"helper":null},settings);this.move=function(direction,next){var activeItem=element.find(".active"),nextItem=next||activeItem[direction](),innerDirection=this.settings.direction==="next"?"forward":"back",reset=direction==="next"?"first":"last",moving=interval,slider=this,tmp;active=true;if(moving){this.stop(true);} 72if(!nextItem.length){nextItem=element.find(".art-slide-item")[reset]();if(!this.settings.repeat){last=true;active=false;return;}} 73if($.support.themeTransition){nextItem.addClass(this.settings.direction);tmp=nextItem.get(0).offsetHeight;activeItem.addClass(innerDirection);nextItem.addClass(innerDirection);element.trigger("beforeSlide",children.length);element.one($.support.themeTransition.event,function(){nextItem.removeClass(slider.settings.direction).removeClass(innerDirection).addClass("active");activeItem.removeClass("active").removeClass(innerDirection);active=false;setTimeout(function(){element.trigger("afterSlide",children.length);},0);});}else{element.trigger("beforeSlide",children.length);activeItem.removeClass("active");nextItem.addClass("active");active=false;element.trigger("afterSlide",children.length);} 74this.navigate(nextItem);if(moving){this.start();}};this.navigate=function(position){var index=children.index(position);$(this.settings.navigator).children().removeClass("active").eq(index).addClass("active");};this.to=function(index){var activeItem=element.find(".active"),children=activeItem.parent().children(),activeIndex=children.index(activeItem),slider=this;if(index>(children.length-1)||index<0){return;} 75if(active){return element.one("afterSlide",function(){slider.to(index);});} 76if(activeIndex===index){return;} 77this.move(index>activeIndex?"next":"prev",$(children[index]));};this.next=function(){if(!active){if(last){this.stop();return;} 78this.move("next");}};this.prev=function(){if(!active){if(last){this.stop();return;} 79this.move("prev");}};this.start=function(force){if(!!force){setTimeout($.proxy(this.next,this),10);} 80interval=setInterval($.proxy(this.next,this),this.settings.pause);running=true;};this.stop=function(pause){clearInterval(interval);interval=null;running=!!pause;active=false;};this.active=function(){return running;};this.moving=function(){return active;};this.navigate(children.filter(".active"));if(this.settings.clickevents){$(this.settings.navigator).on("click","a",{slider:this},function(event){var activeIndex=children.index(children.filter(".active"));var index=$(this).parent().children().index($(this));if(activeIndex!==index){event.data.slider.to(index);} 81event.preventDefault();});} 82if(this.settings.hover){var slider=this;element.add(this.settings.navigator).add(element.siblings(".art-shapes")).hover(function(){if(element.is(":visible")&&!last){slider.stop(true);}},function(){if(element.is(":visible")&&!last){slider.start();}});}};$.fn.themeSlider=function(arg){return this.each(function(){var element=$(this),data=element.data("slider"),options=typeof arg==="object"&&arg;if(!data){data=new ThemeSlider(element,options);element.data("slider",data);} 83if(typeof arg==="string"&&data[arg]){data[arg]();}else if(data.settings.auto&&element.is(":visible")){data.start();}});};})(jQuery);if(typeof window.resizeData==='undefined')window.resizeData={};window.resizeData.headerPageWidth=false;if(typeof window.defaultResponsiveData==='undefined')window.defaultResponsiveData=[false,true,true,true,true,];function applyCss(object,param,value){var rg=new RegExp(param+'\s*:\s*[^;]+;',"i");var style=object.attr('style');var str=param+': '+value+';';if(rg.test(style)){style=style.replace(rg,str);} 84else{style+='; '+str;} 85object.attr('style',style);} 86function uniToPx(uni,size,parentSize){uni=parseFloat(uni||'0');if(uni<0){uni=uni*size;}else if(uni>
86=1){uni=parentSize-(2-uni)*size;}else{uni=uni*(parentSize-size);} 87return uni;} 88function isContentSlider(object){var isHeader=object.parents('header').length>0;if(isHeader){return false;} 89var isPageSlider=object.parents('.art-pageslider').length>0;if(isPageSlider) 90return false;return true;} 91function sheetLeftFunc(sheet,object){var sheetLeft=sheet.offset().left;var isHeader=object.parents('header').length>0;if(isHeader){if(resizeData.headerPageWidth)return sheetLeft;}else{var isPageSlider=object.parents('.art-pageslider').length>0;if(isPageSlider){if(resizeData.pageSliderPageWidth)return sheetLeft;}} 92return 0;} 93var headerObjectResizer={postInit:false,resize:(function($){'use strict';return function(){if(!headerObjectResizer.postInit&&typeof responsiveDesign!=='undefined'){$(window).on('responsiveResize',headerObjectResizer.resize);headerObjectResizer.postInit=true;} 94var responsiveType=0;var cleanUpStyles=false;if(typeof responsiveDesign!=='undefined'&&defaultResponsiveData[responsiveDesign.responsiveTypeIdx]&&responsiveDesign.isResponsive){cleanUpStyles=true;} 95if(typeof responsiveDesign!=='undefined'){if(responsiveDesign.responsiveType==='tabletlandscape'){responsiveType=1;}else if(responsiveDesign.responsiveType==='tabletportrait'){responsiveType=2;}else if(responsiveDesign.responsiveType==='phonelandscape'){responsiveType=3;}else if(responsiveDesign.responsiveType==='phoneportrait'){responsiveType=4;}} 96var sheet=$('.art-sheet');var sheetWidth=sheet.outerWidth();var header=$('header');var height=0;var cssPrefix='art-';var headerQuery='header.art-header .art-shapes>*, header.art-header .art-textblock, header.art-header>.art-headline, header.art-header>.art-slogan, header.art-header>.art-positioncontrol, header.art-header>.art-logo';var pageSliderQuery='.art-pageslider .art-slide-item>*';if(headerObjectResizer.isPreview){headerQuery='header .art-slider';pageSliderQuery='.art-pageslider .art-slider, .art-pageslider .art-textblock';} 97$(headerQuery+', '+pageSliderQuery).each(function(){var object=$(this);height=object.parent().height();var off=sheetLeftFunc(sheet,object);var cls=object.attr('class').split(' ');$.each(cls,function(key,val){val=$.trim(val);if(val.length===0)return;if(val.indexOf(cssPrefix)!==0)return;val=val.substring(cssPrefix.length);var data=resizeData[val];if(typeof data==='undefined')return;if(cleanUpStyles){object.css('display','');object.css('left','');object.css('margin-left','');} 98var respData=data.responsive[responsiveType];if(respData.visible){object.css('display','');}else{applyCss(object,'display','none !important');} 99if(cleanUpStyles||!respData.visible)return false;var x=uniToPx(respData.left,data.autoWidth?object.width():data.width,sheetWidth);x+=off;var y=uniToPx(respData.top,data.height,height);object.css('left',x+'px');object.css('top',y+'px');applyCss(object,'margin-left','0px !important');return false;});});var slides=$('.art-slide-item').add(header);if(browser.ie&&browser.version<=8){slides=slides.add('.art-slide-item .ie8fix');} 100$.each(slides,function(slideIdx,slide){slide=$(slide);
100if(slide.closest('.art-collage').length>0||cleanUpStyles){slide.css('background-position','');return;} 101var slideVisible=slide.is(':visible');if(!slideVisible&&browser.ie){slide.css('display','block');} 102var off=sheetLeftFunc(sheet,slide);if(browser.ie&&browser.version<=8){var s=slide.attr('style');if(s){s=s.replace(/background\-position[^;]+/,'');slide.attr('style',s);}}else{slide.css('background-position','');} 103slide.css('background-size','');var bgImage=slide.css('background-image')?slide.css('background-image').split(','):[];var bgPosition=slide.css('background-position')&&(slide.css('background-position').replace(/[0][^\d]+/gi,'')).length>0?slide.css('background-position').split(','):[];if(bgImage.length!==bgPosition.length){slide.css('display','');return;} 104height=slide.height();if(height===0)height=slide.parent().height();$.each(bgImage,function(idx,val){var findImageIdx=val.lastIndexOf('images/');var findDotIdx=val.lastIndexOf('.');if(findImageIdx===-1||findDotIdx===-1)return;var name=val.substring(findImageIdx+7,findDotIdx);var data=resizeData[name];if(typeof data==='undefined')return;var respData=data.responsive[responsiveType];var x=9999,y=9999;if(respData.visible){x=uniToPx(respData.left,data.width,sheetWidth);x+=off+data.area.x;y=uniToPx(respData.top,data.height,height);y+=data.area.y;} 105bgPosition[idx]=x+'px '+y+'px';});slide.css('background-position',bgPosition.join(','));if(!slideVisible&&browser.ie){slide.css('display','');}});};})(jQuery),initialize:function($){if(!browser.ie||browser.version>8){$(window).on('resize',this.resize);}else{var resizeTimeout;var self=this;$(window).on("resize",function(){clearTimeout(resizeTimeout);resizeTimeout=setTimeout(function(){self.resize();},25);});}}};headerObjectResizer.initialize(jQuery);jQuery(function($){"use strict";if(!browser.ie||browser.version>8) 106return;processElementMultiplyBg(".art-header",{"bgimage":"url('images/header.jpg')","bgposition":"0 0","images":"","positions":""});});if(typeof window.resizeData==='undefined')window.resizeData={};window.resizeData.pageSliderPageWidth=false; var responsiveDesign={isResponsive:false,isDesktop:false,isTablet:false,isPhone:false,lockedResponsiveMode:'',responsiveType:'desktop',responsiveTypeIdx:1,lockedResponsiveType:'',isCurrentDefaultResponsive:false,defaultResponsive:[false,true,true,true,true],windowWidth:0,responsive:(function($){"use strict";return function(){var html=$("html");this.windowWidth=$(window).width();var triggerEvent=false;var isRespVisible=$("#art-resp").is(":visible");if(this.lockedResponsiveMode==='desktop')isRespVisible=false;if(isRespVisible&&!this.isResponsive){html.addClass("responsive").removeClass("desktop");this.isResponsive=true;this.isDesktop=false;triggerEvent=true;}else if(!isRespVisible&&!this.isDesktop){html.addClass("desktop").removeClass("responsive default-responsive responsive-tablet responsive-phone");this.isResponsive=this.isTablet=this.isPhone=false;this.isDesktop=true;triggerEvent=true;} 107if(this.isResponsive){var isTablet=this.lockedResponsiveMode==='tablet'||($("#art-resp-t").is(":visible")&&this.lockedResponsiveMode==='');var isPhone=this.lockedResponsiveMode==='phone'||($("#art-resp-m").is(":visible")&&this.lockedResponsiveMode==='');if(isTablet&&!this.isTablet){html.addClass("responsive-tablet").removeClass("responsive-phone");this.isTablet=true;this.isPhone=false;triggerEvent=true;}else if(isPhone&&!this.isPhone){html.addClass("responsive-phone").removeClass("responsive-tablet");this.isTablet=false;this.isPhone=true;triggerEvent=true;}} 108var prevResponsiveIndx=this.responsiveTypeIdx;if(this.lockedResponsiveType==='tabletlandscape'||($("#art-resp-tablet-landscape").is(":visible")&&this.lockedResponsiveType==='')){this.responsiveType='tabletlandscape';this.responsiveTypeIdx=1;}else if(this.lockedResponsiveType==='tabletportrait'||($("#art-resp-tablet-portrait").is(":visible")&&this.lockedResponsiveType==='')){this.responsiveType='tabletportrait';this.responsiveTypeIdx=2;}else if(this.lockedResponsiveType==='phonelandscape'||($("#art-resp-phone-landscape").is(":visible")&&this.lockedResponsiveType==='')){this.responsiveType='phonelandscape';this.responsiveTypeIdx=3;}else if(this.lockedResponsiveType==='phoneportrait'||($("#art-resp-phone-portrait").is(":visible")&&this.lockedResponsiveType==='')){this.responsiveType='phoneportrait';this.responsiveTypeIdx=4;}else{this.responsiveType='desktop';this.responsiveTypeIdx=0;} 109if(triggerEvent||prevResponsiveIndx!==this.responsiveTypeIdx){triggerEvent=true;if(this.isResponsive&&this.defaultResponsive[this.responsiveTypeIdx]){this.isCurrentDefaultResponsive=true;html.removeClass('custom-responsive').addClass('default-responsive');}else{this.isCurrentDefaultResponsive=false;html.removeClass('default-responsive').addClass('custom-responsive');}} 110if(triggerEvent){$(window).trigger("responsive",this);} 111$(window).trigger("responsiveResize",this);};})(jQuery),initialize:(function($){"use strict";return function(){if(typeof defaultResponsiveData!=='undefined')responsiveDesign.defaultResponsive=defaultResponsiveData;$("<div id=\"art-resp\"><div id=\"art-resp-m\"></div><div id=\"art-resp-t\"></div></div>").appendTo("body");$('<div id="art-resp-tablet-landscape" /><div id="art-resp-tablet-portrait" /><div id="art-resp-phone-landscape" /><div id="art-resp-phone-portrait" />').appendTo('body');$(window).resize(function(){responsiveDesign.responsive();});$(window).trigger("resize");};})(jQuery),lockResponsiveType:function(mode){responsiveDesign.lockedResponsiveType=mode;if(mode.indexOf('tablet')===0)mode='tablet';if(mode.indexOf('phone')===0)mode='phone';responsiveDesign.lockedResponsiveMode=mode;},toogleDefaultResponsive:function(type,val){var old=responsiveDesign.defaultResponsive[type];responsiveDesign.defaultResponsive[type]=val;if(old!==val)responsiveDesign.responsiveTypeIdx=-1;}};function responsiveAbsBg(responsiveDesign,el,bg){"use strict";if(bg.length===0) 112return;var desktopBgTop=bg.attr("data-bg-top");var desktopBgHeight=bg.attr("data-bg-height");if(responsiveDesign.isResponsive){if(typeof desktopBgTop==="undefined"||desktopBgTop===false){bg.attr("data-bg-top",bg.css("top"));bg.attr("data-bg-height",bg.css("height"));} 113var elTop=el.offset().top;var elHeight=el.outerHeight();bg.css("top",elTop+"px");bg.css("height",elHeight+"px");}else if(typeof desktopBgTop!=="undefined"&&desktopBgTop!==false){bg.css("top",desktopBgTop);bg.css("height",desktopBgHeight);bg.removeAttr("data-bg-top");bg.removeAttr("data-bg-height");}} 114var responsiveImages=(function($){"use strict";return function(responsiveDesign){$("img[width]").each(function(){var img=$(this),newWidth="",newMaxWidth="",newHeight="";if(responsiveDesign.isResponsive){newWidth="auto";newHeight="auto";newMaxWidth="100%";var widthAttr=img.attr("width");
114if(widthAttr!==null&&typeof(widthAttr)==="string"&&widthAttr.indexOf("%")===-1){newWidth="100%";newMaxWidth=parseInt($.trim(widthAttr),10)+"px";}} 115img.css("width",newWidth).css("max-width",newMaxWidth).css("height",newHeight);});};})(jQuery);var responsiveVideos=(function($){"use strict";return function(responsiveDesign){$("iframe[width],object[width],embed[width]").each(function(){var obj=$(this);if((obj.is('[width]')&&obj.attr("width").indexOf("%")!==-1)||(obj.is('[class]')&&obj.attr("class").indexOf("twitter")!==-1)||(obj.id&&obj.id.indexOf("google")!==-1)) 116return;var container=obj.parent(".art-responsive-embed");if(responsiveDesign.isResponsive){if(container.length!==0) 117return;container=$("<div class=\"art-responsive-embed\">").insertBefore(obj);obj.appendTo(container);}else if(container.length>0){obj.insertBefore(container);container.remove();}});};})(jQuery);var responsiveTextblocks=(function($){"use strict";return function(slider,responsiveDesign){slider.find(".art-textblock").each(function(){if(parseInt(slider.attr("data-width"),10)===0){return true;} 118var tb=$(this);var c=slider.width()/slider.attr("data-width");tb.css({"height":"","width":"","top":"","margin-left":""});if(responsiveDesign.isResponsive){var tbHeight=parseInt(tb.css("height"),10);var tbWidth=parseInt(tb.css("width"),10);var tbTop=parseInt(tb.css("top"),10);var tbMargin=parseInt(tb.css("margin-left"),10);tb.add(tb.find('div')).css({"height":tbHeight*c,"width":tbWidth*c});tb.css("top",tbTop*c);tb.attr("style",function(i,s){return s+"margin-left: "+(tbMargin*c)+"px !important";});}});};})(jQuery);var responsiveSlider=(function($){"use strict";return function(responsiveDesign){$(".art-slider").each(function(){var s=$(this);var isHeaderSlider=s.parent('.art-header').length>0||s.parent('.art-pageslider').length>0;if(!isHeaderSlider&&responsiveDesign.isResponsive){responsiveTextblocks(s,responsiveDesign);return;} 119var initialWidth=s.attr("data-width");var initialHeight=s.attr("data-height");var obj=s.data("slider");if(!obj){return false;} 120var inner=s.find(".art-slider-inner");if(!responsiveDesign.isResponsive&&obj.settings.helper){obj.settings.helper.updateSize(inner,{width:initialWidth,height:initialHeight});return;} 121if(obj&&obj.settings.helper){$(window).on("responsiveResize",function updateSize(){if(obj.settings.animation==="fade")return;if(responsiveDesign.isCurrentDefaultResponsive){obj.settings.helper.updateSize(inner,{width:initialWidth,height:initialHeight});$.each(inner.children(),function(){$(this).css("background-position",-Math.floor(initialWidth/2-parseInt(inner.outerWidth(),10)/2)+"px"+ 122-Math.floor(initialHeight/2-parseInt(inner.outerHeight(),10)/2)+"px ");});}else{$(window).off("responsiveResize",updateSize);}});}});};})(jQuery);var responsiveCollages=(function($){"use strict";return function(responsiveDesign){$(".art-collage").each(function(){var collage=$(this);var slider=collage.find(".art-slider");var initialWidth=slider.attr("data-width");var initialHeight=slider.attr("data-height");var parent=collage.closest(':not(.image-caption-wrapper, .art-collage)');var parentIcw=collage.closest('.image-caption-wrapper');var parentWidth=parent.width();var collageWidth=collage.width();var doms=collage.add(slider).add(collage.closest(".image-caption-wrapper"));if(responsiveDesign.isResponsive&&collageWidth>parentWidth||(parentIcw.length>0&&collageWidth>parentIcw.width())){doms.css("width","100%");} 123collageWidth=collage.width();if(collageWidth>initialWidth){doms.css("width","");} 124var c=slider.width()/initialWidth;var h=c*initialHeight;slider.css("height",h+"px");});};})(jQuery);jQuery(window).bind("responsive",(function($){"use strict";return function(event,responsiveDesign){$(window).trigger('responsivePage',responsiveDesign);responsiveImages(responsiveDesign);responsiveVideos(responsiveDesign);responsiveSlider(responsiveDesign);responsiveNavigator(responsiveDesign);};})(jQuery));jQuery(window).bind("responsiveResize",(function($){"use strict";return function(event,responsiveDesign){responsiveCollages(responsiveDesign);responsiveNavigator(responsiveDesign);};})(jQuery));jQuery(function($){if(!browser.ie||browser.version>8)return;var timeout;$(window).on("resize",function(){clearTimeout(timeout);timeout=setTimeout(function(){responsiveCollages(responsiveDesign);responsiveNavigator(responsiveDesign);},25);});responsiveCollages(responsiveDesign);responsiveNavigator(responsiveDesign);});var responsiveHeader=(function($){"use strict";return function(responsiveDesign){var header=$("header.art-header");var headerSlider=header.find(".art-slider");if(headerSlider.length){var firstSlide=headerSlider.find(".art-slide-item").first();var slidebg=firstSlide.css("background-image").split(",");var previousSibling=headerSlider.prev();var sliderNav=headerSlider.siblings(".art-slidenavigator");if(slidebg.length&&responsiveDesign.isResponsive){if(previousSibling.is("nav.art-nav")){sliderNav.attr("data-offset",previousSibling.height());}}else{sliderNav.removeAttr("data-offset");header.removeAttr("style");}}};})(jQuery);jQuery(window).bind("responsiveResize",(function($){"use strict";return function(event,responsiveDesign){responsiveAbsBg(responsiveDesign,$(".art-header"),$("#art-header-bg"));};})(jQuery));jQuery(window).bind("responsive",(function($){"use strict";return function(event,responsiveDesign){if(browser.ie&&browser.version<=8)return;if(responsiveDesign.isResponsive){$(window).on("responsiveResize.header",function(){responsiveHeader(responsiveDesign);});}else{$(window).trigger("responsiveResize.header");$(window).off("responsiveResize.header");}};})(jQuery));jQuery(window).bind("responsiveResize",(function($){"use strict";return function(event,responsiveDesign){responsiveAbsBg(responsiveDesign,$("nav.art-nav"),$("#art-hmenu-bg"));$(window).trigger("responsiveNav",{responsiveDesign:responsiveDesign});};})(jQuery));jQuery(function($){"use strict";$(".art-hmenu a").each(function(){var link=$(this);if(link.get(0).href===location.href){link.addClass("active").parents("li").addClass("active");return false;}});});jQuery(function($){$('<a href=\"#\" class=\"art-menu-btn\"><span></span><span></span><span></span></a>').insertBefore(".art-hmenu").click(function(e){var menu=$(this).next();if(menu.is(":visible")){menu.slideUp("fast",function(){$(this).removeClass("visible").css("display","");});}else{menu.slideDown("fast",function(){$(this).addClass("visible").css("display","");});} 125e.preventDefault();});});var responsiveLayoutCell=(function($){"use strict";return function(responsiveDesign){$(".art-content .art-content-layout-row,.art-footer .art-content-layout-row").each(function(){var row=$(this);var rowChildren=row.children(".art-layout-cell");if(rowChildren.length>0){var c;row.removeClass("responsive-layout-row-2").removeClass("responsive-layout-row-3").removeClass("responsive-layout-row-1");if(rowChildren.length===1){c=1;row.addClass("responsive-layout-row-1");}else if(rowChildren.length%2===0){var c=2;row.addClass("responsive-layout-row-2");}else{var c=3;row.addClass("responsive-layout-row-3");} 126if(c>0&&responsiveDesign.isTablet){rowChildren.addClass("responsive-tablet-layout-cell").each(function(i){if((i+1)%c===0){$(this).after("<div class=\"cleared responsive-cleared\">");}});}else{rowChildren.removeClass("responsive-tablet-layout-cell");row.children(".responsive-cleared").remove();}}});};})(jQuery);jQuery(window).bind("responsive",function(event,responsiveDesign){"use strict";responsiveLayoutCell(responsiveDesign);});if(!browser.ie||browser.version>8){jQuery(responsiveDesign.initialize);}else{jQuery("html").addClass("desktop");}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.