function LoginUser(n,t,i,r,u,f,e,o){$(t).click(function(t){if(t.preventDefault(),OverlayShow(),o==""||$(o)==null)param="0";else{var s=$(o).is(":checked");param=s?"1":"0"}window.location.search!=""&&(e=e+window.location.search);$.ajax({type:"POST",timeout:35e3,url:n,data:{UserName:$(i).val().replace(",","."),PassWord:$(r).val(),ReturnUrl:e,CheckboxValue:param},success:function(n){n.Success?(window.dataLayer.push({event:"login-ok"}),n.DoRedirect?window.location.href=n.ReturnUrl:OverlayHide()):(window.dataLayer.push({event:"login-error"}),n.DoRedirect?window.location.href=n.ReturnUrl:(OverlayHide(),PopUp(f,"Accesso al sito",n.Message)))},error:function(n,t){OverlayHide();$(u).html(t)}})})}function OverlayShow(){$("#main-overlay").css({left:0,top:0,width:"100%",height:"100%"}).fadeIn("slow")}function OverlayHide(){$("#main-overlay").hide()}function PopUp(n,t,i){$(n).attr("title",t);$(n+"-message").html(i);$(n).dialog({modal:!0,draggable:!1,resizable:!1,width:320,height:240,show:{effect:"fade",duration:200},hide:{effect:"fade",duration:200},open:function(){$(".ui-widget-overlay").hide().fadeIn(100)}})}function showLoader(){if(!$("#loading .loader").length){var n=$("<div><\/div>").addClass("loader");$("#loading").append(n)}$("#loading").css("visibility","visible")}function hideLoader(){$("#loading").empty();$("#loading").css("visibility","hidden")}function SessionRemoteCheck(){$.ajax({url:"/session/check",type:"GET",cache:!1,headers:{"cache-control":"no-cache"},success:function(n){n.HasToRefresh&&(window.location.href=window.location.pathname)},error:function(){}})}function getJson(n,t,i,r){var u="/"+n+"/"+t;return $.ajax({url:u,data:i,type:"GET",contentType:"application/json; charset=utf-8",cache:!1,headers:{"cache-control":"no-cache"},success:r})}function JSONPost(n,t,i){var r=JSON.stringify(t);return $.ajax({url:n,type:"POST",dataType:"json",data:r,contentType:"application/json; charset=utf-8",cache:!1,headers:{"cache-control":"no-cache"}}).success(i)}function JSONPost2(n,t,i,r){var u=JSON.stringify(t);$.ajax({url:n,type:"POST",dataType:"json",data:u,contentType:"application/json; charset=utf-8",cache:!1,headers:{"cache-control":"no-cache"}}).success(i).error(r)}function JsonPost2LoadingBox(n,t,i){JSONPost2(n,t,function(n){appendLoadedContent(i,n)},function(n){appendLoadedContent(i,n.responseText)})}function HTMLPost(n,t,i,r){$.ajax({url:n,type:"POST",data:JSON.stringify(t),contentType:"application/json; charset=utf-8",cache:!1,headers:{"cache-control":"no-cache"}}).success(i).error(r)}function appendLoadedContent(n,t){$(n).children(".loading-box").remove();t==null||t=="undefined"?$(n).hide():$(n).append(t)}function RemindMe(n,t,i,r){$.ajax({url:n,type:"GET",cache:!1,headers:{"cache-control":"no-cache"},success:function(n){n!=null&&($(t).val(n.Mail),$(i).val(n.PWD),n.Checkbox=="1"?$(r).prop("checked",!0):$(r).prop("checked",!1))},error:function(){}})}function PrintDocument(n,t,i){var h=document.getElementById("logo"),u=document.getElementById(t),f=document.getElementById(i),e=n,o=new Date,s="Print"+o.getTime(),r=window.open(e,s);r.document.write(u.innerHTML+"<br/>"+f.innerHTML);r.document.close();r.focus();r.print();r.close()}function SendMail(n,t){var i="IPSOA Quotidiano: "+n,t=t,r="mailto:?subject="+i+"&body= Leggi l’articolo tratto da IPSOA Quotidiano:  "+t;window.open(r)}function DownloadPDF(n){var t="/api/CreatePDF/"+n;window.open(t)}function DownloadPDFDossier(n,t){var i="/api/CreatePDF/"+n+"?type="+t;window.open(i)}function DownloadPDFRassegna(n){var t="/api/CreatePdfRassegna/"+n;window.open(t)}function printpage(){window.print()}function blockUi(){$.blockUI({css:{border:"none",padding:"15px",backgroundColor:"transparent","-webkit-border-radius":"10px","-moz-border-radius":"10px",opacity:.5,color:"#fff"},message:'<img src="/Content/themes/tax/images/ajax-overlay-loader.gif">'})}function unblockUi(){$.unblockUI()}function GenerateGuid(){function n(n){var t=(Math.random().toString(16)+"000000000").substr(2,8);return n?"-"+t.substr(0,4)+"-"+t.substr(4,4):t}return n()+n(!0)+n(!0)+n()}function SendMailQuesito(n,t,i){$(t).click(function(t){if(t.preventDefault(),OverlayShow(),isBlank(data))$(n).after('<label id="label-error" for="invia-quesito" generated="true" class="error">Inserisci un testo nel campo quesito per inviare.<\/label>').addClass("error"),$(n).addClass("error");else{alert("Invio quesito "+data);var r=r,e=i,u=u,f=f;$.ajax({type:"POST",timeout:35e3,url:WKI.Routes.SendMailQuesito,data:{quesitotext:r,emailmitt:e,name:u,tema:f},success:function(n){OverlayHide();console.log("success",n)},error:function(){OverlayHide();console.log("success",data)}})}})}function isBlank(n){return!n||/^\s*$/.test(n)}function printDocument(n){var t=window.open("","File");$.ajax({type:"GET",async:!1,url:"/api/GetPdfContent/"+n,success:function(n){t.document.write(n);setTimeout(function(){t.document.close();t.focus();t.print();t.close()},500)}})}var htmlLoading,routes,WKI;jQuery(function(n){n.datepicker.regional.it={closeText:"Chiudi",prevText:"&#x3c;Prec",nextText:"Succ&#x3e;",currentText:"Oggi",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Luned&#236","Marted&#236","Mercoled&#236","Gioved&#236","Venerd&#236","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayNamesMin:["Do","Lu","Ma","Me","Gi","Ve","Sa"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};n.datepicker.setDefaults(n.datepicker.regional.it)});htmlLoading='<br />&nbsp;<img alt="Caricamento..." src="/Content/themes/images/loading.gif" style="max-height:50px;max-width:50px;margin-left: auto;margin-right: auto" />';routes={specialeAnteprima:"/speciale/anteprima",bookmarkutente:"/profilo/bookmarkutente/",bookmarkarticolo:"/profilo/bookmark/articolo/"};WKI={};WKI.Routes={loadAgenzie:"/account/LoadAgenzia",bookmarkutente:"/profilo/bookmarkutente",bookmarkutenteclearall:"/profilo/bookmarkutenteclearall",bookmarkutenteclear:"/profilo/bookmarkutenteclear",bookmarkarticolo:"/profilo/bookmark/articolo",boxedeskipsoa:"/profilo/boxedeskipsoa",staticiShow:"/statici/show",edeskshop:"/boxes/edeskshop",codicesbloccoindicitalia:"/profilo/richiestacodicesblocco",recuperopasswordcdrom:"/profilo/recuperopasswordcdrom",abbonamentiutente:"/profilo/abbonamentiutente",newslettersutente:"/profilo/newslettersutente",elearningutente:"/profilo/elearningutente",modificapassword:"/profilo/modificapassword",modificapasswordipsoa:"/profilo/modificapasswordipsoa",aggiungiAiPreferiti:"/profilo/bookmark/abbonamento",modificamail:"/profilo/modificamail",modificamailipsoa:"/profilo/modificamailipsoa",recuperapassword:"/profilo/RemindPasswordHPpersonale",profiloUtente:"/profilo/BoxProfiloUtente",profiloPat:"/profilo/BoxPAT",getForm:"/forms/getform",sendForm:"/Forms/send",roleGroupBookmark:"/profilo/RoleGroupBookmark",setNewsletter:"/profilo/SetNewsletter",elencoAgenzie:"/agenzie/ElencoAgenzie",notizieArea:"/aggregatori/NotizieArea",notizieAreaInEvidenza:"/aggregatori/NotizieAreaInEvidenza",notizieAreaInPrimoPiano:"/aggregatori/notizieAreaInPrimoPiano",getLastUpdateDate:"/aggregatori/GetLastUpdateDate",specialiPDF:"/aggregatori/SpecialiPDF",specialiArea:"/aggregatori/SpecialiArea",eecookiegen:"/quotidiano/eecookiegen",articoliAreaArgomento:"/ArticoliAreaArgomento",tags:"/TaxTags",decreto:"/TaxLegislazione",ricerca:"/TaxRicercaDecreto",consolidatiRicerca:"/consolidati/ricerca",ecommandsEditors:"/ecommands/editors",ecommandsBusyeditors:"/ecommands/busyeditors",ecommandsAddeditortosite:"/ecommands/addeditortosite",ecommandsRemoveeditorfromsite:"/ecommands/removeeditorfromsite",firstonline:"/boxes/firstonline",gazzetta:"/boxes/gazzetta",gazzettayear:"/gazzetta/year",postilla:"/boxes/postilla",boxesQg:"/boxes/qg",boxQuotidiano:"/boxes/quotidiano",boxRassegna:"/boxes/rassegna",rassegnastampaRicerca:"/rassegnastampa/ricerca",ricercaSimpleFullText:"/ricerca/SimpleFullText",ricercaRefinedFullText:"/ricerca/RefinedFullText",boxScadenzario:"/boxes/scadenzario",scadenzarioMese:"/scadenzario/mese",scadenzarioAlldates:"/scadenzario/alldates",boxShopwki:"/boxes/shopwki",boxShopwkiHpPersonale:"/boxes/shopwkiHpPersonale",profiloOffers:"/profilo/offers",profiloOffersHP:"/profilo/offersHP",specialeAnteprima:"/speciale/anteprima",specialeTabArgomenti:"/speciale/tabargomenti",specialeTab:"/speciale/tab",specialeForm:"/speciale/Form",boxSpecialiPDF:"/boxes/specialiPDF",boxVideo:"/boxes/video",otherVideo:"/paginaVideo/OtherVideo",aggregatoriShowPaged:"/aggregatori/show/paged",addSegnalibroParagrafo:"/bilancioeredditodimpresa/AddSegnalibro",removeSegnalibroParagrafo:"/bilancioeredditodimpresa/RemoveSegnalibro",salvaNoteParagrafo:"/bilancioeredditodimpresa/SalvaNoteParagrafo",eliminaNoteParagrafo:"/bilancioeredditodimpresa/EliminaNoteParagrafo",TrackPageview:"/api/TrackPageview",SendMailQuesito:"/IMieiCorsi/SendQuesito"};typeof JSON!="object"&&(JSON={}),function(){"use strict";function i(n){return n<10?"0"+n:n}function o(n){return e.lastIndex=0,e.test(n)?'"'+n.replace(e,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function u(i,f){var s,l,h,a,v=n,c,e=f[i];e&&typeof e=="object"&&typeof e.toJSON=="function"&&(e=e.toJSON(i));typeof t=="function"&&(e=t.call(f,i,e));switch(typeof e){case"string":return o(e);case"number":return isFinite(e)?String(e):"null";case"boolean":case"null":return String(e);case"object":if(!e)return"null";if(n+=r,c=[],Object.prototype.toString.apply(e)==="[object Array]"){for(a=e.length,s=0;s<a;s+=1)c[s]=u(s,e)||"null";return h=c.length===0?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,s=0;s<a;s+=1)typeof t[s]=="string"&&(l=t[s],h=u(l,e),h&&c.push(o(l)+(n?": ":":")+h));else for(l in e)Object.prototype.hasOwnProperty.call(e,l)&&(h=u(l,e),h&&c.push(o(l)+(n?": ":":")+h));return h=c.length===0?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var f=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,r,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",r="",typeof e=="number")for(o=0;o<e;o+=1)r+=" ";else typeof e=="string"&&(r=e);if(t=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return u("",{"":i})});typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),f.lastIndex=0,f.test(text)&&(text=text.replace(f,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}();window.Modernizr=function(n,t,i){function b(n){g.cssText=n}function f(n,t){return typeof n===t}function ut(n,t){return!!~(""+n).indexOf(t)}function k(n,t){var u,r;for(u in n)if(r=n[u],!ut(r,"-")&&g[r]!==i)return t=="pfx"?r:!0;return!1}function ft(n,t,r){var e,u;for(e in n)if(u=t[n[e]],u!==i)return r===!1?n[e]:f(u,"function")?u.bind(r||t):u;return!1}function o(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+tt.join(r+" ")+r).split(" ");return f(t,"string")||f(t,"undefined")?k(u,t):(u=(n+" "+it.join(r+" ")+r).split(" "),ft(u,t,i))}var r={},l=!0,u=t.documentElement,s="modernizr",d=t.createElement(s),g=d.style,et,st={}.toString,a=" -webkit- -moz- -o- -ms- ".split(" "),nt="Webkit Moz O ms",tt=nt.split(" "),it=nt.toLowerCase().split(" "),e={},v=[],y=v.slice,h,rt=function(n,i,r,f){var l,a,c,v,e=t.createElement("div"),h=t.body,o=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=f?f[r]:s+(r+1),e.appendChild(c);return l=["&#173;",'<style id="s',s,'">',n,"<\/style>"].join(""),e.id=s,(h?e:o).innerHTML+=l,o.appendChild(e),h||(o.style.background="",o.style.overflow="hidden",v=u.style.overflow,u.style.overflow="hidden",u.appendChild(o)),a=i(e,n),h?e.parentNode.removeChild(e):(o.parentNode.removeChild(o),u.style.overflow=v),!!a},p={}.hasOwnProperty,w,c;w=!f(p,"undefined")&&!f(p.call,"undefined")?function(n,t){return p.call(n,t)}:function(n,t){return t in n&&f(n.constructor.prototype[t],"undefined")};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=y.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(y.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(y.call(arguments)))},r});e.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:rt(["@media (",a.join("touch-enabled),("),s,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};e.csstransforms=function(){return!!o("transform")};e.csstransitions=function(){return o("transition")};for(c in e)w(e,c)&&(h=c.toLowerCase(),r[h]=e[c](),v.push((r[h]?"":"no-")+h));return r.addTest=function(n,t){if(typeof n=="object")for(var f in n)w(n,f)&&r.addTest(f,n[f]);else{if(n=n.toLowerCase(),r[n]!==i)return r;t=typeof t=="function"?t():t;typeof l!="undefined"&&l&&(u.className+=" "+(t?"":"no-")+n);r[n]=t}return r},b(""),d=et=null,function(n,t){function v(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function s(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function u(n){var t=a[n[l]];return t||(t={},o++,n[l]=o,a[o]=t),t}function h(n,r,f){if(r||(r=t),i)return r.createElement(n);f||(f=u(r));var e;return e=f.cache[n]?f.cache[n].cloneNode():b.test(n)?(f.cache[n]=f.createElem(n)).cloneNode():f.createElem(n),e.canHaveChildren&&!w.test(n)?f.frag.appendChild(e):e}function y(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||u(n);for(var e=r.frag.cloneNode(),f=0,o=s(),h=o.length;f<h;f++)e.createElement(o[f]);return e}function p(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?h(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/\w+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function c(n){n||(n=t);var f=u(n);return r.shivCSS&&!e&&!f.hasCSS&&(f.hasCSS=!!v(n,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),i||p(n,f),n}var f=n.html5||{},w=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,b=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,e,l="_html5shiv",o=0,a={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";e="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){e=!0;i=!0}})();r={elements:f.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:f.shivCSS!==!1,supportsUnknownElements:i,shivMethods:f.shivMethods!==!1,type:"default",shivDocument:c,createElement:h,createDocumentFragment:y};n.html5=r;c(t)}(this,t),r._version="2.6.2",r._prefixes=a,r._domPrefixes=it,r._cssomPrefixes=tt,r.testProp=function(n){return k([n])},r.testAllProps=o,r.testStyles=rt,r.prefixed=function(n,t,i){return t?o(n,t,i):o(n,"pfx")},u.className=u.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(l?" js "+v.join(" "):""),r}(this,this.document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function l(){}function w(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function f(){var n=a.shift();v=1;n?n.t?s(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),f()):v=0}function ut(n,i,o,h,c,l,y){function k(t){if(!nt&&w(p.readyState)&&(tt.r=nt=1,!v&&f(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&s(function(){g.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),nt=0,b=0,tt={t:o,s:i,e:c,a:l,x:y};1===r[i]&&(b=1,r[i]=[]);"object"==n?p.data=i:(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){k.call(this,b)};a.splice(h,0,tt);"img"!=n&&(b||2===r[i]?(g.insertBefore(p,d?null:e),s(k,y)):r[i].push(p))}function ft(n,t,i,r,u){return v=0,t=t||"j",c(n)?ut("c"==t?et:nt,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),1==a.length&&f()),this}function b(){var n=u;return n.loader={load:ft,i:0},n}var o=t.documentElement,s=n.setTimeout,e=t.getElementsByTagName("script")[0],y={}.toString,a=[],v=0,k="MozAppearance"in o.style,d=k&&!!t.createRange().compareNode,g=d?o:e.parentNode,o=n.opera&&"[object Opera]"==y.call(n.opera),o=!!t.attachEvent&&!o,nt=k?"object":o?"script":"img",et=o?"script":nt,tt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},rt,u;u=function(n){function a(n){for(var n=n.split("!"),f=p.length,i=n.pop(),e=n.length,i={url:i,origUrl:i,prefixes:n},u,r,t=0;t<e;t++)r=n[t].split("="),(u=it[r.shift()])&&(i=u(i,r));for(t=0;t<f;t++)i=p[t](i);return i}function f(n,t,u,f,e){var o=a(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift();o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){b();t&&t(o.origUrl,e,f);s&&s(o.origUrl,e,f);r[o.url]=2})))}function s(n,t){function a(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in v=function(){var t=0;for(var i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--v&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);u()}}(s[r])),f(n[r],i,t,r,e))}else o||u()}var e=!!n.test,o=n.load||n.both,i=n.callback||l,s=i,u=n.complete||l,v,r;a(e?n.yep:n.nope,!!o);o&&a(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(tt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):tt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)};u.addPrefix=function(n,t){it[n]=t};u.addFilter=function(n){p.push(n)};u.errorTimeout=1e4;null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0);t.readyState="complete"},0));n.yepnope=b();n.yepnope.executeStack=f;n.yepnope.injectJs=function(n,i,r,o,h,c){var a=t.createElement("script"),v,y,o=o||u.errorTimeout;a.src=n;for(y in r)a.setAttribute(y,r[y]);i=c?f:i||l;a.onreadystatechange=a.onload=function(){!v&&w(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};s(function(){v||(v=1,i(1))},o);h?a.onload():e.parentNode.insertBefore(a,e)};n.yepnope.injectCss=function(n,i,r,u,o,h){var u=t.createElement("link"),c,i=h?f:i||l;u.href=n;u.rel="stylesheet";u.type="text/css";for(c in r)u.setAttribute(c,r[c]);o||(e.parentNode.insertBefore(u,e),s(i,0))}}(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(n){n.easytabs=function(t,i){var u=this,f=n(t),v={animate:!0,panelActiveClass:"active",tabActiveClass:"active",defaultTab:"li:first-child",animationSpeed:"normal",tabs:"> ul > li",updateHash:!0,cycle:!1,collapsible:!1,collapsedClass:"collapsed",collapsedByDefault:!0,uiTabs:!1,transitionIn:"fadeIn",transitionOut:"fadeOut",transitionInEasing:"swing",transitionOutEasing:"swing",transitionCollapse:"slideUp",transitionUncollapse:"slideDown",transitionCollapseEasing:"swing",transitionUncollapseEasing:"swing",containerClass:"",tabsClass:"",tabClass:"",panelClass:"",cache:!0,event:"click",panelContext:f},e,h,o,c,s,y={fast:200,normal:400,slow:600},r;u.init=function(){u.settings=r=n.extend({},v,i);r.bind_str=r.event+".easytabs";r.uiTabs&&(r.tabActiveClass="ui-tabs-selected",r.containerClass="ui-tabs ui-widget ui-widget-content ui-corner-all",r.tabsClass="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all",r.tabClass="ui-state-default ui-corner-top",r.panelClass="ui-tabs-panel ui-widget-content ui-corner-bottom");r.collapsible&&i.defaultTab!==undefined&&i.collpasedByDefault===undefined&&(r.collapsedByDefault=!1);typeof r.animationSpeed=="string"&&(r.animationSpeed=y[r.animationSpeed]);n("a.anchor").remove().prependTo("body");f.data("easytabs",{});u.setTransitions();u.getTabs();p();w();k();nt();tt();f.attr("data-easytabs",!0)};u.setTransitions=function(){o=r.animate?{show:r.transitionIn,hide:r.transitionOut,speed:r.animationSpeed,collapse:r.transitionCollapse,uncollapse:r.transitionUncollapse,halfSpeed:r.animationSpeed/2}:{show:"show",hide:"hide",speed:0,collapse:"hide",uncollapse:"show",halfSpeed:0}};u.getTabs=function(){var t;u.tabs=f.find(r.tabs);u.panels=n();u.tabs.each(function(){var f=n(this),e=f.children("a"),i=f.children("a").data("target");f.data("easytabs",{});i!==undefined&&i!==null?f.data("easytabs").ajax=e.attr("href"):i=e.attr("href");i=i.match(/#([^\?]+)/)[1];t=r.panelContext.find("#"+i);t.length?(t.data("easytabs",{position:t.css("position"),visibility:t.css("visibility")}),t.not(r.panelActiveClass).hide(),u.panels=u.panels.add(t),f.data("easytabs").panel=t):(u.tabs=u.tabs.not(f),"console"in window&&console.warn("Warning: tab without matching panel for selector '#"+i+"' removed from set"))})};u.selectTab=function(n,t){var e=window.location,o=e.hash.match(/^[^\?]*/)[0],i=n.parent().data("easytabs").panel,f=n.parent().data("easytabs").ajax;r.collapsible&&!s&&(n.hasClass(r.tabActiveClass)||n.hasClass(r.collapsedClass))?u.toggleTabCollapse(n,i,f,t):n.hasClass(r.tabActiveClass)&&i.hasClass(r.panelActiveClass)?r.cache||a(n,i,f,t):a(n,i,f,t)};u.toggleTabCollapse=function(n,t,i,e){u.panels.stop(!0,!0);l(f,"easytabs:before",[n,t,r])&&(u.tabs.filter("."+r.tabActiveClass).removeClass(r.tabActiveClass).children().removeClass(r.tabActiveClass),n.hasClass(r.collapsedClass)?(!i||r.cache&&n.parent().data("easytabs").cached||(f.trigger("easytabs:ajax:beforeSend",[n,t]),t.load(i,function(i,r,u){n.parent().data("easytabs").cached=!0;f.trigger("easytabs:ajax:complete",[n,t,i,r,u])})),n.parent().removeClass(r.collapsedClass).addClass(r.tabActiveClass).children().removeClass(r.collapsedClass).addClass(r.tabActiveClass),t.addClass(r.panelActiveClass)[o.uncollapse](o.speed,r.transitionUncollapseEasing,function(){f.trigger("easytabs:midTransition",[n,t,r]);typeof e=="function"&&e()})):(n.addClass(r.collapsedClass).parent().addClass(r.collapsedClass),t.removeClass(r.panelActiveClass)[o.collapse](o.speed,r.transitionCollapseEasing,function(){f.trigger("easytabs:midTransition",[n,t,r]);typeof e=="function"&&e()})))};u.matchTab=function(n){return u.tabs.find("[href='"+n+"'],[data-target='"+n+"']").first()};u.matchInPanel=function(n){return n&&u.validId(n)?u.panels.filter(":has("+n+")").first():[]};u.validId=function(n){return n.substr(1).match(/^[A-Za-z]+[A-Za-z0-9\-_:\.].$/)};u.selectTabFromHashChange=function(){var n=window.location.hash.match(/^[^\?]*/)[0],t=u.matchTab(n),i;r.updateHash&&(t.length?(s=!0,u.selectTab(t)):(i=u.matchInPanel(n),i.length?(n="#"+i.attr("id"),t=u.matchTab(n),s=!0,u.selectTab(t)):e.hasClass(r.tabActiveClass)||r.cycle||(n===""||u.matchTab(c).length||f.closest(n).length)&&(s=!0,u.selectTab(h))))};u.cycleTabs=function(t){r.cycle&&(t=t%u.tabs.length,$tab=n(u.tabs[t]).children("a").first(),s=!0,u.selectTab($tab,function(){setTimeout(function(){u.cycleTabs(t+1)},r.cycle)}))};u.publicMethods={select:function(t){var i;(i=u.tabs.filter(t)).length===0?(i=u.tabs.find("a[href='"+t+"']")).length===0&&(i=u.tabs.find("a"+t)).length===0&&(i=u.tabs.find("[data-target='"+t+"']")).length===0&&(i=u.tabs.find("a[href$='"+t+"']")).length===0&&n.error("Tab '"+t+"' does not exist in tab set"):i=i.children("a").first();u.selectTab(i)}};var l=function(t,i,r){var u=n.Event(i);return t.trigger(u,r),u.result!==!1},p=function(){f.addClass(r.containerClass);u.tabs.parent().addClass(r.tabsClass);u.tabs.addClass(r.tabClass);u.panels.addClass(r.panelClass)},w=function(){var t=window.location.hash.match(/^[^\?]*/)[0],i=u.matchTab(t).parent(),f;i.length===1?(e=i,r.cycle=!1):(f=u.matchInPanel(t),f.length?(t="#"+f.attr("id"),e=u.matchTab(t).parent()):(e=u.tabs.parent().find(r.defaultTab),e.length===0&&n.error("The specified default tab ('"+r.defaultTab+"') could not be found in the tab set ('"+r.tabs+"') out of "+u.tabs.length+" tabs.")));h=e.children("a").first();b(i)},b=function(t){var i,u;r.collapsible&&t.length===0&&r.collapsedByDefault?e.addClass(r.collapsedClass).children().addClass(r.collapsedClass):(i=n(e.data("easytabs").panel),u=e.data("easytabs").ajax,!u||r.cache&&e.data("easytabs").cached||(f.trigger("easytabs:ajax:beforeSend",[h,i]),i.load(u,function(n,t,r){e.data("easytabs").cached=!0;f.trigger("easytabs:ajax:complete",[h,i,n,t,r])})),e.data("easytabs").panel.show().addClass(r.panelActiveClass),e.addClass(r.tabActiveClass).children().addClass(r.tabActiveClass));f.trigger("easytabs:initialised",[h,i])},k=function(){u.tabs.children("a").bind(r.bind_str,function(t){r.cycle=!1;s=!1;u.selectTab(n(this));t.preventDefault?t.preventDefault():t.returnValue=!1})},a=function(n,t,i,e){if(u.panels.stop(!0,!0),l(f,"easytabs:before",[n,t,r])){var v=u.panels.filter(":visible"),h=t.parent(),p,w,a,y,b=window.location.hash.match(/^[^\?]*/)[0];r.animate&&(p=d(t),w=v.length?g(v):0,a=p-w);c=b;y=function(){f.trigger("easytabs:midTransition",[n,t,r]);r.animate&&r.transitionIn=="fadeIn"&&a<0&&h.animate({height:h.height()+a},o.halfSpeed).css({"min-height":""});r.updateHash&&!s?window.location.hash="#"+t.attr("id"):s=!1;t[o.show](o.speed,r.transitionInEasing,function(){h.css({height:"","min-height":""});f.trigger("easytabs:after",[n,t,r]);typeof e=="function"&&e()})};!i||r.cache&&n.parent().data("easytabs").cached||(f.trigger("easytabs:ajax:beforeSend",[n,t]),t.load(i,function(i,r,u){n.parent().data("easytabs").cached=!0;f.trigger("easytabs:ajax:complete",[n,t,i,r,u])}));r.animate&&r.transitionOut=="fadeOut"&&(a>0?h.animate({height:h.height()+a},o.halfSpeed):h.css({"min-height":h.height()}));u.tabs.filter("."+r.tabActiveClass).removeClass(r.tabActiveClass).children().removeClass(r.tabActiveClass);u.tabs.filter("."+r.collapsedClass).removeClass(r.collapsedClass).children().removeClass(r.collapsedClass);n.parent().addClass(r.tabActiveClass).children().addClass(r.tabActiveClass);u.panels.filter("."+r.panelActiveClass).removeClass(r.panelActiveClass);t.addClass(r.panelActiveClass);v.length?v[o.hide](o.speed,r.transitionOutEasing,y):t[o.uncollapse](o.speed,r.transitionUncollapseEasing,y)}},d=function(t){if(t.data("easytabs")&&t.data("easytabs").lastHeight)return t.data("easytabs").lastHeight;var u=t.css("display"),i,r;try{i=n("<div><\/div>",{position:"absolute",visibility:"hidden",overflow:"hidden"})}catch(f){i=n("<div><\/div>",{visibility:"hidden",overflow:"hidden"})}return r=t.wrap(i).css({position:"relative",visibility:"hidden",display:"block"}).outerHeight(),t.unwrap(),t.css({position:t.data("easytabs").position,visibility:t.data("easytabs").visibility,display:u}),t.data("easytabs").lastHeight=r,r},g=function(n){var t=n.outerHeight();return n.data("easytabs")?n.data("easytabs").lastHeight=t:n.data("easytabs",{lastHeight:t}),t},nt=function(){typeof n(window).hashchange=="function"?n(window).hashchange(function(){u.selectTabFromHashChange()}):n.address&&typeof n.address.change=="function"&&n.address.change(function(){u.selectTabFromHashChange()})},tt=function(){var n;r.cycle&&(n=u.tabs.index(e),setTimeout(function(){u.cycleTabs(n+1)},r.cycle))};u.init()};n.fn.easytabs=function(t){var i=arguments;return this.each(function(){var u=n(this),r=u.data("easytabs");return undefined===r&&(r=new n.easytabs(this,t),u.data("easytabs",r)),r.publicMethods[t]?r.publicMethods[t](Array.prototype.slice.call(i,1)):void 0})}}(jQuery),function(){var n=jQuery.event,t=function(n,t,i,r){for(var f,s,h,o,u,c,l,a,e=0;e<t.length;e++)for(f=t[e],h=f.indexOf(".")<0,h||(c=f.split("."),f=c.shift(),l=new RegExp("(^|\\.)"+c.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")),s=(n[f]||[]).slice(0),o=0;o<s.length;o++)u=s[o],a=h||l.test(u.namespace),a&&(r?u.selector===r&&i(f,u.origHandler||u.handler):r===null?i(f,u.origHandler||u.handler,u.selector):u.selector||i(f,u.origHandler||u.handler))};n.find=function(n,i,r){var f=($._data(n)||{}).events,u=[];return f?(t(f,i,function(n,t){u.push(t)},r),u):u};n.findBySelector=function(n,i){var u=$._data(n).events,r={},f=function(n,t,i){var u=r[n]||(r[n]={}),f=u[t]||(u[t]=[]);f.push(i)};return u?(t(u,i,function(n,t,i){f(i||"",n,t)},null),r):r};n.supportTouch="ontouchend"in document;$.fn.respondsTo=function(t){return this.length?n.find(this[0],$.isArray(t)?t:[t]).length>0:!1};$.fn.triggerHandled=function(n,t){return n=typeof n=="string"?$.Event(n):n,this.trigger(n,t),n.handled};n.setupHelper=function(t,i,r){r||(r=i,i=null);var u=function(u){var e,f=u.selector||"";f?(e=n.find(this,t,f),e.length||$(this).delegate(f,i,r)):n.find(this,t,f).length||n.add(this,i,r,{selector:f,delegate:this})},f=function(u){var e,f=u.selector||"";f?(e=n.find(this,t,f),e.length||$(this).undelegate(f,i,r)):n.find(this,t,f).length||n.remove(this,i,r,{selector:f,delegate:this})};$.each(t,function(){n.special[this]={add:u,remove:f,setup:function(){},teardown:function(){}}})}}(jQuery),function(n){var f=/Phantom/.test(navigator.userAgent),i=!f&&"ontouchend"in document,e=i?"touchstart":"mousedown",o=i?"touchend":"mouseup",r=i?"touchmove":"mousemove",u=function(t){var i=t.originalEvent.touches?t.originalEvent.touches[0]:t;return{time:(new Date).getTime(),coords:[i.pageX,i.pageY],origin:n(t.target)}},t=n.event.swipe={delay:500,max:75,min:30};n.event.setupHelper(["swipe","swipeleft","swiperight","swipeup","swipedown"],e,function(i){function s(n){f&&(e=u(n),Math.abs(f.coords[0]-e.coords[0])>10&&n.preventDefault())}var f=u(i),e,h=i.delegateTarget||i.currentTarget,c=i.handleObj.selector,l=this;n(document.documentElement).bind(r,s).one(o,function(){var a;if(n(this).unbind(r,s),f&&e){var u=Math.abs(f.coords[0]-e.coords[0]),o=Math.abs(f.coords[1]-e.coords[1]),v=Math.sqrt(u*u+o*o);e.time-f.time<t.delay&&v>=t.min&&(a=["swipe"],u>=t.min&&o<t.min?a.push(f.coords[0]>e.coords[0]?"swipeleft":"swiperight"):o>=t.min&&u<t.min&&a.push(f.coords[1]<e.coords[1]?"swipedown":"swipeup"),n.each(n.event.find(h,a,c),function(){this.call(l,i,{start:f,end:e})}))}f=e=undefined})})}(jQuery)