﻿/* é */ $(document).ready(function(){});$(window).load(function(){base.handleBasicBehaviours();base.handleFlashEmbeds();base.forms.placeHolder();base.forms.autoSize();base.handleIE6();base.emailDeObfuscator(["emails"])});var base=function(){window.Modernizr=function(ad,ac,ab){function O(){Z.input=function(k){for(var j=0,l=k.length;j<l;j++){N[k[j]]=k[j] in T}return N}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "))}function C(k,j){var m=k.charAt(0).toUpperCase()+k.substr(1),l=(k+" "+R.join(m+" ")+m).split(" ");return D(l,j)}function D(k,j){for(var l in k){if(U[k[l]]!==ab){return j=="pfx"?k[l]:!0}}return !1}function E(k,j){return !!~(""+k).indexOf(j)}function F(k,j){return typeof k===j}function G(k,j){return H(prefixes.join(k+";")+(j||""))}function H(j){U.cssText=j}var aa="2.0.4",Z={},Y=ac.documentElement,X=ac.head||ac.getElementsByTagName("head")[0],W="modernizr",V=ac.createElement(W),U=V.style,T=ac.createElement("input"),S=Object.prototype.toString,R="Webkit Moz O ms Khtml".split(" "),Q={},P={},N={},M=[],K,J={}.hasOwnProperty,I;!F(J,ab)&&!F(J.call,ab)?I=function(k,j){return J.call(k,j)}:I=function(k,j){return j in k&&F(k.constructor.prototype[j],ab)},Q.csscolumns=function(){return C("columnCount")};for(var L in Q){I(Q,L)&&(K=L.toLowerCase(),Z[K]=Q[L](),M.push((Z[K]?"":"no-")+K))}Z.input||O(),H(""),V=T=null,Z._version=aa,Z._domPrefixes=R,Z.testProp=function(j){return D([j])},Z.testAllProps=C;return Z}(this,this.document);var f={fr:{fermer:"Fermer",confirm:"Etes-vous sûr de vouloir effectuer cette action ?"},en:{fermer:"Close",confirm:"Are you sure to execute this action?"}};function g(){$("a.popUp").die("click").live("click",function(o){var m=$(this).attr("href"),p=$(this).attr("rel")?$(this).attr("rel").split("%%"):[""],n=p[0]!=""?p[0].replace(/%/g,"_"):"",l=typeof(p[1])!="undefined"&&typeof(p[2])!="undefined"?"width="+p[1]+",height="+p[2]:"",j=typeof(p[3])!="undefined"?p[3]:"",k=l?(j?l+","+j:l):(j?j:"");window.open(m,n,k);o.preventDefault()});$("a.closeLnk").die("click").live("click",function(j){window.close();j.preventDefault()});$("a.confirm").die("click").live("click",function(j){var k=$(this).attr("rel")!=""?$(this).attr("rel"):f[$("html").attr("lang")]["confirm"];if(confirm(k)){location.href=$(this).attr("href")}j.preventDefault()})}function e(){$(".flashCtnt").each(function(){var k=$(".flashUrl span",this).html(),j=$(".flashUrl span",this).attr("class");$("*",this).remove();j=j.split("%%");$(this).media({src:k,width:j[0],height:j[1],bgColor:"",params:{wmode:"transparent"},attrs:{wmode:"transparent"}},{update:false})})}function b(){var j="closed";if($.cookie("ie6AlertMsg")!="off"){$(".ie6 #ie6").each(function(){var k=this;$(k).hover(function(){$(this).toggleClass("hover")},function(){$(this).toggleClass("hover")});$("<span />").attr("class","close").text(f[$("html").attr("lang")]["fermer"]).click(function(){$(k).addClass(j);$.cookie("ie6AlertMsg","off")}).appendTo(".ctnt",k)})}else{$(".ie6 #ie6").addClass(j)}}function d(){if(!Modernizr.input.placeholder){$("[placeholder]").each(function(){var j=$(this);j.addClass("placeholder").focus(function(){if(j.val()==j.attr("placeholder")||""){j.val("")}}).blur(function(){if(j.val()==""){j.val(j.attr("placeholder"))}}).blur().parents("form").submit(function(){if(j.val()==j.attr("placeholder")){j.val("")}})})}else{return true}}function a(j){j=typeof j!="undefined"?j:["autoSize"],selectorString="",separator="",i=0;for(i;i<j.length;i++){selectorString+=separator+"textarea."+j[i];separator=", "}$(selectorString).each(function(){var k=$(this);$(k).data({"default":$(this).val(),w:$(this).width(),ttransform:$(this).css("text-transform"),lheight:$(this).css("line-height"),wspacing:$(this).css("word-spacing"),ffamily:$(this).css("font-family"),fsize:$(this).css("font-size"),fweight:$(this).css("font-weight"),lspacing:$(this).css("letter-spacing")}).after("<div />").next().css({position:"absolute",left:"-9999em",width:$(k).data("w"),"text-transform":$(k).data("ttransform"),"line-height":$(k).data("lheight"),"word-spacing":$(k).data("wspacing"),"font-family":$(k).data("ffamily"),"font-size":$(k).data("fsize"),"font-weight":$(k).data("fweight"),"letter-spacing":$(k).data("lspacing")}).text($(k).data("default")).data("newH",$(k).next().height());$(k).css("min-height",$(k).next().data("newH")).bind("keyup blur",function(){var l=$(k).val().replace(/\n/g,"<br />").replace(/(\s) /g,"$1&nbsp;");$(k).next().html(l+"<br /> &nbsp; ").data("newH",$(k).next().height()).end().css("min-height",$(k).next().data("newH"))})})}function c(p,j,n,o){if(!window.Modernizr.csscolumns){var l="",k=0,m=1;for(m;m<=o;m++){j=m==o?j+" last":j;l+='<ul id="'+p+m+'" class="'+j+'"></ul>'}$(l).insertAfter("#"+p+"0");k=Math.ceil($("#"+p+"0 li."+n).length/o)-1;$("#"+p+"0 li."+n).clone().appendTo("#"+p+"1");for(m=1;m<o;m++){$("#"+p+m+" li."+n+":gt("+k+")").clone().appendTo("#"+p+(m+1));$("#"+p+m+" li."+n+":gt("+k+")").remove()}$("#"+p+"0").remove()}}function h(q,j){var q=typeof q!="undefined"?q:["courriel"],j=typeof j!="undefined"?j:"subject",m="",p="",l=0;for(l;l<q.length;l++){m+=p+"a."+q[l];p=", "}var n=/^http:\/\/www\.([^\/]+)\/(.*?)(\.(html|htm|php|asp))?$/,k=false,o=function(){k=true;$(m).each(function(){if(n.test($(this).html())){$(this).html($(this).html().replace(n,"$2@$1"))}else{if($("span.accessibility",this).html()!=null){if($("span.accessibility",this).html().match(n)){$("span.accessibility",this).html($("span.accessibility",this).html().replace(n,"$2@$1"))}}}})};if(!k){$(document).mousemove(o).keypress(o)}$(m).click(function(){if(!k){return false}if(n.test(this.href)){var r=$(this).attr("rel");this.href=$(this).hasClass(j)?this.href.replace(n,"mailto:$2@$1?Subject="+r):this.href=this.href.replace(n,"mailto:$2@$1")}});return false}return{handleBasicBehaviours:g,handleFlashEmbeds:e,handleIE6:b,forms:{placeHolder:d,autoSize:a},split:c,emailDeObfuscator:h}}();$.extend({getUrlVars:function(){var d=[],c,a=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),b=0;for(b;b<a.length;b++){c=a[b].split("=");d.push(c[0]);d[c[0]]=c[1]}return d},getUrlVar:function(a){return $.getUrlVars()[a]}});
