jQuery(document).ready(function(){var skyscraper=jQuery(".skyscraperWrapper");if(skyscraper.length>0){skyscraper.css("position","fixed");}});var strInsightOasSection;var strInsightOasSubSection1;var strInsightOasSubSection2;var strInsightOasExtraTag;var strSitePublication;var strSiteExtraSifoTag;var strArticlePublication;var strOasExtra;strInsightOasSection=strSitePublication;strOasExtra=strSiteExtraSifoTag;if(strInsightOasSubSection1==undefined){strInsightOasSubSection1="";}if(strInsightOasSubSection2==undefined){strInsightOasSubSection2="";}if(strInsightOasExtraTag==undefined){strInsightOasExtraTag="";}if(strArticlePublication==undefined){strArticlePublication="";}if(strOasExtra==undefined){strOasExtra="";}if(typeof(autoReloaded)=="undefined"){var autoReloaded=false;}if(strInsightOasSection=="idgse"||strInsightOasSection=="ram"){strInsightOasExtraTag+="&Grupp1=idgse";}if((strArticlePublication!="")&&(strInsightOasSection!=strArticlePublication)){strInsightOasSection=strArticlePublication;strInsightOasSubSection1="Artiklar_"+strArticlePublication;}if(strInsightOasSubSection1==""){strInsightOasSubSection1=strInsightOasSection;}OAS_sitepage="idg";OAS_listpos="TopRight";OAS_query="";var d=document;var OAS_rdl="";var OAS_CA="N";var OAS_taxonomy="&Sajt="+OAS_sitepage+"&Sektion="+strInsightOasSection+"&Undersektion1="+strInsightOasSubSection1+strInsightOasExtraTag+strOasExtra;if((d.referrer)&&(d.referrer!="[unknown origin]")){if(d.referrer.indexOf("?")==-1){OAS_rdl+="&tax23_RefDocLoc="+d.referrer.toString();}else{var rdl=d.referrer;var rdl1=rdl.indexOf("?");var rdl2=rdl.substring(0,rdl1);OAS_rdl+="&tax23_RefDocLoc="+rdl2;}}function cookie_check(ifd,ife){var s=ife.indexOf(ifd);if(s==-1){return"";}s+=ifd.length;var e=ife.indexOf(";",s);if(e==-1){e=ife.length;}return ife.substring(s,e);}function write_cookie(){var d=new Date();var m=d.getTime();document.cookie="OAS_SC1="+m.toString()+";path=/;";var v=cookie_check("OAS_SC1=",document.cookie);if(v!=m.toString()){return false;}d.setTime(m+3600000);return true;}if(write_cookie()){OAS_CA="Y";}OAS_query+="XE"+OAS_taxonomy+OAS_rdl+"&if_nt_CookieAccept="+OAS_CA+"&XE";OAS_target="_top";OAS_rn=new String(Math.random());OAS_RNS=OAS_rn.substring(2,11);OAS_version=11;if((navigator.userAgent.indexOf("Mozilla/3")!=-1||navigator.userAgent.indexOf("Mozilla/4.0 WebTV")!=-1)&&!autoReloaded){document.write('<A HREF="http://sifomedia.idg.se/1c/'+OAS_sitepage+"/1"+OAS_RNS+"@"+OAS_listpos+"!"+pos+"?"+OAS_query.replace(/(<([^>]+)>)/ig,"")+'" TARGET='+OAS_target+">");}if((OAS_version>=11)&&!autoReloaded){document.write('<SCRIPT LANGUAGE=JavaScript1.1 SRC="'+encodeURI("http://sifomedia.idg.se/3/"+OAS_sitepage+"/1"+OAS_RNS+"@"+OAS_listpos+"?"+OAS_query.replace(/(<([^>]+)>)/ig,""))+'"></SCRIPT>');}document.write("");jQuery(window).load(function(){setTimeout(function(){jQuery(".themeSearchFailed").each(function(){IDGTrackEvent("IDG-error-log","themeSearchFailed",this.innerHTML);});},500);});/*! Tablesaw - v1.0.4 - 2015-02-19
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2015 Filament Group; Licensed MIT */
(function($){var div=document.createElement("div"),all=div.getElementsByTagName("i"),$doc=$(document.documentElement);div.innerHTML="<!--[if lte IE 8]><i></i><![endif]-->";if(all[0]){$doc.addClass("ie-lte8");}if(!("querySelector" in document)||(window.blackberry&&!window.WebKitPoint)||window.operamini){return;}else{$doc.addClass("tablesaw-enhanced");$(function(){$(document).trigger("enhance.tablesaw");});}})(jQuery);if(typeof Tablesaw==="undefined"){Tablesaw={i18n:{modes:["Stack","Swipe","Toggle"],columns:'Col<span class="a11y-sm">umn</span>s',columnBtnText:"Columns",columnsDialogError:"No eligible columns.",sort:"Sort"}};}if(!Tablesaw.config){Tablesaw.config={};}(function($){var pluginName="table",classes={toolbar:"tablesaw-bar"},events={create:"tablesawcreate",destroy:"tablesawdestroy",refresh:"tablesawrefresh"},defaultMode="stack",initSelector="table[data-tablesaw-mode],table[data-tablesaw-sortable]";var Table=function(element){if(!element){throw new Error("Tablesaw requires an element.");}this.table=element;this.$table=$(element);this.mode=this.$table.attr("data-tablesaw-mode")||defaultMode;this.init();};Table.prototype.init=function(){if(!this.$table.attr("id")){this.$table.attr("id",pluginName+"-"+Math.round(Math.random()*10000));}this.createToolbar();var colstart=this._initCells();this.$table.trigger(events.create,[this,colstart]);};Table.prototype._initCells=function(){var colstart,thrs=this.table.querySelectorAll("thead tr"),self=this;$(thrs).each(function(){var coltally=0;$(this).children().each(function(){var span=parseInt(this.getAttribute("colspan"),10),sel=":nth-child("+(coltally+1)+")";colstart=coltally+1;if(span){for(var k=0;k<span-1;k++){coltally++;sel+=", :nth-child("+(coltally+1)+")";}}this.cells=self.$table.find("tr").not($(thrs).eq(0)).not(this).children(sel);coltally++;});});return colstart;};Table.prototype.refresh=function(){this._initCells();this.$table.trigger(events.refresh);};Table.prototype.createToolbar=function(){var $toolbar=this.$table.prev("."+classes.toolbar);if(!$toolbar.length){$toolbar=$("<div>").addClass(classes.toolbar).insertBefore(this.$table);}this.$toolbar=$toolbar;if(this.mode){this.$toolbar.addClass("mode-"+this.mode);}};Table.prototype.destroy=function(){this.$table.prev("."+classes.toolbar).each(function(){this.className=this.className.replace(/\bmode\-\w*\b/gi,"");});var tableId=this.$table.attr("id");$(document).unbind("."+tableId);$(window).unbind("."+tableId);this.$table.trigger(events.destroy,[this]);this.$table.removeAttr("data-tablesaw-mode");this.$table.removeData(pluginName);};$.fn[pluginName]=function(){return this.each(function(){var $t=$(this);if($t.data(pluginName)){return;}var table=new Table(this);$t.data(pluginName,table);});};$(document).on("enhance.tablesaw",function(e){$(e.target).find(initSelector)[pluginName]();});}(jQuery));(function(win,$,undefined){var classes={stackTable:"tablesaw-stack",cellLabels:"tablesaw-cell-label",cellContentLabels:"tablesaw-cell-content"};var data={obj:"tablesaw-stack"};var attrs={labelless:"data-tablesaw-no-labels",hideempty:"data-tablesaw-hide-empty"};var Stack=function(element){this.$table=$(element);this.labelless=this.$table.is("["+attrs.labelless+"]");this.hideempty=this.$table.is("["+attrs.hideempty+"]");if(!this.labelless){this.allHeaders=this.$table.find("th");}this.$table.data(data.obj,this);};Stack.prototype.init=function(colstart){this.$table.addClass(classes.stackTable);if(this.labelless){return;}var reverseHeaders=$(this.allHeaders);var hideempty=this.hideempty;reverseHeaders.each(function(){var $t=$(this),$cells=$(this.cells).filter(function(){return !$(this).parent().is("["+attrs.labelless+"]")&&(!hideempty||!$(this).is(":empty"));}),hierarchyClass=$cells.not(this).filter("thead th").length&&" tablesaw-cell-label-top",$sortableButton=$t.find(".tablesaw-sortable-btn"),html=$sortableButton.length?$sortableButton.html():$t.html();if(html!==""){if(hierarchyClass){var iteration=parseInt($(this).attr("colspan"),10),filter="";if(iteration){filter="td:nth-child("+iteration+"n + "+(colstart)+")";}$cells.filter(filter).prepend("<b class='"+classes.cellLabels+hierarchyClass+"'>"+html+"</b>");}else{$cells.wrapInner("<span class='"+classes.cellContentLabels+"'></span>");$cells.prepend("<b class='"+classes.cellLabels+"'>"+html+"</b>");}}});};Stack.prototype.destroy=function(){this.$table.removeClass(classes.stackTable);this.$table.find("."+classes.cellLabels).remove();this.$table.find("."+classes.cellContentLabels).each(function(){$(this).replaceWith(this.childNodes);});};$(document).on("tablesawcreate",function(e,Tablesaw,colstart){if(Tablesaw.mode==="stack"){var table=new Stack(Tablesaw.table);table.init(colstart);}});$(document).on("tablesawdestroy",function(e,Tablesaw){if(Tablesaw.mode==="stack"){$(Tablesaw.table).data(data.obj).destroy();}});}(this,jQuery));jQuery(function(){var skyad_1=jQuery(".skyscraperWrapper .skyOne"),skyad_2=jQuery(".skyscraperWrapper .skyTwo");if(skyad_2.length>0){jQuery(window).load(function(){var skyad_2Top=skyad_2.offset().top;jQuery(window).scroll(function(){var scrollTop=jQuery(window).scrollTop();if(scrollTop>=skyad_2Top){skyad_2.addClass("fixedSky");skyad_1.addClass("lockedSky");}else{skyad_2.removeClass("fixedSky");skyad_1.removeClass("lockedSky");}});});}});(function($,window,document,undefined){var header_helpers=function(class_array){var i=class_array.length;var head=$("head");while(i--){if(head.has("."+class_array[i]).length===0){head.append('<meta class="'+class_array[i]+'" />');}}};header_helpers(["foundation-mq-small","foundation-mq-small-only","foundation-mq-medium","foundation-mq-medium-only","foundation-mq-large","foundation-mq-large-only","foundation-mq-xlarge","foundation-mq-xlarge-only","foundation-mq-xxlarge","foundation-data-attribute-namespace"]);$(function(){if(typeof FastClick!=="undefined"){if(typeof document.body!=="undefined"){FastClick.attach(document.body);}}});var S=function(selector,context){if(typeof selector==="string"){if(context){var cont;if(context.jquery){cont=context[0];if(!cont){return context;}}else{cont=context;}return $(cont.querySelectorAll(selector));}return $(document.querySelectorAll(selector));}return $(selector,context);};var attr_name=function(init){var arr=[];if(!init){arr.push("data");}if(this.namespace.length>0){arr.push(this.namespace);}arr.push(this.name);return arr.join("-");};var add_namespace=function(str){var parts=str.split("-"),i=parts.length,arr=[];while(i--){if(i!==0){arr.push(parts[i]);}else{if(this.namespace.length>0){arr.push(this.namespace,parts[i]);}else{arr.push(parts[i]);}}}return arr.reverse().join("-");};var bindings=function(method,options){var self=this,bind=function(){var $this=S(this),should_bind_events=!$this.data(self.attr_name(true)+"-init");$this.data(self.attr_name(true)+"-init",$.extend({},self.settings,(options||method),self.data_options($this)));if(should_bind_events){self.events(this);}};if(S(this.scope).is("["+this.attr_name()+"]")){bind.call(this.scope);}else{S("["+this.attr_name()+"]",this.scope).each(bind);}if(typeof method==="string"){return this[method].call(this,options);}};var single_image_loaded=function(image,callback){function loaded(){callback(image[0]);}function bindLoad(){this.one("load",loaded);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var src=this.attr("src"),param=src.match(/\?/)?"&":"?";param+="random="+(new Date()).getTime();this.attr("src",src+param);}}if(!image.attr("src")){loaded();return;}if(image[0].complete||image[0].readyState===4){loaded();}else{bindLoad.call(image);}};window.matchMedia=window.matchMedia||(function(doc){var bool,docElem=doc.documentElement,refNode=docElem.firstElementChild||docElem.firstChild,fakeBody=doc.createElement("body"),div=doc.createElement("div");div.id="mq-test-1";div.style.cssText="position:absolute;top:-100em";fakeBody.style.background="none";fakeBody.appendChild(div);return function(q){div.innerHTML='&shy;<style media="'+q+'"> #mq-test-1 { width: 42px; }</style>';docElem.insertBefore(fakeBody,refNode);bool=div.offsetWidth===42;docElem.removeChild(fakeBody);return{matches:bool,media:q};};}(document));(function(jQuery){var animating,lastTime=0,vendors=["webkit","moz"],requestAnimationFrame=window.requestAnimationFrame,cancelAnimationFrame=window.cancelAnimationFrame,jqueryFxAvailable="undefined"!==typeof jQuery.fx;for(;lastTime<vendors.length&&!requestAnimationFrame;lastTime++){requestAnimationFrame=window[vendors[lastTime]+"RequestAnimationFrame"];cancelAnimationFrame=cancelAnimationFrame||window[vendors[lastTime]+"CancelAnimationFrame"]||window[vendors[lastTime]+"CancelRequestAnimationFrame"];}function raf(){if(animating){requestAnimationFrame(raf);if(jqueryFxAvailable){jQuery.fx.tick();}}}if(requestAnimationFrame){window.requestAnimationFrame=requestAnimationFrame;window.cancelAnimationFrame=cancelAnimationFrame;if(jqueryFxAvailable){jQuery.fx.timer=function(timer){if(timer()&&jQuery.timers.push(timer)&&!animating){animating=true;raf();}};jQuery.fx.stop=function(){animating=false;};}}else{window.requestAnimationFrame=function(callback){var currTime=new Date().getTime(),timeToCall=Math.max(0,16-(currTime-lastTime)),id=window.setTimeout(function(){callback(currTime+timeToCall);},timeToCall);lastTime=currTime+timeToCall;return id;};window.cancelAnimationFrame=function(id){clearTimeout(id);};}}($));function removeQuotes(string){if(typeof string==="string"||string instanceof String){string=string.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g,"");}return string;}window.Foundation={name:"Foundation",version:"5.5.1",media_queries:{small:S(".foundation-mq-small").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),"small-only":S(".foundation-mq-small-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),medium:S(".foundation-mq-medium").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),"medium-only":S(".foundation-mq-medium-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),large:S(".foundation-mq-large").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),"large-only":S(".foundation-mq-large-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xlarge:S(".foundation-mq-xlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),"xlarge-only":S(".foundation-mq-xlarge-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xxlarge:S(".foundation-mq-xxlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,"")},stylesheet:$("<style></style>").appendTo("head")[0].sheet,global:{namespace:undefined},init:function(scope,libraries,method,options,response){var args=[scope,method,options,response],responses=[];this.rtl=/rtl/i.test(S("html").attr("dir"));this.scope=scope||this.scope;this.set_namespace();if(libraries&&typeof libraries==="string"&&!/reflow/i.test(libraries)){if(this.libs.hasOwnProperty(libraries)){responses.push(this.init_lib(libraries,args));}}else{for(var lib in this.libs){responses.push(this.init_lib(lib,libraries));}}S(window).load(function(){S(window).trigger("resize.fndtn.clearing").trigger("resize.fndtn.dropdown").trigger("resize.fndtn.equalizer").trigger("resize.fndtn.interchange").trigger("resize.fndtn.joyride").trigger("resize.fndtn.magellan").trigger("resize.fndtn.topbar").trigger("resize.fndtn.slider");});return scope;},init_lib:function(lib,args){if(this.libs.hasOwnProperty(lib)){this.patch(this.libs[lib]);if(args&&args.hasOwnProperty(lib)){if(typeof this.libs[lib].settings!=="undefined"){$.extend(true,this.libs[lib].settings,args[lib]);}else{if(typeof this.libs[lib].defaults!=="undefined"){$.extend(true,this.libs[lib].defaults,args[lib]);}}return this.libs[lib].init.apply(this.libs[lib],[this.scope,args[lib]]);}args=args instanceof Array?args:new Array(args);return this.libs[lib].init.apply(this.libs[lib],args);}return function(){};},patch:function(lib){lib.scope=this.scope;lib.namespace=this.global.namespace;lib.rtl=this.rtl;lib.data_options=this.utils.data_options;lib.attr_name=attr_name;lib.add_namespace=add_namespace;lib.bindings=bindings;lib.S=this.utils.S;},inherit:function(scope,methods){var methods_arr=methods.split(" "),i=methods_arr.length;while(i--){if(this.utils.hasOwnProperty(methods_arr[i])){scope[methods_arr[i]]=this.utils[methods_arr[i]];}}},set_namespace:function(){var namespace=(this.global.namespace===undefined)?$(".foundation-data-attribute-namespace").css("font-family"):this.global.namespace;this.global.namespace=(namespace===undefined||/false/i.test(namespace))?"":namespace;},libs:{},utils:{S:S,throttle:function(func,delay){var timer=null;return function(){var context=this,args=arguments;if(timer==null){timer=setTimeout(function(){func.apply(context,args);timer=null;},delay);}};},debounce:function(func,delay,immediate){var timeout,result;return function(){var context=this,args=arguments;var later=function(){timeout=null;if(!immediate){result=func.apply(context,args);}};var callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,delay);if(callNow){result=func.apply(context,args);}return result;};},data_options:function(el,data_attr_name){data_attr_name=data_attr_name||"options";var opts={},ii,p,opts_arr,data_options=function(el){var namespace=Foundation.global.namespace;if(namespace.length>0){return el.data(namespace+"-"+data_attr_name);}return el.data(data_attr_name);};var cached_options=data_options(el);if(typeof cached_options==="object"){return cached_options;}opts_arr=(cached_options||":").split(";");ii=opts_arr.length;function isNumber(o){return !isNaN(o-0)&&o!==null&&o!==""&&o!==false&&o!==true;}function trim(str){if(typeof str==="string"){return $.trim(str);}return str;}while(ii--){p=opts_arr[ii].split(":");p=[p[0],p.slice(1).join(":")];if(/true/i.test(p[1])){p[1]=true;}if(/false/i.test(p[1])){p[1]=false;}if(isNumber(p[1])){if(p[1].indexOf(".")===-1){p[1]=parseInt(p[1],10);}else{p[1]=parseFloat(p[1]);}}if(p.length===2&&p[0].length>0){opts[trim(p[0])]=trim(p[1]);}}return opts;},register_media:function(media,media_class){if(Foundation.media_queries[media]===undefined){$("head").append('<meta class="'+media_class+'"/>');Foundation.media_queries[media]=removeQuotes($("."+media_class).css("font-family"));}},add_custom_rule:function(rule,media){if(media===undefined&&Foundation.stylesheet){Foundation.stylesheet.insertRule(rule,Foundation.stylesheet.cssRules.length);}else{var query=Foundation.media_queries[media];if(query!==undefined){Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[media]+"{ "+rule+" }");}}},image_loaded:function(images,callback){var self=this,unloaded=images.length;if(unloaded===0){callback(images);}images.each(function(){single_image_loaded(self.S(this),function(){unloaded-=1;if(unloaded===0){callback(images);}});});},random_str:function(){if(!this.fidx){this.fidx=0;}this.prefix=this.prefix||[(this.name||"F"),(+new Date).toString(36)].join("-");return this.prefix+(this.fidx++).toString(36);},match:function(mq){return window.matchMedia(mq).matches;},is_small_up:function(){return this.match(Foundation.media_queries.small);},is_medium_up:function(){return this.match(Foundation.media_queries.medium);},is_large_up:function(){return this.match(Foundation.media_queries.large);},is_xlarge_up:function(){return this.match(Foundation.media_queries.xlarge);},is_xxlarge_up:function(){return this.match(Foundation.media_queries.xxlarge);},is_small_only:function(){return !this.is_medium_up()&&!this.is_large_up()&&!this.is_xlarge_up()&&!this.is_xxlarge_up();},is_medium_only:function(){return this.is_medium_up()&&!this.is_large_up()&&!this.is_xlarge_up()&&!this.is_xxlarge_up();},is_large_only:function(){return this.is_medium_up()&&this.is_large_up()&&!this.is_xlarge_up()&&!this.is_xxlarge_up();},is_xlarge_only:function(){return this.is_medium_up()&&this.is_large_up()&&this.is_xlarge_up()&&!this.is_xxlarge_up();},is_xxlarge_only:function(){return this.is_medium_up()&&this.is_large_up()&&this.is_xlarge_up()&&this.is_xxlarge_up();}}};$.fn.foundation=function(){var args=Array.prototype.slice.call(arguments,0);return this.each(function(){Foundation.init.apply(Foundation,[this].concat(args));return this;});};}(jQuery,window,window.document));(function($,window,document,undefined){Foundation.libs.interchange={name:"interchange",version:"5.5.1",cache:{},images_loaded:false,nodes_loaded:false,settings:{load_attr:"interchange",named_queries:{"default":"only screen",small:Foundation.media_queries.small,"small-only":Foundation.media_queries["small-only"],medium:Foundation.media_queries.medium,"medium-only":Foundation.media_queries["medium-only"],large:Foundation.media_queries.large,"large-only":Foundation.media_queries["large-only"],xlarge:Foundation.media_queries.xlarge,"xlarge-only":Foundation.media_queries["xlarge-only"],xxlarge:Foundation.media_queries.xxlarge,landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(el,path,trigger){if(/IMG/.test(el[0].nodeName)){var orig_path=el[0].src;if(new RegExp(path,"i").test(orig_path)){return;}el[0].src=path;return trigger(el[0].src);}var last_path=el.data(this.data_attr+"-last-path"),self=this;if(last_path==path){return;}if(/\.(gif|jpg|jpeg|tiff|png)([?#].*)?/i.test(path)){$(el).css("background-image","url("+path+")");el.data("interchange-last-path",path);return trigger(path);}return $.get(path,function(response){el.html(response);el.data(self.data_attr+"-last-path",path);trigger();});}}},init:function(scope,method,options){Foundation.inherit(this,"throttle random_str");this.data_attr=this.set_data_attr();$.extend(true,this.settings,method,options);this.bindings(method,options);this.load("images");this.load("nodes");},get_media_hash:function(){var mediaHash="";for(var queryName in this.settings.named_queries){mediaHash+=matchMedia(this.settings.named_queries[queryName]).matches.toString();}return mediaHash;},events:function(){var self=this,prevMediaHash;$(window).off(".interchange").on("resize.fndtn.interchange",self.throttle(function(){var currMediaHash=self.get_media_hash();if(currMediaHash!==prevMediaHash){self.resize();}prevMediaHash=currMediaHash;},50));return this;},resize:function(){var cache=this.cache;if(!this.images_loaded||!this.nodes_loaded){setTimeout($.proxy(this.resize,this),50);return;}for(var uuid in cache){if(cache.hasOwnProperty(uuid)){var passed=this.results(uuid,cache[uuid]);if(passed){this.settings.directives[passed.scenario[1]].call(this,passed.el,passed.scenario[0],(function(passed){if(arguments[0] instanceof Array){var args=arguments[0];}else{var args=Array.prototype.slice.call(arguments,0);}return function(){passed.el.trigger(passed.scenario[1],args);};}(passed)));}}}},results:function(uuid,scenarios){var count=scenarios.length;if(count>0){var el=this.S("["+this.add_namespace("data-uuid")+'="'+uuid+'"]');while(count--){var mq,rule=scenarios[count][2];if(this.settings.named_queries.hasOwnProperty(rule)){mq=matchMedia(this.settings.named_queries[rule]);}else{mq=matchMedia(rule);}if(mq.matches){return{el:el,scenario:scenarios[count]};}}}return false;},load:function(type,force_update){if(typeof this["cached_"+type]==="undefined"||force_update){this["update_"+type]();}return this["cached_"+type];},update_images:function(){var images=this.S("img["+this.data_attr+"]"),count=images.length,i=count,loaded_count=0,data_attr=this.data_attr;this.cache={};this.cached_images=[];this.images_loaded=(count===0);while(i--){loaded_count++;if(images[i]){var str=images[i].getAttribute(data_attr)||"";if(str.length>0){this.cached_images.push(images[i]);}}if(loaded_count===count){this.images_loaded=true;this.enhance("images");}}return this;},update_nodes:function(){var nodes=this.S("["+this.data_attr+"]").not("img"),count=nodes.length,i=count,loaded_count=0,data_attr=this.data_attr;this.cached_nodes=[];this.nodes_loaded=(count===0);while(i--){loaded_count++;var str=nodes[i].getAttribute(data_attr)||"";if(str.length>0){this.cached_nodes.push(nodes[i]);}if(loaded_count===count){this.nodes_loaded=true;this.enhance("nodes");}}return this;},enhance:function(type){var i=this["cached_"+type].length;while(i--){this.object($(this["cached_"+type][i]));}return $(window).trigger("resize").trigger("resize.fndtn.interchange");},convert_directive:function(directive){var trimmed=this.trim(directive);if(trimmed.length>0){return trimmed;}return"replace";},parse_scenario:function(scenario){var directive_match=scenario[0].match(/(.+),\s*(\w+)\s*$/),media_query=scenario[1];if(directive_match){var path=directive_match[1],directive=directive_match[2];}else{var cached_split=scenario[0].split(/,\s*$/),path=cached_split[0],directive="";}return[this.trim(path),this.convert_directive(directive),this.trim(media_query)];},object:function(el){var raw_arr=this.parse_data_attr(el),scenarios=[],i=raw_arr.length;if(i>0){while(i--){var split=raw_arr[i].split(/\(([^\)]*?)(\))$/);if(split.length>1){var params=this.parse_scenario(split);scenarios.push(params);}}}return this.store(el,scenarios);},store:function(el,scenarios){var uuid=this.random_str(),current_uuid=el.data(this.add_namespace("uuid",true));if(this.cache[current_uuid]){return this.cache[current_uuid];}el.attr(this.add_namespace("data-uuid"),uuid);return this.cache[uuid]=scenarios;},trim:function(str){if(typeof str==="string"){return $.trim(str);}return str;},set_data_attr:function(init){if(init){if(this.namespace.length>0){return this.namespace+"-"+this.settings.load_attr;}return this.settings.load_attr;}if(this.namespace.length>0){return"data-"+this.namespace+"-"+this.settings.load_attr;}return"data-"+this.settings.load_attr;},parse_data_attr:function(el){var raw=el.attr(this.attr_name()).split(/\[(.*?)\]/),i=raw.length,output=[];while(i--){if(raw[i].replace(/[\W\d]+/,"").length>4){output.push(raw[i]);}}return output;},reflow:function(){this.load("images",true);this.load("nodes",true);}};}(jQuery,window,window.document));(function($,window,document,undefined){Foundation.libs.tab={name:"tab",version:"5.5.1",settings:{active_class:"active",callback:function(){},deep_linking:false,scroll_to_content:true,is_hover:false},default_tab_hashes:[],init:function(scope,method,options){var self=this,S=this.S;this.bindings(method,options);self.entry_location=window.location.href;this.handle_location_hash_change();S("["+this.attr_name()+"] > .active > a",this.scope).each(function(){self.default_tab_hashes.push(this.hash);});},events:function(){var self=this,S=this.S;var usual_tab_behavior=function(e){var settings=S(this).closest("["+self.attr_name()+"]").data(self.attr_name(true)+"-init");if(!settings.is_hover||Modernizr.touch){e.preventDefault();e.stopPropagation();self.toggle_active_tab(S(this).parent());}};S(this.scope).off(".tab").on("focus.fndtn.tab","["+this.attr_name()+"] > * > a",usual_tab_behavior).on("click.fndtn.tab","["+this.attr_name()+"] > * > a",usual_tab_behavior).on("mouseenter.fndtn.tab","["+this.attr_name()+"] > * > a",function(e){var settings=S(this).closest("["+self.attr_name()+"]").data(self.attr_name(true)+"-init");if(settings.is_hover){self.toggle_active_tab(S(this).parent());}});S(window).on("hashchange.fndtn.tab",function(e){e.preventDefault();self.handle_location_hash_change();});},handle_location_hash_change:function(){var self=this,S=this.S;S("["+this.attr_name()+"]",this.scope).each(function(){var settings=S(this).data(self.attr_name(true)+"-init");if(settings.deep_linking){var hash;if(settings.scroll_to_content){hash=self.scope.location.hash;}else{hash=self.scope.location.hash.replace("fndtn-","");}if(hash!=""){var hash_element=S(hash);if(hash_element.hasClass("content")&&hash_element.parent().hasClass("tabs-content")){self.toggle_active_tab($("["+self.attr_name()+"] > * > a[href="+hash+"]").parent());}else{var hash_tab_container_id=hash_element.closest(".content").attr("id");if(hash_tab_container_id!=undefined){self.toggle_active_tab($("["+self.attr_name()+"] > * > a[href=#"+hash_tab_container_id+"]").parent(),hash);}}}else{for(var ind=0;ind<self.default_tab_hashes.length;ind++){self.toggle_active_tab($("["+self.attr_name()+"] > * > a[href="+self.default_tab_hashes[ind]+"]").parent());}}}});},toggle_active_tab:function(tab,location_hash){var self=this,S=self.S,tabs=tab.closest("["+this.attr_name()+"]"),tab_link=tab.find("a"),anchor=tab.children("a").first(),target_hash="#"+anchor.attr("href").split("#")[1],target=S(target_hash),siblings=tab.siblings(),settings=tabs.data(this.attr_name(true)+"-init"),interpret_keyup_action=function(e){var $original=$(this);var $prev=$(this).parents("li").prev().children('[role="tab"]');var $next=$(this).parents("li").next().children('[role="tab"]');var $target;switch(e.keyCode){case 37:$target=$prev;break;case 39:$target=$next;break;default:$target=false;break;}if($target.length){$original.attr({tabindex:"-1","aria-selected":null});$target.attr({tabindex:"0","aria-selected":true}).focus();}$('[role="tabpanel"]').attr("aria-hidden","true");$("#"+$(document.activeElement).attr("href").substring(1)).attr("aria-hidden",null);},go_to_hash=function(hash){var is_entry_location=window.location.href===self.entry_location,default_hash=settings.scroll_to_content?self.default_tab_hashes[0]:is_entry_location?window.location.hash:"fndtn-"+self.default_tab_hashes[0].replace("#","");if(!(is_entry_location&&hash===default_hash)){window.location.hash=hash;}};if(S(this).data(this.data_attr("tab-content"))){target_hash="#"+S(this).data(this.data_attr("tab-content")).split("#")[1];target=S(target_hash);}if(settings.deep_linking){if(settings.scroll_to_content){go_to_hash(location_hash||target_hash);if(location_hash==undefined||location_hash==target_hash){tab.parent()[0].scrollIntoView();}else{S(target_hash)[0].scrollIntoView();}}else{if(location_hash!=undefined){go_to_hash("fndtn-"+location_hash.replace("#",""));}else{go_to_hash("fndtn-"+target_hash.replace("#",""));}}}tab.addClass(settings.active_class).triggerHandler("opened");tab_link.attr({"aria-selected":"true",tabindex:0});siblings.removeClass(settings.active_class);siblings.find("a").attr({"aria-selected":"false",tabindex:-1});target.siblings().removeClass(settings.active_class).attr({"aria-hidden":"true",tabindex:-1});target.addClass(settings.active_class).attr("aria-hidden","false").removeAttr("tabindex");settings.callback(tab);target.triggerHandler("toggled",[tab]);tabs.triggerHandler("toggled",[target]);tab_link.off("keydown").on("keydown",interpret_keyup_action);},data_attr:function(str){if(this.namespace.length>0){return this.namespace+"-"+str;}return str;},off:function(){},reflow:function(){}};}(jQuery,window,window.document));(function($,window,document,undefined){Foundation.libs.topbar={name:"topbar",version:"5.5.1",settings:{index:0,sticky_class:"sticky",custom_back_text:true,back_text:"Back",mobile_show_parent_link:true,is_hover:true,scrolltop:true,sticky_on:"all"},init:function(section,method,options){Foundation.inherit(this,"add_custom_rule register_media throttle");var self=this;self.register_media("topbar","foundation-mq-topbar");this.bindings(method,options);self.S("["+this.attr_name()+"]",this.scope).each(function(){var topbar=$(this),settings=topbar.data(self.attr_name(true)+"-init"),section=self.S("section, .top-bar-section",this);topbar.data("index",0);var topbarContainer=topbar.parent();if(topbarContainer.hasClass("fixed")||self.is_sticky(topbar,topbarContainer,settings)){self.settings.sticky_class=settings.sticky_class;self.settings.sticky_topbar=topbar;topbar.data("height",topbarContainer.outerHeight());topbar.data("stickyoffset",topbarContainer.offset().top);}else{topbar.data("height",topbar.outerHeight());}if(!settings.assembled){self.assemble(topbar);}if(settings.is_hover){self.S(".has-dropdown",topbar).addClass("not-click");}else{self.S(".has-dropdown",topbar).removeClass("not-click");}self.add_custom_rule(".f-topbar-fixed { padding-top: "+topbar.data("height")+"px }");if(topbarContainer.hasClass("fixed")){self.S("body").addClass("f-topbar-fixed");}});},is_sticky:function(topbar,topbarContainer,settings){var sticky=topbarContainer.hasClass(settings.sticky_class);var smallMatch=matchMedia(Foundation.media_queries.small).matches;var medMatch=matchMedia(Foundation.media_queries.medium).matches;var lrgMatch=matchMedia(Foundation.media_queries.large).matches;if(sticky&&settings.sticky_on==="all"){return true;}if(sticky&&this.small()&&settings.sticky_on.indexOf("small")!==-1){if(smallMatch&&!medMatch&&!lrgMatch){return true;}}if(sticky&&this.medium()&&settings.sticky_on.indexOf("medium")!==-1){if(smallMatch&&medMatch&&!lrgMatch){return true;}}if(sticky&&this.large()&&settings.sticky_on.indexOf("large")!==-1){if(smallMatch&&medMatch&&lrgMatch){return true;}}if(sticky&&navigator.userAgent.match(/(iPad|iPhone|iPod)/g)){return true;}return false;},toggle:function(toggleEl){var self=this,topbar;if(toggleEl){topbar=self.S(toggleEl).closest("["+this.attr_name()+"]");}else{topbar=self.S("["+this.attr_name()+"]");}var settings=topbar.data(this.attr_name(true)+"-init");var section=self.S("section, .top-bar-section",topbar);if(self.breakpoint()){if(!self.rtl){section.css({left:"0%"});$(">.name",section).css({left:"100%"});}else{section.css({right:"0%"});$(">.name",section).css({right:"100%"});}self.S("li.moved",section).removeClass("moved");topbar.data("index",0);topbar.toggleClass("expanded").css("height","");}if(settings.scrolltop){if(!topbar.hasClass("expanded")){if(topbar.hasClass("fixed")){topbar.parent().addClass("fixed");topbar.removeClass("fixed");self.S("body").addClass("f-topbar-fixed");}}else{if(topbar.parent().hasClass("fixed")){if(settings.scrolltop){topbar.parent().removeClass("fixed");topbar.addClass("fixed");self.S("body").removeClass("f-topbar-fixed");window.scrollTo(0,0);}else{topbar.parent().removeClass("expanded");}}}}else{if(self.is_sticky(topbar,topbar.parent(),settings)){topbar.parent().addClass("fixed");}if(topbar.parent().hasClass("fixed")){if(!topbar.hasClass("expanded")){topbar.removeClass("fixed");topbar.parent().removeClass("expanded");self.update_sticky_positioning();}else{topbar.addClass("fixed");topbar.parent().addClass("expanded");self.S("body").addClass("f-topbar-fixed");}}}},timer:null,events:function(bar){var self=this,S=this.S;S(this.scope).off(".topbar").on("click.fndtn.topbar","["+this.attr_name()+"] .toggle-topbar",function(e){e.preventDefault();self.toggle(this);}).on("click.fndtn.topbar",'.top-bar .top-bar-section li a[href^="#"],['+this.attr_name()+'] .top-bar-section li a[href^="#"]',function(e){var li=$(this).closest("li");if(self.breakpoint()&&!li.hasClass("back")&&!li.hasClass("has-dropdown")){self.toggle();}}).on("click.fndtn.topbar","["+this.attr_name()+"] li.has-dropdown",function(e){var li=S(this),target=S(e.target),topbar=li.closest("["+self.attr_name()+"]"),settings=topbar.data(self.attr_name(true)+"-init");if(target.data("revealId")){self.toggle();return;}if(self.breakpoint()){return;}if(settings.is_hover&&!Modernizr.touch){return;}e.stopImmediatePropagation();if(li.hasClass("hover")){li.removeClass("hover").find("li").removeClass("hover");li.parents("li.hover").removeClass("hover");}else{li.addClass("hover");$(li).siblings().removeClass("hover");if(target[0].nodeName==="A"&&target.parent().hasClass("has-dropdown")){e.preventDefault();}}}).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown>a",function(e){if(self.breakpoint()){e.preventDefault();var $this=S(this),topbar=$this.closest("["+self.attr_name()+"]"),section=topbar.find("section, .top-bar-section"),dropdownHeight=$this.next(".dropdown").outerHeight(),$selectedLi=$this.closest("li");topbar.data("index",topbar.data("index")+1);$selectedLi.addClass("moved");if(!self.rtl){section.css({left:-(100*topbar.data("index"))+"%"});section.find(">.name").css({left:100*topbar.data("index")+"%"});}else{section.css({right:-(100*topbar.data("index"))+"%"});section.find(">.name").css({right:100*topbar.data("index")+"%"});}topbar.css("height",$this.siblings("ul").outerHeight(true)+topbar.data("height"));}});S(window).off(".topbar").on("resize.fndtn.topbar",self.throttle(function(){self.resize.call(self);},50)).trigger("resize").trigger("resize.fndtn.topbar").load(function(){S(this).trigger("resize.fndtn.topbar");});S("body").off(".topbar").on("click.fndtn.topbar",function(e){var parent=S(e.target).closest("li").closest("li.hover");if(parent.length>0){return;}S("["+self.attr_name()+"] li.hover").removeClass("hover");});S(this.scope).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown .back",function(e){e.preventDefault();var $this=S(this),topbar=$this.closest("["+self.attr_name()+"]"),section=topbar.find("section, .top-bar-section"),settings=topbar.data(self.attr_name(true)+"-init"),$movedLi=$this.closest("li.moved"),$previousLevelUl=$movedLi.parent();topbar.data("index",topbar.data("index")-1);if(!self.rtl){section.css({left:-(100*topbar.data("index"))+"%"});section.find(">.name").css({left:100*topbar.data("index")+"%"});}else{section.css({right:-(100*topbar.data("index"))+"%"});section.find(">.name").css({right:100*topbar.data("index")+"%"});}if(topbar.data("index")===0){topbar.css("height","");}else{topbar.css("height",$previousLevelUl.outerHeight(true)+topbar.data("height"));}setTimeout(function(){$movedLi.removeClass("moved");},300);});S(this.scope).find(".dropdown a").focus(function(){$(this).parents(".has-dropdown").addClass("hover");}).blur(function(){$(this).parents(".has-dropdown").removeClass("hover");});},resize:function(){var self=this;self.S("["+this.attr_name()+"]").each(function(){var topbar=self.S(this),settings=topbar.data(self.attr_name(true)+"-init");var stickyContainer=topbar.parent("."+self.settings.sticky_class);var stickyOffset;if(!self.breakpoint()){var doToggle=topbar.hasClass("expanded");topbar.css("height","").removeClass("expanded").find("li").removeClass("hover");if(doToggle){self.toggle(topbar);}}if(self.is_sticky(topbar,stickyContainer,settings)){if(stickyContainer.hasClass("fixed")){stickyContainer.removeClass("fixed");stickyOffset=stickyContainer.offset().top;if(self.S(document.body).hasClass("f-topbar-fixed")){stickyOffset-=topbar.data("height");}topbar.data("stickyoffset",stickyOffset);stickyContainer.addClass("fixed");}else{stickyOffset=stickyContainer.offset().top;topbar.data("stickyoffset",stickyOffset);}}});},breakpoint:function(){return !matchMedia(Foundation.media_queries.topbar).matches;},small:function(){return matchMedia(Foundation.media_queries.small).matches;},medium:function(){return matchMedia(Foundation.media_queries.medium).matches;},large:function(){return matchMedia(Foundation.media_queries.large).matches;},assemble:function(topbar){var self=this,settings=topbar.data(this.attr_name(true)+"-init"),section=self.S("section, .top-bar-section",topbar);section.detach();self.S(".has-dropdown>a",section).each(function(){var $link=self.S(this),$dropdown=$link.siblings(".dropdown"),url=$link.attr("href"),$titleLi;if(!$dropdown.find(".title.back").length){if(settings.mobile_show_parent_link==true&&url){$titleLi=$('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li class="parent-link hide-for-large-up"><a class="parent-link js-generated" href="'+url+'">'+$link.html()+"</a></li>");}else{$titleLi=$('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5>');}if(settings.custom_back_text==true){$("h5>a",$titleLi).html(settings.back_text);}else{$("h5>a",$titleLi).html("&laquo; "+$link.html());}$dropdown.prepend($titleLi);}});section.appendTo(topbar);this.sticky();this.assembled(topbar);},assembled:function(topbar){topbar.data(this.attr_name(true),$.extend({},topbar.data(this.attr_name(true)),{assembled:true}));},height:function(ul){var total=0,self=this;$("> li",ul).each(function(){total+=self.S(this).outerHeight(true);});return total;},sticky:function(){var self=this;this.S(window).on("scroll",function(){self.update_sticky_positioning();});},update_sticky_positioning:function(){var klass="."+this.settings.sticky_class,$window=this.S(window),self=this;if(self.settings.sticky_topbar&&self.is_sticky(this.settings.sticky_topbar,this.settings.sticky_topbar.parent(),this.settings)){var distance=this.settings.sticky_topbar.data("stickyoffset");if(!self.S(klass).hasClass("expanded")){if($window.scrollTop()>(distance)){if(!self.S(klass).hasClass("fixed")){self.S(klass).addClass("fixed");self.S("body").addClass("f-topbar-fixed");}}else{if($window.scrollTop()<=distance){if(self.S(klass).hasClass("fixed")){self.S(klass).removeClass("fixed");self.S("body").removeClass("f-topbar-fixed");}}}}}},off:function(){this.S(this.scope).off(".fndtn.topbar");this.S(window).off(".fndtn.topbar");},reflow:function(){}};}(jQuery,window,window.document));(function($,window,document,undefined){var Stickem=function(elem,options){this.elem=elem;this.$elem=$(elem);this.options=options;this.metadata=this.$elem.data("stickem-options");this.$win=$(window);};Stickem.prototype={defaults:{item:".stickem",container:".stickem-container",stickClass:"stickit",endStickClass:"stickit-end",offset:0,start:0,onStick:null,onUnstick:null},init:function(){var _self=this;_self.config=$.extend({},_self.defaults,_self.options,_self.metadata);_self.setWindowHeight();_self.getItems();_self.bindEvents();return _self;},bindEvents:function(){var _self=this;_self.$win.on("scroll.stickem",$.proxy(_self.handleScroll,_self));_self.$win.on("resize.stickem",$.proxy(_self.handleResize,_self));},destroy:function(){var _self=this;_self.$win.off("scroll.stickem");_self.$win.off("resize.stickem");},getItem:function(index,element){var _self=this;var $this=$(element);var item={$elem:$this,elemHeight:$this.height(),$container:$this.parents(_self.config.container),isStuck:false};item.containerHeight=item.$container.outerHeight();item.containerInner={border:{bottom:parseInt(item.$container.css("border-bottom"),10)||0,top:parseInt(item.$container.css("border-top"),10)||0},padding:{bottom:parseInt(item.$container.css("padding-bottom"),10)||0,top:parseInt(item.$container.css("padding-top"),10)||0}};item.containerInnerHeight=item.$container.height();item.containerStart=item.$container.offset().top-_self.config.offset+_self.config.start+item.containerInner.padding.top+item.containerInner.border.top;item.scrollFinish=item.containerStart-_self.config.start+(item.containerInnerHeight-item.elemHeight);if(item.containerInnerHeight>item.elemHeight){_self.items.push(item);}},getItems:function(){var _self=this;_self.items=[];_self.$elem.find(_self.config.item).each($.proxy(_self.getItem,_self));},handleResize:function(){var _self=this;_self.getItems();_self.setWindowHeight();},handleScroll:function(){var _self=this;if(_self.items.length>0){var pos=_self.$win.scrollTop();for(var i=0,len=_self.items.length;i<len;i++){var item=_self.items[i];if((item.isStuck&&(pos<item.containerStart||pos>item.scrollFinish))||pos>item.scrollFinish){item.$elem.removeClass(_self.config.stickClass);if(pos>item.scrollFinish){item.$elem.addClass(_self.config.endStickClass);}item.isStuck=false;if(_self.config.onUnstick){_self.config.onUnstick(item);}}else{if(item.isStuck===false&&pos>item.containerStart&&pos<item.scrollFinish){item.$elem.removeClass(_self.config.endStickClass).addClass(_self.config.stickClass);item.isStuck=true;if(_self.config.onStick){_self.config.onStick(item);}}}}}},setWindowHeight:function(){var _self=this;_self.windowHeight=_self.$win.height()-_self.config.offset;}};Stickem.defaults=Stickem.prototype.defaults;$.fn.stickem=function(options){this.destroy=function(){this.each(function(){new Stickem(this,options).destroy();});};return this.each(function(){new Stickem(this,options).init();});};})(jQuery,window,document);(function(){if(jQuery("#articlePage").length===1){jQuery(window).load(function(){function sticky_article_col(){var article_col_1_selector=".divColumn1Article",article_col_2_selector=".divColumn2article",article_col_1=jQuery(article_col_1_selector),article_col_2=jQuery(article_col_2_selector),article_col_1_height=article_col_1.height(),article_col_2_height=article_col_2.height(),article_col_2_width=article_col_2.width(),inner_wrap_class="sticky-col",tolerance=150;if(article_col_1_height-article_col_2_height>tolerance){article_col_2.css("height",article_col_1_height);var inner_wrap=article_col_2.children().addClass(inner_wrap_class).css("max-width",article_col_2_width);var stickem_element=article_col_2.stickem({item:"."+inner_wrap_class,container:article_col_2_selector});return{item:inner_wrap,item_class:inner_wrap_class,container:article_col_2,container_height:article_col_1_height,stickem_element:stickem_element,enabled:true,dissable:function(){this.container.css("height","");this.item.removeClass(this.item_class);this.enabled=false;},enable:function(){if(!this.enabled){this.container.css("height",this.container_height);this.item.addClass(this.item_class);this.enabled=true;}}};}else{return false;}}enquire.register("screen and (min-width: 930px)",{deferSetup:true,sticky_col:false,setup:function(){this.sticky_col=sticky_article_col();},match:function(){if(this.sticky_col!==false){this.sticky_col.enable();}},unmatch:function(){if(this.sticky_col!==false){this.sticky_col.dissable();}}});});}})();(function($,window,document,undefined){var pluginName="expandCol",defaults={class_prefix:"expand-col",expanded_content_class:"expand-content",parent_row_selector:".row",tolerance:150,tolerance_scroll:100,list_header_size:58,list_item_size:70,top_meny_size:50,twitterbox:{"www.idg.se":'<a class="twitter-timeline" href="https://twitter.com/search?q=idg.se%2F2.1085+-noterad+-idgse100senaste+-Nyhetsportalen+-swartling+-dagens_nyheter+-duo280+-idgse+-AktuellDebatt+-iPhone_Cable+-nyhetsportalen+-_Antisemit_" data-widget-id="309269187002515457">Twittrat om IDG.se</a>',"internetworld.idg.se":'<a class="twitter-timeline" href="https://twitter.com/internetworldse/iw-crew" data-dnt="true" data-widget-id="392251966950100992">Tweets från @internetworldse/iw-crew</a>',"it24.idg.se":'<a class="twitter-timeline" href="https://twitter.com/search?q=it24.idg.se%2F2%2A" data-widget-id="405355796482883584">Tweets about "it24.idg.se/2*"</a>',"techworld.idg.se":'<a class="twitter-timeline" href="https://twitter.com/techworldsweden" data-widget-id="562959491353042944">Tweets by @techworldsweden</a>',"computersweden.idg.se":'<a class="twitter-timeline" href="https://twitter.com/ComputerSweden" data-widget-id="562960832234274818">Tweets by @ComputerSweden</a>',"cio.idg.se":'<a class="twitter-timeline" href="https://twitter.com/CioSweden" data-widget-id="316163557475614720">Tweets by @CioSweden</a>'},templates:{vinjett:'<p class="vinjett1"><span><%this%></span></p>\n',datelist:'<ul class="dateList"><%for(var i in this) {%><li><span class="articleDate"><%this[i].publish_date%></span><span class="articleSource"><%this[i].publication%></span><span class="link"><a href="<%this[i].article_url%>"><%this[i].teaser_title%></a></span></li><%}%></ul>\n'}};function Plugin(element,options){this.element=element;this.settings=$.extend({},defaults,options);this._defaults=defaults;this._name=pluginName;this.init();}$.extend(Plugin.prototype,{init:function(){var _self=this;var col=$(this.element),parent_row=col.parents(_self.settings.parent_row_selector);if(parent_row.length===0){console.error("expandCol: kunde inte hitta en förälder med klassen"+_self.settings.parent_row_selector+". Är du säker att "+col.attr("class")+" är en kolumn?");}if(parent_row.length>0){var class_settings=_self.getClassSettings(col.attr("class"),_self.settings.class_prefix),height_difference=Math.round(Math.abs(parent_row.height()-col.height())),window_height=$(window).height()-_self.settings.top_meny_size,activate_sticky_scroll=false,sticky_scroll_height=height_difference;if(height_difference>window_height){if((height_difference-window_height)>_self.settings.tolerance_scroll){activate_sticky_scroll=true;sticky_scroll_height=sticky_scroll_height-20;}height_difference=window_height-20;}var log_obj={height_difference:height_difference,col:col.height(),parent_row:parent_row.height(),class_settings:class_settings};if(height_difference>_self.settings.tolerance){if(class_settings!==""&&class_settings==="twitter"){var twitterbox_html="";if(window.location.host==="idg.se"||window.location.host==="www.idg.se"||window.location.host==="idg.test.idg.se"){twitterbox_html=_self.settings.twitterbox[window.location.host];}else{if(typeof _self.settings.twitterbox[window.location.host]!=="undefined"){twitterbox_html=_self.settings.twitterbox[window.location.host];}else{console.error("expand-col: Hittade ingen förinställd twitterbox för: "+window.location.host);}}if(twitterbox_html!==""){twitterbox_html=$("<div>"+twitterbox_html+"</div>");var twttr_height=height_difference;twitterbox_html.children("a").attr("height",twttr_height);_self.insert(twitterbox_html,col,_self,activate_sticky_scroll,sticky_scroll_height,twttr_height);!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?"http":"https";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");twttr.widgets.load(twitterbox_html[0]);}}if(class_settings!==""&&class_settings.indexOf("1.")!==-1){var polopoly_list={url:window.location.protocol+"//"+window.location.host+"/"+class_settings,title:"",list_data:null,type:null};var json_data=$.ajax({type:"GET",url:polopoly_list.url+"?m=json",dataType:"json",contentType:"application/json; charset=UTF-8;"});json_data.done(function(json_data){polopoly_list.title=json_data.title;var list_data=[];if(json_data.articleType=="theme"){polopoly_list.type="themelist";for(var i in json_data.articles){list_data.push(_self.getDataFromArticle(json_data.articles[i]));}}else{if(json_data.articleType=="mostpopular"){polopoly_list.type="mostpopular";for(var i in json_data.popularArticles){list_data.push(_self.getDataFromArticle(json_data.popularArticles[i].article));}}}polopoly_list.list_data=list_data;var list_items_needed=Math.floor((height_difference-_self.settings.list_header_size)/_self.settings.list_item_size);if(list_items_needed>0&&polopoly_list.list_data.length!==0){if(polopoly_list.list_data.length<list_items_needed){console.info("Expand-cols: Listan med ID:"+class_settings+" innehåller för få element");}var list_html=_self.apply_template(polopoly_list.title,_self.settings.templates.vinjett);list_html+=_self.apply_template(polopoly_list.list_data.slice(0,list_items_needed),_self.settings.templates.datelist);list_html="<div>"+list_html+"</div>";list_html=$(list_html);polopoly_list.list_html=list_html;_self.insert(list_html,col,_self,activate_sticky_scroll,sticky_scroll_height);}if(list_items_needed>0&&polopoly_list.list_data.length===0){console.info("Expand-cols: Listan med ID: "+class_settings+" innehåller inga element, avbryter!");}});json_data.fail(function(){console.error("Expand_cols_error",{error:"kunde inte ladda in data med url: "+polopoly_list.url+"?m=json",kolumn:col});});}}}},getDataFromArticle:function(article){var convertedArticleData={teaser_title:article.teaserTitle,teaser_intro:article.teaserIntro,share_url:article.shareUrl,article_url:article.articleLink,article_id:article.articleId,publication:article.publication,publish_date:article.publishDate,teaser_image_url:article.teaserImageUrl,teaser_image_top_url:article.topTeaserImageUrl,article_story:article.articleStory};return convertedArticleData;},getClassSettings:function(class_name,class_prefix){var class_filter_regexp=new RegExp(class_prefix+"s?\\-(.+)(?=\\s)"),extracted_class=class_filter_regexp.exec(class_name+" ");if(extracted_class!==null){extracted_class=extracted_class[1];if(extracted_class.charAt(0)==="1"){extracted_class="1."+extracted_class.slice(1);}return extracted_class;}else{return"";}},apply_template:function(a,b){for(var g,c=/<%(.+?)%>/g,d=/(^( )?(var|if|for|else|switch|case|break|{|}|;))(.*)?/g,e="with(obj) { var r=[];\n",f=0,h=function(a,b){return e+=b?a.match(d)?a+"\n":"r.push("+a+");\n":""!=a?'r.push("'+a.replace(/"/g,'\\"')+'");\n':"",h;};match=c.exec(b);){h(b.slice(f,match.index))(match[1],!0),f=match.index+match[0].length;}h(b.substr(f,b.length-f)),e=(e+'return r.join(""); }').replace(/[\r\t\n]/g,"");try{g=new Function("obj",e).apply(a,[a]);}catch(i){console.error("'"+i.message+"'"," in \n\nCode:\n",e,"\n");}return g;},insert:function(html,target,_self,activate_sticky_scroll,sticky_scroll_height,twttr_height){target.append(html);html.addClass(_self.settings.expanded_content_class);if(typeof _self.inserted==="undefined"){_self.inserted=[];}_self.inserted.push(html);if(activate_sticky_scroll){if(typeof twttr_height!=="undefined"){html.css("height",twttr_height);}_self.makeSticky(html,target,sticky_scroll_height,_self);}},makeSticky:function(sticky_item,target,sticky_scroll_height,_self){var sticy_item_class="sticky-col",sticky_wrap_class="sticky-wrap";sticky_item.wrap("<div></div>");var sticky_wrap=sticky_item.parent();sticky_wrap.css("height",sticky_scroll_height);sticky_wrap.addClass(sticky_wrap_class);sticky_item.addClass(sticy_item_class).css("max-width",sticky_item.width());sticky_wrap.stickem({item:"."+sticy_item_class,container:"."+sticky_wrap_class});var sticky_settings={item:sticky_item,item_class:sticy_item_class,container:sticky_wrap,container_height:sticky_scroll_height,enabled:true,dissable:function(){this.container.css("height","");this.item.removeClass(this.item_class);this.enabled=false;},enable:function(){if(!this.enabled){this.container.css("height",this.container_height);this.item.addClass(this.item_class);this.enabled=true;}}};if(typeof _self.sticky==="undefined"){_self.sticky=[];}_self.sticky.push(sticky_settings);}});$.fn[pluginName]=function(options){this.each(function(){if(!$.data(this,"plugin_"+pluginName)){$.data(this,"plugin_"+pluginName,new Plugin(this,options));}else{var plugin_data=$.data(this,"plugin_"+pluginName);if(typeof options==="string"){if(options==="show"){if(typeof plugin_data.inserted!=="undefined"){var inserted=plugin_data.inserted;for(var i=0;i<inserted.length;i++){inserted[i].show();}}if(typeof plugin_data.sticky!=="undefined"){var sticky=plugin_data.sticky;for(var i=0;i<sticky.length;i++){sticky[i].enable();}}}if(options==="hide"){if(typeof plugin_data.inserted!=="undefined"){var inserted=plugin_data.inserted;for(var i=0;i<inserted.length;i++){inserted[i].hide();}}if(typeof plugin_data.sticky!=="undefined"){var sticky=plugin_data.sticky;for(var i=0;i<sticky.length;i++){sticky[i].dissable();}}}}}});return this;};})(jQuery,window,document);jQuery(window).load(function(){var jquery_cols=jQuery('[class*="expand-col"]');if(jquery_cols.length>0){enquire.register("screen and (min-width: 55.6875em)",{deferSetup:true,setup:function(){jquery_cols=jquery_cols.expandCol();},match:function(){jquery_cols.expandCol("show");},unmatch:function(){jquery_cols.expandCol("hide");}});}});/*!
* FitText.js 1.2
*
* Copyright 2011, Dave Rupert http://daverupert.com
* Released under the WTFPL license
* http://sam.zoy.org/wtfpl/
*
* Date: Thu May 05 14:23:00 2011 -0600
*/
(function($){$.fn.fitText=function(kompressor,options){var compressor=kompressor||1,settings=$.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},options);return this.each(function(){var $this=$(this);var resizer=function(){$this.css("font-size",Math.max(Math.min($this.width()/(compressor*10),parseFloat(settings.maxFontSize)),parseFloat(settings.minFontSize)));};resizer();$(window).on("resize.fittext orientationchange.fittext",resizer);});};})(jQuery);/*!
 * hoverIntent v1.8.0 // 2014.06.29 // jQuery v1.9.1+
 * http://cherne.net/brian/resources/jquery.hoverIntent.html
 *
 * You may use hoverIntent under the terms of the MIT license. Basically that
 * means you are free to use hoverIntent as long as this header is left intact.
 * Copyright 2007, 2014 Brian Cherne
 */
(function($){$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var cfg={interval:100,sensitivity:6,timeout:0};if(typeof handlerIn==="object"){cfg=$.extend(cfg,handlerIn);}else{if($.isFunction(handlerOut)){cfg=$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector});}else{cfg=$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});}}var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if(Math.sqrt((pX-cX)*(pX-cX)+(pY-cY)*(pY-cY))<cfg.sensitivity){$(ob).off("mousemove.hoverIntent",track);ob.hoverIntent_s=true;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=false;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var ev=$.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type==="mouseenter"){pX=ev.pageX;pY=ev.pageY;$(ob).on("mousemove.hoverIntent",track);if(!ob.hoverIntent_s){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).off("mousemove.hoverIntent",track);if(ob.hoverIntent_s){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector);};})(jQuery);(function(){function FastClick(layer,options){var oldOnClick;options=options||{};this.trackingClick=false;this.trackingClickStart=0;this.targetElement=null;this.touchStartX=0;this.touchStartY=0;this.lastTouchIdentifier=0;this.touchBoundary=options.touchBoundary||10;this.layer=layer;this.tapDelay=options.tapDelay||200;if(FastClick.notNeeded(layer)){return;}function bind(method,context){return function(){return method.apply(context,arguments);};}var methods=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"];var context=this;for(var i=0,l=methods.length;i<l;i++){context[methods[i]]=bind(context[methods[i]],context);}if(deviceIsAndroid){layer.addEventListener("mouseover",this.onMouse,true);layer.addEventListener("mousedown",this.onMouse,true);layer.addEventListener("mouseup",this.onMouse,true);}layer.addEventListener("click",this.onClick,true);layer.addEventListener("touchstart",this.onTouchStart,false);layer.addEventListener("touchmove",this.onTouchMove,false);layer.addEventListener("touchend",this.onTouchEnd,false);layer.addEventListener("touchcancel",this.onTouchCancel,false);if(!Event.prototype.stopImmediatePropagation){layer.removeEventListener=function(type,callback,capture){var rmv=Node.prototype.removeEventListener;if(type==="click"){rmv.call(layer,type,callback.hijacked||callback,capture);}else{rmv.call(layer,type,callback,capture);}};layer.addEventListener=function(type,callback,capture){var adv=Node.prototype.addEventListener;if(type==="click"){adv.call(layer,type,callback.hijacked||(callback.hijacked=function(event){if(!event.propagationStopped){callback(event);}}),capture);}else{adv.call(layer,type,callback,capture);}};}if(typeof layer.onclick==="function"){oldOnClick=layer.onclick;layer.addEventListener("click",function(event){oldOnClick(event);},false);layer.onclick=null;}}var deviceIsAndroid=navigator.userAgent.indexOf("Android")>0;var deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent);var deviceIsIOS4=deviceIsIOS&&(/OS 4_\d(_\d)?/).test(navigator.userAgent);var deviceIsIOSWithBadTarget=deviceIsIOS&&(/OS ([6-9]|\d{2})_\d/).test(navigator.userAgent);var deviceIsBlackBerry10=navigator.userAgent.indexOf("BB10")>0;FastClick.prototype.needsClick=function(target){switch(target.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(target.disabled){return true;}break;case"input":if((deviceIsIOS&&target.type==="file")||target.disabled){return true;}break;case"label":case"video":return true;}return(/\bneedsclick\b/).test(target.className);};FastClick.prototype.needsFocus=function(target){switch(target.nodeName.toLowerCase()){case"textarea":return true;case"select":return !deviceIsAndroid;case"input":switch(target.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return false;}return !target.disabled&&!target.readOnly;default:return(/\bneedsfocus\b/).test(target.className);}};FastClick.prototype.sendClick=function(targetElement,event){var clickEvent,touch;if(document.activeElement&&document.activeElement!==targetElement){document.activeElement.blur();}touch=event.changedTouches[0];clickEvent=document.createEvent("MouseEvents");clickEvent.initMouseEvent(this.determineEventType(targetElement),true,true,window,1,touch.screenX,touch.screenY,touch.clientX,touch.clientY,false,false,false,false,0,null);clickEvent.forwardedTouchEvent=true;targetElement.dispatchEvent(clickEvent);};FastClick.prototype.determineEventType=function(targetElement){if(deviceIsAndroid&&targetElement.tagName.toLowerCase()==="select"){return"mousedown";}return"click";};FastClick.prototype.focus=function(targetElement){var length;if(deviceIsIOS&&targetElement.setSelectionRange&&targetElement.type.indexOf("date")!==0&&targetElement.type!=="time"){length=targetElement.value.length;targetElement.setSelectionRange(length,length);}else{targetElement.focus();}};FastClick.prototype.updateScrollParent=function(targetElement){var scrollParent,parentElement;scrollParent=targetElement.fastClickScrollParent;if(!scrollParent||!scrollParent.contains(targetElement)){parentElement=targetElement;do{if(parentElement.scrollHeight>parentElement.offsetHeight){scrollParent=parentElement;targetElement.fastClickScrollParent=parentElement;break;}parentElement=parentElement.parentElement;}while(parentElement);}if(scrollParent){scrollParent.fastClickLastScrollTop=scrollParent.scrollTop;}};FastClick.prototype.getTargetElementFromEventTarget=function(eventTarget){if(eventTarget.nodeType===Node.TEXT_NODE){return eventTarget.parentNode;}return eventTarget;};FastClick.prototype.onTouchStart=function(event){var targetElement,touch,selection;if(event.targetTouches.length>1){return true;}targetElement=this.getTargetElementFromEventTarget(event.target);touch=event.targetTouches[0];if(deviceIsIOS){selection=window.getSelection();if(selection.rangeCount&&!selection.isCollapsed){return true;}if(!deviceIsIOS4){if(touch.identifier&&touch.identifier===this.lastTouchIdentifier){event.preventDefault();return false;}this.lastTouchIdentifier=touch.identifier;this.updateScrollParent(targetElement);}}this.trackingClick=true;this.trackingClickStart=event.timeStamp;this.targetElement=targetElement;this.touchStartX=touch.pageX;this.touchStartY=touch.pageY;if((event.timeStamp-this.lastClickTime)<this.tapDelay){event.preventDefault();}return true;};FastClick.prototype.touchHasMoved=function(event){var touch=event.changedTouches[0],boundary=this.touchBoundary;if(Math.abs(touch.pageX-this.touchStartX)>boundary||Math.abs(touch.pageY-this.touchStartY)>boundary){return true;}return false;};FastClick.prototype.onTouchMove=function(event){if(!this.trackingClick){return true;}if(this.targetElement!==this.getTargetElementFromEventTarget(event.target)||this.touchHasMoved(event)){this.trackingClick=false;this.targetElement=null;}return true;};FastClick.prototype.findControl=function(labelElement){if(labelElement.control!==undefined){return labelElement.control;}if(labelElement.htmlFor){return document.getElementById(labelElement.htmlFor);}return labelElement.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea");};FastClick.prototype.onTouchEnd=function(event){var forElement,trackingClickStart,targetTagName,scrollParent,touch,targetElement=this.targetElement;if(!this.trackingClick){return true;}if((event.timeStamp-this.lastClickTime)<this.tapDelay){this.cancelNextClick=true;return true;}this.cancelNextClick=false;this.lastClickTime=event.timeStamp;trackingClickStart=this.trackingClickStart;this.trackingClick=false;this.trackingClickStart=0;if(deviceIsIOSWithBadTarget){touch=event.changedTouches[0];targetElement=document.elementFromPoint(touch.pageX-window.pageXOffset,touch.pageY-window.pageYOffset)||targetElement;targetElement.fastClickScrollParent=this.targetElement.fastClickScrollParent;}targetTagName=targetElement.tagName.toLowerCase();if(targetTagName==="label"){forElement=this.findControl(targetElement);if(forElement){this.focus(targetElement);if(deviceIsAndroid){return false;}targetElement=forElement;}}else{if(this.needsFocus(targetElement)){if((event.timeStamp-trackingClickStart)>100||(deviceIsIOS&&window.top!==window&&targetTagName==="input")){this.targetElement=null;return false;}this.focus(targetElement);this.sendClick(targetElement,event);if(!deviceIsIOS||targetTagName!=="select"){this.targetElement=null;event.preventDefault();}return false;}}if(deviceIsIOS&&!deviceIsIOS4){scrollParent=targetElement.fastClickScrollParent;if(scrollParent&&scrollParent.fastClickLastScrollTop!==scrollParent.scrollTop){return true;}}if(!this.needsClick(targetElement)){event.preventDefault();this.sendClick(targetElement,event);}return false;};FastClick.prototype.onTouchCancel=function(){this.trackingClick=false;this.targetElement=null;};FastClick.prototype.onMouse=function(event){if(!this.targetElement){return true;}if(event.forwardedTouchEvent){return true;}if(!event.cancelable){return true;}if(!this.needsClick(this.targetElement)||this.cancelNextClick){if(event.stopImmediatePropagation){event.stopImmediatePropagation();}else{event.propagationStopped=true;}event.stopPropagation();event.preventDefault();return false;}return true;};FastClick.prototype.onClick=function(event){var permitted;if(this.trackingClick){this.targetElement=null;this.trackingClick=false;return true;}if(event.target.type==="submit"&&event.detail===0){return true;}permitted=this.onMouse(event);if(!permitted){this.targetElement=null;}return permitted;};FastClick.prototype.destroy=function(){var layer=this.layer;if(deviceIsAndroid){layer.removeEventListener("mouseover",this.onMouse,true);layer.removeEventListener("mousedown",this.onMouse,true);layer.removeEventListener("mouseup",this.onMouse,true);}layer.removeEventListener("click",this.onClick,true);layer.removeEventListener("touchstart",this.onTouchStart,false);layer.removeEventListener("touchmove",this.onTouchMove,false);layer.removeEventListener("touchend",this.onTouchEnd,false);layer.removeEventListener("touchcancel",this.onTouchCancel,false);};FastClick.notNeeded=function(layer){var metaViewport;var chromeVersion;var blackberryVersion;if(typeof window.ontouchstart==="undefined"){return true;}chromeVersion=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1];if(chromeVersion){if(deviceIsAndroid){metaViewport=document.querySelector("meta[name=viewport]");if(metaViewport){if(metaViewport.content.indexOf("user-scalable=no")!==-1){return true;}if(chromeVersion>31&&document.documentElement.scrollWidth<=window.outerWidth){return true;}}}else{return true;}}if(deviceIsBlackBerry10){blackberryVersion=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);if(blackberryVersion[1]>=10&&blackberryVersion[2]>=3){metaViewport=document.querySelector("meta[name=viewport]");if(metaViewport){if(metaViewport.content.indexOf("user-scalable=no")!==-1){return true;}if(document.documentElement.scrollWidth<=window.outerWidth){return true;}}}}if(layer.style.msTouchAction==="none"){return true;}return false;};FastClick.attach=function(layer,options){return new FastClick(layer,options);};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){define(function(){return FastClick;});}else{if(typeof module!=="undefined"&&module.exports){module.exports=FastClick.attach;module.exports.FastClick=FastClick;}else{window.FastClick=FastClick;}}}());(function(){var fitvids_selector="#articleImageBlock, #articleBodyText, .articleBodyText, .responsive-video";var fitvids_selector_container=jQuery(fitvids_selector);if(fitvids_selector_container.find("iframe").length>0){(function(e){e.fn.fitVids=function(t){var n={customSelector:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0];var i=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}";var s=document.createElement("div");s.innerHTML='<p>x</p><style id="fit-vids-style">'+i+"</style>";r.appendChild(s.childNodes[1]);}if(t){e.extend(n,t);}return this.each(function(){var t=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];if(n.customSelector){t.push(n.customSelector);}var r=e(this).find(t.join(","));r=r.not("object object");r.each(function(){var t=e(this);if(this.tagName.toLowerCase()==="embed"&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length){return;}var n=this.tagName.toLowerCase()==="object"||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height(),r=!isNaN(parseInt(t.attr("width"),10))?parseInt(t.attr("width"),10):t.width(),i=n/r;if(!t.attr("id")){var s="fitvid"+Math.floor(Math.random()*999999);t.attr("id",s);}t.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",i*100+"%");t.removeAttr("height").removeAttr("width");});});};})(window.jQuery||window.Zepto);fitvids_selector_container.fitVids({customSelector:'iframe[src^="//ljsp"], iframe[src^="http://ljsp"], iframe[src^="https://ljsp"]'});jQuery("#articleImageBlock").css("width","100%");}}());(function(t){function e(t,e,r){return t.addEventListener?t.addEventListener(e,r,!1):t.attachEvent?t.attachEvent("on"+e,r):void 0;}function r(t,e){var r,n;for(r=0,n=t.length;n>r;r++){if(t[r]===e){return !0;}}return !1;}function n(t,e){var r;t.createTextRange?(r=t.createTextRange(),r.move("character",e),r.select()):t.selectionStart&&(t.focus(),t.setSelectionRange(e,e));}function a(t,e){try{return t.type=e,!0;}catch(r){return !1;}}t.Placeholders={Utils:{addEventListener:e,inArray:r,moveCaret:n,changeType:a}};})(this),function(t){function e(){}function r(){try{return document.activeElement;}catch(t){}}function n(t,e){var r,n,a=!!e&&t.value!==e,u=t.value===t.getAttribute(V);return(a||u)&&"true"===t.getAttribute(P)?(t.removeAttribute(P),t.value=t.value.replace(t.getAttribute(V),""),t.className=t.className.replace(R,""),n=t.getAttribute(z),parseInt(n,10)>=0&&(t.setAttribute("maxLength",n),t.removeAttribute(z)),r=t.getAttribute(D),r&&(t.type=r),!0):!1;}function a(t){var e,r,n=t.getAttribute(V);return""===t.value&&n?(t.setAttribute(P,"true"),t.value=n,t.className+=" "+I,r=t.getAttribute(z),r||(t.setAttribute(z,t.maxLength),t.removeAttribute("maxLength")),e=t.getAttribute(D),e?t.type="text":"password"===t.type&&K.changeType(t,"text")&&t.setAttribute(D,"password"),!0):!1;}function u(t,e){var r,n,a,u,i,l,o;if(t&&t.getAttribute(V)){e(t);}else{for(a=t?t.getElementsByTagName("input"):f,u=t?t.getElementsByTagName("textarea"):h,r=a?a.length:0,n=u?u.length:0,o=0,l=r+n;l>o;o++){i=r>o?a[o]:u[o-r],e(i);}}}function i(t){u(t,n);}function l(t){u(t,a);}function o(t){return function(){b&&t.value===t.getAttribute(V)&&"true"===t.getAttribute(P)?K.moveCaret(t,0):n(t);};}function c(t){return function(){a(t);};}function s(t){return function(e){return A=t.value,"true"===t.getAttribute(P)&&A===t.getAttribute(V)&&K.inArray(C,e.keyCode)?(e.preventDefault&&e.preventDefault(),!1):void 0;};}function d(t){return function(){n(t,A),""===t.value&&(t.blur(),K.moveCaret(t,0));};}function v(t){return function(){t===r()&&t.value===t.getAttribute(V)&&"true"===t.getAttribute(P)&&K.moveCaret(t,0);};}function g(t){return function(){i(t);};}function p(t){t.form&&(T=t.form,"string"==typeof T&&(T=document.getElementById(T)),T.getAttribute(U)||(K.addEventListener(T,"submit",g(T)),T.setAttribute(U,"true"))),K.addEventListener(t,"focus",o(t)),K.addEventListener(t,"blur",c(t)),b&&(K.addEventListener(t,"keydown",s(t)),K.addEventListener(t,"keyup",d(t)),K.addEventListener(t,"click",v(t))),t.setAttribute(j,"true"),t.setAttribute(V,x),(b||t!==r())&&a(t);}var f,h,b,m,A,y,E,x,L,T,S,N,w,B=["text","search","url","tel","email","password","number","textarea"],C=[27,33,34,35,36,37,38,39,40,8,46],k="#ccc",I="placeholdersjs",R=RegExp("(?:^|\\s)"+I+"(?!\\S)"),V="data-placeholder-value",P="data-placeholder-active",D="data-placeholder-type",U="data-placeholder-submit",j="data-placeholder-bound",q="data-placeholder-focus",Q="data-placeholder-live",z="data-placeholder-maxlength",F=document.createElement("input"),G=document.getElementsByTagName("head")[0],H=document.documentElement,J=t.Placeholders,K=J.Utils;if(J.nativeSupport=void 0!==F.placeholder,!J.nativeSupport){for(f=document.getElementsByTagName("input"),h=document.getElementsByTagName("textarea"),b="false"===H.getAttribute(q),m="false"!==H.getAttribute(Q),y=document.createElement("style"),y.type="text/css",E=document.createTextNode("."+I+" { color:"+k+"; }"),y.styleSheet?y.styleSheet.cssText=E.nodeValue:y.appendChild(E),G.insertBefore(y,G.firstChild),w=0,N=f.length+h.length;N>w;w++){S=f.length>w?f[w]:h[w-f.length],x=S.attributes.placeholder,x&&(x=x.nodeValue,x&&K.inArray(B,S.type)&&p(S));}L=setInterval(function(){for(w=0,N=f.length+h.length;N>w;w++){S=f.length>w?f[w]:h[w-f.length],x=S.attributes.placeholder,x?(x=x.nodeValue,x&&K.inArray(B,S.type)&&(S.getAttribute(j)||p(S),(x!==S.getAttribute(V)||"password"===S.type&&!S.getAttribute(D))&&("password"===S.type&&!S.getAttribute(D)&&K.changeType(S,"text")&&S.setAttribute(D,"password"),S.value===S.getAttribute(V)&&(S.value=x),S.setAttribute(V,x)))):S.getAttribute(P)&&(n(S),S.removeAttribute(V));}m||clearInterval(L);},100);}K.addEventListener(t,"beforeunload",function(){J.disable();}),J.disable=J.nativeSupport?e:i,J.enable=J.nativeSupport?e:l;}(this),function(t){var e=t.fn.val,r=t.fn.prop;Placeholders.nativeSupport||(t.fn.val=function(t){var r=e.apply(this,arguments),n=this.eq(0).data("placeholder-value");return void 0===t&&this.eq(0).data("placeholder-active")&&r===n?"":r;},t.fn.prop=function(t,e){return void 0===e&&this.eq(0).data("placeholder-active")&&"value"===t?"":r.apply(this,arguments);});}(jQuery);jQuery(function(){jQuery("#articleBodyText img, .articleBodyText img").each(function(i,img){var image=jQuery(img);image.one("load",function(){}).each(function(){if(img.naturalWidth>559&&image.parent().prop("tagName")!=="FIGURE"&&image.parent().parent().prop("tagName")!=="FIGURE"){if(image.parent().prop("tagName")==="A"){image.parent().wrap('<figure class="wideImage"></figure>');}else{image.wrap('<figure class="wideImage"></figure>');}}});});});enquire.register("screen and (max-width: 55.625em)",{match:function(){jQuery(".top-block .large-5.teasers.list").removeClass("list");},unmatch:function(){jQuery(".top-block .large-5.teasers:not(.list)").addClass("list");}});enquire.register("screen and (min-width: 40.063em)",{match:function(){jQuery("#divTeaserTop h1.smaller a").fitText(1.4);jQuery("#divTeaserTop h1.normal a").fitText(1.1);jQuery("#divTeaserTop h1.larger a").fitText(1);jQuery("#divTeaserTop h1.largest a").fitText(0.9);jQuery(".teasers:not(.list, .menu-teasers, .box) .multipleArticleContainer h2.smaller a").not(".list").fitText(1.4);jQuery(".teasers:not(.list, .menu-teasers, .box) .multipleArticleContainer h2.normal a").not(".list").fitText(1.1);jQuery(".teasers:not(.list, .menu-teasers, .box) .multipleArticleContainer h2.larger a").not(".list").fitText(1);jQuery(".teasers:not(.list, .menu-teasers, .box) .multipleArticleContainer h2.largest a").not(".list").fitText(0.9);}});enquire.register("screen and (min-width: 720px)",{match:function(){var page_url=document.URL;var addClassToHTLM=jQuery("html");jQuery("#divNavigationContainer a.menu-item-a").each(function(){var href=jQuery(this).attr("href");if(page_url.indexOf(href)>=0){jQuery(this).addClass("activeTab");}});jQuery(window).scroll(function(event){var scroll=jQuery(this).scrollTop();hideMenuTop=80;if(scroll>hideMenuTop){addClassToHTLM.addClass("menuOff");}else{addClassToHTLM.removeClass("menuOff");}});jQuery("#divNavigationContainer").hoverIntent(function(){jQuery(this).addClass("active");},function(){jQuery(this).removeClass("active");jQuery(".menu-tab-box").hide();jQuery("#divNavigationContainer .menu-item").removeClass("active");});jQuery("#divNavigationContainer .menu-item").hoverIntent(function(){var menu_mapping=jQuery(this).data("mapping");jQuery(".menu-tab-box").hide();jQuery("#divNavigationContainer .menu-item").removeClass("active");jQuery(this).addClass("active");jQuery("#"+menu_mapping).show();jQuery("#"+menu_mapping+" .unveil-img").unveil();});jQuery(".teasers .teaserContainer").hoverIntent(function(){jQuery(this).addClass("hover-intent");},function(){jQuery(this).removeClass("hover-intent");});}});jQuery(document).foundation();jQuery(function(){jQuery(function(){FastClick.attach(document.body);});var addClassToHTLM=jQuery("html");var more_menu_active=false;jQuery(".menu-icon.menu-item-a").on("click",function(){if(all_sites_open){addClassToHTLM.removeClass("all-sites-active");all_sites_open=false;}if(!more_menu_active){addClassToHTLM.addClass("more-menu-active");more_menu_active=true;return false;}});jQuery(document).click(function(event){if(more_menu_active&&!jQuery(event.target).closest("#divNavigationContainerFlyOut").length){addClassToHTLM.removeClass("more-menu-active");event.preventDefault();event.stopImmediatePropagation();more_menu_active=false;}});jQuery(".idg-global-header .icon-bar .item-more").on("click",function(){if(all_sites_open){addClassToHTLM.removeClass("all-sites-active");all_sites_open=false;}if(!more_menu_active){addClassToHTLM.addClass("more-menu-active");jQuery(this).find(".fa").addClass("fa-rotate-180");more_menu_active=true;return false;}else{if(more_menu_active){addClassToHTLM.removeClass("more-menu-active");jQuery(this).find(".fa").removeClass("fa-rotate-180");more_menu_active=false;return false;}}});var all_sites_open=false;jQuery(".icon-bar .item.devices").on("click",function(){if(more_menu_active){addClassToHTLM.removeClass("more-menu-active");jQuery(".item-more .fa").removeClass("fa-rotate-180");more_menu_active=false;}if(!all_sites_open){addClassToHTLM.addClass("all-sites-active");all_sites_open=true;return false;}else{if(all_sites_open){addClassToHTLM.removeClass("all-sites-active");all_sites_open=false;return false;}}});jQuery(".idg-global-header-bottom .close").on("click",function(){if(more_menu_active){addClassToHTLM.removeClass("more-menu-active");jQuery(".item-more .fa").removeClass("fa-rotate-180");more_menu_active=false;}else{if(all_sites_open){addClassToHTLM.removeClass("all-sites-active");all_sites_open=false;return false;}}});jQuery(".go-to-top").on("click",function(){jQuery("html, body").animate({scrollTop:0},"fast");return false;});jQuery('.teasers:not(.list) [class*="teaserContainer"] .articleInlineQuizContainer h6').click(function(){jQuery(this).parents(".articleInlineQuizContainer").toggleClass("active");});if(jQuery(".divLockedArticle").length){jQuery(".divLockedArticle, .divColumn2article").wrapAll('<div id="articlePage"></div>');}jQuery(".divLockedArticle .articleDate").detach().insertAfter(".divLockedArticle .articleAuthor");jQuery("#divTeaserTop h1 a, .teasers:not(.list) .multipleArticleContainer h1 a, .teasers:not(.list) .multipleArticleContainer h2 a").addClass("topHeaderFit");jQuery(".unveil-img").unveil(700);});(function(){if(document.getElementById("articlePage")){var head=document.getElementsByTagName("html")[0],classname="articlePage";if(head.className.indexOf(classname)===-1){head.className+=(head.className==="")?classname:" "+classname;}}})();(function(){if(jQuery("#articlePage").length){var addClassToHTLM=jQuery("html"),toolbarTop=jQuery("#articlePage .toolbarTop"),toolbarBottom=jQuery("#articlePage .toolbarBottom");jQuery(window).scroll(function(event){var scroll=jQuery(this).scrollTop();toolbarTopPos=toolbarTop.offset().top;toolbarBottomPos=toolbarBottom.offset().top;if(scroll>toolbarTopPos&&scroll<toolbarBottomPos){addClassToHTLM.addClass("in-article");}else{addClassToHTLM.removeClass("in-article");}});}})();if(jQuery(".EventCounter").text()!="0"){jQuery(".EventCounter").css("display","block");}if(jQuery(".jobbCounter").text()!="0"){jQuery(".jobbCounter").css("display","block");}if(jQuery(window).width()<635){jQuery(".topTeaser").addClass("teasers");}else{jQuery(".topTeaser").removeClass("teasers");}$(window).resize(function(){if(jQuery(window).width()<635){jQuery(".topTeaser").addClass("teasers");}else{jQuery(".topTeaser").removeClass("teasers");}});if(jQuery("html").hasClass("touch")){jQuery(window).resize(function(){if(jQuery(window).width()<635){jQuery(".topTeaser").addClass("teasers");}else{jQuery(".topTeaser").removeClass("teasers");}});}var _cInfo=_cInfo||[];(function(){if(document.cookie.match("__codnt")===null){window._cInfo.push({cmd:"_trackContentPath",val:"/subsection1/subsection2/subsection3"},{cmd:"_executeTracking"});var ca=document.createElement("script");ca.type="text/javascript";ca.async=true;ca.src=("https:"==document.location.protocol?"https://":"http://")+"analytics.codigo.se/j/7058a82eee984259bd89fdf458e3c6b6.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(ca,s);}})();