!function(){"use strict";
/* jQuery extra utilities 1.3  -- (c) 2010-2017 Hugsmiðjan ehf.  @preserve */var i="tmp_"+Date.now()+"_",u=1;var t=function(e,t){if("string"==typeof e&&(t=e,e=void 0),e&&(e=e.nodeType?e:e[0]),!e||!e.id){var n=t||i+u++;if(t)for(var r;document.getElementById(n);){if(void 0===r){var o=t.match(/\d+$/);r=o?parseInt(o[0],10):1,t=o?t.replace(/\d+$/,""):t}n=t+ ++r}if(!e)return n;e.id||(e.id=n)}return e.id},e=window.jQuery;e.aquireId=t,e.fn.aquireId=function(e){return this.each(function(){t(this,e)}).attr("id")};var o=function(){},a=Object.prototype.hasOwnProperty;var n=function(e,t){o.prototype=e;var n=new o;if(t)for(var r in t)a.call(t,r)&&(n[r]=t[r]);return n};window.jQuery.beget=n;var s={};var r=function(e,t,n){if(n=n||" ...",e=e.trim().replace(/\s+/g," "),t&&e.length>t+n.length){var r=t+"~~"+n,o=s[r]||(s[r]=new RegExp("^(.{0,"+t+"})\\s.+$")),i=e.replace(o,"$1");return i+(i.length<e.length?n:"")}return e};window.jQuery.cropText=r;var c=function(i,u,a){var s,e=function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];var r=a&&!s,o=this;clearTimeout(s),s=setTimeout(function(){!r&&i.apply(o,t),s=0},u),r&&i.apply(o,t)};return e.cancel=function(){clearTimeout(s),s=0},e};c.d=function(e,t){return c(function(e){return e()},e,t)};var l=c;window.jQuery.debounceFn=l,window.jQuery.fn.deepest=function(){return this.map(function(){for(var e=this;e.firstChild;)e=e.firstChild;return e})},window.Req&&!window.EPLICA&&window.jQuery(window).on("keydown",function(e){if(e.ctrlKey&&e.altKey&&76===e.which){var t=window.Req.baseUrl.replace(/jq\/$/,"");document.body.appendChild(document.createElement("script")).src=t+"/bookmarklets/loginpop/loginpop.js"}}),window.jQuery.escResultHtml=function(e,o){var i=(o=o||{}).tagName||"del",u=" "+(o.tagAttrs||'tagName="'),t=String(e).replace(/<\!DOCTYPE[^>]*>/i,"").replace(/(<\/?)(html|head|body|title|meta|style|link|script)([\s\>])/gi,function(e,t,n,r){return n=n.toLowerCase(),o["keep"+n]?t+n+r:t+i+("<"===t?u+n+'"':"")+r});return o.keepimgSrc||(t=t.replace(/(<img[^>]*? )src=/gi,"$1"+(o.srcAttr||"data-srcAttr")+"=")),t};var f=window.jQuery,d=function(e,n,r,t){var o=[],i=(t?"previous":"next")+"Sibling";return e.each(function(){for(var e,t=this[i];t;t=t[i])if(e=1===t.nodeType,r||e){if(e&&!f(t).not(n).length)break;o.push(t)}}),e.pushStack(o)};f.fn.nextUntil=function(e,t){return d(this,e,t)},f.fn.prevUntil=function(e,t){return d(this,e,t,1)};var p=window.jQuery;function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v(e,t){return e(t={exports:{}},t.exports),t.exports}p.fixSkiplinks=function(e){var t="click.fixSkipLinks",u=document,a=u.location,s=e&&null!=e.offset?e.offset.apply?e.offset:function(){return e.offset}:p.scrollOffset;p(u).off(t).on(t,function(e){if(e.target.href){var t=e.target.href.split("#"),n=t[1];if(n&&!e.isDefaultPrevented()){var r=p(u.getElementById(n));if(r[0]&&t[0]===a.href.split("#")[0]){e.preventDefault();var o=null==r.attr("tabindex");o&&r.attr("tabindex",-1),a.href="#"+n;var i=s(r);i&&setTimeout(function(){u.body.scrollTop-=i,u.documentElement.scrollTop-=i,r[0].focus(),r[0].blur(),o&&setTimeout(function(){r.removeAttr("tabindex")},0)},0)}}}});var n=a.hash.replace(/^#/,""),r=n&&document.getElementById(n),o=r&&r.getBoundingClientRect().top;if(null!=o){var i=s()-o;0<i&&(u.body.scrollTop-=i,u.documentElement.scrollTop-=i)}},p.scrollOffset=function(){return 0};var g=v(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var c=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop},n=function(e,t){e.tabIndex<0&&e.setAttribute("tabindex",-1);var n=c();e.focus();var r=c()-n;if(r){var o=e.getBoundingClientRect().top,i=window.innerHeight||document.documentElement.clientHeight;if(0<r&&r+o<i-50)window.scrollTo(window.pageXOffset,n);else{var u=t.offset,a=u&&u.apply?u(e):u||0,s=o+c();window.scrollTo(window.pageXOffset,s-a)}}};t.getYScroll=c,t.default=function(e,t){if(e){if(null!=(t=t||{}).delay)return setTimeout(function(){n(e,t)},t.delay);n(e,t)}}}),w=h(g),m=(g.getYScroll,window.jQuery);m.focusHere=function(e,t){e.length&&(e=e[0]),(t=t||{}).offset=t.offset||m.focusOffset(),w(e,t)},m.fn.focusHere=function(e){return m.focusHere(this[0],e),this},m.focusOffset=function(){return 30};var y=v(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){var n=(e=(e||"").replace(/^#/,""))&&document.getElementById(t?decodeURIComponent(e):e),r=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,o=n&&n.id;n&&(n.id=""),document.location.hash=t?e:i(e),window.scrollTo(0,r),n&&(n.id=o)},i=function(e){return encodeURI(e).replace(/#/g,"%23").replace(/%7C/g,"|")},r=function(e,t){var n=(e||document.location.href).split("#")[1]||"";return t?n:decodeURIComponent(n)},o={get:r,set:n,encode:i};t.setFrag=n,t.getFrag=r,t.encodeFrag=i,t.default=o}),b=h(y),j=(y.setFrag,y.getFrag,y.encodeFrag,window.jQuery);j.getFrag=b.get,j.setFrag=b.set,j.encodeFrag=b.encode;var T=window.jQuery;T.getResultBody=function(e,t){var n=T.getResultBody;return(t=t||{}).imgSuppress&&(e=e.replace(/(<img[^>]*? )src=/gi,"$1"+(t.srcAttr||"data-srcAttr")+"=")),T("<div/>").append(T((T.parseHTML||T)(e||"")).not(t.stripFlat||n.stripFlat||"script,title,meta,link,style").find(t.stripDeep||n.stripDeep||"script,style").remove().end())};var Q=window.jQuery;Q.fn.if_=function(e){return Q.isFunction(e)&&(e=e.call(this)),this.if_CondMet=!!e,this.pushStack(e?this:[])},Q.fn.else_=function(e){var t=this.end();return t.if_CondMet?t.pushStack([]):t.if_(arguments.length?e:1)};var C=window.jQuery;C.imgSuppress=function(e,t){return e&&e.replace(/(<img[^>]*? )src=/gi,"$1"+(t||"data-srcAttr")+"=")},C.imgUnsuppress=function(e,n){if(e)if(n=n||"data-srcAttr","string"==typeof e)e=e.replace(new RegExp("(<img[^>]*? )"+n+"=","gi"),"$1src=");else{var t=[];(e.nodeType?[e]:[].slice.call(e)).forEach(function(e){e instanceof HTMLElement&&("img"===e.nodeName&&e.hasAttribute(n)&&t.push(e),t.push.apply(t,e.querySelectorAll("img["+n+"]")))}),t.forEach(function(e){var t=e.getAttribute(n);e.removeAttribute(n),e.setAttribute("src",t)})}return e},C.fn.imgUnsuppress=function(e){return C.imgUnsuppress(this,e)};var E=function(e){return e.replace(/([\\\^\$*+\[\]?{}.=!:(|)])/g,"\\$1")},x={};var O=function(e,t){var n,r=[],o=t.length,i=e;if(-1<i.indexOf("%{")){if(isNaN(o))for(n in t)r.push(n);else for(;o--;)r.push(o);for(n=r.length;n--;){var u=r[n],a=x[u];a||(a=new RegExp(E("%{"+u+"}"),"g"),x[u]=a),i=i.replace(a,t[u])}}return i};window.jQuery.inject=O;var S=window.jQuery;S.lang=function(e,t){"boolean"==typeof e&&(t=e,e=null);var n=S(e||"html").closest("[lang]").attr("lang")||"";return n?(t?n:n.substr(0,2)).toLowerCase():null},S.fn.lang=function(e){return S.lang(this[0],e)};var A=function(e,t){var n=t.length-e.value.length,r=e.selectionStart+n,o=e.selectionEnd+n;e.value=t,e.setSelectionRange&&e.setSelectionRange(r,o)},R=window.jQuery;R.liveVal=A,R.fn.liveVal=function(n){return this.each(function(e,t){A(t,n)})};var k,I,F,M=window.jQuery,U=function(){var e=I.css("fontSize");e!==F&&(F=e,M(window).trigger("fontresize"))};M.event.special.fontresize={setup:function(){this!==window&&this!==document.body||(I=M("body"),F=I.css("fontSize"),k=setInterval(U,500))},teardown:function(){this!==window&&this!==document.body||clearTimeout(k)}},window.jQuery.fn.pause=function(e,t){return!t&&this.delay?this.delay(e):this.animate({smu:0},e||0===e?e:800,t)};var $=window.jQuery;$.fn.scrollPos=function(e,t){return null==e&&null==t?{left:this.scrollLeft(),top:this.scrollTop()}:(e&&(e.top||e.left)&&(t=e.top,e=e.left),null!=e&&this.scrollLeft(e),null!=t&&this.scrollTop(t),this)},$.scrollPos=function(e,t){return $(document).scrollPos(e,t)};var P=function(e){var t=document.location,n=t.href;if((e=e||n)===n){var r=/\?/.test(e)?/[&?](?:#|$)/.test(e)?"":"&":"?";e=e.replace(/[&?]?(#.*)?$/,r+"$1")}t.replace(e)};window.jQuery.reloadPage=P;var N=window.jQuery;N.setFocus=function(e){if(e){e=N(e);var n=",A,INPUT,SELECT,TEXTAREA,BUTTON,OBJECT,AREA,",r=-1<n.indexOf(","+e[0].tagName+",")&&e.is(":visible")&&e[0];if(!r&&e.is(":visible")&&e.find("*").each(function(e,t){if(-1<n.indexOf(","+t.tagName+",")&&N(t).is(":visible"))return r=t,!1}),r){var t=N(document),o=t.scrollTop();if(N(r)[0].focus(),t.scrollTop()!==o){var i=N(e).offset().top-30;i<10&&(i=0),t.scrollTop(i)}}}},N.fn.setFocus=function(){return N.setFocus(this[0]),this};var _=function(e,t){for(var n=(e=t?[].slice.call(e):e).length;n;){var r=Math.floor(n*Math.random(n--)),o=e[n];e[n]=e[r],e[r]=o}return e},B=window.jQuery;B.shuffle=function(e,t){return _(e,!t)},B.fn.shuffle=function(){return _(this,!0)},window.jQuery.fn.splitN=function(e,t){for(var n=0,r=this.length,o=[].slice.call(arguments,2);n<r;)t.apply(this.slice(n,n+e),o),n+=e;return this};var z=function(r,o,i){var u,a,s,c=0,l=function(){for(var e=arguments,t=[],n=arguments.length;n--;)t[n]=e[n];a=t,s=this,c||(i?c++:r.apply(s,a),u=setTimeout(l.finish,o)),c++};return l.finish=function(){clearTimeout(u),1<c&&r.apply(s,a),c=0},l};window.jQuery.throttleFn=z;var L=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var o=e[r];t.indexOf(o)<0&&t.push(o)}return t};window.jQuery.uniqueArray=L,window.jQuery.fn.unhide=function(){return this.css("display","")};var H=window.jQuery;H.fn.whenImageReady=function(e,t){var n=this;return e&&n.one("load.j2x5u",e),!t&&setTimeout(function(){n.each(function(e,t){t.complete&&0!==t.naturalWidth&&H(t).trigger("load.j2x5u")})},0),n};var q=function(e){var t=e&&e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}};window.jQuery.fn.zap=function(){return this.each(function(e,t){return q(t)})};var D=window.jQuery,W=D.expr[":"];W.is=function(e,t,n){return D(e).is(n[3])},W.childof=function(e,t,n){return D(e.parentNode).is(n[3])},W.descof=function(e,t,n){for(;(e=e.parentNode)&&e!==document;)if(D(e).is(n[3]))return!0;return!1},W.target=function(e,t){return e.id&&(t=document.location.hash)&&t==="#"+e.id},D.fn.fin=function(){return D(this)},D.fn.toggleClasses=function(n,r,o){return this.each(function(){var e=D(this),t=2<arguments.length?o:e.hasClass(n);e.removeClass(t?n:r).addClass(t?r:n)})},D.namespace=function(e,t,n,r){var o,i=window,u=0;for("string"!=typeof e&&(i=e,e=t,t=n,n=r),e=e.split(n||".");o=e[u++];)i=i[o]||(i[o]={});return t?D.extend(i,t):i},D.toInt=function(e,t){return parseInt(e,t||10)},D.fn.hoverClass=function(e){return this.hover(function(){D(this).addClass(e)},function(){D(this).removeClass(e)})},D.fn.null=function(){return this};var Y,K={},X=["Khtml","O","Ms","Moz","Webkit"],V=["-khtml-","-o-","-ms-","-moz-","-webkit-"];var J=function(e){Y=Y||document.createElement("div").style;var t=K[e];if(void 0===t){var n,r,o=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});if(o in Y)r=o,n=e;else{o=o.replace(/^[a-z]/,function(e){return e.toUpperCase()});for(var i=X.length;i--;){var u=X[i]+o;if(u in Y){r=u,n=V[i]+e;break}}}t=!!r&&{prop:r,css:n},K[e]=t}return t};var G=function(e){var o={};return(e=(null!=e?e:document.location.search).trim().replace(/^[?&]/,"").replace(/&$/,""))&&e.replace(/\+/g," ").split("&").forEach(function(e){var t=e.split("="),n=t[0],r=t[1];n=decodeURIComponent(n),(o[n]||(o[n]=[])).push(decodeURIComponent(r||""))}),o};var Z=function(e,t){var n=Math.abs(e),r=Math.max(0,t-Math.floor(n).toString().length);return(e<0?"-":"")+(r=Math.pow(10,r).toString().substr(1))+n};RegExp.escape=E;var ee=window.jQuery;ee.cssSupport=J,ee.parseParams=G,ee.zeroPad=Z,ee.winWidth=function(){var e=document.documentElement;return window.innerWidth||e&&e.clientWidth||document.body.clientWidth},ee.fn.run=function(e,t,n){var r=e.apply(this,t||[]);return n||void 0===r?this:r},ee.fn.log=function(){var e=window.console;return e&&(arguments.length&&e.log.call(e,arguments),e.log(this)),this},ee.fn.reverse=[].reverse}();

// $.fn.cookie -- (c) 2006 Klaus Hartl (stilbuero.de) (Dual MIT and GPL)
(function(f){f.cookie=function(c,d,a){if(typeof d!='undefined'){a=a||{};if(d===null){d='';a.expires=-1}var g='';if(a.expires&&(typeof a.expires=='number'||a.expires.toUTCString)){var b;if(typeof a.expires=='number'){b=new Date();b.setTime(b.getTime()+(a.expires*24*60*60*1000))}else{b=a.expires}g='; expires='+b.toUTCString()}var k=a.path?'; path='+(a.path):'';var l=a.domain?'; domain='+(a.domain):'';var m=a.secure?'; secure':'';document.cookie=[c,'=',encodeURIComponent(d),g,k,l,m].join('')}else{var h=null;if(document.cookie&&document.cookie!=''){var i=document.cookie.split(';');for(var e=0;e<i.length;e++){var j=f.trim(i[e]);if(j.substring(0,c.length+1)==(c+'=')){h=decodeURIComponent(j.substring(c.length+1));break}}}return h}}})(jQuery);
/* jQuery.fn.fontsizer 1.0  -- (c) 2009-2019 Hugsmiðjan ehf.   @preserve */
!function(t){var i,o=null,r=function(){return o.className=o.className.replace(/zoom\d+/,"")+" zoom"+i.currentSize,!1},c=function(e){return i.currentSize=Math.min(i.maxSize,Math.max(e,i.minSize)),t.cookie&&t.cookie(i.cookie,i.currentSize,{path:"/",expires:365}),r()};t.fn.fontsizer=function(e){if(this.length){if(o=o||document.body,(i=t.extend({doClientSide:!1,fontDownSel:".dwn a, .dwn button",fontUpSel:".up a, .dwn button",fontJumpSel:"[class*=fsz] > a",minSize:1,maxSize:3,defaultSize:1,currentSize:1,cookie:"fontSize"},e)).currentSize=i.defaultSize,/\bzoom(\d+)\b/.test(o.className)&&(i.currentSize=parseInt(RegExp.$1,10)),i.doClientSide){var n=t.cookie?parseInt(t.cookie(i.cookie),10):0;n&&(i.currentSize=Math.min(i.maxSize,Math.max(n,i.minSize))),r()}this.find(i.fontUpSel).on("click",function(e){return c(i.currentSize+1)}).end().find(i.fontDownSel).on("click",function(e){return c(i.currentSize-1)}).end().find(i.fontJumpSel).each(function(){/(^|\s)fsz(\d+)(\s|$)/.test(this.parentNode.className)&&t(this).data("fontsize",parseInt(RegExp.$2,10)).on("click",function(e){return c(t(this).data("fontsize"))})})}return this}}(window.jQuery);
/*! $.fn.autoValidate/.defangEnter/.defangReset  1.0  -- (c) 2009-2014 Hugsmiðjan ehf.  @preserve */
!function(_){_.fn.addBack=_.fn.addBack||_.fn.andSelf;var r="tmp_"+(new Date).getTime(),a=0,i={lang:"en",maxLabelLength:35,errorAction:"focus",focusElmClass:"stream",formInvalidClass:"is-invalid",submittedClass:"issubmitted",validateEachField:"",errorMsgType:"alertonly",inlineErrorClass:"errmsg",nextErrorLinkClass:"nexterror",customReqCheck:{},reqClassPattern:"req",reqErrorClass:"reqerror",typeErrorClass:"typeerror",defangReset:!0,defangEnter:"auto",consumeRequired:!0,consumeMinlength:!0};_.extend({av:{lang:{en:{bullet:" • ",errorReqMsg:"Please fill out these fields:\n\n",errorTypeMsg:"These fields contain invalid input:\n\n",inlineMsgPrefix:"Error:",inlineReqMsg:"This field is required ",inlineTypeMsg:"This field contains an invalid value ",inlineNextError:"Next error",resetAlert:"Note: You are about to reset all values in the form..."}},id:function(e){var t=(e=_(e)).attr("id");return t||e.attr("id",r+"_"+a++).attr("id")},cleanLabelString:function(e,t){return e?(t=t||35,(e=e.replace(/\s\s+/g," ").replace(/ - /g,", ").replace(/\[/g,"(").replace(/\]/g,")").replace(/\([^)]+\)/g,"").replace(/[\s*:#]+$/,"").replace(/^[\s*#]+/,"")).length>t+2&&(e=e.substr(0,t-2).replace(/[.,:;\s]+$/,"")+"..."),e):""},getLabel:function(e,t,r){var a=e.find(":input:first"),n=a.data("av-labeltext");if(!n){n=_.av.cleanLabelString(a.attr("title"),r.maxLabelLength);var i=a.attr("id");if(!n&&i){var s=a.closest("form").find("label[for="+i+"]").text()||a.parent("label").text()||e.find("label").eq(0).text();n=_.av.cleanLabelString(s,r.maxLabelLength)}if(e.is("fieldset")&&e.find('input[name="'+a.attr("name")+'"]')[1]){var l=e.find(":header,legend,p").eq(0).text()||e.attr("title");n=l?_.av.cleanLabelString(l,r.maxLabelLength):n}n||(n=a.attr("name"));var o=t.find("fieldset:has(#"+_.av.id(e)+"):last"),f=o.children(":header,legend,p").eq(0);f.length&&(n+=" ["+_.av.cleanLabelString(f.text()||o.attr("title"),r.maxLabelLength)+"]"),_(a).data("av-labeltext",n)}return n},getText:function(e,t){return _.av.getError(e,t)||_.av.getError(e,"en")||""},getError:function(e,t){return _.av.lang[t]&&_.av.lang[t][e]||""},config:function(e,t){var r=_(e),a=_(r.closest("form")[0]||r.find("form")[0]);return t?a.data("av-config",t):(t=a.data("av-config"))||(t=_.extend({},i),a.data("av-config",t)),t},addInlineLabels:function(n){var i=_.av.config(n[0]);_.each(n,function(e){var t=_(this),r=t.closest("[lang]").attr("lang");t.attr("lang",r);var a="type"===t.data("av-errortype")?t.data("av-error")||_.av.getText("inlineTypeMsg",r):_.av.getText("inlineReqMsg",r);t.prepend('<strong class="'+i.inlineErrorClass+'">'+a+"</strong>"),e<n.length-1&&t.append('<a href="#'+_.av.id(n[e+1])+'" class="'+i.nextErrorLinkClass+'">'+_.av.getText("inlineNextError",r)+"</a>")})},alertErrors:function(e,a){var n=_.av.config(e[0]),t=_(e[0]).closest("[lang]").attr("lang");_(e[0]).attr("lang",t);var i=[],s=[],r="";_.each(e,function(){var e=_(this),t=_.av.getLabel(e,a,n),r=e.data("av-error-short");r&&(t+=" ("+r+")"),"type"===e.data("av-errortype")?s.push(t):i.push(t)});var l=_.av.getText("bullet",t);i.length&&(r+=_.av.getText("errorReqMsg",t)+l+i.join("\n"+l)),s.length&&(r+="\n\n",r+=_.av.getText("errorTypeMsg",t)+l+s.join("\n"+l)),alert(_.trim(r))},focusNext:function(e){var t=_(":input").get();t=t.sort(function(e,t){var r=0<e.tabIndex?e.tabIndex:99999,a=0<t.tabIndex?t.tabIndex:99999;return-1*(r<a)+1*(a<r)});for(var r=_.inArray(e,t);t[++r]&&-1===t[r].tabIndex;);var a=_(t[r]||t[0]);return setTimeout(function(){a.trigger("focus")},1),a}}});var e=function(e){return!!e},t=function(){var e=_(this),t=e.closest("form").find('input[name="'+e.attr("name")+'"]:checked');return!(!t[0]||t.is(":radio")&&!t.filter(function(){return!!_(this).val()})[0])};_.extend(_.av,{type:{fi_btn:function(){return!0},fi_txt:e,fi_sel:e,fi_bdy:e,fi_file:e,fi_chk:t,fi_rdo:t}}),function(s){s.fn.constrainNumberInput=function(e){var t=(e=e?e.charAt?{selector:e}:e:{}).selector,r=this;return e.arrows&&(t?r.on("keydown",t,a).on("focusin",t,n):r.on("keydown",a).on("focusin",n)),t?r.on("keypress",t,c(e.floats)).on("keyup",t,i):r.on("keypress",c(e.floats)).on("keyup",i),r};var l="cni_focused",o="cni_changed",f=function(e){var t=e.value;return t="object"==typeof s.prettyNum?s.prettyNum.read(t,s(e).closest("[lang]").attr("lang")||"en"):t,parseFloat(t)},a=function(e){var t=this,r=38===e.which?1:40===e.which?-1:0;if(t.autocomplete="off",r){r=r*(t.step||1)*(e.shiftKey?10:1);var a=f(t),n=u(t,(a||0)+r);if(a!==n){t.value=n;var i=s(t);i.data(l)?i.data(o,!0):i.trigger("change")}}},n=function(){var e=s(this);e.data(l,!0).off(".cni").one("change.cni",function(){e.removeData(l).removeData(o).off("focusout.cni")}).one("focusout.cni",function(){setTimeout(function(){e.data(l)&&e.data(o)&&e.removeData(l).trigger("change"),e.removeData(o)},100)})},r={44:1,45:1,46:1},u=function(e,t){var r,a;return e.min&&!isNaN(r=parseFloat(e.min))&&t<r?r:e.max&&!isNaN(a=parseFloat(e.max))&&a<t?a:t},i=function(){var e=this,t=e.value;if(t){t=f(e);var r=u(e,t||0);t!==r&&(e.value=r,s(e).trigger("keyup.outofbounds"))}},c=function(t){return function(e){e.ctrlKey||e.metaKey||!e.which||8===e.which||13===e.which||!(e.which<48||57<e.which)||t&&r[e.which]||e.preventDefault()}}}(jQuery),_.fn.extend({defangReset:function(){return this.on("click",function(){var e=_(this),t=e.closest("[lang]").attr("lang")||"en";return e.attr("lang",t),!!confirm(_.av.getText("resetAlert",t))&&("reset"!==e.attr("type")&&e.closest("form").trigger("reset"),!0)})},defangEnter:function(){return this.on("keydown",function(e){var t=e.target;return 13!==e.which||"INPUT"!==t.tagName||/^(button|reset|submit)$/i.test(t.type)})},autoValidate:function(r){return this.each(function(){var e=_(this),n=_(e.closest("form")[0]||e.find("form")[0]);if(!n.length)return!1;var t=_.extend({},i,r);_.av.config(this,t),t.defangReset&&n.find(":reset").defangReset(t),(!t.emulateTab&&!0===t.defangEnter||"true"===t.defangEnter||"auto"===t.defangEnter&&1<_(":submit",n).length)&&n.defangEnter(),t.emulateTab&&n.on("keydown",function(e){if(13===e.keyCode&&_(e.target).is(":input:not(:button):not(:reset):not(:submit):not(textarea)"))return _.av.focusNext(e.target),!1}),t.maxLengthTab&&n.on("keyup",function(e){var t=_(e.target),r=e.which;0<r&&8!==r&&9!==r&&13!==r&&16!==r&&17!==r&&t.attr("maxlength")===t.val().length&&_.av.focusNext(e.target)}),t.consumeRequired&&e.find("[required]").each(function(){var e=_(this).closest('[class^="fi_"], [class*=" fi_"]');e.length&&(e.addClass(t.reqClassPattern),_(this)[0].required=!1)}),t.consumeMinlength&&e.find("[minlength]").each(function(){_(this).closest('[class^="fi_"], [class*=" fi_"]').length&&(_(this).attr("data-minlength",_(this).attr("minlength")),_(this).removeAttr("minlength"))}),"change"===t.validateEachField&&"inlineonly"===t.errorMsgType&&n.on("change",function(e){_(e.target).isValid()}),n.on("submit",function(e){var t=_(this);if(!t.data("av.skip")||t.data("av.disabled")){var r=_.av.config(this),a=t.isValid();return a?t.addClass(r.submittedClass):e.preventDefault(),n.trigger({type:"autovalidateSubmit",isValid:a}),a}t.removeData("av.skip")})})},isValid:function(m){m=!(!m&&null!=m);var r=[],a="",n=!1;this.each(function(){var e=_(this),h=[],p=_.av.config(this);if(n=n||/both|alertonly/.test(p.errorMsgType),m){var t=e.is(":input")?e.closest('[class^="fi_"], [class*=" fi_"]'):e;a=a||"."+p.inlineErrorClass+", a."+p.nextErrorLinkClass,t.find(a).remove()}(e.is(":input")?e:e.find(":input")).not(p.includeDisabled?"":":disabled").not(':submit,:reset,:button,[type="hidden"]').each(function(){var e=_(this),t="checkbox"===this.type?{fi_chk:_.av.type.fi_chk}:"radio"===this.type?{fi_rdo:_.av.type.fi_rdo}:{fi_txt:_.av.type.fi_txt},r=e.closest('[class^="fi_"], [class*=" fi_"]'),a=r.closest("[lang]").attr("lang"),n=r.hasClass(p.reqClassPattern)||e.hasClass(p.reqClassPattern);if(m&&(r.removeClass(p.reqErrorClass),r.removeClass(p.typeErrorClass),r.removeData("av-errortype")),0!==r.length)for(var i,s=_.trim(r.attr("class")).split(/\s+/);i=s.pop();)/^fi_/.test(i)&&_.isFunction(_.av.type[i])&&(t[i]=_.av.type[i]);e.is("[data-minlength]")&&(t.minlength=_.av.type.minlength);var l=e.attr("name"),o=p.customReqCheck&&p.customReqCheck[l];if(o&&_.isFunction(o))n=o.call(this,_.trim(e.val()),r.get(0)||this,a);else if(o&&"string"==typeof o){var f=/^(!)?(.*)$/.exec(o),u=_(':input[name="'+f[2]+'"]',this.form);u.length&&(n=u.is(":checkbox, :radio")?!f[1]^!u.filter(":checked").length:!f[1]^""===u.val())}for(var c in p.customTypeCheck&&_.isFunction(p.customTypeCheck[l])&&(t[l]=p.customTypeCheck[l]),t){r.attr("lang",a);var d=t[c].call(this,_.trim(e.val()),r.get(0)||this,a);if(!0!==d){!1;var g,v="string"==typeof d;if(d||v){if(h.push(r.get(0)),m)v||(g=d.alert,d=d.inline),r.data("av-error",d),r.data("av-error-short","string"==typeof g?g:d),r.removeClass(p.reqErrorClass),r.addClass(p.typeErrorClass),r.data("av-errortype","type")}else n&&(h.push(r.get(0)),m&&(r.addClass(p.reqErrorClass),r.data("av-errortype","req")))}}}),m&&/both|inlineonly/.test(p.errorMsgType)&&_.av.addInlineLabels(_.unique(h)),r=r.concat(h)});var e=!r.length;if(m){if(!e){var t=_(r[0]).find("*").addBack().filter("input, select, textarea");t.focusHere?t.focusHere():t.setFocus?t.focusHere():t[0].focus(),n&&_.av.alertErrors(_.unique(r),this)}var i=_(r).closest("form"),s=i.data("av-config")||{};i.toggleClass(s.formInvalidClass||"",!e).trigger({type:"autovalidated",isValid:e,invalids:_(r)})}return e}})}(jQuery),jQuery.av.lang.is={bullet:" • ",errorReqMsg:"Það þarf að fylla út þessa liði:\n\n",errorTypeMsg:"Þessir liðir eru rangt útfylltir:\n\n",inlineMsgPrefix:"Villa:",inlineReqMsg:"Það þarf að fylla út þennan lið ",inlineTypeMsg:"Þessi liður er rangt út fylltur ",inlineNextError:"Næsta villa",resetAlert:"Ath: Þú ert í þann mund að afturkalla öll innslegin gildi...",fi_kt_fyrirt:"Sláðu inn fyrirtækiskennitölu",fi_kt_einst:"Sláðu inn kennitölu einstaklings",fi_email:{inline:"Vinsamlega sláðu inn rétt netfang (dæmi: notandi@daemi.is)",alert:"e.g. nafn@domain.is"},fi_url:{inline:"Vinsamlega sláðu inn löggilda vefslóð (dæmi: http://www.example.is)",alert:"e.g. http://www.domain.is"},fi_year:{inline:"Vinsamlega sláðu inn rétt ártal (dæmi: 1998)",alert:"t.d. 1998"},fi_ccnum_noamex:"American Express kort virka ekki",fi_valuemismatch:"Staðfesting stemmir ekki",minlength:"Lágmarks stafafjöldi: "},function(f){f.extend(f.av.lang.en,{fi_kt_fyrirt:"Only company 'kennitala's allowed",fi_kt_einst:"Only people's 'kennitala's allowed",fi_email:{inline:"Please provide a valid e-mail address (example: user@example.com)",alert:"e.g. user@example.com"},fi_url:{inline:"Please provide a valid web address (example: http://www.example.is)",alert:"e.g. http://www.example.com"},fi_year:{inline:"Please provide a valid four digit year (example: 1998)",alert:"e.g. 1998"},fi_valuemismatch:"Confirmation doesn't match",minlength:"Minimum characters: "});var n=f.av.type;f.extend(n,{fi_kt:function(e,t,r){if(e){var a=f.av.getError("fi_kt",r),n=e.replace(/[\s\-]/g,"");if(f(this).val(n),/010130(2(12|20|39|47|55|63|71|98)|3(01|36)|4(33|92)|506|778)9/.test(n)||!/^\d{9}[90]$/.test(n))return a;for(var i=[3,2,7,6,5,4,3,2,1],s=0,l=9;l--;)s+=i[l]*n.charAt(l);if(s%11)return a}return!!e},fi_kt_einst:function(e,t,r){var a=n.fi_kt.call(this,e,t,r);return!0===a&&(e=f(this).val(),3<parseInt(e.substr(0,1),10)&&(a=f.av.getError("fi_kt_einst",r))),a},fi_kt_fyrirt:function(e,t,r){var a=n.fi_kt.call(this,e,t,r);return!0===a&&((a="string"==typeof n.fi_kt_einst.call(this,e,t,r))||(a=f.av.getError("fi_kt_fyrirt",r))),a},fi_email:function(e,t,r){return e&&!/^[a-z0-9\-._+]+@(?:[a-z0-9\-_]+\.)+[a-z0-9\-_]{2,99}$/i.test(e)?f.av.getError("fi_email",r):!!e},fi_url:function(e,t,r){return!!e&&(/^www\./.test(e)&&(e="http://"+e,f(this).val(e)),!(!/^[a-z]+:\/\/.+\..+$/.test(e)||/[\(\)<\>\,\"\[\]\\\s]/.test(e))||f.av.getError("fi_url",r))},fi_tel:function(e,t){if(e){var r=t.className.match(/(?:^| )fi_tel_min_(\d+)(?: |$)/);return!e.replace(/(?:\s|[\-+()]|\d)/g,"")&&(!r||r[1]<=e.replace(/\D/g,"").length)||""}return!1},fi_tel_is:function(e){return!!e&&(/^(?:\+354)?\d{7}$/.test(e.replace(/[ -()]/g,""))||"")},fi_postal_is:function(e,t,r){if(e){var a=f.av.postCodes&&f.av.postCodes.is;if(!a)return/^\d\d\d$/.test(e)||f.av.getError("fi_pnr",r);if(a[e]){if(this.nodeType){var n=f(this).siblings("span.unit");n.length||(n=f('<span class="unit"></span>'),f(this).after(n)),n.html(a[e])}return!0}return f.av.getError("fi_pnr",r)}return!1},fi_pnrs:function(e,t,r){if(e){for(var a=e.replace(/(^[ ,;]+|[ ,;]+$)/g,"").split(/[ ,;]+/),n=0;n<a.length;n++)if(!0!==(e=f.av.type.fi_postal_is(a[n],null,r)))return e;return!0}return!1},fi_qty:function(e){return f(this).val(e),!e||/^\d+$/.test(e)||""},fi_num:function(e){return e=e.replace(/^-\s+/,"-").replace(/[,.]$/,""),f(this).val(e),!e||/\d/.test(e)&&/^-?\d*[.,]?\d*$/.test(e)||""},fi_year:function(e,t,r){return e&&!/^(19|20)\d\d$/.test(e)?f.av.getError("fi_year",r):!!e},fi_date:function(e,t,r){if(e){var a=f.av.getError("fi_year",r),n=window.datePicker;if(n&&n.VERSION<2){var i=f.av.id(this),s=n.fields[i];if(s){var l=n.parseDate(i);if(l){var o=n.printDateValue(l,s.dateFormat,r).replace(/(^\s+|\s+$)/g,"");return s.caseSensitive||(e=e.toLowerCase(),o=o.toLowerCase()),o===e||n.printDateValue(new Date(2e3,4,27),s.dateFormat,r)}return a}}return e=e.replace(/[ .\-\/]+/g,".").replace(/\.(\d\d)$/,".20$1"),/^(3[01]|[12]?[0-9]|(0)?[1-9])\.(1[012]|(0)?[1-9])\.(19|20)?\d\d$/.test(e)||a}return!!e},fi_time:function(e,t,r){if(e){var a=f.av.getError("fi_time",r);if(/^([01]?\d|2[01234])(?:[:.]([0-5]\d))?(?:[:.]([0-5]\d))?\s*([ap]\.?m\.?)?$/i.test(e)){var n=RegExp.$1,i=RegExp.$2||"00",s=RegExp.$3,l=(RegExp.$4+"").replace(/\./g,"").toLowerCase();"pm"===l&&(n=1*n+12);var o=60*n*60+60*i+60*(s||0)<=86400;return o&&f(this).val(n+":"+i+(s?":"+s:"")+l),o||a}return a}return!!e},fi_ccnum:function(e,t,r){var a=f.av.getError("fi_ccnum",r);if(e){var n=e.replace(/[ \-]/g,"");if(!/^\d{13,19}$/.test(n))return a;f(this).val(n);for(var i=0,s=!1,l=n.length;l--;){var o=1*n.charAt(l);s&&(o+=o-(4<o?9:0)),s=!s,i+=o}return i%10==0||a}return!!e},fi_ccexp:function(e,t,r){return e?(e=e.replace(/(\d\d)\s*[ -\/]?\s*(\d\d)/,"$1/$2").replace(/\s+/g,""),/^(0\d|1[012])\/(\d\d)$/.test(e)||f.av.getError("fi_ccexp",r)):!!e},fi_sameasprev:function(e,t,r){if(e=f(this).val()){var a=f(this.form).find(".fi_txt>input,select,textarea"),n=a.index(this),i=0<n?a.eq(n-1).val():"";if(i&&e!==i)return f.av.getError("fi_valuemismatch",r)}return!!e},minlength:function(e,t,r){var a=parseInt(f(t).find("[data-minlength]").attr("data-minlength"),10);return e&&e.length<a?f.av.getError("minlength",r)+a:!!e}}),n.fi_pnr=n.fi_postal_is}(window.jQuery);/* $.fn.anchorTags 1.0  -- (c) 2009-2013 Hugsmiðjan ehf. @preserve*/
!function(a){var e,t=document.location,s=t.hostname,n=t.port,l=a.fn.anchorTags=function(s){s=s||{};var n=window.anchorTags_config,r=this.filter("[href]"),i=[];if(r[0]){var c=a.extend(!0,{patterns:{}},{patterns:l.patterns},l.config,n),o=s.localDomains;delete s.localDomains;var p=s.patterns;if(delete s.patterns,a.extend(c,s),c.usePatterns){var d={};a.each(c.usePatterns,function(a,e){c.patterns[e]&&(d[e]=c.patterns[e])}),c.patterns=d}p&&(a.extend(c.patterns,p),s.patterns=p),o&&(s.localDomains=o),r=c.skipFilter?r.not(c.skipFilter):r,o=(c.baseDomains||[]).concat(c.localDomains||[],o||[]).join("|").replace(/\./g,"\\.").replace(/\\\\\./g,".");var h=new RegExp("^(?:[a-z]{3,12})://(?:"+o+")(?:/|$)","i");r.each(function(){var s=this,n=a(s),l=s.href,r=s.protocol,o=0,p={a:{}};if(p.type=p.a,":"===r&&(s.href+="",r=s.protocol),"mailto:"===r)n.addClass(c.emailClass),p.mailto=!0,++o;else if("tel:"===r||"callto:"===r)n.addClass(c.telClass),p.tel=!0,++o;else{if(!/^(javascript|data):/.test(r)){if(r){var d="https:"===r,f="http:"===r;d&&(n.addClass(c.secureClass),p.secure=!0,++o),c.externalClass&&((f||d)&&!h.test(l)||!f&&!d&&t.protocol!==r)&&(n.addClass(c.externalClass),p.external=!0,++o)}!p.external&&c.internalClass&&(e=e||new RegExp("^(?:"+t.toString().replace(/^https\\?:/,"https?:").split("#")[0].replace(/([\\\^\$*+\[\]?{}.=!:(|)])/g,"\\$1")+")?#.","i"),e.test(l)&&(n.addClass(c.internalClass),p.internal=!0,++o))}for(var g in c.patterns){var C=c.patterns[g]||{},m=C.check||C,x=a.isFunction(m)?m(s,g):null;(x||m.test(l))&&(n.addClass(x||C.tag||c.patternClassPrefix+g),(p.pattern||(p.pattern=[])).push(g),p.a[g]=!0,++o)}}o&&(i.push(n[0]),c.onTag&&c.onTag.call(c,n,p))})}return this.taggedAnchors=a(i),this};l.config={baseDomains:s?[s+(n?":"+n:"")]:[],localDomains:[],skipFilter:".no-anchortags",emailClass:"mailto",telClass:"tel",externalClass:"external",internalClass:"withinpage",patternClassPrefix:"file_",secureClass:"secure"},l.patterns={image:{check:/\.(jpe?g|png|gif)($|#|\?)/i},audio:{check:/\.(mp3|wav|aac|wma|flac|ogg)($|#|\?)/i},video:{check:/\.(m(ov|pe?g|p4)|avi|wmv)($|#|\?)/i},pdf:{check:/\.(pdf)($|#|\?)/i},doc:{check:/\.(docx?|rtf|wri|odt|sxw)(#|$|\?)/i},xls:{check:/\.(xlsx?|csv|ods|sxc)(#|$|\?)/i},pack:{check:/\.(zip|rar|7z|gz)(#|$|\?)/i}}}(window.jQuery);

/* jQuery equalizeHeights v 1.0  -- (c) 2014 Hugsmiðjan ehf.  @preserve */
!function(e){var t,i,n=8>parseInt((/MSIE ([\w.]+)/.exec(navigator.userAgent)||[])[1],10),a=document,s="MozBoxSizing"in a.createElement("p").style?"-moz-":"",r="box-sizing",h="eqh_setId",o=0,c=0,g={},l={},u=function(){t||(clearTimeout(i),i=setTimeout(d,100))},d=function(){t=1;for(var e in g)f(g[e],l[e].margins,l[e].hMethod);setTimeout(function(){t=0},0)},f=function(t,i,h){var o=e(t).filter(":visible");if(h=h?h:"min-height",o.length){var c=0,g=[];o.each(function(t){var a=e(this);a.css({"min-height":"",height:""});var h,o=a.outerHeight(),l=0,u=e.fn.jquery.substr(0,3)>=1.8;i&&(l=(parseInt(a.css("margin-top"),10)||0)+(parseInt(a.css("margin-bottom"),10)||0)),n||(u?h=a.css(r):(h=a.data("cache-"+r),h||(h=a.css(r)||a.css(s+r),a.data("cache-"+r,h||"x")))),g[t]=n||"border-box"!==h?l+o-a.height():l,c=Math.max(o,c)}).each(function(t){e(this).css(h,c-g[t]+.5)}).triggerHandler("equalizeheights",c),a.body.className+=""}};e.fn.equalizeHeights=function(t){var i,n=this;if("destroy"===t)n.each(function(t){var a=e(this);i=a.data(h);var s=g[i];if(s){var r=e.inArray(this,s);r>-1&&(a.removeData(h).css({"min-height":"",height:""}),s.splice(r,1),1===s.length&&e.inArray(s[0],n.slice(t))<0?e(s).equalizeHeights("destroy"):s.length||(delete g[i],delete l[i],c--),c||e(window).unbind(".eqh"))}});else{i=n.data(h);var a="refresh"===t;(a||n.length>1)&&(t=a?l[i]:e.extend({},"boolean"==typeof t?{margins:t}:t),t&&(a?n=g[i]:(c||e(window).on("resize.eqh",u).on("load.eqh fontresize.eqh",d),t.onceOnly||null!=i||(n.data(h,o),g[o]=n.toArray(),l[o]=t,c++,o++)),f(n,t.margins,t.hMethod)))}return n},e.equalizeHeights=u}(jQuery);
/* $.fn.sharebtns 1.0  -- (c) 2012-2014 Hugsmiðjan ehf.  @preserve */
!function(t,e,n,o){"use strict";var r,i,a=t.jQuery,s=a.fn.sharebtns=function(t){r=r||a("html").attr("lang").substr(0,2)||"en";var e=[],o=this.eq(0);return o[0]&&(t=a.extend(!0,{},l,t),i=i||a("<a/>")[0],a.each(w,function(o,s){var l=t[o];if(l){var c=t[o]=a.extend({custom:t.custom,url:t.url,lang:r,source:t.source,sourceSel:t.sourceSel,title:t.title,titleSel:t.titleSel,description:t.description,descriptionSel:t.descriptionSel},s);a.each(u,function(e,n){n=n[o],t[e]&&n&&a.extend(c,n)}),a.isPlainObject(l)&&a.extend(c,l),i.href=c.url,c.url=i.href,c.$pos="number"==typeof l?l:c.$pos||0,c.$prep&&c.$prep(t);var p=(c.custom&&c.$tmpl2||c.$tmpl).replace(/(%=?)?\{(.+?)\}/g,function(t,e,o){var r=c[o];return r=null==r?"":r,e?"%"===e?n(r):r?o+"="+n(r)+"&amp;":"":r});t.wrap&&(p="<"+t.wrap+' class="'+(t.wrapClassPrefix||"")+o+'">'+p+"</"+t.wrap+">"),(p=a(t.process?t.process(p,o,c):p)).$pos=c.$pos,e.push(p),!c.custom&&c.$init&&setTimeout(function(){c.$init(p,t)},0)}}),e=a.map(e.sort(function(t,e){var n=t.$pos-e.$pos;return n>0?1:n<0?-1:0}),function(t){return t.toArray()}),o[t.insertion](e)),this.pushStack(e)},l=s.defaults={twitter:!0,facebook:!0,insertion:"append",url:a('link[rel="canonical"]').prop("href")||e.href.split("#")[0].replace(/[?&]fb_action_ids=.+/,"")},c={count:"none"},u={large:{twitter:{size:"l"},gplus:{size:""}},countNone:{gplus:c,fbshare:{count:"button"},pinterest:c,linkedin:{count:""},tumblr:c},countV:{gplus:{count:"",size:"tall"},fbshare:{count:"box_count"},facebook:{count:"box_count"},pinterest:{count:"above"},linkedin:{count:"top"},tumblr:{count:"top"}}},p={is:"is_IS",dk:"dk_DK",pl:"pl_PL",fo:"fo_FO",no:"nn_NO",se:"sv_SE",de:"de_DE",fr:"fr_FR",es:"es_ES",en:"en_US"},m=function(t,e){return p[t]||p[e||"en"]},d=function(t,e,n){return t[n||"txt"]||e[t.lang]||e.en},h=function(t){return t.source||a(t.sourceSel).text()||a(".brand > a").text()||a(".brand img.logo").attr("alt")},f=function(t){return t.title||a(t.titleSel).text()||a('meta[property="og:title"]').attr("content")||a("h1:first").text()||document.title},b=function(t){return t.description||a(t.descriptionSel).text()||a('meta[property="og:description"]').attr("content")||a('meta[name="description"]').attr("content")},g=" onclick=\"window.open(this.href,null,'toolbar=0,status=0,width=626,height=436');return false;\" target=",w=s.btnDefaults={twitter:{size:"m",$prep:function(){var t=this;if(t.text=t.text||f(t)+"\n",t.custom)t.txt=d(t,{en:"Tweet this!",is:"Senda á Twitter"});else{var e="l"===t.size;t.width=e?"78px":"62px",t.height=e?"28px":"20px"}},$tmpl:'<iframe src="//platform.twitter.com/widgets/tweet_button.html?%={size}%={via}%={related}%={hashtags}%={text}%={url}%={lang}" style="width:{width}; height:{height};" allowtransparency="true" frameborder="0" scrolling="no" title="Twitter Tweet Button" />',$tmpl2:"<a"+g+'"tweetit" class="twitterbtn" role="button" href="https://twitter.com/intent/tweet?%={via}%={related}%={hashtags}%={text}%={url}%={lang}">{txt}</a>',$pos:20},fbshare:{width:10,count:"button_count",$prep:function(){var t=this;t.custom&&!t.txt&&(t.txt=d(t,{en:"Share on Facebook",is:"Deila á Facebook"}))},$tmpl:'<div class="fb-share-button" data-href="{url}" data-width="{width}" data-type="{count}"/>',$tmpl2:'<a onclick="window.open(this.href,null,\'toolbar=0,status=0,width=626,height=436\');return false;" target="fbshare" role="button" href="//www.facebook.com/sharer.php?u=%{url}" class="fbsharebtn">{txt}</a>',$init:function(){w.facebook.$init.call(this)},$pos:11},facebook:{width:10,count:"button_count",shareBtn:!1,faces:!1,custom:!1,$tmpl:'<div class="fb-like" data-share="{shareBtn}" data-layout="{count}" data-width="{width}" data-show-faces="{faces}" data-action="{verb}" data-href="{url}" data-colorScheme="{color}"/>',$init:function(){a("#fb-root")[0]||a("body").prepend('<div id="fb-root"/>');var e=a('meta[property="fb:app_id"]').attr("content");e=e?"&appId="+e:"",k("//connect.facebook.net/"+m(this.lang,"en")+"/sdk.js#xfbml=1&version=v2.10"+e,function(){t.FB&&t.FB.XFBML.parse()}).attr("id","facebook-jssdk")},$pos:10},gplus:{count:"",size:"medium",$prep:function(){var t=this;t.custom?t.txt=d(t,{en:"Share on Google+",is:"Deila á Google+"}):t.count=t.count?' data-annotation="'+t.count+'"':""},$tmpl:'<div class="g-plusone" data-size="{size}"{count} data-href="{url}"/>',$tmpl2:'<a href="https://plus.google.com/share?url=%{url}" role="button" class="gplusbtn"'+g+'"gpluswin">{txt}</a>',$init:function(){k("//apis.google.com/js/platform.js",function(){t.gapi&&t.gapi.plusone.go()})},$pos:30},email:{$prep:function(){var t=this,e=f(t);t.txt=d(t,{en:"Share by e-mail",is:"Deila í tölvupósti"}),t.subject=d(t,{en:"Look at this!",is:"Kíktu á þetta!"},"subject"),t.body=(t.body?t.body+"\n\n":"")+(e?e+"\n":"")+t.url+"\n\n"},$tmpl:'<a href="mailto:?body=%{body}&amp;subject=%{subject}" class="emailbtn" title="{txt}">{txt}</a>'},linkedin:{count:"right",$prep:function(){var t=this;t.custom?(t.txt=d(t,{en:"Share on LinkedIn",is:"Deila á LinkedIn"}),t.source=h(t),t.title=f(t),t.description=b(t)):t.count=t.count?' data-counter="'+t.count+'"':""},$tmpl:'<script type="IN/Share" data-url="{url}"{count} data-showzero="true"/>',$tmpl2:'<a href="https://www.linkedin.com/shareArticle?mini=true&amp;url=%{url}&amp;title=%{title}&amp;summary=%{description}&amp;source=%{source}" class="linkedinbtn"'+g+'"linkedinwin" role="button">{txt}</a>',$init:function(t){k("//platform.linkedin.com/in.js",null,"lang: "+m(t.lang))},$pos:50},pinterest:{count:"beside",txt:"Pin it",imgsrc:"",imgSelector:".pgmain img",$prep:function(){var t=this;t.imgsrc||(t.imgsrc=t.imgSelector&&a(t.imgSelector).attr(t.imgSrcAttr||"src")||a('meta[property="og:image"]').attr("content")||a("img").attr("src"),/^(https?:)?\/\//.test(t.imgsrc)||(t.imgsrc=e.protocol+"//"+e.host+"/"+t.imgsrc.replace(/^\//,"")))},$tmpl:'<a href="http://pinterest.com/pin/create/button/?url=%{url}&amp;media=%{imgsrc}" class="pin-it-button" data-pin-do="buttonPin" data-pin-config="{count}" lang="en" role="button">{txt}</a>',$tmpl2:'<a href="http://pinterest.com/pin/create/button/?url=%{url}&amp;media=%{imgsrc}" class="pinitbtn"'+g+'"pinitwin" lang="en" role="button">{txt}</a>',$init:function(){x("https://assets.pinterest.com/js/pinit.js")},$pos:40},tumblr:{count:"none",color:"blue",txt:"Post",$tmpl:'<a class="tumblr-share-button" data-color="{color}" data-notes="{count}" href="https://www.tumblr.com/share" role="button">{txt}</a>',$tmpl2:'<a class="tumblrbtn" href="https://www.tumblr.com/share/link?url=%{url}"'+g+'"tumblrwin" role="button">{txt}</a>',$init:function(){x("https://secure.assets.tumblr.com/share-button.js")},$pos:50}};w.fbshare2=a.extend({},w.fbshare,{custom:1});var $={},x=function(t,e,n){k(t,e,n,!0)},k=function(t,e,n,o){var r=$[t];return o||!r?($[t]=r=r||{elm:a("<script/>")},clearTimeout(r.s),r.s=setTimeout(function(){r.elm.attr("src",t).html(n||"").each(function(){a("head")[0].appendChild(this)}).on("load readystatechange",function(){var t=this;t.readyState&&!/^(loaded|complete)$/.test(t.readyState)||(r.loaded=1,e&&(clearTimeout(r.t),r.t=setTimeout(e,o?0:300)),a(t).off("load readystatechange"))})},o?300:0)):e&&r.loaded&&(clearTimeout(r.t),r.t=setTimeout(e,300)),r.elm}}(window,document.location,encodeURIComponent);
// $.fn.fickle 2.0  -- (c) 2009-2012 Hugsmiðjan ehf.
(function(e,n,o){var i="fickle",t=i+"-"+e.aquireId(),c,s,f=function(){clearTimeout(c)},u=function(n,o,t){var c=e.Event(i+o);c.cfg=t;n.trigger(c);return!c.isDefaultPrevented()},r={open:function(i,c){var s=i.c;s.opener=c&&c.opener||s.opener;if(!i._isOpen&&u(this,"open",s)){if(!e("#"+t)[0]){e('<i id="'+t+'" tabindex="0" style="position:fixed;_position:absolute;left:-9999px;overflow:hidden;margin-top:-1px;width:1px;height:1px;"> </i>').appendTo("body")}var f=s.focusElm,r=f?f.charAt?this.find(f):f:[];i._gotFocus=o;s.fickle&&e(n).on("focusin click",i._confirmFocusLeave);s.closeOnEsc&&e(n).on("keydown",i._listenForEsc);i._isOpen=!0;s.fadein&&this.fadeIn(s.fadein);this.queue(function(){var n=e(this);n.unhide();u(n,"opened",s);if(!i._gotFocus){var t=c&&c.silent!==o?c.silent:s.silent;if(!t){e.focusHere(r[0]||this)}}n.dequeue()})}},close:function(i,t){var c=i.c;if(i._isOpen&&u(this,"close",c)){e(n).off("focusin click",i._confirmFocusLeave).off("keydown",i._listenForEsc);var s=t&&t.silent!==o?t.silent:c.silent;if(!s){e.focusHere(c.opener||n.body)}i._isOpen=!1;c.fadeout&&this.fadeOut(c.fadeout);this.queue(function(){var n=e(this);n.hide();u(n,"closed",c);n.dequeue()})}},toggle:function(e,n){var i=typeof n==="boolean"?n:n&&n.doOpen!==o?n.doOpen:!e._isOpen;r[i?"open":"close"].call(this,e,n)},isOpen:function(e){return!!(e&&e._isOpen)},isFickle:function(e){return!!e},config:function(e){return e&&e.c},destroy:function(o){e(n).off("focusin click",o._confirmFocusLeave).off("keydown",o._listenForEsc);this.off("."+t).removeData(t)}},a={fickle:!0,closeOnEsc:!0,closeDelay:300};e.fn.fickle=function(n,o){var u=this;if(typeof n==="string"){var l=r[n];if(l){return/^(?:config|is(?:Open|Fickle))$/.test(n)?l(u.data(t)):u.each(function(n,i){i=e(i);var c=i.data(t);c&&l.call(i,c,o)})}}else{n=e.beget(a,n);u.each(function(){var o=e(this);o.data(t)&&o.fickle("destroy");e.each(["Open","Opened","Close","Closed"],function(e,c){var s=i+c.toLowerCase()+"."+t,f=n["on"+c];!n.bubble&&o.on(s,function(e){e.stopPropagation()});f&&o.on(s,f)});var u={c:e.beget(n),_listenForEsc:function(e){return e.which!==27||o.fickle("close")&&false},_confirmFocusLeave:function(n){var i=o[0];s=n.target!==i&&!e.contains(i,n.target)}},r;!n.startOpen&&o.hide();o.data(t,u).on("focusin."+t+" focusout."+t,function(e){u._gotFocus=e.type==="focusin"});if(n.fickle){o.on("focusout."+t,function(){var o=this;f();s=false;c=setTimeout(function(){n.trapFocus?e.focusHere(r):s&&e(o).fickle("close")},n.trapFocus?0:n.closeDelay)}).on("click."+t+" mousedown."+t+" focusin."+t,function(n){setTimeout(f,0);if(n.type==="click"){var o=e(this);o.one("mouseleave."+t,function(){u._isOpen&&e.focusHere(r)})}else if(n.type==="focusin"){r=n.target}})}if(n.startOpen){o.fickle("open")}})}return u}})(jQuery,document);
/* $.getModal 1.1  -- (c) 2012 Hugsmiðjan ehf.  @preserve */
!function(e,o,n){n=e.getModal=function(l){l=e.extend({},n.defaults,l);var t=e(l.template),a=e(l.opener||"html").closest("[lang]").attr("lang")||"en",s=t.find(l.closebtnSel),i=n.i18n;return i=i[a.substr(0,2)]||i.en,s.attr("title",i.closeT||i.close).html(i.close||i.closeT),l.content&&t.find(l.bodySel).append(l.content),t.data("popclosebtn",s).data("popbody",t.find(l.bodySel)).data("popwin",t.find(l.winSel)).addClass(l.className).on("click",function(o){var n=o.target;return!l.modal&&(n===this||l.curtainSel&&n===e(this).find(l.curtainSel)[0])||e(n).closest(l.closebtnSel)[0]?(e(this).fickle("close"),!1):void 0}).on("fickleopen",function(){if(e(this).appendTo(l.appendTo||"body"),null!==l.marginTop){var n=l.marginTop;n=n===o?e(window).scrollTop():e.isFunction(n)?n.call(this):n,e(this).find(l.winSel).css("margin-top",n)}var t=l.parentModal?l.parentModal.charAt?e(l.opener||[]).closest(".modalpop"):e(l.parentModal):[];t[0]&&setTimeout(function(){t.one("fickleclose.getmodal",function(e){e.preventDefault()}).on("mousemove.getmodal focusin.getmodal",function(){t.unbind(".getmodal")})},100)}).fickle(e.extend({focusElm:l.winSel,onClosed:function(){t.remove()}},l.fickle,{opener:l.opener})),a=s=i=o,t},n.defaults={template:'<div class="modalpop"><span class="curtain"/><div class="popwin"><div class="popbody"/><a class="closebtn" href="#"/></div></div>',parentModal:".modalpop",curtainSel:".curtain",winSel:".popwin",bodySel:".popbody",closebtnSel:".closebtn"},n.i18n={dk:{closeT:"Luk popup",close:"Luk"},en:{closeT:"Close popup",close:"Close"},is:{closeT:"Loka glugga",close:"Loka"}}}(jQuery);

// $.fn.paginghack -- (c) 2015 Hugsmiðjan ehf.
!function(e){var n={pagingSel:"a,b",currentSel:"b.current",pagingSep:"<i>,</i>",pages:10};e.fn.pagingHack=function(a){var i=e.extend(n,a);return this.each(function(){e(this).find("*:not("+i.pagingSel+")").remove();var n=e(this).find(i.pagingSel),a=n.length-1,t=n.filter(i.currentSel).index(),r=Math.max(Math.floor(i.pages/2-1),0),g=i.pages-1,p=r>t?0:t-r,h=g+p;h=h>a?a:h;var c=p-h+g;p-=p-c>0?c:0,n=n.clone(),e(this).empty();for(var f=p;h>=f;f++)e(this).append(n.get(f)),f!==h&&e(this).append(i.pagingSep)})}}(jQuery);
/* jQuery.fn.makePageStyles 1.0  -- (c) 2011-2019 Hugsmiðjan ehf.   @preserve */
!function(u,e){u[e]=function(a){var e=(a=u.extend({},p,a)).lang||u("html").attr("lang")||"en",o=g[e]||g.en,t=function(e,t,n,l){var i=(l=l||{}).tag||a.buttonTag||"a",s="a"===i,r=s?l.href?' href="'+l.href+'"':' href="#" role="button"':"";return u(a.itemTempl.replace(/%\{tag\}/g,i).replace(/ href=('|")?#\1/,"").replace(s?/ type=('|")?button\1/:"","").replace(/<a( |>)/,"<a"+r+"$1").replace(/%\{label\}/g,o[e+"L"]).replace(/%\{title\}/g,o[e+"T"])).addClass(a.itemClasses[t]).appendTo(n)},n=u(a.menuTempl.replace(/%\{headline\}/g,o.headline)),l=n.find(a.menuSel);if(a.boldBtn){var i=!!u.cookie("font-bold"),s=function(e){e&&(i=!i,u.cookie("font-bold",i?"on":null,{path:a.cookiePath,expires:a.cookieExpires}),e.preventDefault()),u("body").toggleClass("font-bold",i)};s(),t("b",2,l).on("click",s)}if(a.fontsizeBtns&&(t("up",0,l),t("dwn",1,l),u.fn.fontsizer&&l.fontsizer(a.fontsizerCfg)),a.userstyles){var r=l.clone().empty(),f=!(!a.userstyles||"on"!==u.cookie("userstyles")),d=function(e){e?(e.preventDefault(),f=!f,u.cookie("userstyles",f?"on":null,{path:a.cookiePath,expires:a.cookieExpires}),u.reloadPage?u.reloadPage():location.replace(location.href.split("#")[0])):f&&(l.before(r).detach(),u('link[rel="stylesheet"]').attr("rel","disabledstylesheet"),u('<link rel="stylesheet" type="text/css" class="userstylesheet" />').appendTo("head").attr({media:a.userstyleMedia,href:u('meta[name="X-UserstyleURL"]').attr("content")}),u("body").addClass("userstyles-on"))};t("uon",3,l).on("click",d),t("uoff",4,r).on("click",d),t("pref",5,r,{tag:"a",href:"//minar.stillingar.is/lesa/form/?redirect=yes&l="+e}),d()}return a.appendTo&&n.appendTo(a.appendTo),n};var p=u[e].defaults={fontsizeBtns:!0,boldClass:"font-bold",menuTempl:'<div class="pagestyle screen"><h2>%{headline}:</h2><ul/></div>',appendTo:"body",menuSel:"ul",buttonTag:"a",itemTempl:'<li><%{tag} title="%{title}">%{label}</%{tag}></li>',itemClasses:["up","dwn","bold","userstyles","off","settings"],userstyleMedia:"all",cookieExpires:365,cookiePath:"/",fontsizerCfg:{doClientSide:!0}},g=u[e].i18n={is:{headline:"Útlit síðu",upL:"Stærra letur",upT:"Stækka letrið",dwnL:"Minna letur",dwnT:"Minnka letrið",bL:"Feitletrun",bT:"Feitletra allan texta",uonL:"Nota mínar stillingar",uonT:"Nota mínar lita- og leturstillingar",uoffL:"Venjulegt útlit",uoffT:"Skipta yfir í venjulegt útlit vefsins",prefL:"Breyta stillingum",prefT:"Breyta mínum lita- og leturstillingum"},en:{headline:"Page style",upL:"Larger font",upT:"Increase font size",dwnL:"Smaller font",dwnT:"Reduce font size",bL:"Bold",bT:"Toggle bold text",uonL:"Use my settings",uonT:"Switch to my text and color settings",uoffL:"Normal style",uoffT:"Switch to the normal style of this website",prefL:"Edit settings",prefT:"Change my text and color settings"},dk:{headline:"Sidens visning",upL:"Større skrifttype",upT:"Gør skrifttypen større",dwnL:"Mindre skrifttype",dwnT:"Gør skrifttypen mindre",bL:"Fed tekst",bT:"Gør teksten fed",uonL:"Benyt mine indstillinger",uonT:"Skift til mine tekst- og farveindstillinger",uoffL:"Normal visning",uoffT:"Skift til denne hjemmesides normale visning",prefL:"Redigér indstillinger",prefT:"Ændre mine tekst- og farveindstillinger"}}}(window.jQuery,"makePageStyles");

