function getQueryString(){for(var t={},i=location.search.substring(1),r=/([^&=]+)=([^&]*)/g,n;n=r.exec(i);)t[decodeURIComponent(n[1])]=decodeURIComponent(n[2]);return t}function getParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+n+"=([^&#]*)",r=new RegExp(i),t=r.exec(window.location.href);return t==null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function htmlEscape(n){return String(n).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function htmlUnescape(n){return String(n).replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}function Avis(){$.blockUI({message:$("#Information"),css:{top:"20%",border:"none",backgroundColor:""},onOverlayClick:$.unblockUI})}function getSiteLanguage(){return window.location.href.split("/").length>3&&window.location.href.split("/")[3].toLowerCase()==="en"?"en":"fr"}var tour,MonUrl;typeof String.prototype.trim!="function"&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});$(document).ready(function(){$("[id$=divGratuit] a.VideoGratuit").attr("data-fancybox","video-gratuit").attr("data-title","Vidéo gratuit").attr("data-fancybox-type","iframe").attr("target","_blank")});$(function(){$(".toPrint").parent("#content").find("#ariane").addClass("margin-bot").append('<a href="#" style="position:absolute; right:20px; top:0px;" class="print smallest"><img src="/images/admin/icons/web-app/24/print.png" alt="imprimer" /> imprimer<\/a>');$(document).on("click","a.print",function(n){n.preventDefault();$(".toPrint").clone().css({width:"750px"}).jqprint()});$("body").on("click",".CloseBUI",function(n){n.preventDefault();$.unblockUI()});var n=document.location.hash,t="tab_";n&&$(".nav-tabs a[href="+n.replace(t,"")+"]").tab("show");$(window).on("hashchange",function(){var n=document.location.hash;n&&$(".nav-tabs a[href="+n.replace("tab_","")+"]").tab("show")});$(".nav-tabs a").on("shown.bs.tab",function(n){window.location.hash=$(this).hasClass("scroll")?n.target.hash.replace("#","#"):n.target.hash.replace("#","#"+t)});$("#aDownloadVideoGratuit").on("click",function(){var n=window.location.pathname.split("/");$.ajax({url:"/Telechargement/g/"+n[n.length-1],success:function(){}})});$("#bSearchInput").on("click",function(n){n.preventDefault();var t=window.location.pathname.split("/");window.location="/Recherche/r?q="+encodeURIComponent($("#searchInput").val())});$("#searchInput").on("keypress",function(n){n.keyCode=="13"&&(n.preventDefault(),n.stopPropagation(),$("#bSearchInput").trigger("click"))});$("#craaq-carousel").carousel({cycle:!0});$(".nocycle").carousel({interval:!1});$(".slide").on("click",function(){$(this).parent().find(".slide").removeClass("active");$(this).addClass("active")});$("#header-frame").hover(function(){$("#craaq-carousel").carousel("pause")},function(){$("#craaq-carousel").carousel("cycle")});$(".carousel").swiperight(function(){$(this).carousel("prev")});$(".carousel").swipeleft(function(){$(this).carousel("next")});$('a[href="#"]').on("click",function(n){n.preventDefault()});$(".note-bio").click(function(){$(this).next().toggle()});screen.width<=991&&($("ul.nav li.dropdown .dropdown-toggle").click(function(n){n.preventDefault()}),$("#main-menu .navbar-nav > .dropdown-outils >a").click(function(n){n.preventDefault()}));$("#scrollTop").click(function(){$("html, body").animate({scrollTop:0},600)})});$(document).scroll(function(){$(this).scrollTop()>200?$("#scrollTop").addClass("scroll-visible"):$("#scrollTop").removeClass("scroll-visible")});tour=window.location.href.split("/")[3].toLowerCase()==="en"?new Tour({steps:[{element:"#aConnexion",title:"At CRAAQ, one account for all sites!",content:"You don’t know the benefits of a CRAAQ account?<br/><a href='"+authBaseAddress+"/en/the-craaq-account' title='Discover advantages' target='_blank'>Discover them<\/a>, create your account! <br/><br/><div class='align-center'><a href='/en/sign-in' class='btn btn-primary' title='Sign in'>Sign in<\/a><br/><a href='"+authBaseAddress+"/en/create-account' title='Create my CRAAQ account'>Create my CRAAQ account<\/a><\/div>",placement:"bottom"}]}):new Tour({steps:[{element:"#aConnexion",title:"Au CRAAQ, un seul compte pour tous les sites!",content:"Vous ne connaissez pas les avantages reliés au compte CRAAQ?<br/><a href='"+authBaseAddress+"/le-compte-craaq' title='Découvrir les avantages' target='_blank'>Découvrez-les<\/a> et créez votre compte! <br/><br/><div class='align-center'><a href='/me-connecter' class='btn btn-primary' title='Me connecter'>Me connecter<\/a><br/><a href='"+authBaseAddress+"/Creer-mon-compte' title='Créer mon compte CRAAQ'>Créer mon compte CRAAQ<\/a><\/div>",placement:"bottom"}]});tour.init();tour.start();$(document).ready(function(){var n=window.location.host,t=$("#msgEnvDev");n==="v4.craaq.qc.ca"?t.css({display:"block",bottom:"0"}):n==="preprod.craaq.qc.ca"&&t.css({display:"block",bottom:"0"}).addClass("preprod").find("#envEnCours").text("Préproduction")});$(document).ready(function(){localStorage.getItem("sessionCookies")==null&&$("#avisCookies").addClass("active");$("#avisCookies").on("click","#btnAccepterCookies",function(){localStorage.setItem("sessionCookies","true");$("#avisCookies").removeClass("active")})});MonUrl=window.location.pathname;$("#main-menu .navbar-nav li a.lien-nav").each(function(){MonUrl.indexOf($(this).attr("href"))>-1&&$(this).parent().addClass("active")});$("#header-frame nav ul li a").each(function(){MonUrl==$(this).attr("href")&&$(this).addClass("active")});$(function(){$(".event-list-resume").each(function(){$(this).text($(this).text().substring(0,215)+"...")})});$("[data-submenu]").submenupicker();$(document).ready(function(){function t(n){var i=eval($("[data-groupe="+n+"]").attr("aria-expanded")),t=$("[data-groupe="+n+"] p");i===!1?(t.stop().animate({"max-height":"20rem",padding:".75rem 1.5rem 1rem 1.5rem"},{duration:350,queue:!1,easing:"swing"}),t.siblings("h6").find("i").css({"-webkit-transform":"rotate( -180deg )","-ms-transform":"rotate( -180deg )",transform:"rotate( -180deg )"}),$("[data-groupe="+n+"]").attr("aria-expanded",!0)):(t.stop().animate({"max-height":"0rem",padding:".75rem 1.5rem 0 1.5rem"},{duration:350,queue:!1,easing:"swing"}),t.siblings("h6").find("i").css({"-webkit-transform":"rotate( 0deg )","-ms-transform":"rotate( 0deg )",transform:"rotate( 0deg )"}),$("[data-groupe="+n+"]").attr("aria-expanded",!1))}var n=!1;$("#liensRapides").on("mouseover",function(){$(this).next(".row").attr("aria-expanded","true");$(this).css({"background-image":"url(/img/footer/ic_liensrapides-moins.svg)"});n=!0});$("#liensRapides").on("click",function(){n?($(this).next(".row").attr("aria-expanded","false"),$(this).css({"background-image":"url(/img/footer/ic_liensrapides-plus.svg)"}),n=!1):($(this).next(".row").attr("aria-expanded","true"),$(this).css({"background-image":"url(/img/footer/ic_liensrapides-moins.svg)"}),n=!0)});$(window).on("load resize",function(){var n=$(window).width();n>575&&$("#piedPage .produits p, #piedPage .notreReseau p, #piedPage .travaillerCRAAQ p, #piedPage .repertoire p, #piedPage .communications p, #piedPage .adresse p, #piedPage .liensFooter p").attr("style","").removeAttr("style").siblings("h6").find("i").attr("style","").removeAttr("style").parent().parent().attr("aria-expanded",!1)});$("#piedPage div h6").on("click",function(){var n=$(this).closest("div").attr("data-groupe");t(n)});$(window).on("load resize",function(){$(this).width()<=575?$("#piedPage #liensRapides").siblings("#compartiment").attr("aria-expanded",!0):$("#piedPage #liensRapides").siblings("#compartiment").attr("aria-expanded",!1)})}),function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:7,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX;e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(o-f)+Math.abs(s-e)<u.sensitivity)return n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s=1,u.over.apply(i,[t]);o=f;s=e;i.hoverIntent_t=setTimeout(function(){c(t,i)},u.interval)},a=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,u.out.apply(t,[n])},l=function(t){var r=jQuery.extend({},t),i=this;if(i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),t.type=="mouseenter"){o=r.pageX;s=r.pageY;n(i).on("mousemove.hoverIntent",h);i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){c(r,i)},u.interval))}else n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){a(r,i)},u.timeout))};return this.on({"mouseenter.hoverIntent":l,"mouseleave.hoverIntent":l},u.selector)}}(jQuery)