/
pe-ap-min.js
7 lines (7 loc) · 95.9 KB
/
pe-ap-min.js
1
2
3
4
5
6
7
/*!
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.com/wet-boew/License-eng.txt / wet-boew.github.com/wet-boew/Licence-fra.txt
*
* Version: v3.0.2a1
*/
(function(c){var a,b;a=(typeof window.pe!=="undefined"&&window.pe!==null)?window.pe:{fn:{}};b={language:(document.getElementsByTagName("html")[0].lang?document.getElementsByTagName("html")[0].lang:"en"),touchscreen:"ontouchstart" in document.documentElement,mobileview:(wet_boew_theme!==null&&typeof wet_boew_theme.mobileview==="function"),suffix:c('body script[src*="/pe-ap-min.js"]').length>0?"-min":"",header:c("#wb-head"),bodydiv:c("body > div"),main:c("#wb-main"),secnav:c("#wb-sec"),footer:c("#wb-foot"),urlpage:"",urlhash:"",urlquery:"",svg:(c('<svg xmlns="http://www.w3.org/2000/svg" />').get(0).ownerSVGElement!==undefined),document:c(document),mobiletest:"",ie:(/(MSIE) ([\w.]+)/.exec(navigator.userAgent)||[])[2]||"0",_init:function(){var d=c("html"),j,e,h,g,i,f=false;a.mobiletest=document.createElement("div");a.mobiletest.setAttribute("id","mobiletest");document.body.appendChild(a.mobiletest);a.polyfills.init();a.urlpage=a.url(window.location.href);a.urlhash=a.urlpage.hash;a.urlquery=a.urlpage.params;d.removeClass("no-js").addClass(wet_boew_theme!==null?wet_boew_theme.theme:"").addClass(a.touchscreen?"touchscreen":"");j=a.main.find("a").filter(function(){return this.href.indexOf("#")!==-1});e=j.filter(function(){return c(this).attr("href").indexOf("#")===0});if(a.mobilecheck()){a.mobile=true;a.bodydiv.attr("data-role","page").addClass("ui-page-active");i=navigator.userAgent.indexOf("BlackBerry");d.addClass((i===0||(i!==-1&&navigator.userAgent.indexOf("Version/6")!==-1)?"bb-pre7":""));a.document.on("mobileinit",function(){c.extend(c.mobile,{ajaxEnabled:false,pushStateEnabled:false,autoInitializePage:(f?true:false)});if(f){a.mobilelang()}});a.document.on("pageinit",function(){e.off("click vclick").on("click vclick",function(){h=c(c(this).attr("href").replace(/[.:]/,"\\$1"));h.filter(":not(a, button, input, textarea, select)").attr("tabindex","-1");if(h.length>0){c.mobile.silentScroll(a.focus(h).offset().top)}});if(a.urlhash.length!==0){g=a.main.find("#"+a.urlhash);g.filter(":not(a, button, input, textarea, select)").attr("tabindex","-1");if(g.length>0&&g.attr("data-role")!=="page"){setTimeout(function(){c.mobile.silentScroll(a.focus(g).offset().top)},200)}}});a.add.css([a.add.themecsslocation+"jquery.mobile"+a.suffix+".css"]);a.add._load([a.add.liblocation+"jquerymobile/jquery.mobile.min.js"])}else{e.on("click vclick",function(){h=c(c(this).attr("href").replace(/[.:]/,"\\$1"));h.filter(":not(a, button, input, textarea, select)").attr("tabindex","-1");if(h.length>0){a.focus(h)}});if(a.urlhash.length>0){h=c(a.urlhash.replace(/[.:]/,"\\$1"));h.filter(":not(a, button, input, textarea, select)").attr("tabindex","-1");if(h.length>0){a.focus(h)}}}c.when.apply(c,c.map(c("*[data-ajax-replace], *[data-ajax-append]"),function(n){var m=c(n),l=false,k;if(m.attr("data-ajax-replace")!==undefined){l=true;k=m.attr("data-ajax-replace")}else{if(m.attr("data-ajax-append")!==undefined){k=m.attr("data-ajax-append")}}return c.get(k,function(o){if(l){m.empty()}m.append(c(o))},"html")})).always(function(){a.document.one("languageloaded",function(){if(a.pedisable()===true){return false}if(wet_boew_theme!==null){wet_boew_theme.init();if(a.mobile){a.document.one("mobileviewloaded",function(){if(typeof c.mobile!=="undefined"){a.mobilelang();c.mobile.initializePage()}else{f=true}});wet_boew_theme.mobileview()}}else{if(a.mobile){if(typeof c.mobile!=="undefined"){a.mobilelang();c.mobile.initializePage()}else{f=true}}}a.dance()});a.add.language(a.language)})},mobile:false,mobilecheck:function(){return a.mobiletest.offsetWidth!==0},mobilelang:function(){c.mobile.collapsible.prototype.options.expandCueText=a.dic.get("%jqm-expand");c.mobile.collapsible.prototype.options.collapseCueText=a.dic.get("%jqm-collapse");c.mobile.dialog.prototype.options.closeBtnText=a.dic.get("%close");c.mobile.page.prototype.options.backBtnText=a.dic.get("%back");c.mobile.textinput.prototype.options.clearSearchButtonText=a.dic.get("%jqm-clear-search");c.mobile.selectmenu.prototype.options.closeText=a.dic.get("%close");c.mobile.listview.prototype.options.filterPlaceholder=a.dic.get("%jqm-filter")},pagecontainer:function(){return c("#wb-body-sec-sup,#wb-body-sec,#wb-body").add("body").eq(0)},resize:function(d){ResizeEvents.initialise();ResizeEvents.eventElement.bind("x-text-resize x-zoom-resize x-window-resize",function(){d()});return},url:function(f){var e=document.createElement("div"),d;e.innerHTML='<a href="'+f+'">x</a>';d=e.firstChild;return{source:d.href,protocol:d.protocol.replace(":",""),host:d.hostname,port:d.port==="0"?"80":d.port,query:d.search,params:(function(){var j,i,k,h,l,g;i={};h=d.search.replace(/^\?/,"").split("&");for(l=0,g=h.length;l<g;l+=1){j=h[l];if(j){k=j.split("=");i[k[0]]=k[1]}}return i}()),file:d.pathname.match(/\/([^\/?#]+)$/i)?d.pathname.match(/\/([^\/?#]+)$/i)[1]:"",hash:d.hash.replace("#",""),path:d.pathname.replace(/^([^\/])/,"/$1"),relative:d.href.match(/tps?:\/\/[^\/]+(.+)/)?d.href.match(/tps?:\/\/[^\/]+(.+)/)[1]:"",segments:d.pathname.replace(/^\//,"").split("/"),removehash:function(){return this.source.replace(/#([A-Za-z0-9\-_=&]+.:)/,"")}}},cssenabled:function(){return c("link").get(0).disabled},limit:function(e){var d;d=c(e).attr("class").match(/\blimit-\d+/);if(!d){return 0}return Number(d[0].replace(/limit-/i,""))},focus:function(d){setTimeout(function(){return(typeof d.jquery!=="undefined"?d.focus():c(d).focus())},0);return d},string:{ify:(function(){return{link:function(d){return d.replace(/[a-z]+:\/\/[a-z0-9\-_]+\.[a-z0-9\-_@:~%&\?\+#\/.=]+[^:\.,\)\s*$]/ig,function(e){return'<a href="'+e+'">'+((e.length>25)?e.substr(0,24)+"...":e)+"</a>"})},at:function(d){return d.replace(/(^|[^\w]+)\@([a-zA-Z0-9_]{1,15}(\/[a-zA-Z0-9\-_]+)*)/g,function(e,g,f){return g+'@<a href="http://twitter.com/'+f+'">'+f+"</a>"})},hash:function(d){return d.replace(/(^|[^&\w'"]+)\#([a-zA-Z0-9_]+)/g,function(e,g,f){return g+'#<a href="http://search.twitter.com/search?q=%23'+f+'">'+f+"</a>"})},clean:function(d){return this.hash(this.at(this.link(d)))}}}()),pad:function(e,d){var f;f=String(e);while(f.length<d){f="0"+f}return f}},array:{noduplicates:function(d){var h,e,g,f=[],k={};for(h=0,e=d.length;h!==e;h+=1){k[d[h]]=0}for(g in k){if(k.hasOwnProperty(g)){f.push(g)}}return f},diff:function(l,k){var f,n,m,e,h,g,d=[];for(f=0,n=l.length;f!==n;f+=1){m=l[f];g=false;for(e=0,h=k.length;e!==h;e+=1){if(k[e]===m){g=true;break}}if(!g){d.push(m)}}},keys:function(e){var d=[];c.each(e,function(f){d.push(f)});return d}},date:{convert:function(e){if(e.constructor===Date){return e}if(e.constructor===Array){return new Date(e[0],e[1],e[2])}if(e.constructor===Number){return new Date(e)}if(e.constructor===String){return new Date(e)}if(typeof e==="object"){return new Date(e.year,e.month,e.date)}return NaN},compare:function(e,d){if(isFinite(e=this.convert(e).valueOf())&&isFinite(d=this.convert(d).valueOf())){return(e>d)-(e<d)}return NaN},in_range:function(f,g,e){if(isFinite(f=this.convert(f).valueOf())&&isFinite(g=this.convert(g).valueOf())&&isFinite(e=this.convert(e).valueOf())){return g<=f&&f<=e}return NaN},daysInMonth:function(d,e){return 32-new Date(d,e,32).getDate()},daysBetween:function(i,j){var h=a.date.convert(i),f=a.date.convert(j),d=0,k=1000*60,e=k*60*24,g;h.setHours(0);h.setMinutes(0);h.setSeconds(0);f.setHours(0);f.setMinutes(0);f.setSeconds(0);if(f>h){d=(f.getTimezoneOffset()-h.getTimezoneOffset())*k}else{d=(h.getTimezoneOffset()-f.getTimezoneOffset())*k}g=Math.abs(f.getTime()-h.getTime())-d;return Math.ceil(g/e)},to_iso_format:function(g,f){var e;e=this.convert(g);if(f){return e.getFullYear()+"-"+a.string.pad(e.getMonth()+1,2,"0")+"-"+a.string.pad(e.getDate(),2,"0")+" "+a.string.pad(e.getHours(),2,"0")+":"+a.string.pad(e.getMinutes(),2,"0")}return e.getFullYear()+"-"+a.string.pad(e.getMonth()+1,2,"0")+"-"+a.string.pad(e.getDate(),2,"0")},from_iso_format:function(e){var d=null;if(e){if(e.match(/\d{4}-\d{2}-\d{2}/)){d=new Date();d.setFullYear(e.substr(0,4),e.substr(5,2)-1,e.substr(8,2)-1)}return d}return null}},pedisable:function(){var i=(typeof localStorage!=="undefined"),h=(i?localStorage.getItem("pedisable"):null),g=(a.urlquery.pedisable!==undefined?a.urlquery.pedisable:h),f=document.getElementById("wb-tphp"),d=document.createElement("li"),k=a.urlquery,j,e="?";for(j in k){if(k.hasOwnProperty(j)&&j!=="pedisable"){e+=j+"="+k[j]+"&"}}if((a.ie>0&&a.ie<7&&g!=="false")||g==="true"){c("html").addClass("no-js pe-disable");if(i){localStorage.setItem("pedisable","true")}d.innerHTML='<a href="'+e+'pedisable=false">'+a.dic.get("%pe-enable")+"</a>";f.appendChild(d);return true}else{if(g==="false"||h!==null){if(i){localStorage.setItem("pedisable","false")}}}d.innerHTML='<a href="'+e+'pedisable=true">'+a.dic.get("%pe-disable")+"</a>";f.appendChild(d);return false},menu:{navcurrent:function(l,q,g){var o=window.location.hostname+window.location.pathname,r=window.location.search,f,n,u,e,i,s,v,t,k,h,d,p=a.main.find("h1").text(),j=false,m=a.ie!==0&&a.ie<8;l=typeof l.jquery!=="undefined"?l:c(l);f=l.find("a").get();g=(typeof g==="undefined")?"nav-current":g;v=f.length;while(v--){n=f[v];if((!m&&n.getAttribute("href").slice(0,1)!=="#")||(m&&(n.href.indexOf("#")===-1||o!==n.hostname+n.pathname.replace(/^([^\/])/,"/$1")))){u=n.hostname+n.pathname.replace(/^([^\/])/,"/$1");e=u.length;i=n.search;s=i.length;if((o.slice(-e)===u&&(s===0||r.slice(-s)===i))||n.innerHTML===p){j=true;break}}}if(!j){q=typeof q.jquery!=="undefined"?q:c(q);t=q.find("a").get();h=t.length;d=h;while(d--){k=t[d];t[d]=k.hostname+k.pathname.replace(/^([^\/])/,"/$1")}v=f.length;while(v--){n=f[v];if((!m&&n.getAttribute("href").slice(0,1)!=="#")||(m&&(n.href.indexOf("#")===-1||o!==n.hostname+n.pathname.replace(/^([^\/])/,"/$1")))){u=n.hostname+n.pathname.replace(/^([^\/])/,"/$1");e=u.length;d=h;while(d--){if(t[d].slice(-e)===u){j=true;break}}if(j){break}}}}return(j?c(n).addClass(g):c())},buildmobile:function(o,v,B,e,C,A,r){var k="h"+v,z="<"+k+">",x="</"+k+">",u=(typeof o.jquery!=="undefined"?o:c(o)).find("> div, > ul, "+k),t,s,p,l,m,n,y=(e!==undefined?e:false),d=(C!==undefined?C:false),j=a.dic.get("%main-page"),q=(r!==undefined?r:true),g=(A!==undefined?A:B),i=(q?B:A),w='<div data-role="collapsible-set" data-inset="false" data-theme="'+g+'"></div>',h='<ul data-role="listview" data-theme="'+g+'"></ul>',f=q?c('<div data-role="controlgroup"></div>'):c("<div/>");if(u.get(0).tagName.toLowerCase()==="ul"){f.append(c(h).append(u.first().children("li")))}else{n=u.filter(k).length!==0;if(y&&!n){s='<ul data-role="listview" data-theme="'+i+'">';u=u.find("a");u.each(function(){s+='<li><a href="'+this.href+'">'+this.innerHTML+"</a></li>"});f.append(s+"</ul>")}else{u.each(function(){var E=c(this),D=this.tagName.toLowerCase();if(D===k){p=E.children("a");l=p.hasClass("nav-current");s=c('<div data-role="collapsible"'+((d&&!y)||l?' data-collapsed="false"':"")+(l?' class="nav-current"':"")+">"+z+E.text()+x+"</div>");t=E.next();if(t.get(0).tagName.toLowerCase()==="ul"){if(!y&&p.length>0){t.append(c("<li></li>").append(E.children("a").html(p[0].innerHTML+" - "+j)))}m=t.find("li ul");m.each(function(H){var J=c(this),G,F="<h"+(v+1+H)+">",I="</h"+(v+1+H)+">";if((v+1+H)<7){p=J.prev("a");G=p[0].innerHTML;J.attr({"data-role":"listview","data-theme":g}).wrap('<div data-role="collapsible"'+(d||p.hasClass("nav-current")?' data-collapsed="false"':"")+"></div>");J.parent().prepend(F+G+I);J.append('<li><a href="'+p.attr("href")+'">'+G+" - "+j+"</a></li>");p.remove()}else{J.attr({"data-role":"listview","data-theme":g})}});s.append(c(h).append(t.children("li")));if(m.length>0){s.find("ul").wrap(w)}}else{if(y){s.append(a.menu.buildmobile(E.parent().find(".mb-sm"),v+1,i,false,d,g,false))}else{s.append(a.menu.buildmobile(E.parent(),v+1,i,false,d,g,false))}if(!y){s.find('div[data-role="collapsible-set"]').eq(0).append(E.children("a").html(p[0].innerHTML+" - "+j).attr({"data-role":"button","data-theme":g,"data-icon":"arrow-r","data-iconpos":"right","data-corners":"false"}))}}f.append(s)}else{if(D==="div"){t=E.children("a, ul");if(t.length>0){if(t.get(0).tagName.toLowerCase()==="a"){f.append('<a href="'+t.attr("href")+'" data-role="button" data-theme="'+i+'" data-icon="arrow-r" data-iconpos="right" data-corners="false">'+t.html()+"</a>")}else{f.append(E.children("ul").attr({"data-role":"listview","data-theme":(q?i:g)}))}}}}});f.children().wrapAll('<div data-role="collapsible-set" data-inset="false" data-theme="'+i+'"></div>')}}return f},expandcollapsemobile:function(h,d,f,e){var g=c((typeof h.jquery!=="undefined"?h:c(h))).find(d);if(e){g.parents('div[data-role="collapsible"]').attr("data-collapsed",f)}else{g.closest('div[data-role="collapsible"]').attr("data-collapsed",f)}},correctmobile:function(k){var f=(typeof k.jquery!=="undefined"?k:c(k)),h=f.find(".ui-controlgroup-controls").children().get(),i,d=h.length,e,j,g;while(d--){i=h[d];i.getElementsByTagName("a")[0].className+=" ui-corner-top";e=i.childNodes;g=e.length;while(g--){j=e[g];if(j.nodeType===1){j.getElementsByTagName("a")[0].className+=" ui-corner-bottom";break}}}}},polyfills:{init:function(){var d=a.add.liblocation;if(!window.localStorage){a.add._load(d+"polyfills/localstorage"+a.suffix+".js","localstorage-loaded");c("html").addClass("polyfill-localstorage")}else{c("html").addClass("localstorage")}},polyload:function(e,h,u){var t=this.polyfill,f,l,n,j={},w=[],m,d,g,k=a.add.liblocation,p=[],r=[],o=[],s,v,q=c("html");for(f in t){if(t.hasOwnProperty(f)){l=t[f];n=u?c(l.selector):c();if(n.length!==0||c.inArray(f,e)!==-1){if(typeof l.supported==="undefined"){l.supported=(typeof l.support_check==="function"?l.support_check():l.support_check);if(!l.supported){m=l.depends;if(typeof m!=="undefined"){d=a.add.depends(m);g=[];for(s=0,v=m.length;s!==v;s+=1){if(c.inArray(m[s],a.add.staged)===-1){g.push(m[s])}}if(g.length!==0){j[f]=g}else{w.push(f)}}else{w.push(f)}q.addClass("polyfill-"+f);n.addClass("polyfill")}else{q.addClass(f)}}else{if(!l.supported&&typeof l.loaded==="undefined"){w.push(f)}}}}}for(s=0,v=w.length;s!==v;s+=1){l=t[w[s]];o[o.length]=(typeof l.load!=="undefined"?l.load:k+"polyfills/"+w[s]+a.suffix+".js");if(typeof l.init!=="undefined"){r.push(w[s])}l.loaded=true}p.push(j);p.push(r);a.add._load_arr(o,h,p)},enhance:function(d,g){if(c("html").hasClass("polyfill-"+d)){g=(typeof g.jquery!=="undefined"?g.get():g);var e=this.polyfill[d],f=g.length;while(f--){e.update(c(g[f]).addClass("polyfill"))}}},polyfill:{datalist:{selector:"input[list]",depends:["resize","outside"],update:function(d){d.datalist()},support_check:!!(document.createElement("datalist")&&window.HTMLDataListElement)},datepicker:{selector:'input[type="date"]',depends:["calendar","xregexp","outside"],update:function(d){d.datepicker()},support_check:function(){var e=document.createElement("input"),d;e.setAttribute("type","date");e.value=":)";e.style.cssText="position:absolute;visibility:hidden;";document.body.appendChild(e);d=(e.value!==":)");document.body.removeChild(e);return d}},detailssummary:{selector:"details",update:function(d){d.details()},support_check:function(){var h=document,f=h.createElement("details"),e,d,g;if(typeof f.open==="undefined"){return false}d=h.body||(function(){var i=h.documentElement;e=true;return i.insertBefore(h.createElement("body"),i.firstElementChild||i.firstChild)}());f.innerHTML="<summary>a</summary>b";f.style.display="block";d.appendChild(f);g=f.offsetHeight;f.open=true;g=g!==f.offsetHeight;d.removeChild(f);if(e){d.parentNode.removeChild(d)}return g}},mathml:{selector:"math",load:"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=Accessible",support_check:function(){var f=false,g,j,k,e,d,h,i;if(document.createElementNS){g="http://www.w3.org/1998/Math/MathML";j=document.createElement("div");k=j.appendChild(document.createElement("div"));k.style.position="absolute";k.style.color="#fff";d=k.appendChild(document.createElementNS(g,"math")).appendChild(document.createElementNS(g,"mrow"));h=d.appendChild(document.createElementNS(g,"mo"));h.appendChild(document.createTextNode("|"));i=d.appendChild(document.createElementNS(g,"mfrac"));i.appendChild(document.createElementNS(g,"mi")).appendChild(document.createTextNode("xx"));i.appendChild(document.createElementNS(g,"mi")).appendChild(document.createTextNode("yy"));d.appendChild(document.createElementNS(g,"mo")).appendChild(document.createTextNode("|"));e=j.appendChild(document.createElement("div"));e.style.color="#fff";e.style.display="inline";e.appendChild(document.createTextNode("|xx|"));document.body.appendChild(j);f=k.offsetHeight>k.offsetWidth;k.style.position="static";k.style.display="inline";f=f&&k.offsetWidth<e.offsetWidth;j.parentNode.removeChild(j)}return f}},progress:{selector:"progress",update:function(d){d.progress()},support_check:document.createElement("progress").position!==undefined},slider:{selector:'input[type="range"]',depends:["metadata"],init:function(){fdSlider.onDomReady()},update:function(){fdSlider.onDomReady()},support_check:function(){var e=document.createElement("input"),f,d;e.setAttribute("type","range");e.value=":)";e.style.cssText="position:absolute;visibility:hidden;";document.body.appendChild(e);f=document.defaultView;d=e.style.WebkitAppearance!==undefined&&f.getComputedStyle&&f.getComputedStyle(e,null).WebkitAppearance!=="textfield"&&(e.offsetHeight!==0);document.body.removeChild(e);return d}}}},add:(function(){return{head:document.head||document.getElementsByTagName("head"),liblocation:(function(){var d=c('body script[src*="/pe-ap"]').attr("src");return d.substr(0,d.lastIndexOf("/")+1)}()),themecsslocation:(function(){var d=(wet_boew_theme!==null?c('head link[rel="stylesheet"][href*="'+wet_boew_theme.theme+'"]'):"");return d.length>0?d.attr("href").substr(0,d.attr("href").lastIndexOf("/")+1):"theme-not-found/"}()),staged:[],_load:function(g,e){var d=a.add.head,h=(e!==undefined?e:"wet-boew-dependency-loaded");if(c.inArray(g,this.staged)>-1){a.document.trigger({type:h,js:g});return this}setTimeout(function f(){if(typeof d.item!=="undefined"){if(!d[0]){setTimeout(f,25);return}d=d[0]}var i=document.createElement("script"),j=false;a.add.set(i,"async","async");i.onload=i.onreadystatechange=function(){if((i.readyState&&i.readyState!=="complete"&&i.readyState!=="loaded")||j){return false}i.onload=i.onreadystatechange=null;j=true;a.document.trigger({type:h,js:g})};i.src=g;if((a.ie>0&&a.ie<9)||!d.insertBefore){c(i).appendTo(c(d)).delay(100)}else{d.insertBefore(i,d.firstChild)}},0);this.staged[this.staged.length]=g;return this},_load_arr:function(k,g,j){var e=0,f,d,h=g+"-single";a.document.on(h,function(){e+=1;if(e===k.length){a.document.off(h);a.document.trigger({type:g,payload:j})}});if(k.length>0){for(f=0,d=k.length;f<d;f+=1){a.add._load(k[f],h)}}else{a.document.off(h);a.document.trigger({type:g,payload:j})}return this},set:function(f,d,e){f.setAttribute(d,e);return this},css:function(f){var e=a.add.head,d=document.createElement("link");a.add.set(d,"rel","stylesheet").set(d,"href",f);if((a.ie>0&&a.ie<10)||!e.insertBefore){c(d).appendTo(c(e)).attr("href",f)}else{e.insertBefore(d,e.firstChild)}return this},depends:function(g){var f=a.add.liblocation,e=c.map(g,function(d){return(/^http(s)?/i.test(d))?d:f+"dependencies/"+d+a.suffix+".js"});return e},language:function(e){var d=a.add.liblocation+"i18n/"+e+a.suffix+".js";a.add._load(d)},meta:function(e,f){var d;d=document.createElement("meta");a.add.set(d,"name",e).set(d,"content",f);a.add.head.appendChild(d);return this}}}()),wb_load:function(e,h){if(typeof e==="undefined"){e={}}if(typeof h==="undefined"){h="wb-loaded"}var q,u,r=(typeof wet_boew_properties!=="undefined"&&wet_boew_properties!==null)?wet_boew_properties:false,n=typeof e.plugins!=="undefined"?e.plugins:{},d,l=typeof e.global!=="undefined"?e.global:[],v,j=typeof e.dep!=="undefined"?e.dep:[],g=typeof e.poly!=="undefined"?e.poly:[],t=typeof e.checkdom!=="undefined"?e.checkdom:false,f=typeof e.polycheckdom!=="undefined"?e.polycheckdom:false,m=t?c('[class^="wet-boew-"]'):c(),k=(new Date()).getTime(),o="wb-polyinit-loaded-"+k,s="wb-pcalldeps-loaded-"+k,p="wb-polydeps-loaded-"+k;for(d in n){if(n.hasOwnProperty(d)){m=m.add(n[d].addClass("wet-boew-"+d))}}m.each(function(){var w=c(this),i=w.attr("class").split(" "),x=[];for(q=0,u=i.length;q!==u;q+=1){if(i[q].indexOf("wet-boew-")===0){x.push(i[q].substr(9).toLowerCase())}}w.attr("data-load",x.join(","));l.push.apply(l,x)});if(r){l.push(r.globals)}l=a.array.noduplicates(l);for(q=0,u=l.length;q!==u;q+=1){v=l[q];if(typeof a.fn[v]!=="undefined"){if(typeof a.fn[v].polyfills!=="undefined"){g.push.apply(g,a.fn[v].polyfills)}if(typeof a.fn[v].depends!=="undefined"){j.push.apply(j,a.fn[v].depends)}}}a.document.one(o,function(y){var w=a.polyfills.polyfill,A=y.payload[0],z=y.payload[1],i=[],x;for(q=0,u=z.length;q!==u;q+=1){w[z[q]].init()}for(x in A){if(A.hasOwnProperty(x)){j.push.apply(j,A[x]);i.push(x)}}a.document.one(s,function(){a.document.one(p,function(B){z=typeof B.payload!=="undefined"?B.payload[1]:[];for(q=0,u=z.length;q!==u;q+=1){w[z[q]].init()}m.each(function(){var C=c(this),D=C.attr("data-load").split(",");for(q=0,u=D.length;q!==u;q+=1){if(typeof a.fn[D[q]]!=="undefined"){a.fn[D[q]]._exec(C)}}});if(r){for(q=0,u=r.globals.length;q!==u;q+=1){a.fn[r.globals[q]]._exec(document)}}a.document.trigger(h)});if(i.length!==0){a.polyfills.polyload(i,p,false)}else{a.document.trigger(p)}});a.add._load_arr(a.add.depends(a.array.noduplicates(j)),s)});a.polyfills.polyload(a.array.noduplicates(g),o,f)},dance:function(){var d="wb-init-loaded";a.document.one(d,function(){a.resize(function(){var e=a.mobilecheck();if(a.mobile!==e){a.mobile=e;window.location.href=decodeURI(a.url(window.location.href).removehash())}})});a.wb_load({dep:["resize","equalheights"],checkdom:true,polycheckdom:true},d)}};window.pe=c.extend(true,a,b);return window.pe}(jQuery))._init();(function(b){var a=window.pe||{fn:{}};a.fn.archived={type:"plugin",_exec:function(e){if(pe.mobile){return}var c=b('<div class="archived" role="toolbar"><a class="archived-top-page" href="#archived" role="link">'+pe.dic.get("%archived-page")+"</a></div>"),d=b(window);d.on("scroll",function(){if(b(this).scrollTop()>10){c.fadeIn("normal").attr("aria-hidden","false")}else{c.fadeOut("normal").attr("aria-hidden","true")}});b(document).on("focusin",function(g){var f=b(g.target);if(c.attr("aria-hidden")==="false"&&(f.offset().top+f.outerHeight())<=(c.offset().top+c.outerHeight())){d.scrollTop(d.scrollTop()-c.outerHeight())}});if(d.scrollTop()<10||d.scrollTop()==="undefined"){c.fadeOut("normal").attr("aria-hidden","true")}else{c.fadeIn("normal").attr("aria-hidden","false")}pe.pagecontainer().append(c);return e}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.charts={type:"plugin",depends:["raphael","parserTable","charts"],polyfills:["detailssummary"],_exec:function(c){a.fn.chartsGraph.generate(c)}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.css3ie={type:"plugin",depends:(pe.ie>0&&pe.ie<9?["pie","resize"]:[]),_exec:function(j){if(pe.mobile||!(pe.ie>0&&pe.ie<9)){return}var l=b(".rounded, .pie-enhance"),g=false,k=b("#wb-core"),d=k.children("#wb-core-in"),i=k.css("margin-bottom"),h,c,f,e;f=function(){l.each(function(){PIE.attach(this)});return true};e=function(){l.each(function(){PIE.detach(this)});return false};if(window.PIE){l.filter(function(){return b(this).css("position")==="static"}).css("position","relative");if(pe.ie===7){h=document.body;c=h.getBoundingClientRect();if((c.left-c.right)/h.offsetWidth===-1){g=f()}else{k.css("margin-bottom",(d.offset().top+d.height())-(k.offset().top+k.height()))}}else{if(pe.ie===8){g=f()}else{g=f()}}pe.resize(function(){if(pe.ie===7){var m=document.body,n=m.getBoundingClientRect();if((n.left-n.right)/m.offsetWidth!==-1){g=e(l);k.css("margin-bottom",(d.offset().top+d.height())-(k.offset().top+k.height()))}else{if(!g){f()}k.css("margin-bottom",i)}}})}return j}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.deselectradio={type:"plugin",depends:[],_exec:function(f){var c=document.getElementsByTagName("input"),e=c.length,d;while(e--){d=c[e];if(d.type==="radio"&&d.className.indexOf("deselect-off")===-1){d.className+=" deselectable"+(d.checked?" checked":"")}}b(document).on("click vclick",'input[type="radio"].deselectable',function(){if(this.className.indexOf(" checked")!==-1){this.checked=false;this.className=this.className.replace(" checked","")}else{var i=this.getAttribute("name"),g,h,j;if(i!==undefined){g=document.getElementsByName(i);j=g.length;while(j--){h=g[j];if(h.className.indexOf(" checked")!==-1){h.className=h.className.replace(" checked","")}}this.className+=" checked"}}});return f}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.equalize={type:"plugin",depends:(pe.mobile?[]:["equalheights","resize"]),_exec:function(c){if(pe.mobile){return}b(".equalize").children().css("min-height","").parent().equalHeights(true);pe.resize(function(){b(".equalize").children().css("min-height","").parent().equalHeights(true)});return c}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.eventscalendar={type:"plugin",depends:["calendar","xregexp"],_exec:function(h){var u=new Date(),o=a.fn.calendar,l=u.getFullYear(),v=u.getMonth(),w=h.find(".year"),i=h.find(".month"),q,d,m,x,t,r,n,e,k,c,p,s,g,j,f;x=function(B){var A=!(b(B).hasClass("event-anchoring")),z={minDate:null,maxDate:null,iCount:0,list:[{a:1}]},y=null;if(B.find("ol").length>0){y=B.find("ol")}else{if(B.find("ul").length>0){y=B.find("ul")}}if(y.length>0){y.children("li").each(function(){var D=b(this),I=D.find("*:header:first"),M=I.text(),G=D.find("a").first(),K=G.attr("href"),E,F,C,O,N,L,J,H;if(!A){E=(D.attr("id")!==undefined)?D.attr("id"):t(6);D.attr("id",E);if(pe.ie>0){D.attr("tabindex","-1")}K="#"+E}F=new Date();C=D.find("time, span.datetime");if(C.length>1){O=(b(C[0]).get(0).nodeName.toLowerCase()==="time")?b(C[0]).attr("datetime").substr(0,10).split("-"):b(C[0]).attr("class").match(/datetime\s+\{date\:\s*(\d+-\d+-\d+)\}/)[1].substr(0,10).split("-");N=(b(C[1]).get(0).nodeName.toLowerCase()==="time")?b(C[1]).attr("datetime").substr(0,10).split("-"):b(C[1]).attr("class").match(/datetime\s+\{date\:\s*(\d+-\d+-\d+)\}/)[1].substr(0,10).split("-");F.setFullYear(O[0],O[1]-1,O[2]);for(J=0,H=pe.date.daysBetween(O,N)+1;J<=H;J+=1){if(z.minDate===null||F<z.minDate){z.minDate=F}if(z.maxDate===null||F>z.maxDate){z.maxDate=F}z.list[z.iCount]={title:M,date:new Date(F.getTime()),href:K};F=new Date(F.setDate(F.getDate()+1));if(!I.hasClass("filter-"+(F.getFullYear())+"-"+pe.string.pad(F.getMonth()+1,2))){I.addClass("filter-"+(F.getFullYear())+"-"+pe.string.pad(F.getMonth()+1,2))}z.iCount+=1}}else{if(C.length===1){L=(b(C[0]).get(0).nodeName.toLowerCase()==="time")?b(C[0]).attr("datetime").substr(0,10).split("-"):b(C[0]).attr("class").match(/datetime\s+\{date\:\s*(\d+-\d+-\d+)\}/)[1].substr(0,10).split("-");F.setFullYear(L[0],L[1]-1,L[2]);if(z.minDate===null||F<z.minDate){z.minDate=F}if(z.maxDate===null||F>z.maxDate){z.maxDate=F}z.list[z.iCount]={title:M,date:F,href:K};if(!I.hasClass("filter-"+(F.getFullYear())+"-"+pe.string.pad(F.getMonth()+1,2))){I.addClass("filter-"+(F.getFullYear())+"-"+pe.string.pad(F.getMonth()+1,2))}z.iCount+=1}}})}window.events=z;return z};t=function(A){var z="",y,B;y=function(){B=Math.floor(Math.random()*62);if(B<10){return B}if(B<36){return String.fromCharCode(B+55)}return String.fromCharCode(B+61)};while(z.length<A){z+=y()}return"id"+z};k=function(A){var z,y;switch(A.keyCode){case 13:case 32:case 38:case 40:pe.focus(A.data.details.find("a").first());return false;case 37:z=b(this).closest("li").index();y=b(this).closest("ol").children("li:lt("+z+")").children("a").last();pe.focus(y);return false;case 39:z=b(this).closest("li").index();y=b(this).closest("ol").children("li:gt("+z+")").children("a").first();pe.focus(y);return false;case 27:b(this).siblings(".ev-details").removeClass("ev-details").addClass("wb-invisible");return false}};e=function(B){var z,y,A;switch(B.keyCode){case 38:z=b(this).closest("li").index();A=b(this).closest("ul").children("li").length;pe.focus(b(this).closest("ul").children("li").eq((z-1)%A).children("a"));return false;case 40:z=b(this).closest("li").index();A=b(this).closest("ul").children("li").length;pe.focus(b(this).closest("ul").children("li").eq((z+1)%A).children("a"));return false;case 37:z=b(this).closest("li[id^=cal-]").index();y=b(this).closest("ol").children("li:lt("+z+")").children("a").last();pe.focus(y);return false;case 39:z=b(this).closest("li[id^=cal-]").index();y=b(this).closest("ol").children("li:gt("+z+")").children("a").first();pe.focus(y);return false;case 27:pe.focus(b(this).closest("li[id^=cal-]").children("a.calEvent"));return false}};c=function(y){y.data.details.dequeue();y.data.details.removeClass("wb-invisible");y.data.details.addClass("ev-details")};p=function(y){y.data.details.delay(100).queue(function(){b(this).removeClass("ev-details");b(this).addClass("wb-invisible");b(this).dequeue()})};s=function(y){y.data.details.removeClass("wb-invisible");y.data.details.addClass("ev-details")};g=function(y){setTimeout(function(){if(y.data.details.find("a:focus").length===0){y.data.details.removeClass("ev-details");y.data.details.addClass("wb-invisible")}},5)};j=function(y){setTimeout(function(){if(y.data.details.find("a:focus").length===0){y.data.details.removeClass("ev-details");y.data.details.addClass("wb-invisible")}},5)};f=function(y){y.data.details.removeClass("wb-invisible");y.data.details.addClass("ev-details")};r=function(H,F,K,A,z){var G,L,y,J,E,C,I,D,B;K.each(function(N,M){b(M).css("z-index",31-N)});for(G=0,L=z.length;G!==L;G+=1){y=new Date(z[G].date);if(y.getMonth()===F&&y.getFullYear()===H){J=b(K[y.getDate()-1]);E=J.children("div").html();if(J.children("a").length<1){J.empty();I=b('<a href="#ev-'+J.attr("id")+'" class="calEvent">'+E+"</a>");J.append(I);C=b('<ul class="wb-invisible"></ul>');I.on("keydown",{details:C},k);J.on("mouseover",{details:C},c);J.on("mouseout",{details:C},p);I.on("focus",{details:C},s);I.on("blur",{details:C},g);J.append(C)}else{C=J.find("ul.wb-invisible")}D=b('<li><a href="'+z[G].href+'">'+z[G].title+"</a></li>");if(pe.cssenabled){D.children("a").attr("tabindex","-1")}C.append(D);B=D.children("a");B.on("keydown",e);B.on("blur",{details:C},j);B.on("focus",{details:C},f)}}};n=function(z,A,y){b("."+y+" li.calendar-display-onshow").addClass("wb-invisible");b("."+y+" li.calendar-display-onshow").has(":header[class*=filter-"+z+"-"+pe.string.pad(parseInt(A,10)+1,2)+"]").removeClass("wb-invisible")};if(w.length>0&&i.length>0){l=w.text();if(i.hasClass("textformat")){q=b.inArray(i.text(),pe.dic.get("%calendar-monthNames"));v=q}else{v=i.text()-1}}d=x(h);m=b(h).attr("class").split(" ").slice(-1);if(b("#wb-main-in").css("padding-left")==="0px"){b("#"+m).css("margin-left","10px")}b("#"+m).on("calendarDisplayed",function(A,y,z,B){r(y,z,B,m,d.list);n(y,z,m)});o.create(m,l,v,true,d.minDate,d.maxDate);b("#"+m).attr("role","application")}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.feedback={type:"plugin",depends:[],_exec:function(j){var d=j.find("#feedback"),i=j.find("#web"),h=i.find("#access"),c=i.find("#mobile"),k=i.find("#computer"),m=j.find("#contact-coord"),n=m.find("#contact1"),l=m.find("#contact2"),g=m.find("#info"),f=document.referrer,e=pe.url(window.location.href).params,o;d.attr("aria-controls","web").on("keyup click load",function(p){o=(p.type==="load");if(!o&&b(this).val()==="web"){i.attr("aria-hidden","false").show("slow")}else{i.attr("aria-hidden","true").hide((o?"":"slow"))}});if(e.submit===undefined&&e.feedback!==undefined){d.find('option[value="'+e.feedback+'"]').attr("selected","selected")}d.trigger("load");h.attr("aria-controls","mobile computer").on("keyup click load",function(p){o=(p.type==="load");if(!o&&h.val()==="mobile"){c.attr("aria-hidden","false").show("slow");k.attr("aria-hidden","true").hide("slow")}else{k.attr("aria-hidden","false").show((o?"":"slow"));c.attr("aria-hidden","true").hide((o?"":"slow"))}}).trigger("load");n.on("keyup click load",function(p){o=(p.type==="load");if(!o&&b(this).val()==="yes"){g.attr("aria-hidden","false").show("slow")}else{if(o||((b(this).val()==="no"||b(this).val()===null)&&(l.val()==="no"||l.val()===null))){g.attr("aria-hidden","true").hide((o?"":"slow"))}}}).trigger("click");l.on("keyup click load",function(p){o=(p.type==="load");if(!o&&b(this).val()==="yes"){g.attr("aria-hidden","false").show("slow")}else{if(o||((b(this).val()==="no"||b(this).val()===null)&&(n.val()==="no"||n.val()===null))){g.attr("aria-hidden","true").hide((o?"":"slow"))}}}).trigger("load");i.find("#page").attr("value",f);j.find("input[type=reset]").on("click",function(){d.trigger("load");h.trigger("load");n.trigger("load");l.trigger("load")});return j}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.footnotes={type:"plugin",_exec:function(e){var c=b("#wb-main-in").not(".wet-boew-footnotes"),d=e.find("dd").attr("tabindex","-1");d.each(function(){var g=b(this),f=this.id+"-dt";g.attr("aria-labelledby",f).prev().attr("id",f)});d.find("p.footnote-return a").each(function(){var f=b(this);f.find("span span").remove();f.off("click vclick").on("click vclick",function(){var g=c.find(b(this).attr("href")).find("a");if(pe.mobile){b.mobile.silentScroll(pe.focus(g).offset().top)}else{pe.focus(g)}return false})});c.find("sup a.footnote-link").on("click vclick",function(){var f=e.find(b(this).attr("href"));f.find("p.footnote-return a").attr("href","#"+this.parentNode.id).off("click vclick").on("click vclick",function(){var g=c.find(b(this).attr("href")).find("a");if(pe.mobile===true){b.mobile.silentScroll(pe.focus(g).offset().top)}else{pe.focus(g)}return false});if(pe.mobile){b.mobile.silentScroll(pe.focus(f).offset().top)}else{pe.focus(f)}if(pe.ie>0&&pe.ie<8){f.addClass("footnote-focus").one("blur",function(){b(this).removeClass("footnote-focus")})}return false})}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.formvalid={type:"plugin",depends:["validate","validateAdditional","metadata"],_exec:function(p){var e=p.find("form"),s=e.get(0),k=s.getElementsByTagName("label"),l=k.length,m=s.getElementsByTagName("input"),d=b(m),i=m.length,r,n,g,q=false,o=e.find("[required]").attr("aria-required","true"),j="errors-"+(e.attr("id")===undefined?"default":e.attr("id")),c,f=pe.language.toLowerCase();if(f!=="en"){if(f==="pt-br"){f="pt_BR"}else{if(f==="pt"||f==="pt-pt"){f="pt_PT"}else{if(f==="zh-tw"){f="zh_TW"}else{pe.add._load(pe.add.liblocation+"i18n/formvalid/messages_"+f+pe.suffix+".js")}}}}if(f==="de"||f==="nl"||f==="pr_PT"||f==="pr_BR"){pe.add._load(pe.add.liblocation+"i18n/formvalid/methods_"+f+pe.suffix+".js")}n=l;while(n--){k[n].innerHTML+=" "}function h(x,v,w){var t=x.attr("class"),y=(t!==undefined?t.search(/validate\s?:\s?\{/):-1),u;if(y>-1){if(t.search("/"+v+"\\s?:/")===-1){u=t.substring(y,t.indexOf("{",y)+1);x.attr("class",t.replace(u,u+v+":"+w+", "))}}else{x.addClass("{validate:{"+v+":"+w+"}}")}return}n=i;if(n!==0&&m[0].hasAttribute!==undefined){while(n--){r=m[n];if(g){if(r.hasAttribute("pattern")){r.removeAttribute("pattern")}}else{b(r).removeAttr("pattern")}}}if(pe.ie>0&&pe.ie<9){o.removeAttr("required").each(function(){h(b(this),"required","true")});d.filter('[type="date"]').each(function(){var v=b(this),t=v.wrap("<div/>").parent(),u=b(t.html().replace("type="+v.attr("type"),"type=text"));t.replaceWith(u)})}if(pe.mobile){s.setAttribute("data-ajax","false");d.filter('[type="checkbox"]').closest("fieldset").attr("data-role","controlgroup")}c=e.validate({meta:"validate",focusInvalid:false,errorElement:"strong",errorPlacement:function(t,u){t.appendTo(e.find('label[for="'+u.attr("id")+'"]'))},showErrors:function(y,z){this.defaultShowErrors();var A=e.find("strong.error").filter(":not(:hidden)"),x=e.find("input.error, select.error, textarea.error"),w=e.find("#"+j),v='<span class="prefix">'+pe.dic.get("%error")+" ",u=pe.dic.get("%colon")+" </span>",t;e.find('[aria-invalid="true"]').removeAttr("aria-invalid");if(A.length>0){if(w.length===0){w=b('<div id="'+j+'" class="errorContainer" role="alert" tabindex="-1"/>').prependTo(e)}else{w.empty()}t="<p>"+pe.dic.get("%form-not-submitted")+A.length+(A.length!==1?pe.dic.get("%errors-found"):pe.dic.get("%error-found"))+"</p><ul>";x.attr("aria-invalid","true");A.each(function(C){var E=b(this),D=v+(C+1)+u,B=E.closest("label");E.find("span.prefix").detach();t+='<li><a href="#'+B.attr("for")+'">'+D+B.find(".field-name").html()+" - "+this.innerHTML+"</a></li>";E.prepend(D)});t+="</ul>";w.append(t);if(q){pe.focus(w)}if(pe.ie===0||pe.ie>7){e.find(".errorContainer a").on("click vclick",function(){var B=pe.focus(b(b(this).attr("href"))).prev().offset().top;if(pe.mobile){b.mobile.silentScroll(B)}else{b(document).scrollTop(B)}return false})}q=false}else{w.detach()}},invalidHandler:function(u,t){q=true}});d.filter('[type="reset"]').on("click vclick touchstart",function(){c.resetForm();var t=e.find("#"+j);if(t.length>0){t.empty()}e.find('[aria-invalid="true"]').removeAttr("aria-invalid")});return p}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.langselect={type:"plugin",_exec:function(c){c.on("click",function(){var d=window.location.toString();if((d.search(/_f\.htm/)>-1)||(d.search(/-fra\./)>-1)){d=d.replace(/_f\./,"_e.").replace(/-fra\./,"-eng.")}else{d=d.replace(/_e\./,"_f.").replace(/-eng\./,"-fra.")}if(d.search(/lang=eng/)>-1){d=d.replace(/lang=eng/,"lang=fra")}else{d=d.replace(/lang=fra/,"lang=eng")}window.location=d;return false})}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.lightbox={type:"plugin",depends:["colorbox","metadata"],groupindex:0,_exec:function(h){var c,e={},j,l,d,f,m,i,k,g=false;c={transition:"elastic",loop:true,current:pe.dic.get("%lb-current"),previous:pe.dic.get("%lb-prev"),next:pe.dic.get("%lb-next"),close:pe.dic.get("%close"),xhrError:pe.dic.get("%lb-xhr-error"),imgError:pe.dic.get("%lb-img-error"),maxWidth:"100%",maxHeight:"100%",slideshowStart:pe.dic.get("%start")+" "+pe.dic.get("%lb-slideshow"),slideshowStop:pe.dic.get("%stop")+" "+pe.dic.get("%lb-slideshow"),slideshow:false,slideshowAuto:false,onLoad:function(){var o=d.find("#cboxTitle"),n=o.next();o.addClass("wb-hide");n.addClass("wb-hide")},onComplete:function(){var o=d.find("#cboxTitle"),n=o.next();f=d.find("#cboxLoadedContent").attr("tabindex","0");f.attr("aria-label",o.text()+" "+n.text());if(f.children(".cboxPhoto").length===0){f.attr("role","document")}else{f.children().attr("alt",o.text())}o.removeClass("wb-hide");n.removeClass("wb-hide");pe.focus(f);g=true},onClosed:function(){g=false}};j={transition:(h.hasClass("transition-fade")?"fade":(h.hasClass("transition-none")?"none":undefined)),loop:h.hasClass("loop-none")?false:undefined,slideshow:h.hasClass("slideshow")?true:undefined,slideshowAuto:h.hasClass("slideshow-auto")?true:undefined};b.metadata.setType("attr","data-wet-boew");if(typeof wet_boew_lightbox!=="undefined"&&wet_boew_lightbox!==null){b.extend(c,wet_boew_lightbox,j,h.metadata())}else{b.extend(c,j,h.metadata())}l=h.find(".lb-item, .lb-gallery, .lb-hidden-gallery").on("vclick",function(){b.colorbox.launch(this)});b.extend(e,c,{inline:"true"});l.filter(".lb-item").attr("aria-haspopup","true").each(function(){var n=b(this);n.colorbox(n.attr("href").substring(0,1)!=="#"?c:e)});l.filter(".lb-gallery, .lb-hidden-gallery").each(function(){var n={rel:"group"+(pe.fn.lightbox.groupindex+=1)};b.extend(c,n);b.extend(e,n);b(this).find(".lb-item-gal").attr("aria-haspopup","true").each(function(){var o=b(this);o.colorbox(o.attr("href").substring(0,1)!=="#"?c:e)})});d=pe.main.find("#colorbox #cboxContent").attr("role","dialog");d.find("#cboxNext, #cboxPrevious, #cboxClose").attr({tabindex:"0",role:"button","aria-controls":"cboxLoadedContent"});m=d.find("#cboxNext");i=d.find("#cboxPrevious");k=d.find("#cboxClose");d.on("keydown",function(o){var n=o.target.id;if(!(o.ctrlKey||o.altKey||o.metaKey)){if(o.keyCode===9){if(o.shiftKey&&n==="cboxLoadedContent"){pe.focus(k);o.preventDefault()}else{if(!o.shiftKey&&n==="cboxClose"){pe.focus(f);o.preventDefault()}}}else{if(o.keyCode===13||o.keyCode===32){if(n==="cboxLoadedContent"||n==="cboxNext"){b.colorbox.next();o.preventDefault()}else{if(n==="cboxPrevious"){b.colorbox.prev();o.preventDefault()}else{if(n==="cboxClose"){b.colorbox.close();o.preventDefault()}}}}}}})}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.menubar={type:"plugin",depends:(a.mobile?[]:["resize","equalheights","hoverintent","outside"]),_exec:function(j){if(pe.mobile){return}var d,h,m=j,f=m.parent(),p,l,g,c,e,o=pe.dic.get("%sub-menu-help"),n,k,i;e=function(s){g();var r=b(s).closest("li"),q=r.find(".mb-sm");q.attr({"aria-expanded":"true","aria-hidden":"false"}).toggleClass("mb-sm mb-sm-open");if((Math.floor(q.offset().left+q.width())-Math.floor(h.offset().left+h.width()))>=-1){q.css("right","0px")}r.addClass("mb-active");return};l=function(s){var r=b(s),q=r.closest("li").find(".mb-sm-open");if(pe.cssenabled){q.find("a").attr("tabindex","0")}r.trigger("item-next");return};c=function(s){var r=b(s).closest("li"),q=r.find(".mb-sm-open");q.attr({"aria-expanded":"false","aria-hidden":"true"}).toggleClass("mb-sm mb-sm-open").css("right","");if(pe.cssenabled){q.find("a").attr("tabindex","-1")}r.removeClass("mb-active");return};g=function(){d.find(".mb-sm-open").each(function(){var q=b(this).closest("li");return c(q)});return};p=function(){var q=d.children("li:last"),r=(q.offset().top+q.outerHeight())-m.offset().top;return m.css("min-height",r)};h=m.children("div");d=h.children("ul");m.detach();m.attr("role","application");n=m.find("> div > ul").attr("role","menubar").get(0).getElementsByTagName("*");i=n.length;while(i--){k=n[i];if(k.tagName.toLowerCase()==="a"){k.setAttribute("role","menuitem")}else{k.setAttribute("role","presentation")}}pe.resize(p);m.find("ul.mb-menu > li").find("a:eq(0)").each(function(r,t){var q=b(t).addClass("knav-"+r+"-0-0"),s=q.closest("li").find(".mb-sm");if(s.length>0){q.attr("aria-haspopup","true").addClass("mb-has-sm").wrapInner('<span class="expandicon"><span class="sublink"></span></span>');s.attr({role:"menu","aria-expanded":"false","aria-hidden":"true"}).find(":has(:header) ul").attr("role","menu");q.append('<span class="wb-invisible">'+o+"</span>");q.closest("li").hoverIntent({over:function(){return e(this)},out:function(){return c(this)},timeout:500});s.find("h3 a, h4 a, div.top-level > a, li.top-level a, div.mb-main-link > a").each(function(u){var w=b(this),v=w.parent();this.className+=" knav-"+r+"-"+(u+1)+"-0";if(v.is("h3, h4")){w.parent().next("ul").find("a").each(function(x){this.className+=" knav-"+r+"-"+(u+1)+"-"+(x+1)})}return});s.find("> ul li, > div > ul li").filter(":not(.top-level)").children("a").each(function(u){this.className+=" knav-"+r+"-0-"+(u+1)})}});if(pe.cssenabled){m.find(".mb-sm a").attr("tabindex","-1")}m.appendTo(f);p();m.find(".mb-sm").on("click vclick touchstart",function(q){if(q.stopPropagation){q.stopPropagation()}else{q.cancelBubble=true}}).parent().on("click vclick touchstart","> :header a",function(){if(b(this).closest("li").hasClass("mb-active")){c(this)}else{e(this)}return false});m.on("keydown focusin section-next section-previous item-next item-previous close","li",function(z){var v,r,D=b(z.target),x=m.find(".mb-active"),C,A=z.keyCode,B=z.type,w,y,s,u,t,q;C=b.map(/\bknav-(\d+)-(\d+)-(\d+)/.exec(D.attr("class")),function(E){return parseInt(E,10)});if(B==="keydown"){if(!(z.ctrlKey||z.altKey||z.metaKey)){if(A===13){if(C[2]===0&&C[3]===0){l(z.target);return false}}else{if(A===27){D.trigger("close");return false}else{if(A===32){if(C[2]===0&&C[3]===0){l(z.target)}else{window.location=D.attr("href")}return false}else{if(A===37){D.trigger("section-previous");return false}else{if(A===38){if(C[2]===0&&C[3]===0){l(z.target)}else{D.trigger("item-previous")}return false}else{if(A===39){D.trigger("section-next");return false}else{if(A===40){if(C[2]===0&&C[3]===0){l(z.target)}else{D.trigger("item-next")}return false}else{if((A>47&&A<58)||(A>64&&A<91)){w=String.fromCharCode(A).toLowerCase();y=(C[2]!==0||C[3]!==0);s=D.text();u=x.find(".mb-sm-open a").filter(function(){var E=b(this);return(E.text().substring(0,1).toLowerCase()===w||(y&&E.text()===s))});if(u.length>0){if(y){u.each(function(E){if(b(this).text()===s){t=E;return false}});if(t<(u.length-1)){pe.focus(u.eq(t+1));return false}}pe.focus(u.eq(0))}return false}}}}}}}}}}else{if(B==="close"){pe.focus(x.find(".knav-"+C[1]+"-0-0"));setTimeout(function(){return g()},5)}else{if(B==="section-previous"){q=!!C[2]<<1|!!C[3];switch(q){case 0:case 1:r=m.find(".knav-"+(C[1]-1)+"-0-0");if(r.length>0){pe.focus(r)}else{pe.focus(m.find("ul.mb-menu > li:last").find("a:eq(0)"))}break;case 2:case 3:r=x.find(".knav-"+(C[1])+"-"+(C[2]-1)+"-0");if(r.length>0&&C[2]>1){pe.focus(r)}else{r=m.find(".knav-"+(C[1]-1)+"-0-0");if(r.length>0){pe.focus(r)}else{pe.focus(m.find("ul.mb-menu > li:last").find("a:eq(0)"))}}break}return false}else{if(B==="section-next"){q=!!C[2]<<1|!!C[3];switch(q){case 0:case 1:v=m.find(".knav-"+(C[1]+1)+"-0-0");if(v.length>0){pe.focus(v)}else{pe.focus(m.find(".knav-0-0-0"))}break;case 2:case 3:v=x.find(".knav-"+(C[1])+"-"+(C[2]+1)+"-0");if(v.length>0){pe.focus(v)}else{v=m.find(".knav-"+(C[1]+1)+"-0-0");if(v.length>0){pe.focus(v)}else{pe.focus(m.find(".knav-0-0-0"))}}break}return false}else{if(B==="item-next"){v=x.find(".knav-"+C[1]+"-"+(C[2])+"-"+(C[3]+1));if(v.length===0){v=x.find(".knav-"+C[1]+"-"+(C[2]+1)+"-0")}if(v.length!==0){pe.focus(v)}else{pe.focus(x.find(".knav-"+C[1]+"-0-1, .knav-"+C[1]+"-1-0").first())}return false}else{if(B==="item-previous"){r=((C[2]!==0&&C[3]!==0)||(C[2]===0&&C[3]>1)?x.find(".knav-"+C[1]+"-"+(C[2])+"-"+(C[3]-1)):"");if(r.length===0){r=(C[2]!==0?x.find("a").filter('[class*="knav-'+C[1]+"-"+(C[2]-1)+'-"]:not(.knav-'+C[1]+"-0-0)").last():"")}if(r.length!==0){pe.focus(r)}else{pe.focus(x.find('[class*="knav-"]').last())}return false}else{if(B==="focusin"&&C[2]===0&&C[3]===0){g();if(D.find(".expandicon").length>0){e(z.target)}}}}}}}}});b(document).on("click vclick touchstart",function(){m.trigger("focusoutside")});m.on("focusoutside",function(){return g()});return m}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.multimedia={type:"plugin",polyfills:["progress"],icons:b('<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><g id="play"><path d="M 14.299775,10.18788 5.7002247,4.610169 5.7867772,15.389831 14.299775,10.18788 z" /></g><g id="pause" style="display:inline"><path d="M 5.3405667,4.610169 5.3405667,15.389831 8.9169966,15.389831 8.9169966,4.610169 5.3405667,4.610169 z M 11.083003,4.610169 11.083003,15.389831 14.659433,15.389831 14.659433,4.610169 11.083003,4.610169 z" /></g><g id="rewind" transform="matrix(-1,0,0,-1,20,20)"><path d="M 8.4182018,15.389831 16.924761,10.187472 8.3244655,4.610169 8.3478995,8.03154 3.0752388,4.610169 3.168975,15.389831 8.3947677,12.202801 8.4182018,15.389831 z" /></g><g id="ff"><path d="M 16.929004,10.187879 8.3294498,4.610169 8.4160023,15.389831 16.929004,10.187879 z M 11.67055,10.187879 3.0709963,4.610169 3.157549,15.389831 11.67055,10.187879 z" /></g><g id="mute_off"><path d="M 12.476712,4.599486 9.3409347,7.735268 5.5431537,7.735268 5.5431537,12.22989 9.3235137,12.22989 12.476712,15.400514 12.476712,4.599486 z"/></g><g id="mute_on"><path d="M 12.466782,4.5994858 9.3309993,7.7352682 5.5332183,7.7352682 5.5332183,12.22989 9.3135782,12.22989 12.466782,15.400514 12.466782,4.5994858 z" /><path d="M 10,1.75 C 5.454363,1.75 1.78125,5.4543629 1.78125,10 1.78125,14.545637 5.454363,18.25 10,18.25 14.545637,18.25 18.25,14.545637 18.25,10 18.25,5.4543629 14.545637,1.75 10,1.75 z M 10,3.25 C 11.602784,3.25 13.062493,3.7896774 14.21875,4.71875 L 4.71875,14.21875 C 3.8057703,13.065541 3.28125,11.593619 3.28125,10 3.28125,6.2650231 6.2650232,3.25 10,3.25 z M 15.25,5.8125 C 16.169282,6.9656383 16.75,8.4065929 16.75,10 16.75,13.734977 13.734977,16.75 10,16.75 8.4063811,16.75 6.9279359,16.200753 5.78125,15.28125 L 15.25,5.8125 z"/></g><g id="cc"><path d="M 9.2241211,6.4042969 9.2241211,8.4003906 C 8.8914318,8.1725317 8.5564712,8.0039121 8.2192383,7.8945312 7.88655,7.7851623 7.5401961,7.7304748 7.1801758,7.7304687 6.4965774,7.7304748 5.9633748,7.9309955 5.5805664,8.3320313 5.2023079,8.7285207 5.0131804,9.2845097 5.0131836,10 5.0131804,10.715498 5.2023079,11.273766 5.5805664,11.674805 5.9633748,12.071291 6.4965774,12.269533 7.1801758,12.269531 7.5629826,12.269533 7.9252869,12.212567 8.2670898,12.098633 8.6134373,11.984702 8.9324474,11.816083 9.2241211,11.592773 L 9.2241211,13.595703 C 8.8413016,13.736979 8.4516536,13.841797 8.0551758,13.910156 7.6632429,13.983073 7.2690376,14.019531 6.8725586,14.019531 5.4916956,14.019531 4.4116185,13.666341 3.6323242,12.959961 2.8530264,12.249025 2.4633783,11.262372 2.4633789,10 2.4633783,8.7376353 2.8530264,7.7532613 3.6323242,7.046875 4.4116185,6.335945 5.4916956,5.9804766 6.8725586,5.9804687 7.2735948,5.9804766 7.6678002,6.0169349 8.0551758,6.0898437 8.4470963,6.1582108 8.8367443,6.2630284 9.2241211,6.4042969" /><path d="M 17.536621,6.4042969 17.536621,8.4003906 C 17.203932,8.1725317 16.868971,8.0039121 16.531738,7.8945312 16.19905,7.7851623 15.852696,7.7304748 15.492676,7.7304687 14.809077,7.7304748 14.275875,7.9309955 13.893066,8.3320313 13.514808,8.7285207 13.32568,9.2845097 13.325684,10 13.32568,10.715498 13.514808,11.273766 13.893066,11.674805 14.275875,12.071291 14.809077,12.269533 15.492676,12.269531 15.875483,12.269533 16.237787,12.212567 16.57959,12.098633 16.925937,11.984702 17.244947,11.816083 17.536621,11.592773 L 17.536621,13.595703 C 17.153802,13.736979 16.764154,13.841797 16.367676,13.910156 15.975743,13.983073 15.581538,14.019531 15.185059,14.019531 13.804196,14.019531 12.724119,13.666341 11.944824,12.959961 11.165526,12.249025 10.775878,11.262372 10.775879,10 10.775878,8.7376353 11.165526,7.7532613 11.944824,7.046875 12.724119,6.335945 13.804196,5.9804766 15.185059,5.9804687 15.586095,5.9804766 15.9803,6.0169349 16.367676,6.0898437 16.759596,6.1582108 17.149244,6.2630284 17.536621,6.4042969" /></g><g id="overlay"><rect rx="3" ry="3" width="20" height="20" style="fill:#000;opacity:0.4"/><polygon points="5,5 15,10, 5,15" fill="#FFF" style="fill:#FFF;" /></g><g id="loading"><rect rx="3" ry="3" width="20" height="20" style="fill:#000;opacity:0.4"/><g id="spinner" style="stroke-linecap:round;stroke:#FFF;stroke-width:1.5px" transform="translate(9.8,9.8)"><line x1="0" y1="5" x2="0" y2="7" transform="rotate(0,0,0)" opacity="0.09"/><line x1="0" y1="5" x2="0" y2="7" transform="rotate(30,0,0)" opacity="0.17"/><line x1="0" y1="5" x2="0" y2="7" transform="rotate(60,0,0)" opacity="0.25"/><line x1="0" y1="5" x2="0" y2="7" transform="rotate(90,0,0)" opacity="0.33"/><line x1="0" y1="5" x2="0" y2="7" transform="rotate(120,0,0)" opacity="0.42"/><line x1="0" y1="5" x2="0" y2="7" transform="rotate(150,0,0)" opacity="0.50"/><line x1="0" y1="5" x2="0" y2="7" transform="rotate(180,0,0)" opacity="0.58"/><line x1="0" y1="5" x2="0" y2="7" transform="rotate(210,0,0)" opacity="0.66"/><line x1="0" y1="5" x2="0" y2="7" transform="rotate(240,0,0)" opacity="0.75"/><line x1="0" y1="5" x2="0" y2="7" transform="rotate(270,0,0)" opacity="0.83"/><line x1="0" y1="5" x2="0" y2="7" transform="rotate(300,0,0)" opacity="0.91"/><line x1="0" y1="5" x2="0" y2="7" transform="rotate(330,0,0)" opacity="1"/></g></g></svg>'),get_image:function(i,h,c,e){var d,f;c=c!==undefined?c:20;e=e!==undefined?e:20;if(pe.svg){d=a.fn.multimedia.icons.clone();d.attr({height:c,width:e});d.prepend("<title>"+h+"</title>");d.children(':not(g[id="'+i+'"])').remove();f=d.children("g");f.removeAttr("id");if(c!==20||e!==20){f.attr("transform","scale("+e/20+","+c/20+")")}return d.attr({role:"img","aria-label":h})}return b('<img src="'+a.add.liblocation+"images/multimedia/"+i+'.png" alt="'+h+'" height="'+c+'" width="'+e+'" />')},_exec:function(p){var d,m=false,f=p.children("audio, video").eq(0),l=f.is("video")?"video":"audio",g,e=l==="video"?f.attr("width"):"0",s=l==="video"?f.attr("height"):"0",j,k=true,c,r,o="video/mp4",i="audio/mp3",n=a.add.liblocation+"binary/multimedia.swf?seed="+Math.random(),q,h;if(p.attr("id")!==undefined){d=p.attr("id")}else{d="wet-boew-mediaplayer"+p.index();p.attr("id",d)}if(f.attr("id")!==undefined){g=f.attr("id")}else{g=d+"-media";f.attr("id",g)}if(f.children('track[kind="captions"]')){j=f.children('track[kind="captions"]').attr("src")}if(f.get(0).error===null&&f.get(0).currentSrc!==""&&f.get(0).currentSrc!==undefined){m=true}else{q="id="+p.attr("id");if(l==="video"){r='<img src="'+f.attr("poster")+'" width="'+e+'" height="'+s+'" alt="'+f.attr("title")+'"/>';if(k&&f.find("source").filter('[type="'+o+'"]').length>0){q+="&height="+f.height()+"&width="+f.width()+"&posterimg="+encodeURI(a.url(f.attr("poster")).source)+"&media="+encodeURI(a.url(f.find("source").filter('[type="'+o+'"]').attr("src")).source);m=true}}else{if(k&&l==="audio"&&f.find("source").filter('[type="'+i+'"]').length>0){q+="&media="+a.url(f.find("source").filter('[type="'+i+'"]').attr("src")).source;m=true}else{m=false}}if(m){c=b('<object play="" pause="" id="'+g+'" width="'+e+'" height="'+s+'" class="'+l+'" type="application/x-shockwave-flash" data="'+n+'" tabindex="-1"><param name="movie" value="'+n+'"/><param name="flashvars" value="'+q+'"/><param name="allowScriptAccess" value="always"/><param name="bgcolor" value="#000000"/><param name="wmode" value="opaque"/>'+(typeof r==="string"?r:""));f.before(c);f.remove();f=c}else{if(r!==undefined){f.before(b(r));f.remove()}}}if(m){h=f.is("object")?f.children(":first-child"):f;b.extend(p.get(0),{object:f.get(0),evtmgr:h},a.fn.multimedia._intf);if(l==="video"){f.before(b('<button class="wb-mm-overlay"/>').append(a.fn.multimedia.get_image("overlay",a.dic.get("%play"),100,100)).attr("title",a.dic.get("%play")))}f.after(a.fn.multimedia._get_ui(g,l==="video"?true:false));if(b("html").hasClass("polyfill-progress")){p.find("progress").progress()}b(window).on("resize",{media:f,ratio:s/e},function(u){var t=u.data.media.parent().width()*u.data.ratio;u.data.media.height(t);f.parent().find(".wb-mm-overlay").height(t)});b(window).trigger("resize");p.on("click",function(w){var t=b(w.target),v,u;if(t.hasClass("playpause")||w.target===this.object||t.hasClass("wb-mm-overlay")){if(this.getPaused()===true){this.play()}else{this.pause()}}if(t.hasClass("cc")){this.setCaptionsVisible(!this.getCaptionsVisible())}if(t.hasClass("mute")){this.setMuted(!this.getMuted())}if(t.is("progress")||t.hasClass("wb-progress-inner")||t.hasClass("wb-progress-outer")){v=(w.pageX-t.offset().left)/t.width();this.setCurrentTime(this.getDuration()*v)}if(t.hasClass("rewind")||t.hasClass("fastforward")){u=this.getDuration()*0.05;if(t.hasClass("rewind")){u*=-1}this.setCurrentTime(this.getCurrentTime()+u)}});p.on("keydown",function(w){var u=b(this),t=0;if((w.which===32||w.which===13)&&w.target===this.object){u.find(".wb-mm-controls .playpause").click();return false}if(w.keyCode===37){u.find(".wb-mm-controls .rewind").click();return false}if(w.keyCode===39){u.find(".wb-mm-controls .fastforward").click();return false}if(w.keyCode===38){t=Math.round(this.getVolume()*10)/10+0.1;t=t<1?t:1;this.setVolume(t);return false}if(w.keyCode===40){t=Math.round(this.getVolume()*10)/10-0.1;t=t>0?t:0;this.setVolume(t);return false}return true});h.on("timeupdate seeked canplay play volumechange pause ended waiting captionsloaded captionsloadfailed captionsvisiblechange progress",b.proxy(function(x){var v=b(this),t,w,y,u;switch(x.type){case"play":t=v.find(".playpause");t.empty().append(a.fn.multimedia.get_image("pause",a.dic.get("%pause")));t.attr("title",a.dic.get("%pause"));v.find(".wb-mm-overlay").hide();break;case"pause":case"ended":t=v.find(".playpause");t.empty().append(a.fn.multimedia.get_image("play",a.dic.get("%play")));t.attr("title",a.dic.get("%play"));y=v.find(".wb-mm-overlay");y.empty().append(a.fn.multimedia.get_image("overlay",a.dic.get("%play"),100,100)).attr("title",a.dic.get("%play"));y.show();clearTimeout(this.loading);this.loading=false;break;case"volumechange":t=v.find(".mute").empty();if(this.getMuted()){t.append(a.fn.multimedia.get_image("mute_on",a.dic.get("%mute","disable")));t.attr("title",a.dic.get("%mute","disable"))}else{t.append(a.fn.multimedia.get_image("mute_off",a.dic.get("%mute","enable")));t.attr("title",a.dic.get("%mute","enable"))}break;case"captionsvisiblechange":t=v.find(".cc").empty();if(this.getCaptionsVisible()){t.append(a.fn.multimedia.get_image("cc",a.dic.get("%closed-caption","disable")));t.attr("title",a.dic.get("%closed-caption","disable"))}else{t.append(a.fn.multimedia.get_image("cc",a.dic.get("%closed-caption","enable")));t.attr("title",a.dic.get("%closed-caption","enable"))}break;case"timeupdate":w=Math.round(this.getCurrentTime()/this.getDuration()*1000)/10;u=v.find(".wb-mm-timeline progress");u.attr("value",w);v.find(".wb-mm-timeline-current span:not(.wb-invisible)").text(a.fn.multimedia._format_time(this.getCurrentTime()));v.find(".wb-mm-timeline-total span:not(.wb-invisible)").text(a.fn.multimedia._format_time(this.getDuration()));if(b.data(x.target,"captions")!==undefined){a.fn.multimedia._update_captions(v.find(".wb-mm-captionsarea"),this.getCurrentTime(),b.data(x.target,"captions"))}break;case"captionsloaded":b.data(x.target,"captions",x.captions);break;case"captionsloadfailed":v.find(".wb-mm-captionsarea").append("<p>"+a.dic.get("%captionserror")+"</p>");break;case"waiting":if(this.getPaused()===false&&!this.loading){this.loading=setTimeout(function(){y=v.find(".wb-mm-overlay");y.empty().append(a.fn.multimedia._get_loading_ind(this,"loading",a.dic.get("%loading"),100,100));y.show()},500)}break;case"canplay":clearTimeout(this.loading);this.loading=false;if(this.getPaused()===false){y=v.find(".wb-mm-overlay");y.empty().append(a.fn.multimedia.get_image("overlay",a.dic.get("%play"),100,100)).attr("title",a.dic.get("%play"));y.hide()}break;case"progress":if(this.getWaiting()===true){if(this.getBuffering()===false){this.setBuffering(true);h.trigger("waiting")}}else{if(this.getBuffering()===true){this.setBuffering(false);h.trigger("canplay")}}this.setPreviousTime(this.getCurrentTime());break}},p.get(0)));if(j!==undefined){f.after(b('<div class="wb-mm-captionsarea"/>').hide());a.fn.multimedia._load_captions(h,j)}}return p},_get_loading_ind:function(d,c,i,j,g){var f=a.fn.multimedia.get_image(c,i,j,g).attr("title",i),e=0,k,l;if(f.is("svg")){k=f.find("#spinner");l=k.attr("transform");clearInterval(d.spin);d.spin=setInterval(function(){k.attr("transform",l+",rotate("+(e+=20)+" 0 0)")},50)}return f},_get_ui:function(h,g){var e=b('<div class="wb-mm-controls">'),d=b('<div class="wb-mm-controls-start">'),f=b('<div class="wb-mm-timeline" tabindex="0"><p class="wb-mm-timeline-current"><span class="wb-invisible">'+a.dic.get("%position")+'</span><span>00:00:00</span></p><p class="wb-mm-timeline-total"><span class="wb-invisible">'+a.dic.get("%duration")+'</span><span>--:--:--</span></p><p class="wb-mm-timeline-inner"><span class="wb-invisible">'+a.dic.get("%percentage")+'</span><progress value="0" max="100" aria-live="off" /></p>'),c=b('<div class="wb-mm-controls-end">');d.append(b("<button>").attr({type:"button","class":"rewind","aria-controls":h,title:a.dic.get("%rewind")}).append(a.fn.multimedia.get_image("rewind",a.dic.get("%rewind"))));d.append(b("<button>").attr({type:"button","class":"playpause","aria-controls":h,title:a.dic.get("%play")}).append(a.fn.multimedia.get_image("play",a.dic.get("%play"))));d.append(b("<button>").attr({type:"button","class":"fastforward","aria-controls":h,title:a.dic.get("%fast-forward")}).append(a.fn.multimedia.get_image("ff",a.dic.get("%fast-forward"))));if(g===true){c.append(b("<button>").attr({type:"button","class":"cc","aria-controls":h,title:a.dic.get("%closed-caption","enable")}).append(a.fn.multimedia.get_image("cc",a.dic.get("%closed-caption","enable"))))}else{e.addClass("wb-mm-no-cc")}c.append(b("<button>").attr({type:"button","class":"mute","aria-controls":h,title:a.dic.get("%mute","enable")}).append(a.fn.multimedia.get_image("mute_off",a.dic.get("%mute","enable"))));e.append(d).append(f).append(c);return e},_intf:{play:function(){try{this.object.play()}catch(c){this.object.doPlay()}},pause:function(){try{this.object.pause()}catch(c){this.object.doPause()}},getPaused:function(){return(typeof this.object.paused!=="function"?this.object.paused:this.object.paused())},getPlayed:function(){return(typeof this.object.played!=="function"?this.object.played:this.object.played())},getEnded:function(){return(typeof this.object.ended!=="function"?this.object.ended:this.object.ended())},getSeeking:function(){return(typeof this.object.seeking!=="function"?this.object.seeking:this.object.seeking())},getDuration:function(){return(typeof this.object.duration!=="function"?this.object.duration:this.object.duration())},getBuffered:function(){return(typeof this.object.buffered!=="function"?(this.object.buffered.length>0?this.object.buffered.end(0):0):this.object.buffered())},getCurrentTime:function(){return(typeof this.object.currentTime!=="function"?this.object.currentTime:this.object.currentTime())},setCurrentTime:function(c){if(typeof this.object.currentTime!=="function"){this.object.currentTime=c}else{this.object.setCurrentTime(c)}},getPreviousTime:function(){return(typeof this.object.previousTime!=="undefined"?this.object.previousTime:0)},setPreviousTime:function(c){this.object.previousTime=c},getCaptionsVisible:function(){return b(this).find(".wb-mm-captionsarea").is(":visible")},setCaptionsVisible:function(c){if(c){b(this).find(".wb-mm-captionsarea").show()}else{b(this).find(".wb-mm-captionsarea").hide()}b(this.evtmgr).trigger("captionsvisiblechange")},getMuted:function(){return(typeof this.object.muted!=="function"?this.object.muted:this.object.muted())},setMuted:function(c){if(typeof this.object.muted!=="function"){this.object.muted=c}else{this.object.setMuted(c)}},getVolume:function(){return(typeof this.object.volume!=="function"?this.object.volume:this.object.volume())},setVolume:function(c){if(typeof this.object.volume!=="function"){this.object.volume=c}else{this.object.setVolume(c)}},getWaiting:function(){return this.getPaused()===false&&this.getCurrentTime()===this.getPreviousTime()},getBuffering:function(){return(typeof this.object.buffering!=="undefined"?this.object.buffering:false)},setBuffering:function(c){this.object.buffering=c}},_format_time:function(g){var e="",d,h,f;g=Math.floor(g);for(d=2;d>=0;d-=1){f=Math.pow(60,d);h=Math.floor(g/f);if(e!==""){e+=":"}e+=a.string.pad(h,2);g-=f*h}return e},_load_captions:function(g,d){var m,e,f,i,l,h,j,k;m=function(o){var t,q=0,r,n,c;if(o!==undefined){if(o.substring(o.length-1)==="s"){return parseFloat(o.substring(0,o.length-1))}else{t=o.split(":").reverse();for(r=0,n=t.length;r<n;r+=1){c=(r===0)?parseFloat(t[r]):parseInt(t[r],10);q+=c*Math.pow(60,r)}return q}}return -1};e=function(o){var n=".wet-boew-tt",p=o.find(n),c=[];p.each(function(){var t=b(this),s=-1,q=-1,r;if(t.attr("data-begin")!==undefined){s=m(t.attr("data-begin"));q=t.attr("data-end")!==undefined?m(t.attr("data-end")):m(t.attr("data-dur"))+s}else{if(t.attr("data")!==undefined){r=t.attr("data");r=r.replace(/(begin|dur|end)/gi,'"$1"').replace(/'/g,'"');r=b.parseJSON(r);s=m(r.begin);q=r.end!==undefined?m(r.end):m(r.dur)+s}}t=t.clone();t.find(n).detach();c[c.length]={text:t.html(),begin:s,end:q}});return c};f=function(o){var n="[begin]",p=o.find(n),c=[];p.each(function(){var s=b(this),r=-1,q=-1;r=m(s.attr("begin"));q=s.attr("end")!==undefined?m(s.attr("end")):m(s.attr("dur"))+r;s=s.clone();s.find(n).detach();c[c.length]={text:s.html(),begin:r,end:q}});return c};i=function(n){var c={type:"captionsloaded",captions:e(n)};g.trigger(c)};l=function(c){b.ajax({url:c,context:g,dataType:"html",success:function(o){var n={type:"captionsloaded"};if(o.indexOf("<html")>-1){n.captions=e(b(o))}else{n.captions=f(b(o))}b(this).trigger(n)},error:function(n,p,o){b(this).trigger({type:"captionsloadfailed",error:o})}})};if(d!==undefined){h=a.url(window.location.href);j=a.url(d);if(j.removehash()===h.source){k=b("#"+j.hash);if(k.length>0){i(k);return}g.trigger({type:"captionsloadfailed",error:new Error('Object with id "'+j.anchor+'" not found')});return}else{l(j.source);return}}g.trigger({type:"captionsloadfailed",error:new Error("Caption source is missing")})},_update_captions:function(f,h,e){var i,g,d;f.empty();for(i=0,g=e.length;i<g;i+=1){d=e[i];if(h>=d.begin&&h<=d.end){f.append(b("<div>"+d.text+"</div>"))}}}};a.triggermediaevent=function(d,c){b("#"+d).find("param:eq(0)").trigger(c)};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.prettify={type:"plugin",depends:["prettify"],executed:false,_exec:function(g){if(!pe.fn.prettify.executed){var c,k,d=b("body").find("pre"),e=g.attr("class").split(" "),f,l,j,h=pe.add.liblocation;for(f=0,l=e.length;f<l;f+=1){j=e[f];if(j.length<12&&j.indexOf("lang-")===0){pe.add._load([h+"dependencies/prettify/"+j+pe.suffix+".js"])}}c={linenums:false,allpre:false};k={linenums:g.hasClass("linenums")?true:undefined,allpre:g.hasClass("all-pre")?true:undefined};if(typeof wet_boew_prettify!=="undefined"&&wet_boew_prettify!==null){b.extend(c,wet_boew_prettify,k)}else{b.extend(c,k)}if(c.allpre){d.addClass("prettyprint")}if(c.linenums){d.filter(".prettyprint").addClass("linenums")}prettyPrint();pe.fn.prettify.executed=true}}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.sessiontimeout={type:"plugin",depends:["metadata"],_exec:function(m){var c,j='<div class="sOverlay jqmOverlay"> </div>',d,e,p,f,i,o,g,l,h,n,k;c={inactivity:1200000,reactionTime:30000,sessionalive:1200000,logouturl:"./",refreshOnClick:true,refreshCallbackUrl:"./",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000}};b.metadata.setType("attr","data-wet-boew");if(typeof wet_boew_sessiontimeout!=="undefined"&&wet_boew_sessiontimeout!==null){b.extend(c,wet_boew_sessiontimeout,m.metadata())}else{b.extend(c,m.metadata())}p=function(){clearTimeout(e);if(c.refreshCallbackUrl.length>2){b.post(c.refreshCallbackUrl,function(q){if(q&&q.replace(/\s/g,"")!=="false"){e=setTimeout(p,n(c.sessionalive))}else{alert(pe.dic.get("%st-already-timeout-msg"));l()}})}};f=function(){clearTimeout(d);d=setTimeout(o,n(c.inactivity));if(c.sessionalive){p()}};i=function(){var r=k(),s=document.activeElement,q;b(document.body).append(j);q=confirm(pe.dic.get("%st-timeout-msg").replace("#expireTime#",r));s.focus();b(".jqmOverlay").detach();return q};o=function(){var q=g();if(i()&&g()-q<=c.reactionTime){h()}else{l()}};g=function(){return(new Date()).getTime()};l=function(){window.location.href=c.logouturl};h=f;n=function(s){var q,r,t;if(typeof s==="undefined"||s===null){return null}q=c.regex.exec(b.trim(s.toString()));if(q[2]){r=parseFloat(q[1]);t=c.powers[q[2]]||1;return r*t}else{return s}};k=function(){var s=new Date(g()+c.reactionTime),r=s.getHours(),t=s.getMinutes(),u=s.getSeconds(),q=r<12?" AM":" PM";r=r%12;if(r===0){r=12}r=r<10?"0"+r:r;t=t<10?"0"+t:t;u=u<10?"0"+u:u;return r+":"+t+":"+u+q};f();if(c.refreshOnClick){b(document).on("click",f)}return m}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.share={type:"plugin",depends:["metadata","bookmark","outside"],_exec:function(o){var e,p,d,l,q,j,k,c,n,f,m,g,i,h;e={url:"",sourceTag:"",title:"",description:"",sites:[],compact:false,hint:pe.dic.get("%share-text")+pe.dic.get("%share-hint"),popup:true,popupTag:"h2",popupText:pe.dic.get("%share-text"),includeDisclaimer:true,popupDisclaimer:pe.dic.get("%share-disclaimer"),hideText:(pe.dic.get("%hide")+" - "),addFavorite:false,favoriteText:pe.dic.get("%favourite"),addEmail:false,emailText:pe.dic.get("%email"),emailSubject:pe.dic.get("%share-email-subject"),emailBody:pe.dic.get("%share-email-body"),manualBookmark:pe.dic.get("%share-manual"),addShowAll:false,showAllText:pe.dic.get("%share-showall"),showAllTitle:pe.dic.get("%share-showall-title"),addAnalytics:false,analyticsName:"/share/{r}/{s}"};p={compact:o.hasClass("compact")?true:undefined,popup:o.hasClass("popup-none")?false:undefined,addFavorite:o.hasClass("favourite")?true:undefined,addEmail:o.hasClass("email")?true:undefined,addShowAll:o.hasClass("showall")?true:undefined,addAnalytics:o.hasClass("analytics")?true:undefined};b.metadata.setType("attr","data-wet-boew");if(typeof wet_boew_share!=="undefined"&&wet_boew_share!==null){b.extend(e,wet_boew_share,p,o.metadata())}else{b.extend(e,p,o.metadata())}o.bookmark(e);if(e.popup&&pe.cssenabled){o.attr("role","application");if(e.popupTag.substring(0,1)==="h"){o.wrapInner("<section />")}d=o.find(".bookmark_popup").detach();d.attr({id:"bookmark_popup","aria-hidden":"true",role:"menu"}).prepend('<p class="popup_title">'+e.popupText+"</p>");q=d.find("ul").attr("role","presentation").find("a").get();k=q.length;while(k--){j=q[k];j.setAttribute("role","menuitem");j.parentNode.setAttribute("role","presentation");c=j.getElementsByTagName("span");if(c.length>0){c=c[0];j.title=c.title;c.removeAttribute("title")}}if(e.includeDisclaimer){d.append('<p class="popup_disclaimer">'+e.popupDisclaimer+"</p>")}o.append(d);d.on("click vclick touchstart",function(r){if(r.stopPropagation){r.stopImmediatePropagation()}else{r.cancelBubble=true}}).on("click vclick touchstart","a",function(){window.open(this.href,"_blank");d.trigger("close");return false});l=o.find(".bookmark_popup_text").off("click vclick touchstart keydown").wrap("<"+e.popupTag+" />");l.attr({role:"button","aria-controls":"bookmark_popup"}).on("click vclick touchstart keydown",function(r){if(r.type==="keydown"){if(!(r.ctrlKey||r.altKey||r.metaKey)){if(r.keyCode===13||r.keyCode===32){r.preventDefault();if(d.attr("aria-hidden")==="true"){d.trigger("open")}else{d.trigger("close")}}else{if(r.keyCode===38||r.keyCode===40){r.preventDefault();d.trigger("open")}}}}else{if(d.attr("aria-hidden")==="true"){d.trigger("open")}else{d.trigger("close")}return false}});d.on("keydown focusoutside open close closenofocus",function(r){if(r.type==="keydown"){if(!(r.ctrlKey||r.altKey||r.metaKey)){switch(r.keyCode){case 27:d.trigger("close");return false;case 37:n=b(r.target).closest("li").prev().find("a");if(n.length===0){n=q}pe.focus(n.last());return false;case 38:f=b(r.target).offset().left;n=b(r.target).closest("li").prevAll().find("a").filter(function(){return(b(this).offset().left===f)});if(n.length>0){pe.focus(n.first())}else{n=q.filter(function(){return(b(this).offset().left<f)});if(n.length>0){pe.focus(n.last())}else{f=q.last().offset().left;n=q.filter(function(){return(b(this).offset().left>f)});if(n.length>0){pe.focus(n.last())}else{pe.focus(q.last())}}}return false;case 39:n=b(r.target).closest("li").next().find("a");if(n.length===0){n=q}pe.focus(n.first());return false;case 40:f=b(r.target).offset().left;n=b(r.target).closest("li").nextAll().find("a").filter(function(){return(b(this).offset().left===f)});if(n.length>0){pe.focus(n.first())}else{n=q.filter(function(){return(b(this).offset().left>f)});if(n.length>0){pe.focus(n.first())}else{pe.focus(q.first())}}return false;default:if((r.keyCode>47&&r.keyCode<58)||(r.keyCode>64&&r.keyCode<91)){m=String.fromCharCode(r.keyCode).toLowerCase();g=b(r.target).text();i=q.filter(function(){return(b(this).text().substring(1,2).toLowerCase()===m||b(this).text()===g)});if(i.length>0){if(b(r.target).hasClass("bookmark_popup_text")){pe.focus(i.eq(0))}else{i.each(function(s){if(b(this).text()===g){h=s;return false}});if(h<(i.length-1)){pe.focus(i.eq(h+1));return false}pe.focus(i.eq(0))}}return false}}}}else{if(r.type==="focusoutside"&&!b(r.target).is(l)){if(d.attr("aria-hidden")==="false"){d.trigger("closenofocus")}}else{if(r.type==="open"){l.text(e.hideText+e.popupText);d.attr("aria-hidden","false").show();pe.focus(d.show().find("li a").first())}else{if(r.type==="close"||r.type==="closenofocus"){l.text(e.popupText);d.attr("aria-hidden","true").hide();if(r.type==="close"){pe.focus(l.first())}}}}}});b(document).on("click vclick touchstart",function(){if(d.attr("aria-hidden")==="false"){d.trigger("close")}})}else{o.addClass("popup-none")}return o}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.slideout={type:"plugin",depends:["resize","metadata"],opened:false,_exec:function(h){var t=10,s=pe.dic.get("%hide")+'<span class="wb-invisible">'+pe.dic.get("%table-contents")+"</span>",q=2,r=false,n,i=true,c=true,m,o,d,p=0,g,j,e,l,f,k;b.metadata.setType("attr","data-wet-boew");k={imgShow:{src:pe.add.liblocation+"images/slideout/"+pe.dic.get("%show-image"),height:147,width:30,alt:pe.dic.get("%show-toc")+pe.dic.get("%table-contents")},imgHide:{src:pe.add.liblocation+"images/slideout/"+pe.dic.get("%hide-image"),height:147,width:30,alt:pe.dic.get("%hide")+pe.dic.get("%table-contents")}};b.extend(k,h.metadata());f=b('<div style="display: none;">').appendTo("body");if(f.css("display")!=="none"){return}f.remove();g=h.wrap('<div id="slideoutWrapper" role="application" />').parent();h.wrap('<div id="slideoutInnerWrapper" />');h.attr({role:"menu",id:"slideout-body"}).find("ul, li").attr("role","presentation");if(i){h.find('a[href="'+window.location.href+'"]').replaceWith('<span class="so-active">'+b(this).text()+"</span>")}e=h.find("a").attr("role","menuitem");n=function(){if(!r){var u=b("#wb-core-in").offset().left;if(u<=t){u=0}g.css("top",b("#wb-core-in").offset().top);g.css("right",u)}};m=function(v){o.off("click vclick touchstart",m);e.off("click vclick touchstart",m);d.off("click vclick touchstart",m);g.off("keydown",j);h.off("keydown",j);b(document).off("click vclick touchstart",l);if(!r){var u=g.position();if(pe.ie<=0||document.documentMode!==undefined){g.removeClass("slideoutWrapper").addClass("slideoutWrapperRel").css({top:u.top-b("#wb-core-in").offset().top,right:t-10})}setTimeout(function(){h.show()},50);pe.focus(e.eq(0))}r=!r;g.animate({width:parseInt(g.css("width"),10)===(k.imgShow.width+q)?h.outerWidth()+(k.imgShow.width+q):(k.imgShow.width+q)+"px"},function(){if(!r){h.hide();g.find("#slideoutInnerWrapper").css("width",k.imgHide.width);if(pe.ie<=0||document.documentMode!==undefined){g.addClass("slideoutWrapper");g.removeClass("slideoutWrapperRel");g.css("width",(k.imgShow.width+q)+"px").css("top",b("#wb-core-in").offset().top);n()}}else{if(parseInt(pe.ie,10)===7&&document.documentMode===undefined){h.find("ul").html(h.find("ul").html())}}o.on("click vclick touchstart",m);e.on("click vclick touchstart",m);d.on("click vclick touchstart",m);g.on("keydown",j);h.on("keydown",j);b(document).on("click vclick touchstart",l)});if(r){g.find("#slideoutToggle a img").attr({src:k.imgHide.src,title:k.imgHide.alt,alt:k.imgHide.alt});g.find("#slideoutToggle a");h.attr("aria-hidden","false");g.find("#slideoutInnerWrapper").css("width","")}else{g.find("#slideoutToggle a img").attr({src:k.imgShow.src,title:k.imgShow.alt,alt:k.imgShow.alt});g.find("#slideoutToggle a");h.attr("aria-hidden","true")}if(b(v.target).is(d)){return false}};j=function(A){var z=b(A.target),y=z.is('[role="menuitem"]'),u,B,x,v,w;if(y){e.each(function(C){if(b(this).is(z)){u=C;return false}})}if(!(A.ctrlKey||A.altKey||A.metaKey)){switch(A.keyCode){case 9:if(r&&((A.shiftKey&&z.is(o))||(!A.shiftKey&&z.is(d)))){o.trigger("click");pe.focus(o);return false}break;case 13:z.trigger("click");if(z.is(d)){pe.focus(o);return false}break;case 27:if(r){m();pe.focus(o);return false}break;case 32:z.trigger("click");if(z.is(d)){pe.focus(o);return false}break;case 38:if(!y){if(r){pe.focus(e.eq(e.length-1))}else{o.trigger("click")}}else{if(u===0){pe.focus(e.eq(e.length-1))}else{pe.focus(e.eq(u-1))}}return false;case 40:if(!y){if(r){pe.focus(e.eq(0))}else{o.trigger("click")}}else{if(u===e.length-1){pe.focus(e.eq(0))}else{pe.focus(e.eq(u+1))}}return false;default:if((A.keyCode>47&&A.keyCode<58)||(A.keyCode>64&&A.keyCode<91)){B=String.fromCharCode(A.keyCode).toLowerCase();x=b(A.target).text();w=h.find("a").filter(function(){return(b(this).text().substring(0,1).toLowerCase()===B||b(this).text()===x)});if(w.length>0){w.each(function(C){if(b(this).text()===x){v=C;return false}});if(v<(w.length-1)){pe.focus(w.eq(v+1));return false}pe.focus(w.eq(0))}return false}}}else{if(A.metaKey&&A.keycode===9){if(z.is(o)){o.trigger("click");return false}}}};e.on("click vclick touchstart",m);g.on("keydown",j);h.on("keydown",j);l=function(u){if(r&&!b(u.target).is(h)&&!b(u.target).is(g)&&b(u.target).closest(h).length===0){m()}};b(document).on("click vclick touchstart",l);h.append('<a href="#" id="slideoutClose" role="button" aria-controls="slideout-body">'+s+"</a>");d=h.find("#slideoutClose");g.find("#slideoutInnerWrapper").css("padding",(q/2)+"px").prepend('<div id="slideoutToggle" class="slideoutToggle"><a id="toggleLink" role="button" aria-controls="slideout-body" aria-label="'+k.imgShow.alt+'" href="#" onclick="return false;"><img width="'+k.imgShow.width+'px" height="'+k.imgShow.height+'px" src="'+k.imgShow.src+'" alt="'+k.imgShow.alt+'" /></a></div>');o=g.find("#toggleLink");g.find("#slideoutToggle").css({width:k.imgShow.width,height:k.imgShow.height});h.addClass("tabbedSlideout");p=h.outerHeight();g.css("width",(k.imgShow.width+q)+"px").css("top",b("#wb-core-in").offset().top);h.hide().attr("aria-hidden","true");g.find("#slideoutInnerWrapper").css("width",k.imgHide.width);if(pe.ie>0&&pe.ie<8&&document.documentMode===undefined){c=false}if(c){g.addClass("slideoutWrapper");pe.resize(n);n()}else{g.addClass("so-ie7");g.addClass("slideoutWrapperRel").css({right:t-10,top:"0"})}o.on("click vclick touchstart",m);d.on("click vclick touchstart",m);if(parseInt(pe.ie,10)===7){b("html").css("overflowY","auto")}}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.tabbedinterface={type:"plugin",depends:(pe.mobile?[]:["metadata","easytabs","equalheights"]),mobile:function(i,k){if(typeof k==="undefined"||!k){i.find(".wet-boew-tabbedinterface").each(function(){a.fn.tabbedinterface.mobile(b(this),true)})}var h=i.children(".tabs").children("li"),c=i.children(".tabs-panel").children("div"),j=0,e='<div data-role="collapsible-set" data-mini="true" data-content-theme="b" data-theme="b">',o,l,n,d,m,g,f;for(g=0,f=h.length;g<f;g+=1){if(h.eq(g).hasClass("default")){j=g;break}}o=i.find(":header");if(o.length!==0){n=parseInt(o.prop("tagName").substr(1),10)}else{l=i;while(o.length===0){l=l.parent();o=l.find(":header")}n=parseInt(o.prop("tagName").substr(1),10)+1}d="<h"+n+">";m="</h"+n+">";c.each(function(p){e+='<div data-role="collapsible"'+(p===j?' data-collapsed="false"':"")+">"+d+h.eq(p).children("a").text()+m+this.innerHTML+"</div>"});e+="</div>";i.html(e);return i},_exec:function(h){if(pe.mobile){return a.fn.tabbedinterface.mobile(h).trigger("create")}var f,r=h.children(".tabs"),d=r.find("a").filter(":not(.tabs-toggle)"),c=h.children(".tabs-panel"),j=c.children(),e,p,l,n,m,g,s,v,k=pe.dic.get("%pause"),t=pe.dic.get("%tab-rotation","disable"),u=pe.dic.get("%play"),i=pe.dic.get("%tab-rotation","enable"),o,q,x,w="-link";n={panelActiveClass:"active",tabActiveClass:"active",defaultTab:"li:first-child",autoHeight:true,cycle:false,carousel:false,autoPlay:false,animate:false,animationSpeed:"normal",updateHash:false};m={defaultTab:((h.find(".default").length)?".default":undefined),autoHeight:h.hasClass("auto-height-none")?false:undefined,cycle:(h.hasClass("cycle-slow")?8000:(h.hasClass("cycle-fast")?2000:(h.hasClass("cycle")?6000:undefined))),carousel:h.hasClass("style-carousel")?true:undefined,autoPlay:h.hasClass("auto-play")?true:undefined,animate:(h.hasClass("animate")||h.hasClass("animate-slow")||h.hasClass("animate-fast"))?true:undefined,animationSpeed:(h.hasClass("animate-slow")?"slow":(h.hasClass("animate-fast")?"fast":undefined))};b.metadata.setType("attr","data-wet-boew");if(typeof wet_boew_tabbedinterface!=="undefined"&&wet_boew_tabbedinterface!==null){b.extend(n,wet_boew_tabbedinterface,m,h.metadata())}else{b.extend(n,m,h.metadata())}r.attr("role","tablist").children("li").attr("role","presentation");d.attr({role:"tab","aria-selected":"false"});c.attr("id",j.eq(0).attr("id")+"-parent");j.attr({tabindex:"-1",role:"tabpanel","aria-hidden":"true"}).each(function(){if(pe.ie!==0){this.setAttribute("aria-labelledby",this.id+w)}});f=r.find(".default a");if(f.length===0){f=r.find("li:first-child a")}f.attr("aria-selected","true");j.filter(this.hash).attr("aria-hidden","false");d.on("keydown click",function(z){var y=b(z.target),A;if(z.type==="keydown"){if(z.keyCode===13||z.keyCode===32){if(z.stopPropagation){z.stopImmediatePropagation()}else{z.cancelBubble=true}z.preventDefault();if(!y.is(d.filter("."+n.tabActiveClass))){v(y,d,j,n,false)}else{pe.focus(j.filter(y.attr("href")))}}else{if(z.keyCode===37||z.keyCode===38){v(s(d),d,j,n,false);z.preventDefault()}else{if(z.keyCode===39||z.keyCode===40){v(g(d),d,j,n,false);z.preventDefault()}}}}else{A=j.filter(y.attr("href"));if(!A.data("easytabs").lastHeight){A.data("easytabs").lastHeight=A.outerHeight()}}});g=function(y){var z=y.filter("."+n.tabActiveClass).parent().next(":not(.tabs-toggle)");return(z.length===0?y.first():z.children("a"))};s=function(y){var z=y.filter("."+n.tabActiveClass).parent().prev();return(z.length===0?y.last():z.children("a"))};v=function(z,y,D,C,B){var A,F,E;D.stop(true,true);if(C.animate){F=D.filter("."+C.panelActiveClass).removeClass(C.panelActiveClass).attr("aria-hidden","true");E=D.filter(z.attr("href"));F.fadeOut(C.animationSpeed,function(){return E.fadeIn(C.animationSpeed,function(){return b(this).addClass(C.panelActiveClass).attr("aria-hidden","false")})})}else{D.removeClass(C.panelActiveClass).attr("aria-hidden","true").hide();D.filter(z.attr("href")).show().addClass(C.panelActiveClass).attr("aria-hidden","false")}y.removeClass(C.tabActiveClass).attr("aria-selected","false").parent().removeClass(C.tabActiveClass);z.addClass(C.tabActiveClass).attr("aria-selected","true").parent().addClass(C.tabActiveClass);A=z.parent().siblings(".tabs-toggle");if(!B&&(A.length===0||A.data("state")==="stopped")){return pe.focus(z)}};q=function(){if(p.data("state")==="stopped"){l(d,j,n);e.removeClass("tabs-start").addClass("tabs-stop").html(k+'<span class="wb-invisible">'+t+"</span>");return b(".wb-invisible",e).text(t)}if(p.data("state")==="started"){return o()}};if(n.autoHeight&&!h.hasClass("tabs-style-4")&&!h.hasClass("tabs-style-5")){j.show();c.equalHeights(true)}h.easytabs(b.extend({},n,{cycle:false}));if(n.cycle){l=function(y,B,A){var z,C;z=y.filter("."+A.tabActiveClass);C=z.siblings(".tabs-roller");h.find(".tabs-toggle").data("state","started");return C.show().animate({width:z.parent().width()},A.cycle-200,"linear",function(){b(this).width(0).hide();v(g(y),y,B,A,true);return h.data("interval",setTimeout(function(){return l(y,B,A)},0))})};o=function(){clearTimeout(h.data("interval"));h.find(".tabs-roller").width(0).hide().stop();h.find(".tabs-toggle").data("state","stopped");e.removeClass("tabs-stop").addClass("tabs-start").html(u+'<span class="wb-invisible">'+i+"</span>");return b(".wb-invisible",e).text(i)};x=c.attr("id");r.append('<li class="tabs-toggle"><a class="tabs-prev" href="javascript:;" role="button"> <span class="wb-invisible">'+pe.dic.get("%previous")+"</span></a></li>");r.find(".tabs-prev").on("click",function(){v(s(d),d,j,n,true)});r.append('<li class="tabs-toggle"><a class="tabs-next" href="javascript:;" role="button"> <span class="wb-invisible">'+pe.dic.get("%next")+"</span></a></li>");r.find(".tabs-next").on("click",function(){v(g(d),d,j,n,true)});p=b('<li class="tabs-toggle"><a class="tabs-stop" href="javascript:;" role="button">'+k+'<span class="wb-invisible">'+t+"</span></a></li>");e=p.find("a");r.append(p);p.click(q).on("keydown",function(y){if(y.keyCode===32){q();return y.preventDefault()}});r.find("li a").not(p.find("a")).on("click",function(){return o()});d.each(function(){var y;y=b('<div class="tabs-roller">').hide().on("click",function(){return b(this).siblings("a").trigger("click")}).on("hover",function(){return b(this).css("cursor","text")});if(pe.ie>0&&pe.ie<8){b(".tabs-style-2 .tabs, .tabs-style-2 .tabs li").css("filter","")}return b(this).parent().append(y)});l(d,j,n);if(!n.autoPlay){o()}}h.find("a").filter('[href^="#"]').each(function(){var A=b(this),y,z;z=A.attr("href");if(z.length>1){y=b(z,j);if(y.length){return A.on("click",function(D){var B,C;B=y.parents('[role="tabpanel"]:hidden');if(B){D.preventDefault();C=B.attr("id");B.parent().siblings(".tabs").find("a").filter('[href="#'+C+'"]').trigger("click");return y.get(0).scrollIntoView(true)}})}}});return h.attr("class",h.attr("class").replace(/\bwidget-style-/,"style-"))}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.texthighlight={type:"plugin",_exec:function(d){function c(h,k){var e,j,g,f;h=h.replace(/^\s+|\s+$/g,"");h=h.replace(/\|+/g,"");e=h.split("+");if(e.length>0){h="";for(g=0,f=e.length;g<f;g+=1){h+=e[g]+" "}h=h.replace(/^\s+|\s+$|\"|\(|\)/g,"")}h=h.replace(/\s+/g,"|");h=decodeURIComponent(h);h="(?=([^>]*<))([\\s'])?("+h+")(?!>)";j=k.html().replace(new RegExp(h,"gi"),function(n,m,l,i){return(typeof l==="undefined"?"":l)+'<span class="texthighlight"><mark>'+i+"</mark></span>"});k.html(j);return null}if(pe.urlquery.texthighlight!==undefined){c(pe.urlquery.texthighlight,d)}return this}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.wamethod={type:"plugin",_exec:function(j){var g=j.find("#summary"),i=g.find("td"),e=j.find("#checklist input"),d=g.find("span").html("0"),f=d.filter("#rsltAAA").length>0;i.find("td").attr("aria-live","polite").attr("aria-relevant","text").attr("aria-atomic","true").attr("aria-busy","false");e.on("change",function(){var l=e.filter('[id^="ap"]:checked, [id^="an"]:checked').length,m=l+e.filter('[id^="af"]:checked').length,q=e.filter('[id^="aap"]:checked, [id^="aan"]:checked').length,p=q+e.filter('[id^="aaf"]:checked').length,o=e.filter('[id^="aaap"]:checked, [id^="aaan"]:checked').length,n=o+e.filter('[id^="aaaf"]:checked').length,k=e.filter('[id^="an"]:checked, [id^="aan"]:checked, [id^="aaan"]:checked').length;i.attr("aria-busy","true");d.filter("#rsltA").html(l);d.filter("#percA").html(Math.round(l/0.25));d.filter("#rsltAA").html(q);d.filter("#percAA").html(Math.round(q/0.13));d.filter("#naTotal").html(k);if(f){d.filter("#rsltAAA").html(o);d.filter("#percAAA").html(Math.round(o/0.23))}d.filter("#evalTotal").html(m+p+n);d.filter("#percEvalTotal").html(Math.round((m+p+n)/0.61));d.filter("#rsltTotal").html(l+q+o);d.filter("#percTotal").html(Math.round((l+q+o)/0.61));d.filter("#percNATotal").html(Math.round(k/0.61));i.attr("aria-busy","false")});function c(){j.find("h2, #checklist h3, .last").each(function(){var k=b(this);k.before("<"+k.get(0).tagName+' class="print">'+k.text()+"</"+k.get(0).tagName+">");k.hide()})}function h(){j.find("h2, #checklist h3, .last").each(function(){j.find(".print").remove();j.find("h2, #checklist h3, .last").show()})}if(pe.ie>0&&pe.ie<9){window.onbeforeprint=c;window.onafterprint=h}return j}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.webwidget={type:"plugin",twitter:{_parse_entries:function(d,e,k){var j,h,c,g,f;j=(e>0&&e<d.length?e:d.length);g=d.sort(function(l,i){return pe.date.compare(i.created_at.replace("+0000 ","")+" GMT",l.created_at.replace("+0000 ","")+" GMT")});c='<ul class="widget-content">';for(h=0;h<j;h+=1){f=g[h];c+='<li><a class="float-left" href="http://www.twitter.com/'+f.user.name+"/status/"+f.user.id+'"><img class="widget-avatar" src="'+f.user.profile_image_url+'" alt="'+f.user.name+'" /></a> '+pe.string.ify.clean(f.text)+' <span class="widget-datestamp-accent">'+pe.dic.ago(f.created_at)+"</span></li>"}c+="</ul>";return k.replaceWith(c)},_map_entries:function(c){return c},_json_request:function(c){if(c.toLowerCase().indexOf("!/search/")>-1){return c.replace("http://","https://").replace(/https:\/\/twitter.com\/#!\/search\/(.+$)/,function(e,d){return"http://search.twitter.com/search.json?q="+encodeURI(decodeURI(d))})}return c.replace("http://","https://").replace(/https:\/\/twitter.com\/#!\/(.+$)/i,function(e,d){return"http://twitter.com/status/user_timeline/"+encodeURI(decodeURI(d))+".json?callback=?"})}},weather:{_parse_entries:function(d,e,g){var f=d[1],c='<ul class="widget-content"><li><a href="'+f.link+'">'+f.title+'</a><span class="widget-datestamp">['+pe.date.to_iso_format(f.publishedDate,true)+"]</span></li></ul>";return g.replaceWith(c)},_map_entries:function(c){return c.responseData.feed.entries},_json_request:function(d,c){var e;d=d.replace(/^.*?\.gc\.ca\/([a-z]+).+\/(.*?)_[a-z]+_([ef])\.html/i,"http://www.weatheroffice.gc.ca/rss/$1/$2_$3.xml");e="http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q="+encodeURI(decodeURI(d));if(c>0){e+="&num="+c}return e}},rss:{_parse_entries:function(d,e,k){var j,h,c,g,f;j=(e>0&&e<d.length?e:d.length);g=d.sort(function(l,i){return pe.date.compare(i.publishedDate,l.publishedDate)});c='<ul class="widget-content">';for(h=0;h<j;h+=1){f=g[h];c+='<li><a href="'+f.link+'">'+f.title+'</a><span class="widget-datestamp">['+pe.date.to_iso_format(f.publishedDate,true)+"]</span></li>"}c+="</ul>";return k.replaceWith(c)},_map_entries:function(c){return c.responseData.feed.entries},_json_request:function(d,c){var e;e="http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q="+encodeURI(decodeURI(d));if(c>0){e+="&num="+c}return e}},_exec:function(h,j){var o,m,d,e,g,f,l,n,k,c;d=a.limit(h);m=h.find("a").map(function(){var i=this.href;if(!j&&/twitter.com/i.test(i)){j="twitter"}if(!j&&/weatheroffice.gc.ca/i.test(i)){j="weather"}if(!j){j="rss"}return i});o=b('<ul class="widget-content"><li class="widget-state-loading"><img src="'+pe.add.liblocation+'images/webfeeds/ajax-loader.gif" alt="'+pe.dic.get("%loading")+'" /></li></ul>');h.find(".widget-content").replaceWith(o);e=a.fn.webwidget[j];l=m.length-1;g=[];k=e._parse_entries;f=m.length-1;c=[];n=function(q){var p,i;q=e._map_entries(q);for(p=0,i=q.length;p<i;p+=1){g.push(q[p])}if(!l){k(g,d,o)}l-=1;return l};while(f>=0){b.getJSON(e._json_request(m[f]),n);c.push(f-=1)}b.extend({},c);return}};window.pe=a;return window.pe}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.zebra={type:"plugin",fnZebraComplexTable:function(f,c){var h,k,g,m,d,e,l;if(!b(f).data().tblparser){a.fn.parsertable.parse(b(f))}h=b(f).data().tblparser;if(h.keycell){for(k=0;k<h.keycell.length;k+=1){b(h.keycell[k].elem).addClass("table-keycell")}}if(h.desccell){for(k=0;k<h.desccell.length;k+=1){b(h.desccell[k].elem).addClass("table-desccell")}}if(h.layoutCell){for(k=0;k<h.layoutCell.length;k+=1){b(h.layoutCell[k].elem).addClass("table-layoutCell")}}if(h.row){for(k=0;k<h.row.length;k+=1){for(g=0;g<h.row[k].cell.length;g+=1){if(h.row[k].cell[g].type===3){if(h.row[k].cell[g].col.type===3){b(h.row[k].cell[g].elem).addClass("table-summarycol"+h.row[k].cell[g].collevel)}if(h.row[k].type===3){b(h.row[k].cell[g].elem).addClass("table-summaryrow"+h.row[k].cell[g].rowlevel);if(h.row[k].level===0&&h.row[k].header.elem){b(h.row[k].header.elem).addClass("table-summaryrow"+h.row[k].cell[g].rowlevel)}}}}if(h.row[k].type&&h.row[k].type===3&&h.row[k].rowgroup.elem&&k>0&&h.row[k-1].type&&h.row[k-1].type===3&&h.row[k-1].rowgroup.uid!==h.row[k].rowgroup.uid){b(h.row[k].rowgroup.elem).addClass("table-rowgroupmarker")}}}b("th",f).each(function(){var i=b(this);if(i.data().tblparser.type===7){i.addClass("table-headgroup"+i.data().tblparser.scope+i.data().tblparser.level)}});if(h.colgroup){for(k=0;k<h.colgroup.length;k+=1){if(h.colgroup[k].elem&&((k>0&&h.colgroup[k].type===3&&h.colgroup[k-1].type===3&&h.colgroup[k-1].level>h.colgroup[k].level)||(h.colgroup[k].type===2&&((k>0&&h.colgroup[0].type===2)||(k>1&&h.colgroup[0].type===1))))){b(h.colgroup[k].elem).addClass("table-colgroupmarker")}}}if(h.lstrowgroup){for(k=0;k<h.lstrowgroup.length;k+=1){if(h.lstrowgroup[k].elem&&h.lstrowgroup[k].type===2&&k>0){b(h.lstrowgroup[k].elem).addClass("table-rowgroupmarker")}}}if(!c.noheaderhighlight||c.columnhighlight){m=function(n){var j=[],i=b(n).data().tblparser;if(i.row&&i.row.header&&!c.norowheaderhighlight){for(k=0;k<i.row.header.length;k+=1){j.push(i.row.header[k].elem)}if(i.addrowheaders){for(k=0;k<i.addrowheaders.length;k+=1){j.push(i.addrowheaders[k].elem)}}}if(i.col&&i.col.header&&!c.nocolheaderhighlight){for(k=0;k<i.col.header.length;k+=1){j.push(i.col.header[k].elem)}if(i.addcolheaders){for(k=0;k<i.addcolheaders.length;k+=1){j.push(i.addcolheaders[k].elem)}}}b(n).data().cellsheader=j};b("td, th",f).on("mouseenter focusin",function(){var i=b(this).data().tblparser,j,n=b(this);if(!c.noheaderhighlight){clearTimeout(d);j=b("th.table-hover",f);if(i.type!==1){if(!n.data().cellsheader){m(this)}b.each(n.data().cellsheader,function(){var o=b(this);o.addClass("table-hover");o.data().zebrafor=i.uid})}else{if(i.scope==="row"&&!c.norowheaderhighlight){n.addClass("table-hover");n.data().zebrafor=i.uid}}b.each(j,function(){var o=b(this);if(o.data().zebrafor&&o.data().zebrafor!==i.uid){o.removeClass("table-hover");delete o.data().zebrafor}})}if(c.columnhighlight&&i.col&&i.col.elem){b(i.col.elem).addClass("table-hover")}});b("td, th",f).on("mouseleave focusout",function(){var i=b(this).data().tblparser,j=this;if(!c.noheaderhighlight){d=setTimeout(function(){var n;if(i.type===1){b(j).removeClass("table-hover");delete b(j).data().zebrafor;return}for(n=0;n<b(j).data().cellsheader.length;n+=1){if(b(b(j).data().cellsheader[n]).data().zebrafor===i.uid){b(b(j).data().cellsheader[n]).removeClass("table-hover");delete b(b(j).data().cellsheader[n]).data().zebrafor}}},25)}if(c.columnhighlight&&i.col&&i.col.elem){b(i.col.elem).removeClass("table-hover")}})}e=(f.children("tr").add(f.children("tbody").children("tr"))).filter(function(){return b(this).children("td").length>0});e.on("mouseleave focusout",function(i){i.stopPropagation();b(this).removeClass("table-hover")});e.on("mouseenter focusin",function(i){i.stopPropagation();b(this).addClass("table-hover")});if(c.vectorstripe){if(!c.columnhighlight){e.filter(":odd").addClass("table-even");e.filter(":even").addClass("table-odd")}else{l=[];for(k=0;k<h.col.length;k+=1){if(h.col[k].elem){l.push(h.col[k].elem)}}b(l).filter(":odd").addClass("table-even");b(l).filter(":even").addClass("table-odd")}}},_exec:function(f){var d,k,j,g,o=true,h,c,n,m=[],l=false,e=[];c={noheaderhighlight:false,norowheaderhighlight:false,nocolheaderhighlight:false,columnhighlight:false,nohover:false,vectorstripe:false,complextableparsing:false};n={noheaderhighlight:f.hasClass("noheaderhighlight")?true:undefined,norowheaderhighlight:f.hasClass("norowheaderhighlight")?true:undefined,nocolheaderhighlight:f.hasClass("nocolheaderhighlight")?true:undefined,columnhighlight:f.hasClass("columnhighlight")?true:undefined,nohover:f.hasClass("nohover")?true:undefined,vectorstripe:f.hasClass("vectorstripe")?true:undefined,complextableparsing:f.hasClass("complextableparsing")?true:undefined};if(typeof wet_boew_zebra!=="undefined"&&wet_boew_zebra!==null){b.extend(c,wet_boew_zebra,n)}else{b.extend(c,n)}if(c.norowheaderhighlight&&c.nocolheaderhighlight){c.noheaderhighlight=true}if(f.is("table")){if(c.complextableparsing||c.noheaderhighlight||c.norowheaderhighlight||c.nocolheaderhighlight||c.nohover||c.vectorstripe){o=false}if(o&&(f.children("tbody").length>1||f.children("thead").children("tr").length>1||f.children("colgroup").length>2)){o=false}if(o&&(f.children("colgroup").length===2&&f.children("colgroup:first").children("col").length>1)){o=false}if(o&&(b("tr:first th, tr:first td, tr",f).length)<b("th",f).length){o=false}h=0;b("tr:eq(2)",f).children().each(function(){var i=this.nodeName.toLowerCase();if(!o){return}if(i==="th"&&h>0){o=false;return}h+=1});if(o){d=(f.children("tr").add(f.children("tbody").children("tr"))).filter(function(){return b(this).children("td").length>0});d.on("mouseleave focusout",function(i){i.stopPropagation();b(this).removeClass("table-hover")});d.on("mouseenter focusin",function(i){i.stopPropagation();b(this).addClass("table-hover")});if(!c.columnhighlight){d.filter(":odd").addClass("table-even");d.filter(":even").addClass("table-odd")}else{k=f.children("colgroup:last").children("col");b(k).filter(":odd").addClass("table-even");b(k).filter(":even").addClass("table-odd")}return}if(a.fn.parsertable){a.fn.zebra.fnZebraComplexTable(f,c);return}if(a.fn.zebra.complexTblStack){a.fn.zebra.complexTblStack.push(f);a.fn.zebra.complexTblOptsStack.push(jQuery.extend(true,{},c));return}a.fn.zebra.complexTblStack=[];a.fn.zebra.complexTblOptsStack=[];a.fn.zebra.complexTblStack.push(f);a.fn.zebra.complexTblOptsStack.push(jQuery.extend(true,{},c));b(document).on("depsTableParserLoaded",function(){while(a.fn.zebra.complexTblStack.length>0){a.fn.zebra.fnZebraComplexTable(a.fn.zebra.complexTblStack.shift(),a.fn.zebra.complexTblOptsStack.shift())}});a.wb_load({dep:["parserTable"]},"depsTableParserLoaded")}else{if(f.is("dl")){b(f).children().each(function(){var i=b(this);switch(this.nodeName.toLowerCase()){case"dt":if(l){l=false;i.addClass("list-even")}else{l=true;i.addClass("list-odd")}e=[];m.push(i.get(0));i.data().dlitem=e;e.push(i.get(0));break;case"dd":if(l){i.addClass("list-odd")}else{i.addClass("list-even")}m.push(i.get(0));i.data().dlitem=e;e.push(i.get(0));break;default:break}});if(!c.nohover){b(m).on("mouseleave focusout",function(i){i.stopPropagation();b(b(this).data().dlitem).removeClass("list-hover")});b(m).on("mouseenter focusin",function(i){i.stopPropagation();b(b(this).data().dlitem).addClass("list-hover")})}}else{j=f.children("li");g=(f.parents("li").length+1)%2;j.filter(":odd").addClass(g===0?"list-odd":"list-even");j.filter(":even").addClass(g===1?"list-odd":"list-even");if(!c.nohover){j.on("mouseleave focusout",function(i){i.stopPropagation();b(this).removeClass("list-hover")});j.on("mouseenter focusin",function(i){i.stopPropagation();b(this).addClass("list-hover")})}}}}};window.pe=a;return a}(jQuery));