!function(t){var e,i=this,r=i.Kveik=i.kk=function(){var t,e=0,i=[];for("object"!=typeof arguments[e]&&void 0!==arguments[e]||(t=arguments[e++]);e0))return!1!==a.waitForImages&&"function"==typeof n?n(u,d,h):void 0},y=[];for(var k in u){y.push({e:u[k],s:u[k].currentState});var K=t('');u[k].currentState=new r.Element.State(u[k],K),u[k].currentState.param(e[k],!0)}for(c=0;c0?(g++,_.bind("imagesLoaded",function(t){return function(){m(t,this)}}(x),!0)):r.trigger("loadedImages",x,e[k],_),r.trigger("loadedElement",x,e[k],a),S[x.cleanId]=_}}else a._failedLoad=!0,r.trigger("loadedElement",x,e[k],a)}for(c=0;c0&&(s+=o.join("/")+"/"),n=t.extend(!0,{},n);var h=t.extend({},n);for(var d in n){var l=kk(d);l.property("noHash")||!1===l.property("pushState")?n[d]=e:(h[d][r.argumentKey]=e,n[d][r.argumentKey]=e)}var c=r.Lib.objectToQuery(n);""!==c&&(c="?"+c);var u=r.Lib.objectToQuery(h);""!==u&&(u="?"+u);var p=a.virtualPath=(r.property("rootPath")||"/")+s+c;a.realPath=(r.property("rootPath")||"/")+s+u;if(!a.noSetState&&!1!==a.pushState&&r.Lib.atRoot())if(i.history.pushState){i.location.pathname,i.location.search;i.history.pushState(n,"",p)}else{var f="#"+r.defaults.hashPrefix+s+c,v=i.location.hash.toString();f!=r.lastHash&&f!=v&&i.location.assign(f)}return r.lastHash=i.location.hash.toString(),this.trigger("postPushState",this,a),this},state:function(){for(var t=this.initiated?this:r.root,e=0;e1||!this.initiated){var u;if(a.elements||a.element){u={};var p="string"==typeof(g=a.elements||a.element)?g.split(","):g;for(var f in p)u[p[f]]=!0}var v=a.excludeElements||{};if("string"==typeof v){p=v.split(",");v=a.excludeElements={};for(f=0;f1){for(var e=0;e.'+r.stateClass+" { display: none; }"),jQuery.extend(jQuery.browser,{mobileSafari:navigator.userAgent.toLowerCase().match(/iP(hone|ad|od)/i),mobile:!1}),t(document).ready(function(){r.bind("queryElement",function(t,e,i){t&&t.bind&&t.trigger("queryElement",t,e,i)}),r.bind("adopted",function(){r.orphanElements={}}),r.trigger("load").trigger("loaded").trigger("prepare").trigger("prepared").trigger("adopt").trigger("adopted").trigger("updateStates").trigger("updatedStates"),r.trigger("activate",r.root.subParam()),setTimeout(function(){r.trigger("postShowStates")},0);if("onhashchange"in i||"onhashchange"in document)i.onhashchange=function(){var t=i.location.hash.toString();r.lastHash!==t&&r.goTo(i.location.href.toString(),{noSetState:!0}),r.lastHash=t},""!=i.location.hash&&i.onhashchange();else{var t=function(){var t=i.location.hash.toString();t!==r.lastHash&&(void 0!==r.lastHash||""!==t?(r.lastHash=t,r.goTo(i.location.href.toString(),{noSetState:!0})):r.lastHash=t)};t(),setInterval(t,100)}i.history.pushState&&(i.onpopstate=function(){r.goTo(i.location.href.toString(),{noSetState:!0})}),r.loaded=!0}),t(i).load(function(){r.trigger("loadedImages",r.root.get())})}(jQuery),Kveik.debug=function(t,e){Kveik.debug.lineCount=Kveik.debug.lineCount||{},void 0===e&&(e="");var i=$("#_isDebug");i.length<=0&&($("body").append(''),i=$("#_isDebug").css({position:"fixed",bottom:0,right:0,zIndex:99999,background:"white",color:"#2a2a2a"}));var r;e||(e=t,t="_default"),r="#_isDebug_"+t;var a=$(r);a.length<=0&&(i.append(''+t+":
"),a=$(r).css("fontSize",11));a.find(".entry").length>50&&a.find(".entry:first").remove(":first"),Kveik.debug.lineCount[t]=Kveik.debug.lineCount[t]||1,a.append(''+Kveik.debug.lineCount[t]+++" "+e+"
")},function(t){Kveik.Lib={mergeQueries:function(){var t,e,i=arguments.length,r=0,a=!1;for("boolean"==typeof arguments[r]&&(a=arguments[r++]),t=Kveik.Lib.queryToObject(arguments[r]),r=1;rh;){var f=l[h]||n||"",v=d[h++];if("object"==typeof v)if(c){t=[];for(e in v)t.push(e);for(t.sort(),r=t.length,i=0;i
'),e.iframe=!0;var a=e.success;e.data=void 0,e.success=function(e,i,r){var n=/^.*(