').appendTo("body");if(f.css("display")!=="none"){return}f.remove();g=h.wrap('
').parent();h.wrap('
');h.attr({role:"menu",id:"slideout-body"}).find("li").attr("role","presentation");if(i){h.find('a[href="'+window.location.href+'"]').replaceWith('
'+b(this).text()+" ")}e=h.find("a").attr("role","menuitem");n=function(){if(!s){var v=b("#wb-core-in").offset().left;if(v<=u){v=0}g.css("top",b("#wb-core-in").offset().top);g.css("right",v)}};m=function(){o.off("click vclick",m);e.off("click vclick",m);d.off("click vclick",m);g.off("keydown",k);h.off("keydown",k);b(document).off("click touchstart",l);if(!s){var v=g.position();if(pe.ie===0||document.documentMode!==undefined){g.removeClass("slideoutWrapper").addClass("slideoutWrapperRel").css({top:v.top-b("#wb-core-in").offset().top,right:u-10})}h.show();pe.focus(e.eq(0))}s=!s;g.animate({width:parseInt(g.css("width"),10)===(q.width+r)?h.outerWidth()+(q.width+r):(q.width+r)+"px"},function(){if(!s){h.hide();g.find("#slideoutInnerWrapper").css("width",j.width);if(pe.ie===0||document.documentMode!==undefined){g.addClass("slideoutWrapper");g.removeClass("slideoutWrapperRel");g.css("width",(q.width+r)+"px").css("top",b("#wb-core-in").offset().top);n()}}else{if(pe.ie===7&&document.documentMode===undefined){h.find("ul").html(h.find("ul").html())}}o.on("click vclick",m);e.on("click vclick",m);d.on("click vclick",m);g.on("keydown",k);h.on("keydown",k);b(document).on("click touchstart",l)});if(s){g.find("#slideoutToggle a img").attr({src:j.path,title:j.alt,alt:j.alt});g.find("#slideoutToggle a");h.attr("aria-hidden","false");g.find("#slideoutInnerWrapper").css("width","")}else{g.find("#slideoutToggle a img").attr({src:q.path,title:q.alt,alt:q.alt});g.find("#slideoutToggle a");h.attr("aria-hidden","true")}return false};k=function(B){var A=b(B.target),z=A.is('[role="menuitem"]'),v,C,y,w,x;if(z){e.each(function(D){if(b(this).is(A)){v=D;return false}})}if(!(B.ctrlKey||B.altKey||B.metaKey)){switch(B.keyCode){case 9:if(s&&((B.shiftKey&&A.is(o))||(!B.shiftKey&&A.is(d)))){o.trigger("click");pe.focus(o);return false}break;case 13:A.trigger("click");if(A.is(d)){pe.focus(o)}return false;case 27:if(s){m();pe.focus(o);return false}break;case 32:A.trigger("click");if(A.is(d)){pe.focus(o)}return false;case 38:if(!z){if(s){pe.focus(e.eq(e.length-1))}else{o.trigger("click")}}else{if(v===0){pe.focus(e.eq(e.length-1))}else{pe.focus(e.eq(v-1))}}return false;case 40:if(!z){if(s){pe.focus(e.eq(0))}else{o.trigger("click")}}else{if(v===e.length-1){pe.focus(e.eq(0))}else{pe.focus(e.eq(v+1))}}return false;default:if((B.keyCode>47&&B.keyCode<58)||(B.keyCode>64&&B.keyCode<91)){C=String.fromCharCode(B.keyCode).toLowerCase();y=b(B.target).text();x=h.find("a").filter(function(){return(b(this).text().substring(0,1).toLowerCase()===C||b(this).text()===y)});if(x.length>0){x.each(function(D){if(b(this).text()===y){w=D;return false}});if(w<(x.length-1)){pe.focus(x.eq(w+1));return false}pe.focus(x.eq(0))}return false}}}else{if(B.metaKey&&B.keycode===9){if(A.is(o)){o.trigger("click");return false}}}};e.on("click vclick",m);g.on("keydown",k);h.on("keydown",k);l=function(v){if(s&&!b(v.target).is(h)&&!b(v.target).is(g)&&b(v.target).closest(h).length===0){m()}};b(document).on("click touchstart",l);h.append('
'+t+" ");d=h.find("#slideoutClose");g.find("#slideoutInnerWrapper").css("padding",(r/2)+"px").prepend('
');o=g.find("#toggleLink");g.find("#slideoutToggle").css({width:q.width,height:q.height});h.addClass("tabbedSlideout");p=h.outerHeight();g.css("width",(q.width+r)+"px").css("top",b("#wb-core-in").offset().top);h.hide().attr("aria-hidden","true");g.find("#slideoutInnerWrapper").css("width",j.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:u-10,top:"0"})}o.on("click vclick",m);d.on("click vclick",m);if(pe.ie===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(g){var f=g.find(".tabs > li"),d=g.find(".tabs-panel > div"),c=b('
'),i,h=(g.hasClass("tabs-style-4")||g.hasClass("tabs-style-5")),j,k,e=false;g.removeClass();if(h){j=g.closest("section").find(":header:first");k=(j.length>0?(parseInt(j.prop("tagName").substr(1),10)+1):3)}d.each(function(l){i=b('
');if(h){i.append("
"+f.eq(l).children("a").html()+" "+b(this).html())}else{i.append(b(this).find(":header:first").parent().html())}if(f.eq(l).hasClass("default")){i.attr("data-collapsed","false");e=true}c.append(i)});if(!e){c.children().eq(0).attr("data-collapsed","false")}f.remove();g.empty().append(c);return g},_exec:function(m){if(pe.mobile){return a.fn.tabbedinterface.mobile(m).trigger("create")}var j,x=m.find(".tabs"),d=x.find("a:not(.tabs-toggle)"),c=m.find(".tabs-panel"),n=c.children(),h,u,o,q,p,k,y,z,l,v,r,w,g,i,e,f,s,t,A="-link";q={panelActiveClass:"active",tabActiveClass:"active",defaultTab:"li:first-child",autoHeight:true,cycle:false,carousel:false,autoPlay:false,animate:false,animationSpeed:"normal",updateHash:false};p={defaultTab:((m.find(".default").length)?".default":undefined),autoHeight:m.hasClass("auto-height-none")?false:undefined,cycle:(m.hasClass("cycle-slow")?8000:(m.hasClass("cycle-fast")?2000:(m.hasClass("cycle")?6000:undefined))),carousel:m.hasClass("style-carousel")?true:undefined,autoPlay:m.hasClass("auto-play")?true:undefined,animate:(m.hasClass("animate")||m.hasClass("animate-slow")||m.hasClass("animate-fast"))?true:undefined,animationSpeed:(m.hasClass("animate-slow")?"slow":(m.hasClass("animate-fast")?"fast":undefined))};b.metadata.setType("attr","data-wet-boew");if(typeof wet_boew_tabbedinterface!=="undefined"&&wet_boew_tabbedinterface!==null){b.extend(q,wet_boew_tabbedinterface,p,m.metadata())}else{b.extend(q,p,m.metadata())}x.attr("role","tablist").children("li").attr("role","presentation");d.attr("role","tab").attr("aria-selected","false").each(function(){var C=b(this),B=C.attr("href").substring(1);C.attr("aria-controls",B).attr("id",B+A)});c.attr("id",n.eq(0).attr("id")+"-parent");n.attr("tabindex","-1").attr("role","tabpanel").attr("aria-hidden","true").each(function(){var B=b(this);if(pe.ie>0){B.attr("aria-labelledby",B.attr("id")+A)}});j=(x.find(".default").length>0?x.find(".default"):x.find("li:first-child"));d.on("keydown click",function(C){var B=b(C.target),D;if(C.type==="keydown"){if(C.keyCode===13||C.keyCode===32){if(C.stopPropagation){C.stopImmediatePropagation()}else{C.cancelBubble=true}C.preventDefault();if(!B.is(d.filter("."+q.tabActiveClass))){z(B,d,n,q,false)}else{pe.focus(n.filter(B.attr("href")))}}else{if(C.keyCode===37||C.keyCode===38){z(y(d),d,n,q,false);C.preventDefault()}else{if(C.keyCode===39||C.keyCode===40){z(k(d),d,n,q,false);C.preventDefault()}}}}else{D=n.filter(B.attr("href"));if(!D.data("easytabs").lastHeight){D.data("easytabs").lastHeight=D.outerHeight()}}});j.children("a").each(function(){b(this).attr("aria-selected","true");return b("#"+b(this).attr("href").substring(1)).attr("aria-hidden","false")});k=function(B){var C=B.filter("."+q.tabActiveClass).parent().next(":not(.tabs-toggle)");return(C.length===0?B.first():C.children())};y=function(B){var C=B.filter("."+q.tabActiveClass).parent().prev();return(C.length===0?B.last():C.children())};z=function(C,B,G,F,E){var D,I,H;G.stop(true,true);if(F.animate){I=G.filter("."+F.panelActiveClass).removeClass(F.panelActiveClass).attr("aria-hidden","true");H=G.filter("#"+C.attr("href").substr(1));I.fadeOut(F.animationSpeed,function(){return H.fadeIn(F.animationSpeed,function(){return b(this).addClass(F.panelActiveClass).attr("aria-hidden","false")})})}else{G.removeClass(F.panelActiveClass).attr("aria-hidden","true").hide();G.filter("#"+C.attr("href").substr(1)).show().addClass(F.panelActiveClass).attr("aria-hidden","false")}B.parent().removeClass(F.tabActiveClass).children().removeClass(F.tabActiveClass).filter("a").attr("aria-selected","false");C.parent().addClass(F.tabActiveClass).children().addClass(F.tabActiveClass).filter("a").attr("aria-selected","true");D=C.parent().siblings(".tabs-toggle");if(!E&&(D.length===0||D.data("state")==="stopped")){return pe.focus(C)}};w=function(){if(u.data("state")==="stopped"){z(k(d),d,n,q,true);o(d,n,q);h.removeClass(l["class"]).addClass(v["class"]).html(v.text+'
'+v["hidden-text"]+" ").attr("aria-pressed",true);return b(".wb-invisible",h).text(v["hidden-text"])}if(u.data("state")==="started"){return r()}};if(q.autoHeight&&!m.hasClass("tabs-style-4")&&!m.hasClass("tabs-style-5")){n.show();c.equalHeights(true)}m.easytabs(b.extend({},q,{cycle:false}));if(q.cycle){o=function(B,E,D){var C,F;C=B.filter(function(){return b(this).is("."+D.tabActiveClass)});c.attr("aria-live","polite");F=C.siblings(".tabs-roller");m.find(".tabs-toggle").data("state","started");return F.show().animate({width:C.parent().width()},D.cycle-200,"linear",function(){b(this).width(0).hide();z(k(B),B,E,D,true);return m.data("interval",setTimeout(function(){return o(B,E,D)},0))})};r=function(){clearTimeout(m.data("interval"));c.attr("aria-live","off");m.find(".tabs-roller").width(0).hide().stop();m.find(".tabs-toggle").data("state","stopped");h.removeClass(v["class"]).addClass(l["class"]).html(l.text+'
'+l["hidden-text"]+" ").attr("aria-pressed",false);return b(".wb-invisible",h).text(l["hidden-text"])};c.attr("role","marquee").attr("aria-live","off");g=b('
');s={"class":"tabs-prev",text:" ","hidden-text":pe.dic.get("%previous")};e=b(''+s.text+''+s["hidden-text"]+" ");x.append(g.append(e));e.on("click",function(){z(y(d),d,n,q,true)});i=b(" ");t={"class":"tabs-next",text:" ","hidden-text":pe.dic.get("%next")};f=b(''+t.text+''+t["hidden-text"]+" ");x.append(i.append(f));f.on("click",function(){z(k(d),d,n,q,true)});u=b(' ');v={"class":"tabs-stop",text:pe.dic.get("%pause"),"hidden-text":pe.dic.get("%tab-rotation","disable")};l={"class":"tabs-start",text:pe.dic.get("%play"),"hidden-text":pe.dic.get("%tab-rotation","enable")};h=b(''+v.text+''+v["hidden-text"]+" ");x.append(u.append(h));u.click(w).on("keydown",function(B){if(B.keyCode===32){w();return B.preventDefault()}});x.find("li a").not(u.find("a")).on("click",function(){return r()});d.each(function(){var B;B=b('').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(B)});o(d,n,q);if(!q.autoPlay){r()}}m.find('a[href^="#"]').each(function(){var B,C;C=b(this).attr("href");if(C.length>1){B=b(C,n);if(B.length){return b(this).on("click",function(F){var D,E;D=B.parents('[role="tabpanel"]:hidden');if(D){F.preventDefault();E=D.attr("id");D.parent().siblings(".tabs").find('a[href="#'+E+'"]').trigger("click");return B.get(0).scrollIntoView(true)}})}}});return m.attr("class",m.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
]*<))([\\s'])?("+h+")(?!>)";j=k.html().replace(new RegExp(h,"gi"),function(n,m,l,i){return(typeof l==="undefined"?"":l)+''+i+" "});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.toolbar={scope:"plugin",_exec:function(d){var c=b('");b("#wb-body-sec-sup, #wb-body-sec, #wb-body").add("body").first().append(c);c.hide();b(window).bind("scroll",function(){if(b(this).scrollTop()>10){c.fadeIn("normal").attr("aria-hidden","false")}else{c.fadeOut("normal").attr("aria-hidden","true")}});if(b(window).scrollTop()<10||b(window).scrollTop()==="undefined"){c.fadeOut("normal").attr("aria-hidden","true")}else{c.fadeIn("normal").attr("aria-hidden","false")}}};window.pe=b.extend(true,window.pe,a);return window.pe}(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,j){var h,g,c,f;h=(e>0&&e';g=0;while(g ';c+=pe.string.ify.clean(f[g].text);c+=' '+pe.dic.ago(f[g].created_at)+" ";g+=1}c+="";return j.replaceWith(c)},_json_request:function(c){if(c.toLowerCase().indexOf("!/search/")>-1){return c.replace("http://","https://").replace(/https:\/\/twitter.com\/#!\/search\/(.+$)/,function(g,f,e,d){return"http://search.twitter.com/search.json?q="+encodeURI(decodeURI(f))})}return c.replace("http://","https://").replace(/https:\/\/twitter.com\/#!\/(.+$)/i,function(g,f,e,d){return"http://twitter.com/status/user_timeline/"+encodeURI(decodeURI(f))+".json?callback=?"})},exec:function(j,e,k){var c,g,h,f,d;h=j.length-1;c=[];f=this._parse_entries;g=j.length-1;d=[];while(g>=0){b.getJSON(this._json_request(j[g]),function(l){var i;i=0;while(i';c+=''+d[1].title+' ['+pe.date.to_iso_format(d[1].publishedDate,true)+"] ";c+="";return f.replaceWith(c)},exec:function(j,e,k){var c,g,h,f,d;h=j.length-1;c=[];f=this._parse_entries;g=j.length-1;d=[];while(g>=0){b.getJSON(this._json_request(j[g]),function(l){var i;i=0;while(i0){e+="&num="+c}return e}},rss:{_parse_entries:function(d,e,j){var h,g,c,f;h=(e>0&&e';g=0;while(g'+f[g].title+' ['+pe.date.to_iso_format(f[g].publishedDate,true)+"] ";g+=1}c+="";return j.replaceWith(c)},exec:function(j,e,k){var c,g,h,f,d;h=j.length-1;c=[];f=this._parse_entries;g=j.length-1;d=[];while(g>=0){b.getJSON(this._json_request(j[g]),function(l){var i;i=0;while(i0){e+="&num="+c}return e}},_exec:function(h,g){var f,d,c,e;f=b(h);e=pe.limit(f);c=f.find("a").map(function(){var i;i=b(this).attr("href");if(!g&&/twitter.com/i.test(i)){g="twitter"}if(!g&&/weatheroffice.gc.ca/i.test(i)){g="weather"}if(!g){g="rss"}return b(this).attr("href")});d=b(' ');f.find(".widget-content").replaceWith(d);b.extend({},a.fn.webwidget[g]).exec(c,e,d);return}};window.pe=a;return window.pe}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.zebra={type:"plugin",_exec:function(g){var e,o,n,h,l,m,k,c,s,p,d,r=[],q=false,f=[];c={noheaderhighlight:false,norowheaderhighlight:false,nocolheaderhighlight:false,columnhighlight:false,nohover:false,justgroup:false};s={noheaderhighlight:g.hasClass("noheaderhighlight")?true:undefined,norowheaderhighlight:g.hasClass("norowheaderhighlight")?true:undefined,nocolheaderhighlight:g.hasClass("nocolheaderhighlight")?true:undefined,columnhighlight:g.hasClass("columnhighlight")?true:undefined,nohover:g.hasClass("nohover")?true:undefined,justgroup:g.hasClass("justgroup")?true:undefined};if(typeof wet_boew_zebra!=="undefined"&&wet_boew_zebra!==null){b.extend(c,wet_boew_zebra,s)}else{b.extend(c,s)}if(c.norowheaderhighlight&&c.nocolheaderhighlight){c.noheaderhighlight=true}if(g.is("table")){if(!b(g).data().tblparser){a.fn.parsertable._exec(b(g))}l=b(g).data().tblparser;if(l.keycell){for(m=0;m0&&l.row[m-1].type&&l.row[m-1].type===3&&l.row[m-1].rowgroup.uid!==l.row[m].rowgroup.uid){b(l.row[m].rowgroup.elem).addClass("table-rowgroupmarker")}}}b("th",g).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(l.colgroup){for(m=0;m0&&l.colgroup[m].type===3&&l.colgroup[m-1].type===3&&l.colgroup[m-1].level>l.colgroup[m].level)||(l.colgroup[m].type===2&&((m>0&&l.colgroup[0].type===2)||(m>1&&l.colgroup[0].type===1))))){b(l.colgroup[m].elem).addClass("table-colgroupmarker")}}}if(l.lstrowgroup){for(m=0;m0){b(l.lstrowgroup[m].elem).addClass("table-rowgroupmarker")}}}if(!c.noheaderhighlight||c.columnhighlight){p=function(t){var j=[],i=b(t).data().tblparser;if(i.row&&i.row.header&&!c.norowheaderhighlight){for(m=0;m0});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.justgroup){if(!c.columnhighlight){e.filter(":odd").addClass("table-even");e.filter(":even").addClass("table-odd")}else{o=[];for(m=0;m0?c("html").attr("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"),main:c("#wb-main"),secnav:c("#wb-sec"),footer:c("#wb-foot"),urlquery:"",svg:(c(' ').get(0).ownerSVGElement!==undefined),ie:(/(MSIE) ([\w.]+)/.exec(navigator.userAgent)||[])[2]||"0",_init:function(){var j,e,d,i,f,h,g=false;a.polyfills.init();a.urlquery=a.url(window.location.href).params;c("html").removeClass("no-js").addClass(wet_boew_theme!==null?wet_boew_theme.theme:"").addClass(a.touchscreen?"touchscreen":"");j=a.main.find("a").filter("[href*='#']");d=j.filter(":not([href^='#'])");e=j.filter("[href^='#']");if(a.mobilecheck()){a.mobile=true;c("body > div").attr("data-role","page").addClass("ui-page-active");c(document).on("mobileinit",function(){c.extend(c.mobile,{ajaxEnabled:false,pushStateEnabled:false,autoInitializePage:(g?true:false)});if(g){a.mobilelang()}});d.each(function(){i=c(this);f=a.url(i.attr("href"));if((i.attr("data-replace-hash")===undefined&&(f.hash.length>0&&window.location.hostname===f.host))||(i.attr("data-replace-hash")!==undefined&&i.attr("data-replace-hash")===true)){i.attr("href",f.removehash()+(f.params.length>0?"&":"?")+"hashtarget="+f.hash)}});c(document).on("pageinit",function(){e.off("click vclick").on("click vclick",function(){i=c(c(this).attr("href"));i.filter(":not(a, button, input, textarea, select)").attr("tabindex","-1");if(i.length>0){c.mobile.silentScroll(a.focus(i).offset().top)}});if(a.urlquery.hashtarget!==undefined){h=a.main.find("#"+a.urlquery.hashtarget);h.filter(":not(a, button, input, textarea, select)").attr("tabindex","-1");if(h.length>0){setTimeout(function(){c.mobile.silentScroll(a.focus(h).offset().top)},0)}}});a.add.css([a.add.themecsslocation+"jquery.mobile"+a.suffix+".css"]);a.add._load([a.add.liblocation+"jquery.mobile/jquery.mobile.min.js"])}else{e.on("click vclick",function(){i=c(c(this).attr("href"));i.filter(":not(a, button, input, textarea, select)").attr("tabindex","-1");if(i.length>0){a.focus(i)}});if(window.location.hash.length>0){i=c(window.location.hash);i.filter(":not(a, button, input, textarea, select)").attr("tabindex","-1");if(i.length>0){a.focus(i)}}}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(){c(document).one("languageloaded",function(){if(a.pedisable()===true){return false}if(wet_boew_theme!==null){wet_boew_theme.init();if(a.mobile===true){c(document).one("mobileviewloaded",function(){if(typeof c.mobile!=="undefined"){a.mobilelang();c.mobile.initializePage()}else{g=true}});wet_boew_theme.mobileview()}}else{if(a.mobile===true){if(typeof c.mobile!=="undefined"){a.mobilelang();c.mobile.initializePage()}else{g=true}}}a.dance()});a.add.language(a.language)})},mobile:false,mobilecheck:function(){return(a.mobileview&&window.innerWidth<768&&(window.outerWidth-window.innerWidth<50)&&!(a.ie>0&&a.ie<9))},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='x ';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'+((e.length>25)?e.substr(0,24)+"...":e)+""})},at:function(d){return d.replace(/(^|[^\w]+)\@([a-zA-Z0-9_]{1,15}(\/[a-zA-Z0-9\-_]+)*)/g,function(e,g,f){return g+'@'+f+" "})},hash:function(d){return d.replace(/(^|[^&\w'"]+)\#([a-zA-Z0-9_]+)/g,function(e,g,f){return g+'#'+f+" "})},clean:function(d){return this.hash(this.at(this.link(d)))}}}()),pad:function(e,d){var f;f=String(e);while(f.lengthd)-(e0&&a.ie<7&&f!=="false")||f==="true"){c("html").addClass("no-js pe-disable");if(h){localStorage.setItem("pedisable","true")}d.innerHTML=''+a.dic.get("%pe-enable")+" ";e.appendChild(d);return true}else{if(f==="false"||g!==null){if(h){localStorage.setItem("pedisable","false")}}}d.innerHTML=''+a.dic.get("%pe-disable")+" ";e.appendChild(d);return false},menu:{navcurrent:function(d,l,f){var o,k,p,h,n,e=a.url(window.location.href).removehash(),m=[],g=[],j;d=(typeof d.jquery!=="undefined"?d:c(d));l=c((typeof l.jquery!=="undefined"?l:c(l)).find("a").get().reverse());f=(typeof f==="undefined")?"nav-current":f;l.each(function(i){var q=c(this);m[i]=q.attr("href");g[i]=q.text()});c(d.find("a").get().reverse()).each(function(){o=c(this);k=o.attr("href");p=o.text();j=(k===e);for(h=0,n=m.length;!j&&h!==n;h+=1){if(m[h]!=="#"&&(m[h]===k||g[h]===p)){j=true;break}}if(j){o.addClass(f);return false}});return(j?o:c())},buildmobile:function(d,q,i,e,p){var f=c('
'),h=(typeof d.jquery!=="undefined"?d:c(d)).find("> div, > ul, h"+q),j,g,n,m,l=(e!==undefined?e:false),o=(p!==undefined?p:false),k=a.dic.get("%all");if(h.get(0).tagName.toLowerCase()==="ul"){f.append(c('').append(h.first().children("li")))}else{h.each(function(){var r=c(this);if(this.tagName.toLowerCase()==="h"+q){n=r.children("a");g=c('"+r.text()+"
");if(l){r=r.parent().find("a").eq(1).closest("ul, div, h"+q+1).first();j=r}else{j=r.next()}if(j.get(0).tagName.toLowerCase()==="ul"){if(!l){j.append(c(" ").append(r.children("a").html(k+" - "+n.html())))}m=j.find("li ul");m.each(function(t){var u=c(this),s;if((q+1+t)<7){n=u.prev("a");s=n.html();u.attr({"data-role":"listview","data-theme":i}).wrap('
");u.parent().prepend(""+s+" ");u.append(''+k+" - "+s+" ");n.remove()}else{u.attr({"data-role":"listview","data-theme":i})}});g.append(c('').append(j.children("li")));g.find("ul").wrap('")}else{g.append(a.menu.buildmobile(r.parent(),q+1,i,false,o));if(!l){g.find('div[data-role="collapsible-set"]').eq(0).append(r.children("a").html(k+" - "+n.html()).attr({"data-role":"button","data-theme":i,"data-icon":"arrow-r","data-iconpos":"right"}))}}f.append(g)}else{if(this.tagName.toLowerCase()==="div"){f.append(r.children("a").attr({"data-role":"button","data-theme":i,"data-icon":"arrow-r","data-iconpos":"right"}))}}});f.children().wrapAll('
')}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(f){var d=(typeof f.jquery!=="undefined"?f:c(f)),e=d.parent();d.detach().find(".ui-collapsible-set").each(function(){var g=c(this);if(g.find("> ul .ui-collapsible").length>0){g=g.children("ul")}g.children().each(function(){var i=c(this),h=(this.tagName.toLowerCase()==="a"?i:i.find("a").first());if(i.prev().length>0){h.removeClass("ui-corner-top")}else{h.addClass("ui-corner-top")}if(i.next().length>0){h.removeClass("ui-corner-bottom")}else{h.addClass("ui-corner-bottom")}})});d.appendTo(e)}},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,v){var t=this.polyfill,f,l,n,j={},x=[],u=[],m,d,g,s,k=a.add.liblocation,p=[],r=[],o=[],q,w;if(v){for(f in t){if(t.hasOwnProperty(f)){u.push(t[f].selector)}}s=c(u.join(","))}else{s=c()}for(f in t){if(t.hasOwnProperty(f)){l=t[f];n=s.length>0?s.filter(l.selector):s;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(q=0,w=m.length;q!==w;q+=1){if(c.inArray(m[q],a.add.staged)===-1){g.push(m[q])}}if(g.length>0){j[f]=g}else{x.push(f)}}else{x.push(f)}c("html").addClass("polyfill-"+f);n.addClass("polyfill")}else{c("html").addClass(f)}}else{if(!l.supported&&typeof l.loaded==="undefined"){x.push(f)}}}}}for(q=0,w=x.length;q!==w;q+=1){l=t[x[q]];o[o.length]=(typeof l.load!=="undefined"?l.load:k+"polyfills/"+x[q]+a.suffix+".js");if(typeof l.init!=="undefined"){r.push(x[q])}l.loaded=true}p.push(j);p.push(r);a.add._load_arr(o,h,p)},polyfill:{datalist:{selector:"input[list]",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="a 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=MML_HTMLorMML",support_check:function(){var d=false,e,g,f;if(document.createElementNS){e="http://www.w3.org/1998/Math/MathML";g=document.createElement("div");g.style.position="absolute";g.style.color="#fff";f=g.appendChild(document.createElementNS(e,"math")).appendChild(document.createElementNS(e,"mfrac"));f.appendChild(document.createElementNS(e,"mi")).appendChild(document.createTextNode("xx"));f.appendChild(document.createElementNS(e,"mi")).appendChild(document.createTextNode("yy"));document.body.appendChild(g);d=g.offsetHeight>g.offsetWidth;g.parentNode.removeChild(g)}return d}},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){c(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;c(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";c(document).on(h,function(){e+=1;if(e===k.length){c(document).off(h);c(document).trigger({type:g,payload:j})}});if(k.length>0){for(f=0,d=k.length;f0&&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}}}()),dance:function(){var g,d,h=(typeof wet_boew_properties!=="undefined"&&wet_boew_properties!==null)?wet_boew_properties:false,e=c('[class^="wet-boew-"]'),f=[],j,k=[],l=["resize","equalheights"];e.each(function(){var m=c(this),i=m.attr("class").split(" "),n=[];for(g=0,d=i.length;g!==d;g+=1){if(i[g].indexOf("wet-boew-")===0){n.push(i[g].substr(9).toLowerCase())}}m.attr("data-load",n.join(","));f.push.apply(f,n)});if(h){f.push(h.globals)}f=a.array.noduplicates(f);for(g=0,d=f.length;g!==d;g+=1){j=f[g];if(typeof a.fn[j]!=="undefined"){if(typeof a.fn[j].polyfills!=="undefined"){k.push.apply(k,a.fn[j].polyfills)}if(typeof a.fn[j].depends!=="undefined"){l.push.apply(l,a.fn[j].depends)}}}c(document).one("wb-polyinit-loaded",function(o){var m=a.polyfills.polyfill,q=o.payload[0],p=o.payload[1],i=[],n;for(g=0,d=p.length;g!==d;g+=1){m[p[g]].init()}for(n in q){if(q.hasOwnProperty(n)){l.push.apply(l,q[n]);i.push(n)}}c(document).one("wb-pcalldeps-loaded",function(){c(document).one("wb-polydeps-loaded",function(r){p=r.payload[1];for(g=0,d=p.length;g!==d;g+=1){m[p[g]].init()}e.each(function(){var s=c(this),t=s.attr("data-load").split(",");for(g=0,d=t.length;g!==d;g+=1){if(typeof a.fn[t[g]]!=="undefined"){a.fn[t[g]]._exec(s)}}});if(h){for(g=0,d=h.globals.length;g!==d;g+=1){a.fn[h.globals[g]]._exec(document)}}window.onresize=function(){if(a.mobile!==a.mobilecheck()){window.location.href=decodeURI(a.url(window.location.href).removehash())}}});a.polyfills.polyload(i,"wb-polydeps-loaded",false)});a.add._load_arr(a.add.depends(a.array.noduplicates(l)),"wb-pcalldeps-loaded")});a.polyfills.polyload(a.array.noduplicates(k),"wb-polyinit-loaded",true)}};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(d){if(pe.mobile){return}var c=b('");b(window).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())){b(window).scrollTop(b(window).scrollTop()-c.outerHeight())}});if(b(window).scrollTop()<10||b(window).scrollTop()==="undefined"){c.fadeOut("normal").attr("aria-hidden","true")}else{c.fadeIn("normal").attr("aria-hidden","false")}pe.pagecontainer().append(c)}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.charts={type:"plugin",depends:["raphael"],polyfills:["detailssummary"],_exec:function(k){var p={},e,n=b(k),h=new Date().getTime(),j={},c={},q,m,g="";if(typeof(wet_boew_charts)!=="undefined"&&wet_boew_charts!==null){p=wet_boew_charts}e=b.extend(true,{"default-namespace":"wb-charts","graphclass-autocreate":true,"graphclass-overwrite-array-mode":true,"graphclass-typeof":"string","noencapsulation-autocreate":true,"topvalue-autocreate":true,"topvalue-typeof":"number","topvaluenegative-autocreate":true,"topvaluenegative-typeof":"boolean","bottomvalue-autocreate":true,"bottomvalue-typeof":"number","bottomvaluenegative-autocreate":true,"bottomvaluenegative-typeof":"boolean","nocutaxis-autocreate":true,"nocutaxis-typeof":"boolean","steps-autocreate":true,"steps-typeof":"number","decimal-autocreate":true,"decimal-typeof":"number","execdelay-autocreate":true,"execdelay-typeof":"number",serie:{type:"line",color:"blue"},serie2dAxis:{dasharray:"",fillopacity:100},heading2dAxis:{fill:"white",fillover:"blue",foreground:"black",foregroundover:"red"},"default-option":"type",type:"bar","type-autocreate":true,"endcaption-autocreate":true,"endcaption-typeof":"boolean",generateids:true,"generateids-typeof":"boolean",optionsClass:{"default-option":"type","type-autocreate":true,"color-autocreate":true,"overcolor-autocreate":true,"default-namespace":"wb-charts","dasharray-autocreate":true,"noencapsulation-autocreate":true,"fillopacity-autocreate":true,"fillopacity-typeof":"number"},width:b(k).width(),"width-typeof":"number",height:b(k).height(),"height-typeof":"number",maxwidth:"9999","maxwidth-typeof":"number",widthPadding:2,colors:["#be1e2d","#666699","#92d5ea","#ee8310","#8d10ee","#5a3b16","#26a4ed","#f45a90","#e9e744"],textColors:[],parseDirection:"x",drawDirection:"x",pieMargin:20,pieLabelsAsPercent:true,pieLabelPos:"inside",lineWeight:4,barGroupMargin:10,barMargin:1,font:{height:20,width:10,size:14},axis:{top:{tick:null,lenght:null,padding:null},right:{tick:null,lenght:null,padding:null},bottom:{tick:null,lenght:null,padding:null},left:{tick:null,lenght:null,padding:null},tick:true,lenght:4,padding:4,minNbIncrementStep:6}},p);function d(o){var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c","indigo ":"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return(r[o.toLowerCase()]!=="undefined"?r[o.toLowerCase()]:(b.isArray(e.colors)?e.colors[0]:e.colors))}j.circleGraph={height:undefined,width:undefined,offset:{top:undefined,right:undefined,bottom:undefined,left:undefined},sizeMode:"minimal",maxWidth:600,minWidth:150,strokeWidth:3,minLevelWidth:25,levelPadding:10,nbPieByRow:undefined,props:{minWidth:100,minLevelWidth:50},captionFontSize:20,fontSize:10,piePadding:10,graphPadding:10,pieByRow:undefined,minPieWidth:undefined,graphTitle:undefined,legendContainer:undefined,paperContainer:undefined,paper:undefined,paperDOM:undefined,series:{},options:{},init:function(r,y){j.circleGraph.width=undefined;j.circleGraph.minWidth=150;j.circleGraph.minLevelWidth=25;j.circleGraph.levelPadding=10;j.circleGraph.series=r;j.circleGraph.options=y;j.circleGraph.width=j.circleGraph.options.width;var u=1,v=j.circleGraph.series.nbColLevel-1,x=(v*((j.circleGraph.minLevelWidth*2)+(j.circleGraph.levelPadding*2))+(v*(j.circleGraph.strokeWidth*2))),w=j.circleGraph.minWidth+(j.circleGraph.levelPadding*2)+(j.circleGraph.strokeWidth*2),o=x+w,s,t;j.circleGraph.pieByRow=u;if(!j.circleGraph.width||o>j.circleGraph.width){j.circleGraph.width=o}else{s=j.circleGraph.minWidth/o;t=j.circleGraph.minLevelWidth/o;j.circleGraph.minWidth=Math.floor(s*(j.circleGraph.width));j.circleGraph.minLevelWidth=Math.floor(t*(j.circleGraph.width))}j.circleGraph.height=j.circleGraph.width},generateGraph:function(s,v){j.circleGraph.paperContainer=s;j.circleGraph.paper=v;var o=1,u=1,r=0,t=0,w=false;b.each(j.circleGraph.series.series,function(){var M=[],z,O,A,P,H,y,x,I,E,B,L,N,C,K,G,D=[];w=false;O=b("").appendTo((b.isArray(j.circleGraph.paperContainer)?b(j.circleGraph.paperContainer[u-1]):j.circleGraph.paperContainer));j.circleGraph.legendContainer=O;A=(b.isArray(j.circleGraph.paper)?j.circleGraph.paper[u-1]:j.circleGraph.paper);u+=1;if(o>=(j.circleGraph.pieByRow*(u+1))){r=0}P=0;H=false;b.each(this.cell,function(){if(this.value<0){H=true}if(j.circleGraph.options.decimal){this.value=Math.floor(this.value*Math.pow(10,j.circleGraph.options.decimal))}P+=this.value});y=(j.circleGraph.width/2)+(j.circleGraph.width*r);x=(j.circleGraph.width/2)+(j.circleGraph.width*r);E="#000";B=0;L=90;N=Math.PI/180;K=500;function J(S,Q){var R=(j.circleGraph.minWidth/2)+j.circleGraph.strokeWidth+j.circleGraph.levelPadding+(j.circleGraph.series.nbColLevel-S-Q-1)*(j.circleGraph.levelPadding+(j.circleGraph.strokeWidth*2)+j.circleGraph.minLevelWidth);return R}function F(R,Q){return(J(R,Q)+j.circleGraph.minLevelWidth+j.circleGraph.strokeWidth)}G=j.circleGraph.series.nbColLevel;b.each(this.cell,function(){var ai=this.colPos,W="",Q=G,ag=[],ab=[],al,aj,am,T,ad,ak,S,ae,ah,R,V,af,aq,Z,Y,U,an,aa,X,ap,ac,ao;b.each(j.circleGraph.series.heading,function(){if(this.colPos180),0,ak,S);ab.push("z");b.each(ag,function(){var ar=this,av=true,at,au;ar.still=false;b.each(D,function(){if(this.id===ar.id){ar.still=true;this.still=true;av=false;return false}});if(!this.topX1){at=J(this.level,this.height);au=F(this.level,this.height);this.topX1=y+au*Math.cos(-aj*N);this.topY1=x+au*Math.sin(-aj*N);this.bottomX1=y+at*Math.cos(-aj*N);this.bottomY1=x+at*Math.sin(-aj*N);this.r1=au;this.r2=at;this.startAngle=aj;this.bcolor=Raphael.hsb(B,1,1);this.color=Raphael.hsb(B,0.75,1);this.start=B;B+=0.05}if(av){this.still=true;D.push(this)}});b.each(D,function(){if(!this.still&&!this.ignoreMe){var aF=J(this.level,this.height),aG=F(this.level,this.height),aK=y+aG*Math.cos(-aj*N),aw=x+aG*Math.sin(-aj*N),av=y+aF*Math.cos(-aj*N),aD=x+aF*Math.sin(-aj*N),aB=[],ar=(aj-this.startAngle)/360*100,au="90-"+this.bcolor+"-"+this.color,aL,az,ax,at,aE,aH,aA,ay,aJ,aC,aI;aB.push("M",this.topX1,this.topY1);aB.push("A",aG,aG,0,+(aj-this.startAngle>180),0,Math.ceil(aK),Math.ceil(aw));aB.push("L",Math.ceil(av),Math.ceil(aD));aB.push("A",aF,aF,0,+(aj-this.startAngle>180),1,Math.ceil(this.bottomX1),Math.ceil(this.bottomY1));aB.push("z");if(j.circleGraph.options.decimal){ar=ar*(Math.pow(10,j.circleGraph.options.decimal))}ar=Math.ceil(ar*1000);ar=Math.floor(ar/1000);if(j.circleGraph.options.decimal){ar=ar/(Math.pow(10,j.circleGraph.options.decimal))}if(this.param.color){au=d(this.param.color)}if(!w){aL=b(" ").appendTo(b(O));az=b(' ').appendTo(b(aL));ax=new Raphael(b(az).get(0),j.circleGraph.options.font.size,j.circleGraph.options.font.size);at=ax.rect(2,2,j.circleGraph.options.font.size-(2*2)+(2/2),j.circleGraph.options.font.size-(2*2)+(2/2));b(aL).append(this.header);at.attr("fill",au)}aE=A.path(aB).attr({fill:au,stroke:E,"stroke-width":3,title:this.header+" ("+ar+"%)"});aH=((aj-this.startAngle)/2)+this.startAngle;aA=A.text(y+(aG*Math.cos(-aH*N)),x+(aG*Math.sin(-aH*N)),ar+"%").attr({fill:"#000",stroke:"none",opacity:1,"font-size":j.circleGraph.fontSize});ay=aA.getBBox();aJ=A.rect(ay.x-10,ay.y-10,ay.width+(2*10),ay.height+(2*10)).attr({fill:"#FFF",stroke:"black","stroke-width":"1",opacity:1});M.push({txt:aA,bg:aJ});aC=this.start;aI=Raphael.hsb(aC,1,0.3);if(this.param.overcolor){aI=d(this.param.overcolor)}aE.mouseover(function(){aE.stop().attr({fill:aI});aJ.stop().attr({"stroke-width":"3"});aA.insertAfter(z);aJ.insertBefore(aA);z=aA}).mouseout(function(){aE.stop().attr({fill:au});aJ.stop().attr({"stroke-width":"1"})});aJ.mouseover(function(){aE.stop().attr({fill:aI});aJ.stop().attr({"stroke-width":"3"});aA.insertAfter(z);aJ.insertBefore(aA);z=aA}).mouseout(function(){aE.stop().attr({fill:au});aJ.stop().attr({"stroke-width":"1"})});aA.mouseover(function(){aE.stop().attr({fill:aI});aJ.stop().attr({"stroke-width":"3"});aA.insertAfter(z);aJ.insertBefore(aA);z=aA}).mouseout(function(){aE.stop().attr({fill:au});aJ.stop().attr({"stroke-width":"1"})});this.ignoreMe=true}this.still=false});ae=Raphael.hsb(B,1,1);ah=Raphael.hsb(B,0.75,1);R=(ad-aj)/360*100;if(j.circleGraph.options.decimal){R=R*(Math.pow(10,j.circleGraph.options.decimal))}R=Math.ceil(R*1000);R=Math.floor(R/1000);if(j.circleGraph.options.decimal){R=R/(Math.pow(10,j.circleGraph.options.decimal))}V="90-"+ae+"-"+ah;if(this.param.color){V=d(this.param.color)}af=A.path(ab).attr({fill:V,stroke:E,"stroke-width":3,title:W+" ("+R+"%)"});if(!w){aq=b(" ").appendTo(b(O));Z=b(' ').appendTo(b(aq));Y=new Raphael(b(Z).get(0),j.circleGraph.options.font.size,j.circleGraph.options.font.size);U=Y.rect(2,2,j.circleGraph.options.font.size-(2*2)+(2/2),j.circleGraph.options.font.size-(2*2)+(2/2));b(aq).append(W);U.attr("fill",V)}an=L+(al/2);aa=A.text(y+(I*Math.cos(-an*N)),x+(I*Math.sin(-an*N)),R+"%").attr({fill:"#000",stroke:"none",opacity:1,"font-size":j.circleGraph.fontSize});X=aa.getBBox();ap=A.rect(X.x-10,X.y-10,X.width+(2*10),X.height+(2*10)).attr({fill:"#FFF",stroke:"black","stroke-width":"1",opacity:1});M.push({txt:aa,bg:ap});ac=B;ao=Raphael.hsb(ac,1,0.3);if(this.param.overcolor){ao=d(this.param.overcolor)}af.mouseover(function(){af.stop().attr({fill:ao});ap.stop().attr({"stroke-width":"3"});aa.insertAfter(z);ap.insertBefore(aa);z=aa}).mouseout(function(){af.stop().attr({fill:V});ap.stop().attr({"stroke-width":"1"})});ap.mouseover(function(){af.stop().attr({fill:ao});ap.stop().attr({"stroke-width":"3"});aa.insertAfter(z);ap.insertBefore(aa);z=aa}).mouseout(function(){af.stop().attr({fill:V});ap.stop().attr({"stroke-width":"1"})});aa.mouseover(function(){af.stop().attr({fill:ao});ap.stop().attr({"stroke-width":"3"});aa.insertAfter(z);ap.insertBefore(aa);z=aa}).mouseout(function(){af.stop().attr({fill:V});ap.stop().attr({"stroke-width":"1"})});L+=al;B+=0.1;o+=1;r+=1});b.each(D,function(){if(!this.ignoreMe){var ad=J(this.level,this.height),ae=F(this.level,this.height),ai=y+ae*Math.cos(-C*N),U=x+ae*Math.sin(-C*N),T=y+ad*Math.cos(-C*N),ab=x+ad*Math.sin(-C*N),Z=[],Q,S,R,V,X,aj,ac,af,Y,W,ah,aa,ag;Z.push("M",this.topX1,this.topY1);Z.push("A",ae,ae,0,+(C-this.startAngle>180),0,Math.ceil(ai),Math.ceil(U));Z.push("L",Math.ceil(T),Math.ceil(ab));Z.push("A",ad,ad,0,+(C-this.startAngle>180),1,Math.ceil(this.bottomX1),Math.ceil(this.bottomY1));Z.push("z");Q=(C-this.startAngle)/360*100;if(j.circleGraph.options.decimal){Q=Q*(Math.pow(10,j.circleGraph.options.decimal))}Q=Math.ceil(Q*1000);Q=Math.floor(Q/1000);if(j.circleGraph.options.decimal){Q=Q/(Math.pow(10,j.circleGraph.options.decimal))}S="90-"+this.bcolor+"-"+this.color;if(this.param.color){S=d(this.param.color)}if(!w){aj=b(" ").appendTo(b(O));X=b(' ').appendTo(b(aj));V=new Raphael(b(X).get(0),j.circleGraph.options.font.size,j.circleGraph.options.font.size);R=V.rect(2,2,j.circleGraph.options.font.size-(2*2)+(2/2),j.circleGraph.options.font.size-(2*2)+(2/2));b(aj).append(this.header);R.attr("fill",S)}ac=A.path(Z).attr({fill:S,stroke:E,"stroke-width":3,title:this.header+" ("+Q+"%)"});af=((C-this.startAngle)/2)+this.startAngle;Y=A.text(y+(ae*Math.cos(-af*N)),x+(ae*Math.sin(-af*N)),Q+"%").attr({fill:"#000",stroke:"none",opacity:1,"font-size":j.circleGraph.fontSize});W=Y.getBBox();ah=A.rect(W.x-10,W.y-10,W.width+(2*10),W.height+(2*10)).attr({fill:"#FFF",stroke:"black","stroke-width":"1",opacity:1});M.push({txt:Y,bg:ah});aa=this.start;ag=Raphael.hsb(aa,1,0.3);if(this.param.overcolor){ag=d(this.param.overcolor)}ac.mouseover(function(){ac.stop().attr({fill:ag});ah.stop().attr({"stroke-width":"3"});Y.insertAfter(z);ah.insertBefore(Y);z=Y}).mouseout(function(){ac.stop().attr({fill:S});ah.stop().attr({"stroke-width":"1"})});ah.mouseover(function(){ac.stop().attr({fill:ag});ah.stop().attr({"stroke-width":"3"});Y.insertAfter(z);ah.insertBefore(Y);z=Y}).mouseout(function(){ac.stop().attr({fill:S});ah.stop().attr({"stroke-width":"1"})});Y.mouseover(function(){ac.stop().attr({fill:ag});ah.stop().attr({"stroke-width":"3"});Y.insertAfter(z);ah.insertBefore(Y);z=Y}).mouseout(function(){ac.stop().attr({fill:S});ah.stop().attr({"stroke-width":"1"})});this.ignoreMe=true}});z=A.rect(0,0,1,1).attr({opacity:0});b.each(M,function(){this.txt.insertAfter(z);this.bg.insertBefore(this.txt)});z=M[M.length-1].txt;M=[];w=true})}};j.graph2dAxis={drawDirection:"x",height:undefined,width:undefined,offset:{top:undefined,right:undefined,bottom:undefined,left:undefined},cuttingOffset:undefined,xAxisOffset:undefined,cuttingPosPaper:undefined,NbColumnHeading:0,NbColumnHeaderLevel:undefined,zeroPos:undefined,cuttingPos:undefined,incrementation:undefined,nbStep:undefined,layout:{headingMinSize:undefined,nbColHeading:undefined},top:undefined,bottom:undefined,graphTitle:undefined,legendContainer:undefined,paperContainer:undefined,paper:undefined,paperDOM:undefined,series:{},options:{},setNbColumnHeading:function(){j.graph2dAxis.NbColumnHeading=0;j.graph2dAxis.NbColumnHeaderLevel=0;var o,r=[];b.each(j.graph2dAxis.series.heading,function(){if(!this.isGroup&&(this.colPos+this.width)>j.graph2dAxis.series.nbRowLevel){j.graph2dAxis.NbColumnHeading+=1;if(!r[this.level]||(this.header.length*j.graph2dAxis.options.font.width)>(r[this.level]*j.graph2dAxis.options.font.width)){r[this.level]=this.header.length*j.graph2dAxis.options.font.width}}if(this.level>j.graph2dAxis.NbColumnHeaderLevel||j.graph2dAxis.NbColumnHeaderLevel===undefined){j.graph2dAxis.NbColumnHeaderLevel=this.level}});j.graph2dAxis.NbColumnHeaderLevel+=1;o=(j.graph2dAxis.options.font.height*j.graph2dAxis.NbColumnHeaderLevel)+(j.graph2dAxis.options.axis.top.padding!==null?j.graph2dAxis.options.axis.top.padding:j.graph2dAxis.options.axis.padding);j.graph2dAxis.layout.headingMinSize=o},utils:{topRound:function(o){if(o>=0){o=Math.ceil(o)}else{o=Math.floor(o)}return o}},setHeightXLabel:function(){j.graph2dAxis.offset.top=(j.graph2dAxis.options.font.height/2);var r=Math.ceil((j.graph2dAxis.options.height-j.graph2dAxis.layout.headingMinSize)/j.graph2dAxis.options.font.height),o=r-j.graph2dAxis.NbColumnHeaderLevel;if(oj.graph2dAxis.bottom.toString().length){j.graph2dAxis.offset.left=j.graph2dAxis.options.font.width*j.graph2dAxis.top.toString().length}else{j.graph2dAxis.offset.left=j.graph2dAxis.options.font.width*j.graph2dAxis.bottom.toString().length}},setBottomOffset:function(){j.graph2dAxis.offset.bottom=j.graph2dAxis.options.height-(j.graph2dAxis.nbStep*j.graph2dAxis.options.font.height);if(j.graph2dAxis.cuttingPos>0){j.graph2dAxis.offset.bottom-=(2*j.graph2dAxis.options.font.height)}},setMetric:function(){var o,y,s,z,u=0,r,v,t,x,w;if(j.graph2dAxis.options.topvalue){if(j.graph2dAxis.options.topvaluenegative){o=-(j.graph2dAxis.options.topvalue)}else{o=j.graph2dAxis.options.topvalue}}if(j.graph2dAxis.options.bottomvalue){if(j.graph2dAxis.options.bottomvaluenegative){y=-(j.graph2dAxis.options.bottomvalue)}else{y=j.graph2dAxis.options.bottomvalue}}b.each(j.graph2dAxis.series.series,function(){b.each(this.cell,function(){if(o===undefined){o=this.value}if(othis.value){y=this.value}})});if(o>0){r=Math.floor(o);o=(o-r>0?r+1:r)}else{o=Math.ceil(o)}y=Math.floor(y);if(o===y){if(o>0){y=0}else{if(o<0){o=0}else{y=-5;o=5}}}v=j.graph2dAxis.utils.topRound(o-y);s=j.graph2dAxis.utils.topRound(v/j.graph2dAxis.nbStep);z=Math.round(j.graph2dAxis.nbStep*o/v);if(z>j.graph2dAxis.nbStep){z=j.graph2dAxis.nbStep}if(z<0){z=1}t=j.graph2dAxis.utils.topRound(o/(z-1));x=Math.abs(j.graph2dAxis.utils.topRound(y/(j.graph2dAxis.nbStep-z)));if(t>s&&(y>=0||(o>0&&0>y))){s=t}if(x>s&&(o<=0||(o>0&&0>y))){s=x}w=j.graph2dAxis.utils.topRound(v/(j.graph2dAxis.nbStep-2));if(!j.graph2dAxis.options.nocutaxis){if(w0){u=(j.graph2dAxis.nbStep-1);j.graph2dAxis.nbStep=j.graph2dAxis.nbStep-2;s=w}if(w=j.graph2dAxis.series.nbRowLevel){E-=j.graph2dAxis.series.nbRowLevel;t=t-j.graph2dAxis.series.nbRowLevel;z=Math.floor((j.graph2dAxis.options.width-j.graph2dAxis.offset.left)/(j.graph2dAxis.NbColumnHeading)*E);A=Math.floor((j.graph2dAxis.options.width-j.graph2dAxis.offset.left)/(j.graph2dAxis.NbColumnHeading)*t);w=z;w=Math.floor((A-z)/2)+z;w+=j.graph2dAxis.offset.left;x=(j.graph2dAxis.series.nbColLevel-this.height-this.level);o=(j.graph2dAxis.options.height-j.graph2dAxis.layout.headingMinSize)+(j.graph2dAxis.options.font.height*x);r=o+(this.height*j.graph2dAxis.options.font.height);u=o+((r-o)/2);B=z+j.graph2dAxis.offset.left;C=((j.graph2dAxis.options.width-j.graph2dAxis.offset.left)/(j.graph2dAxis.NbColumnHeading))*(this.width);y=r-o;s="50-#F4F4F4-#FFF";H="90-#FFF-#F4F4F4";if(this.param.fill){s=d(this.param.fill)}if(this.param.fillover){H=d(this.param.fillover)}G=j.graph2dAxis.paper.rect(B,o,C,y);G.attr("fill",s);G.attr("stroke-width","0");F=this.header;if((F.length*j.graph2dAxis.options.font.width)>C){F=F.substring(0,Math.floor(C/j.graph2dAxis.options.font.width))}v=j.graph2dAxis.paper.text(w,u,F);v.attr("text-anchor",D);v.attr("font-size",j.graph2dAxis.options.font.size+"px");v.attr("title",this.header);G.mouseover(function(){G.attr("fill",H)}).mouseout(function(){G.attr("fill",s)});v.mouseover(function(){G.attr("fill",H)}).mouseout(function(){G.attr("fill",s)})}})},yAxisLabel:function(){var t="M "+j.graph2dAxis.offset.left+" "+j.graph2dAxis.offset.top+" ",u,s,r,o;j.graph2dAxis.cuttingPosPaper=0;if(j.graph2dAxis.top<0){u=j.graph2dAxis.paper.text(j.graph2dAxis.offset.left-4,j.graph2dAxis.offset.top,0);u.attr("text-anchor","end");u.attr("font-size",j.graph2dAxis.options.font.size+"px");t+="L "+j.graph2dAxis.offset.left+" "+j.graph2dAxis.offset.top+" ";t+="L "+(j.graph2dAxis.offset.left+4)+" "+j.graph2dAxis.offset.top+" ";t+="L "+(j.graph2dAxis.offset.left-2)+" "+j.graph2dAxis.offset.top+" ";t+="L "+j.graph2dAxis.offset.left+" "+j.graph2dAxis.offset.top+" ";t+="L "+j.graph2dAxis.offset.left+" "+(j.graph2dAxis.offset.top+(j.graph2dAxis.options.font.height)-(j.graph2dAxis.options.font.height/4))+" ";t+="L "+(j.graph2dAxis.offset.left+10)+" "+(j.graph2dAxis.offset.top+(j.graph2dAxis.options.font.height))+" ";t+="L "+(j.graph2dAxis.offset.left-10)+" "+(j.graph2dAxis.offset.top+(j.graph2dAxis.options.font.height)-(j.graph2dAxis.options.font.height/2))+" ";j.graph2dAxis.paper.path(t);t="M "+j.graph2dAxis.offset.left+" "+(j.graph2dAxis.offset.top+j.graph2dAxis.options.font.height+(j.graph2dAxis.options.font.height/4))+" ";t+="L "+(j.graph2dAxis.offset.left+10)+" "+(j.graph2dAxis.offset.top+j.graph2dAxis.options.font.height+(j.graph2dAxis.options.font.height/2))+" ";t+="L "+(j.graph2dAxis.offset.left-10)+" "+(j.graph2dAxis.offset.top+j.graph2dAxis.options.font.height)+" ";t+="L "+(j.graph2dAxis.offset.left)+" "+(j.graph2dAxis.offset.top+j.graph2dAxis.options.font.height+(j.graph2dAxis.options.font.height/4))+" ";j.graph2dAxis.cuttingPosPaper=(j.graph2dAxis.offset.top+j.graph2dAxis.options.font.height);j.graph2dAxis.offset.top+=(2*j.graph2dAxis.options.font.height)}for(s=0,r=j.graph2dAxis.nbStep;ss&&j.graph2dAxis.bottom>0)||j.graph2dAxis.top<0){u=j.graph2dAxis.paper.text(j.graph2dAxis.offset.left-4,j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height),(j.graph2dAxis.top-(s*j.graph2dAxis.incrementation)));u.attr("text-anchor","end");u.attr("font-size",j.graph2dAxis.options.font.size+"px");t+="L "+j.graph2dAxis.offset.left+" "+(j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height))+" ";t+="L "+(j.graph2dAxis.offset.left+4)+" "+(j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height))+" ";t+="L "+(j.graph2dAxis.offset.left-2)+" "+(j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height))+" ";t+="L "+j.graph2dAxis.offset.left+" "+(j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height))+" "}}if(j.graph2dAxis.cuttingPos>j.graph2dAxis.nbStep&&j.graph2dAxis.bottom>0){t+="L "+j.graph2dAxis.offset.left+" "+(j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height)-(j.graph2dAxis.options.font.height/4))+" ";t+="L "+(j.graph2dAxis.offset.left-10)+" "+(j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height))+" ";t+="L "+(j.graph2dAxis.offset.left+10)+" "+(j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height)-(j.graph2dAxis.options.font.height/2))+" ";j.graph2dAxis.paper.path(t);t="M "+j.graph2dAxis.offset.left+" "+(j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height)+(j.graph2dAxis.options.font.height/4))+" ";t+="L "+(j.graph2dAxis.offset.left-10)+" "+(j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height)+(j.graph2dAxis.options.font.height/2))+" ";t+="L "+(j.graph2dAxis.offset.left+10)+" "+(j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height))+" ";t+="L "+(j.graph2dAxis.offset.left)+" "+(j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height)+(j.graph2dAxis.options.font.height/4))+" ";u=j.graph2dAxis.paper.text(j.graph2dAxis.offset.left-4,j.graph2dAxis.offset.top+((s+1)*j.graph2dAxis.options.font.height),0);u.attr("text-anchor","end");u.attr("font-size",j.graph2dAxis.options.font.size+"px");t+="L "+j.graph2dAxis.offset.left+" "+(j.graph2dAxis.offset.top+((s+1)*j.graph2dAxis.options.font.height))+" ";t+="L "+(j.graph2dAxis.offset.left+4)+" "+(j.graph2dAxis.offset.top+((s+1)*j.graph2dAxis.options.font.height))+" ";t+="L "+(j.graph2dAxis.offset.left-2)+" "+(j.graph2dAxis.offset.top+((s+1)*j.graph2dAxis.options.font.height))+" ";t+="L "+j.graph2dAxis.offset.left+" "+(j.graph2dAxis.offset.top+((s+1)*j.graph2dAxis.options.font.height))+" ";j.graph2dAxis.cuttingPosPaper=(j.graph2dAxis.offset.top+(s*j.graph2dAxis.options.font.height));j.graph2dAxis.options.height-=(2*j.graph2dAxis.options.font.height)}o=j.graph2dAxis.paper.path(t)},graph:function(){var u=0,r,s="line",v,o,t;b.each(j.graph2dAxis.series.series,function(){s=this.type;if(s==="bar"){u+=1;r="bar"}if(s==="stacked"&&(r!=="stacked"||r===undefined)){u+=1;r="stacked"}});r=undefined;v=-1;o=b("").appendTo(b(j.graph2dAxis.paperContainer));t=0;j.graph2dAxis.legendContainer=o;b.each(j.graph2dAxis.series.series,function(){var E=this,R=b(" ").appendTo(b(o)),F=b(' ').appendTo(b(R)),D=new Raphael(b(F).get(0),j.graph2dAxis.options.font.size,j.graph2dAxis.options.font.size),A=D.rect(2,2,j.graph2dAxis.options.font.size-(2*2)+(2/2),j.graph2dAxis.options.font.size-(2*2)+(2/2)),Q,B="",x=0,H,G,J,S,K,O,P,L,I,N,M,z,C,w,y;s=this.type;if(j.graph2dAxis.options.colors[t]){Q=j.graph2dAxis.options.colors[t]}else{Q=j.graph2dAxis.options.colors[0]}if(E.param.color){Q=d(E.param.color)}if(E.param.dasharray){B=E.param.dasharray.toLowerCase();B=B.replace("space"," ").replace("dash","-").replace("dot",".").replace("none","")}if(G===undefined){G=E.header.rawValue}b.each(this.cell,function(){var U=(x*((j.graph2dAxis.options.width-j.graph2dAxis.offset.left)/j.graph2dAxis.NbColumnHeading)),T=((x+1)*((j.graph2dAxis.options.width-j.graph2dAxis.offset.left)/j.graph2dAxis.NbColumnHeading)),V=((T-U)/2)+U+j.graph2dAxis.offset.left;if(!this.isHeader){this.graphMinPos=U;this.graphMaxPos=T;this.graphCenterPos=V;this.graphValue=(((j.graph2dAxis.top-this.value)*(j.graph2dAxis.options.font.height*(j.graph2dAxis.nbStep-1))/(j.graph2dAxis.top-j.graph2dAxis.bottom))+j.graph2dAxis.offset.top);if(H===undefined){H=T-U}x+=1}});b(R).append(G);if(s==="line"||s==="area"){b.each(this.cell,function(){if(!this.isHeader){if(J===undefined){J="M "+this.graphCenterPos+" "}else{J+="L "+this.graphCenterPos+" "}J+=this.graphValue+" ";if(S===undefined){S=this.graphCenterPos}K=this.graphCenterPos}});if(s==="area"){if(j.graph2dAxis.cuttingPosPaper===0){J+="L "+K+" "+j.graph2dAxis.xAxisOffset+" ";J+="L "+S+" "+j.graph2dAxis.xAxisOffset+" ";J+="z"}else{if(j.graph2dAxis.top<0){J+=" L "+K+" "+(j.graph2dAxis.cuttingPosPaper+(j.graph2dAxis.options.font.height/2));J+=" L "+S+" "+j.graph2dAxis.cuttingPosPaper;J+=" z";O=j.graph2dAxis.paper.path(J);O.attr("stroke",Q);O.attr("stroke-dasharray",B);if(s==="area"){O.attr("fill",Q);O.attr("fill-opacity",(30/100))}J="M "+S+" "+(j.graph2dAxis.cuttingPosPaper-(j.graph2dAxis.options.font.height/2));J+=" L "+K+" "+j.graph2dAxis.cuttingPosPaper;J+=" L "+K+" "+j.graph2dAxis.xAxisOffset;J+=" L "+S+" "+j.graph2dAxis.xAxisOffset;J+=" z"}else{J+=" L "+K+" "+(j.graph2dAxis.cuttingPosPaper-(j.graph2dAxis.options.font.height/2));J+=" L "+S+" "+j.graph2dAxis.cuttingPosPaper;J+=" z";O=j.graph2dAxis.paper.path(J);O.attr("stroke",Q);O.attr("stroke-dasharray",B);if(s==="area"){O.attr("fill",Q);O.attr("fill-opacity",(30/100))}J="M "+S+" "+(j.graph2dAxis.cuttingPosPaper+(j.graph2dAxis.options.font.height/2));J+=" L "+K+" "+j.graph2dAxis.cuttingPosPaper;J+=" L "+K+" "+j.graph2dAxis.xAxisOffset;J+=" L "+S+" "+j.graph2dAxis.xAxisOffset;J+=" z"}}}O=j.graph2dAxis.paper.path(J);O.attr("stroke",Q);A.attr("stroke",Q);O.attr("stroke-dasharray",B);A.attr("stroke-dasharray",B);if(s==="area"){O.attr("fill",Q);A.attr("fill",Q);O.attr("fill-opacity",(30/100));A.attr("fill-opacity",(30/100))}else{A.attr("fill",Q)}}if(s==="bar"||s==="stacked"){if((r!=="stacked"&&s!=="stacked")||r!==s){v+=1}r=s;P=50;L=50;I=(u*100)+P+L;N=(P*H/I);M=(L*H/I);z=H-N-M;C=z/u;w=C*v;y=w+C;b.each(this.cell,function(){if(!this.isHeader){var V=this.graphMinPos+w+N+j.graph2dAxis.offset.left,U,T,W=C,Y="",X;if(j.graph2dAxis.xAxisOffset>=this.graphValue){U=this.graphValue;T=j.graph2dAxis.xAxisOffset-this.graphValue}else{U=j.graph2dAxis.xAxisOffset;T=this.graphValue-j.graph2dAxis.xAxisOffset}if(j.graph2dAxis.cuttingPosPaper===0){Y="M "+V+" "+U;Y+=" L "+(V+W)+" "+U;Y+=" L "+(V+W)+" "+(U+T);Y+=" L "+V+" "+(U+T);Y+=" z"}else{if(j.graph2dAxis.top<0){Y="M "+V+" "+U;Y+=" L "+(V+W)+" "+U;Y+=" L "+(V+W)+" "+j.graph2dAxis.cuttingPosPaper;Y+=" L "+V+" "+(j.graph2dAxis.cuttingPosPaper-(j.graph2dAxis.options.font.height/2));Y+=" z";X=j.graph2dAxis.paper.path(Y);X.attr("fill",Q);if(E.param.fillopacity){X.attr("fill-opacity",(E.param.fillopacity/100))}Y="M "+V+" "+j.graph2dAxis.cuttingPosPaper;Y+=" L "+(V+W)+" "+(j.graph2dAxis.cuttingPosPaper+(j.graph2dAxis.options.font.height/2));Y+=" L "+(V+W)+" "+(U+T);Y+=" L "+V+" "+(U+T);Y+=" z"}else{Y="M "+V+" "+U;Y+=" L "+(V+W)+" "+U;Y+=" L "+(V+W)+" "+(j.graph2dAxis.cuttingPosPaper-(j.graph2dAxis.options.font.height/2));Y+=" L "+V+" "+j.graph2dAxis.cuttingPosPaper;Y+=" z";X=j.graph2dAxis.paper.path(Y);X.attr("fill",Q);if(E.param.fillopacity){X.attr("fill-opacity",(E.param.fillopacity/100))}Y="M "+V+" "+(j.graph2dAxis.cuttingPosPaper+(j.graph2dAxis.options.font.height/2));Y+=" L "+(V+W)+" "+j.graph2dAxis.cuttingPosPaper;Y+=" L "+(V+W)+" "+(U+T);Y+=" L "+V+" "+(U+T);Y+=" z"}}X=j.graph2dAxis.paper.path(Y);X.attr("fill",Q);A.attr("fill",Q);if(E.param.fillopacity){X.attr("fill-opacity",(E.param.fillopacity/100));A.attr("fill-opacity",(E.param.fillopacity/100))}}})}t+=1})}};c={sourceTblSelf:undefined,param:{},parse:function(){c.sourceTblSelf=n;if(c.param.parseDirection==="y"||e.parseDirection==="y"){n=c.swapTable(c.sourceTblSelf)}c.setSeriesHeadingLenght();var r=[],o=[];b("tbody",n).each(function(){var t=[],s={headerList:[],series:[],param:c.classToJson(this)};b("tr",this).each(function(){var D=0,B=0,w=0,u=b(this).children(),E=[],C=[],y="",x,A=false,v="",z;b.each(t,function(){if(this.colpos===B&&this.rowspan>0){var F=Number(b(this.ele.obj).attr("colspan")!==undefined?b(this.ele.obj).attr("colspan"):1),G;for(G=1;G<=F;G+=1){this.ele.colPos=G+B;if(this.ele.isHeader){C.push(jQuery.extend(true,{},this.ele))}else{E.push(jQuery.extend(true,{},this.ele))}}B+=F;if(b(this.ele.obj).get(0).nodeName.toLowerCase()==="th"&&c.seriesHeadingLenght>B){D+=1;if(this.rowspan>=1){w=this.ele.id}}this.rowspan-=1}});b("th, td",this).each(function(){c.cellID+=1;var G=false,P=c.getCellValue(b(this).text()),H={id:c.cellID,isHeader:false,rowPos:c.rowPos,rawValue:b(this).text(),value:P.cellValue,unit:P.cellUnit,obj:b(this),param:c.classToJson(this)},Q=Number(b(this).attr("colspan")!==undefined?b(this).attr("colspan"):1),I=(b(this).attr("rowspan")!==undefined?b(this).attr("rowspan"):1),L="",J,R,M="",K,F,S,O,N;for(J=B,R=(B+Q);J1){O=I-1;t.push({ele:H,rowspan:O,colpos:B,groupId:w});if(H.isHeader&&c.seriesHeadingLenght>B){D+=1;H.isHeader=true;K={id:c.cellID,level:D,width:I,height:Q,header:b(this).text(),groupId:w,isGroup:true,rowPos:c.rowPos,param:c.classToJson(this)};s.headerList.push(K);w=c.cellID}}for(J=1;J<=Q;J+=1){H.colPos=J+B;if(H.isHeader){C.push(jQuery.extend(true,{},H))}else{E.push(jQuery.extend(true,{},H))}}B+=Q;if(c.seriesHeadingLenght===B){if(!H.isHeader){A=true;v="Serie heading not good, current cell value:"+b(this).text()}y=b(this).text();x=b(this);K={id:c.cellID,level:D,width:I,height:Q,header:b(this).text(),groupId:w,isGroup:false,rowPos:c.rowPos,param:c.classToJson(this)};s.headerList.push(K)}b.each(t,function(){if(this.colpos===B&&this.rowspan>0){var T=Number(b(this.ele.obj).attr("colspan")!==undefined?b(this.ele.obj).attr("colspan"):1),V,U;for(J=1;J<=T;J+=1){this.ele.colPos=J+B;if(this.ele.isHeader){C.push(jQuery.extend(true,{},this.ele))}else{E.push(jQuery.extend(true,{},this.ele))}}B+=T;V=(b(this.ele.obj).attr("headers")!==undefined?b(this.ele.obj).attr("headers"):"");U=c.removeDuplicateElement(V.split(" ").concat(o[c.rowPos].split(" ")));b(this.ele.obj).attr("headers",U.join(" "));this.rowspan-=1}})});z={cell:E,cellHeading:C,header:y,headerParam:c.classToJson(x),level:D,GroupId:w,rowPos:c.rowPos,isRejected:A,rejectedRaison:v};if((c.tBodySeries.nbRowLevel<=D||c.tBodySeries.nbRowLevel===undefined)&&!A){c.tBodySeries.nbRowLevel=(D+1)}s.series.push(z);c.rowPos+=1});c.tBodySeries.series.push(s)})},seriesHeadingLenght:0,setSeriesHeadingLenght:function(){b("tbody:first tr:first th",n).each(function(){var o=Number(b(this).attr("colspan")!==undefined?b(this).attr("colspan"):1);c.seriesHeadingLenght+=o})},rowPos:0,cellID:0,removeDuplicateElement:function(u){var o=[],t,r,s,v;label:for(t=0,r=u.length;t1&&t>1){J=u;G=u+t-1;for(J=u;J<=G;J+=1){for(H=v;H<=K;H+=1){D[H][J]=3}}}else{if(s>1){for(H=v;H<=K;H+=1){D[H][u]=3}}}I=b(this).clone();I.attr("colspan",s);I.attr("rowspan",t);(r[u]=r[u]||[])[v]=I;u=u+t});v+=1});o=b("");b.each(r,function(G){var t=b("");o.append(t);b.each(r[G],function(s,H){t.append(H)})});z=o.html();y=''+F+" (Horizontal to Virtical) ";z=z.replace(/ /gi,y);z=z.replace(/<\/tbody>/gi,"
");z=z.replace(/\n/g,"");z=z.replace(/ "+A;break}}z=w.join("\n");b(z).insertAfter(n).hide();return b(z)},compute:function(){b.each(c.tBodySeries.series,function(){var r,o,s;b.each(this.series,function(){if(!this.isRejected){var v,u,t=0;b.each(this.cell,function(){if(!this.isHeader){if(this.value>v||v===undefined){v=this.value}if(this.valuer||r===undefined)&&!this.isRejected){r=v}if((us.length+w.length?this.slice(0,s.length):"")){var J=this.split(w).slice(u.length),D=r,F=u[u.length-1],E,K,C,G,z,y,B=false,H=false,I,A;for(E=0,K=J.length;E0){a.fn.charts.graphdelayed=true}if(a.fn.charts.graphstacked.length===0){clearTimeout(i);return}a.fn.charts._exec(a.fn.charts.graphstacked.shift());f+=1;var o=200;if(e.execdelay){o=e.execdelay}i=setTimeout(l,o)})()}return}a.fn.charts.graphprocessed=true;c.parse();if(!b(n).data().tblparser){a.fn.parsertable._exec(b(n))}q=function(){var r=b(n).data().tblparser,o=0,s=-1;b.each(r.theadRowStack,function(){b.each(this.cell,function(){if(this.uid>s){s=this.uid;var t={id:this.uid,uniqueID:this.uid,level:o,width:this.width,height:this.height,header:b(this.elem).text(),groupId:0,isGroup:(this.width>1?true:false),colPos:this.colpos-1,param:c.classToJson(b(this.elem))};if(!c.tBodySeries.ColHeading){c.tBodySeries.ColHeading=[]}c.tBodySeries.ColHeading.push(t)}});o+=1});c.tBodySeries.nbColLevel=r.theadRowStack.length;c.rowPos=r.theadRowStack.length-1};q();c.compute();e.width=parseFloat((c.param.width?c.param.width-e.widthPadding:e.width-e.widthPadding));e.width=parseFloat(e.width>(e.maxwidth-e.widthPadding)?e.maxwidth-e.widthPadding:e.width);e.height=parseFloat(c.param.height||e.height);m=c.tBodySeries.nbRowLevel;if(c.param.graph){g=c.param.graph}else{if(c.param.type){g=c.param.type}else{g=e.type}}b.each(c.tBodySeries.series,function(){var A=0,V=[],x=0,O=[],R,s,u="line",w=-1,I=[],D,z="",t={},M={},H=[],J,v=true,C=[],r,Q,B,G,T,F=[],L,S,o,P,y,E,N,U,W,K;if(c.param.type){u=c.param.type}if(this.param.graph){u=this.param.graph}D=u;b.each(this.series,function(){if(this.cellHeading.length===0){this.isRejected=true}if(!this.isRejected){v=false;var aa=false,X={},Z=[],Y="";if(this.cellHeading.length>m){X=this.cellHeading[m];if(w===X.id){I.push(jQuery.extend(true,{},X))}else{b.each(I,function(){for(R=0,s0){j.graph2dAxis.init(r,e)}if(Q.series.length>0){j.circleGraph.init(Q,e)}B=b(" ").insertAfter(c.sourceTblSelf);b(B).width(e.width+e.widthPadding);b(B).addClass(e["default-namespace"]);if(c.param.graphclass){if(b.isArray(c.param.graphclass)){for(R=0,s=c.param.graphclass.length;R0){G=[];L=[];b.each(Q.series,function(){var X=b(" "),Z=b(" "),Y;b(X).append(this.header.rawValue);b(B).append(Z);L.push(Z);Y=new Raphael(b(Z).get(0),j.circleGraph.width,j.circleGraph.height);b(X).prependTo(b(Z));G.push(Y);S(this.header.obj,Z)});j.circleGraph.generateGraph(L,G)}}if(r.series.length>0){G=new Raphael(b(B).get(0),e.width,e.height);j.graph2dAxis.generateGraph(B,G)}if(!v){U=b(n).attr("aria-describedby");E=b("caption",n).data().tblparser;if(E.caption){N=b(" ");b(B).prepend(N);if(b(E.caption).get(0).nodeType!==3){if(b(E.caption).get(0).nodeName.toLowerCase()==="caption"){b(N).append(b(E.caption).html())}else{b(N).append(b(E.caption).clone())}}else{b(N).append(b(" ").append(b(E.caption).text()))}if(E.description){P=E.description;if(P.length>1){P=b(P).wrapAll("
").parent()}y=b(P).attr("id");if(y===undefined||y===""){y="graphsourcedesc"+new Date().getTime();b(P).attr("id",y)}b(N).append(P);if(U===undefined||U===""){b(n).attr("aria-describedby",y)}}}S(E.caption,B);if(y){b.each(F,function(){b(this).attr("aria-describedby",y)})}if(b(n).attr("aria-label")===undefined||b(n).attr("aria-label")===""){b(n).attr("aria-label",(E.caption?b(E.caption).text()+" ":"")+a.dic.get("%table-mention"))}if(!c.param.noencapsulation){W=b(" ");K=b(" ");b(W).appendTo(B);b(K).text((E.caption?b(E.caption).text()+" ":"")+a.dic.get("%table-mention")).appendTo(W).after(n);if(b("html").hasClass("polyfill-detailssummary")){b(W).details()}}else{b(n).appendTo(B)}}else{b(B).remove()}})}};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(d){var c=b('input[type="radio"]:not(.deselectable)').attr("role","radio").attr("aria-checked","false").addClass("deselectable");c.filter(":checked").attr("aria-checked","true");c.closest("fieldset").attr("role","radiogroup");c.on("click vclick",function(){var e=b(this);if(e.attr("aria-checked")==="true"){e.prop("checked",false).attr("aria-checked","false")}else{e.closest("fieldset").find('input[type="radio"]').prop("checked",false).attr("aria-checked","false");e.prop("checked",true).attr("aria-checked","true")}});return d}};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(i){var v=new Date(),p=a.fn.calendar,h=a.fn.calendar.dates,m=v.getFullYear(),w=v.getMonth(),x=i.find(".year"),j=i.find(".month"),r,d,n,y,u,s,o,e,l,c,q,t,g,k,f;y=function(C){var B=!(b(C).hasClass("event-anchoring")),A={minDate:null,maxDate:null,iCount:0,list:[{a:1}]},z=null;if(C.find("ol").length>0){z=C.find("ol")}else{if(C.find("ul").length>0){z=C.find("ul")}}if(z.length>0){z.children("li").each(function(){var E=b(this),J=E.find("*:header:first"),N=J.text(),H=E.find("a").first(),L=H.attr("href"),F,G,D,P,O,M,K,I;if(!B){F=(E.attr("id")!==undefined)?E.attr("id"):u(6);E.attr("id",F);if(pe.ie>0){E.attr("tabindex","-1")}L="#"+F}G=new Date();D=E.find("time, span.datetime");if(D.length>1){P=(b(D[0]).get(0).nodeName.toLowerCase()==="time")?b(D[0]).attr("datetime").substr(0,10).split("-"):b(D[0]).attr("class").match(/datetime\s+\{date\:\s*(\d+-\d+-\d+)\}/)[1].substr(0,10).split("-");O=(b(D[1]).get(0).nodeName.toLowerCase()==="time")?b(D[1]).attr("datetime").substr(0,10).split("-"):b(D[1]).attr("class").match(/datetime\s+\{date\:\s*(\d+-\d+-\d+)\}/)[1].substr(0,10).split("-");G.setFullYear(P[0],P[1]-1,P[2]);for(K=0,I=h.daysBetween(P,O)+1;KA.maxDate){A.maxDate=G}A.list[A.iCount]={title:N,date:new Date(G.getTime()),href:L};G=new Date(G.setDate(G.getDate()+1));if(!J.hasClass("filter-"+(G.getFullYear())+"-"+p.strPad(G.getMonth()+1,2))){J.addClass("filter-"+(G.getFullYear())+"-"+p.strPad(G.getMonth()+1,2))}A.iCount+=1}}else{if(D.length===1){M=(b(D[0]).get(0).nodeName.toLowerCase()==="time")?b(D[0]).attr("datetime").substr(0,10).split("-"):b(D[0]).attr("class").match(/datetime\s+\{date\:\s*(\d+-\d+-\d+)\}/)[1].substr(0,10).split("-");G.setFullYear(M[0],M[1]-1,M[2]);if(A.minDate===null||GA.maxDate){A.maxDate=G}A.list[A.iCount]={title:N,date:G,href:L};if(!J.hasClass("filter-"+(G.getFullYear())+"-"+p.strPad(G.getMonth()+1,2))){J.addClass("filter-"+(G.getFullYear())+"-"+p.strPad(G.getMonth()+1,2))}A.iCount+=1}}})}window.events=A;return A};u=function(B){var A="",z,C;z=function(){C=Math.floor(Math.random()*62);if(C<10){return C}if(C<36){return String.fromCharCode(C+55)}return String.fromCharCode(C+61)};while(A.length'+F+"");K.append(J);D=b('');J.on("keydown",{details:D},l);K.on("mouseover",{details:D},c);K.on("mouseout",{details:D},q);J.on("focus",{details:D},t);J.on("blur",{details:D},g);K.append(D)}else{D=K.find("ul.wb-invisible")}E=b(''+A[H].title+" ");if(pe.cssenabled){E.children("a").attr("tabindex","-1")}D.append(E);C=E.children("a");C.on("keydown",e);C.on("blur",{details:D},k);C.on("focus",{details:D},f)}}};o=function(A,B,z){b("."+z+" li.calendar-display-onshow").addClass("wb-invisible");b("."+z+" li.calendar-display-onshow").has(":header[class*=filter-"+A+"-"+p.strPad(parseInt(B,10)+1,2)+"]").removeClass("wb-invisible")};if(x.length>0&&j.length>0){m=x.text();if(j.hasClass("textformat")){r=b.inArray(j.text(),pe.dic.get("%calendar-monthNames"));w=r}else{w=j.text()-1}}d=y(i);n=b(i).attr("class").split(" ").slice(-1);if(b("#wb-main-in").css("padding-left")==="0px"){b("#"+n).css("margin-left","10px")}b("#"+n).on("calendarDisplayed",function(B,z,A,C){s(z,A,C,n,d.list);o(z,A,n)});p.create(n,m,w,true,p.getISOStringFromDate(d.minDate),p.getISOStringFromDate(d.maxDate))}};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(i){var e=b("#wb-main-in").not(".wet-boew-footnotes"),c=b(i),g,h,d,f;c.find("p.footnote-return a span span").remove();e.find("sup a.footnote-link").on("click",function(){var l=b(this),j=l.attr("href"),k="#"+l.parent().attr("id");if(k!==f){g();h=c.find(j+" + dd p.footnote-return a");f=j;d=h.attr("href");if(f!==d){h.attr("href",k)}}});c.find("dd p.footnote-return a").on("click",function(){b(this).on("focusout",function(){g()})});g=function(){if(f!==d){h.attr("href",d);f=d}}}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.formvalid={type:"plugin",depends:["validate","validateAdditional","metadata"],_exec:function(i){var f=i.find("form"),c=false,h=f.find("[required]").attr("aria-required","true"),e="errors-"+(f.attr("id")===undefined?"default":f.attr("id")),d;if(pe.language!=="en"){pe.add._load(pe.add.liblocation+"i18n/formvalid/messages_"+pe.language+pe.suffix+".js")}if(pe.language==="de"||pe.language==="nl"||pe.language==="pt"){pe.add._load(pe.add.liblocation+"i18n/formvalid/methods_"+pe.language+pe.suffix+".js")}h.attr("aria-required","true");f.find("label").each(function(){var j=b(this);j.html(j.html()+" ")});function g(n,l,m){var j=n.attr("class"),o=(j!==undefined?j.search(/validate\s?:\s?\{/):-1),k;if(o>-1){if(j.search("/"+l+"\\s?:/")===-1){k=j.substring(o,j.indexOf("{",o)+1);n.attr("class",j.replace(k,k+l+":"+m+", "))}}else{n.addClass("{validate:{"+l+":"+m+"}}")}return}f.find("input[pattern]").removeAttr("pattern");if(pe.ie>0&&pe.ie<9){h.removeAttr("required").each(function(){g(b(this),"required","true")});f.find('input[type="date"]').each(function(){var l=b(this),j=l.wrap("
").parent(),k=b(j.html().replace("type="+l.attr("type"),"type=text"));j.replaceWith(k)})}if(pe.mobile){f.attr("data-ajax","false").find('input[type="checkbox"]').closest("fieldset").attr("data-role","controlgroup")}d=f.validate({meta:"validate",focusInvalid:false,errorElement:"strong",errorPlacement:function(j,k){j.appendTo(f.find('label[for="'+b(k).attr("id")+'"]'))},showErrors:function(m,n){this.defaultShowErrors();var o=f.find("strong.error:not(:hidden)"),l=f.find("input.error, select.error, textarea.error"),k=f.find("#"+e),j;f.find('[aria-invalid="true"]').removeAttr("aria-invalid");if(o.length>0){if(k.length===0){k=b('
').prependTo(f)}else{k.empty()}j=b("");l.attr("aria-invalid","true");o.each(function(q){var s=b(this),r=''+pe.dic.get("%error")+" "+(q+1)+pe.dic.get("%colon")+" ",p=s.closest("label");s.find("span.prefix").detach();j.append(''+r+p.find(".field-name").html()+" - "+s.html()+" ");s.prepend(''+pe.dic.get("%error")+" "+(q+1)+pe.dic.get("%colon")+" ")});k.append(b(""+pe.dic.get("%form-not-submitted")+o.length+(o.length!==1?pe.dic.get("%errors-found"):pe.dic.get("%error-found"))+"
"));k.append(j);if(c){pe.focus(k)}if(pe.ie===0||pe.ie>7){f.find(".errorContainer a").on("click vclick",function(){var p=pe.focus(b(b(this).attr("href"))).prev().offset().top;if(pe.mobile){b.mobile.silentScroll(p)}else{b(document).scrollTop(p)}return false})}c=false}else{k.detach()}},invalidHandler:function(k,j){c=true}});f.find("input[type=reset]").on("click",function(){d.resetForm();var j=f.find("#"+e);if(j.length>0){j.empty()}f.find('[aria-invalid="true"]').removeAttr("aria-invalid");f.find("#"+e)});return i}};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.hide();n.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.show();n.show();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=b("body").find("#colorbox #cboxContent").attr("role","dialog");d.find("#cboxNext, #cboxPrevious, #cboxClose").attr("tabindex","0").attr("role","button").attr("aria-controls","cboxLoadedContent");m=d.find("#cboxNext");i=d.find("#cboxPrevious");k=d.find("#cboxClose");d.on("keydown",function(o){var n=b(o.target);if(!(o.ctrlKey||o.altKey||o.metaKey)){if(o.keyCode===9){if(o.shiftKey&&n.attr("id")==="cboxLoadedContent"){pe.focus(k);o.preventDefault()}else{if(!o.shiftKey&&n.attr("id")==="cboxClose"){pe.focus(f);o.preventDefault()}}}else{if(o.keyCode===13||o.keyCode===32){if(n.attr("id")==="cboxLoadedContent"||n.attr("id")==="cboxNext"){b.colorbox.next();o.preventDefault()}else{if(n.attr("id")==="cboxPrevious"){b.colorbox.prev();o.preventDefault()}else{if(n.attr("id")==="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(i){if(pe.mobile){return}var d,h,k=i,f=k.parent(),m,j,g,c,e,l=pe.dic.get("%sub-menu-help");e=function(p){g();var o=b(p).closest("li"),n=o.find(".mb-sm");n.attr({"aria-expanded":"true","aria-hidden":"false"}).toggleClass("mb-sm mb-sm-open");if((Math.floor(n.offset().left+n.width())-Math.floor(h.offset().left+h.width()))>=-1){n.css("right","0px")}o.addClass("mb-active");return};j=function(p){var o=b(p),n=o.closest("li").find(".mb-sm-open");if(pe.cssenabled){n.find("a").attr("tabindex","0")}o.trigger("item-next");return};c=function(p){var o=b(p).closest("li"),n=o.find(".mb-sm-open");n.attr({"aria-expanded":"false","aria-hidden":"true"}).toggleClass("mb-sm mb-sm-open").css("right","");if(pe.cssenabled){n.find("a").attr("tabindex","-1")}o.removeClass("mb-active");return};g=function(){d.find(".mb-sm-open").each(function(){var n=b(this).closest("li");return c(n)});return};m=function(){var n=d.children("li:last"),o=(n.offset().top+n.outerHeight())-k.offset().top;return k.css("min-height",o)};h=k.children("div");d=h.children("ul");k.detach();k.attr("role","application");k.find("> div > ul").attr("role","menubar").find("a").attr("role","menuitem");pe.resize(m);k.find("ul.mb-menu > li").find("a:eq(0)").each(function(o,q){var n=b(q).addClass("knav-"+o+"-0-0"),p=n.closest("li").find(".mb-sm");if(p.length>0){n.attr("aria-haspopup","true").addClass("mb-has-sm").wrapInner(' ');p.attr({role:"menu","aria-expanded":"false","aria-hidden":"true"}).find(":has(:header) ul").attr("role","menu");n.append(''+l+" ");n.closest("li").hoverIntent({over:function(){return e(this)},out:function(){return c(this)},timeout:500});p.find("h3 a, h4 a").each(function(r){var s=b(this);s.addClass("knav-"+o+"-"+(r+1)+"-0");s.parent().next("ul").find("a").each(function(t){b(this).addClass("knav-"+o+"-"+(r+1)+"-"+(t+1));return});return});p.find("> ul a, > div > ul a").each(function(r){b(this).addClass("knav-"+o+"-0-"+(r+1))})}});if(pe.cssenabled){k.find(".mb-sm a").attr("tabindex","-1")}k.appendTo(f);m();k.find(".mb-sm").on("click vclick",function(n){if(n.stopPropagation){n.stopPropagation()}else{n.cancelBubble=true}}).parent().on("click vclick","> :header a",function(){if(b(this).closest("li").hasClass("mb-active")){c(this)}else{e(this)}return false});k.on("keydown focusin section-next section-previous item-next item-previous close","li",function(v){var r,z=b(v.target),t=k.find(".mb-active"),y,w=v.keyCode,x=v.type,s,u,o,q,p,n;y=b.map(/\bknav-(\d+)-(\d+)-(\d+)/.exec(z.attr("class")),function(A){return parseInt(A,10)});if(x==="keydown"){if(!(v.ctrlKey||v.altKey||v.metaKey)){if(w===13){if(y[2]===0&&y[3]===0){j(v.target);return false}}else{if(w===27){z.trigger("close");return false}else{if(w===32){if(y[2]===0&&y[3]===0){j(v.target)}else{window.location=z.attr("href")}return false}else{if(w===37){z.trigger("section-previous");return false}else{if(w===38){if(y[2]===0&&y[3]===0){j(v.target)}else{z.trigger("item-previous")}return false}else{if(w===39){z.trigger("section-next");return false}else{if(w===40){if(y[2]===0&&y[3]===0){j(v.target)}else{z.trigger("item-next")}return false}else{if((w>47&&w<58)||(w>64&&w<91)){s=String.fromCharCode(w).toLowerCase();u=(y[2]!==0||y[3]!==0);o=z.text();q=t.find(".mb-sm-open a").filter(function(){var A=b(this);return(A.text().substring(0,1).toLowerCase()===s||(u&&A.text()===o))});if(q.length>0){if(u){q.each(function(A){if(b(this).text()===o){p=A;return false}});if(p<(q.length-1)){pe.focus(q.eq(p+1));return false}}pe.focus(q.eq(0))}return false}}}}}}}}}}else{if(x==="close"){pe.focus(t.find(".knav-"+y[1]+"-0-0"));setTimeout(function(){return g()},5)}else{if(x==="section-previous"){n=!!y[2]<<1|!!y[3];switch(n){case 0:case 1:r=k.find(".knav-"+(y[1]-1)+"-0-0");if(r.length>0){pe.focus(r)}else{pe.focus(k.find("ul.mb-menu > li:last").find("a:eq(0)"))}break;case 2:case 3:r=t.find(".knav-"+(y[1])+"-"+(y[2]-1)+"-0");if(r.length>0&&y[2]>1){pe.focus(r)}else{r=k.find(".knav-"+(y[1]-1)+"-0-0");if(r.length>0){pe.focus(r)}else{pe.focus(k.find("ul.mb-menu > li:last").find("a:eq(0)"))}}break}}else{if(x==="section-next"){n=!!y[2]<<1|!!y[3];switch(n){case 0:case 1:r=k.find(".knav-"+(y[1]+1)+"-0-0");if(r.length>0){pe.focus(r)}else{pe.focus(k.find(".knav-0-0-0"))}break;case 2:case 3:r=t.find(".knav-"+(y[1])+"-"+(y[2]+1)+"-0");if(r.length>0){pe.focus(r)}else{r=k.find(".knav-"+(y[1]+1)+"-0-0");if(r.length>0){pe.focus(r)}else{pe.focus(k.find(".knav-0-0-0"))}}break}}else{if(x==="item-next"){r=t.find(".knav-"+y[1]+"-"+(y[2])+"-"+(y[3]+1));if(r.length>0){pe.focus(r)}else{r=t.find(".knav-"+y[1]+"-"+(y[2]+1)+"-0");if(r.length>0){pe.focus(r)}else{pe.focus(t.find(".knav-"+y[1]+"-1-0, .knav-"+y[1]+"-0-1,"))}}}else{if(x==="item-previous"){r=((y[2]>0||y[3]>1)?t.find(".knav-"+y[1]+"-"+(y[2])+"-"+(y[3]-1)):"");if((y[2]>0||y[3]>1)&&r.length>0){pe.focus(r)}else{r=((y[2]>1||y[3]>0)?t.find("[class*='knav-"+y[1]+"-"+(y[2]-1)+"-']").last():"");if((y[2]>1||y[3]>0)&&r.length>0){pe.focus(r)}else{pe.focus(t.find("[class*='knav-']").last())}}}else{if(x==="focusin"&&y[2]===0&&y[3]===0){g();if(z.find(".expandicon").length>0){e(v.target)}}}}}}}}});b(document).on("click touchstart",function(){k.trigger("focusoutside")});k.on("focusoutside",function(){return g()});return k}};window.pe=a;return a}(jQuery));(function(b){var a=window.pe||{fn:{}};a.fn.multimedia={type:"plugin",polyfills:["progress"],icons:b(' '),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(""+h+" ");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(' ')},_exec:function(p){var d,m=false,f=p.children("audio, video").eq(0),g,e=f.is("video")?f.attr("width"):"0",r=f.is("video")?f.attr("height"):"0",k,l=true,c,o="video/mp4",j="audio/mpeg",n=a.add.liblocation+"bin/multimedia.swf",i,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"]')){k=f.children('track[kind="captions"]').attr("src")}if(f.get(0).currentSrc!==""&&f.get(0).currentSrc!==undefined){m=true}else{q="id="+p.attr("id");if(l&&f.is("video")&&f.find('source[type="'+o+'"]').length>0){i="video";q+="&height="+f.height()+"&width="+f.width()+"&posterimg="+encodeURI(a.url(f.attr("poster")).source)+"&media="+encodeURI(a.url(f.find('source[type="'+o+'"]').attr("src")).source);m=true}else{if(l&&f.is("audio")&&f.find('source[type="'+j+'"]').length>0){i="audio";q+="&media="+a.url(f.find('source[type="'+j+'"]').attr("src")).source;m=true}else{m=false}}if(m){c=b(' ');f.before(c);f.remove();f=c}else{f.before(' ');f.remove()}}if(m){h=f.is("object")?f.children(":first-child"):f;b.extend(p.get(0),{object:f.get(0)},a.fn.multimedia._intf);f.before(b(' ').append(a.fn.multimedia.get_image("overlay",a.dic.get("%play"),100,100)));f.after(a.fn.multimedia._get_ui(g));if(b("html").hasClass("polyfill-progress")){p.find("progress").progress()}b(window).on("resize",{media:f,ratio:r/e},function(t){var s=t.data.media.parent().width()*t.data.ratio;t.data.media.height(s);f.parent().find(".wet-boew-multimedia-overlay").height(s)});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("wet-boew-multimedia-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("progress-frame")||t.hasClass("progress-bar")){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("keypress",function(u){var t=b(this),s=0;if((u.which===32||u.which===13)&&u.target===this.object){t.find(".wet-boew-multimedia-controls .playpause").click();return false}if(u.keyCode===37){t.find(".wet-boew-multimedia-controls .rewind").click();return false}if(u.keyCode===39){t.find(".wet-boew-multimedia-controls .fastforward").click();return false}if(u.keyCode===38){s=Math.round(this.getVolume()*10)/10+0.1;s=s<1?s:1;this.setVolume(s);return false}if(u.keyCode===40){s=Math.round(this.getVolume()*10)/10-0.1;s=s>0?s:0;this.setVolume(s);return false}return true});h.on("loadeddata progress timeupdate seeked canplay play volumechange pause ended captionsloaded captionsloadfailed captionsshown captionshidden",b.proxy(function(v){var t=b(this),u,s;switch(v.type){case"play":t.find(".playpause").empty().append(a.fn.multimedia.get_image("pause",a.dic.get("%pause")));t.find(".wet-boew-multimedia-overlay").hide();break;case"pause":case"ended":t.find(".playpause").empty().append(a.fn.multimedia.get_image("play",a.dic.get("%play")));t.find(".wet-boew-multimedia-overlay").show();break;case"volumechange":if(this.getMuted()){t.find(".mute").empty().append(a.fn.multimedia.get_image("mute_on",a.dic.get("%mute","disable")))}else{t.find(".mute").empty().append(a.fn.multimedia.get_image("mute_off",a.dic.get("%mute","enable")))}break;case"captionsvisiblechange":if(this.getCaptionsVisible()){t.find(".cc img").attr({alt:a.dic.get("%closed-captions","disable"),src:""})}else{t.find(".cc img").attr({alt:a.dic.get("%closed-captions","enable"),src:""})}break;case"timeupdate":u=this.getCurrentTime()/this.getDuration();s=t.find(".wet-boew-multimedia-timeline progress");s.attr("value",u);if(b.data(v.target,"captions")!==undefined){a.fn.multimedia._update_captions(t.find(".wet-boew-multimedia-captionsarea"),this.getCurrentTime(),b.data(v.target,"captions"))}break;case"progress":break;case"captionsloaded":b.data(v.target,"captions",v.captions);break;case"captionsloadfailed":t.find(".wet-boew-multimedia-captionsarea").append(""+a.dic.get("%captionserror")+"
");break}},p.get(0)));if(k!==undefined){f.after(b('
').hide());a.fn.multimedia._load_captions(f,h,k)}}return p},_get_ui:function(g){var e=b('