document.write("<script type='text/javascript' src='/campagne/js/optimizer.js'></script>" );
$(document).ready(function(){$.browser.msie&&$.browser.version<7&&DD_belatedPNG.fix("img");st1=new Object(0);st2=new Object(0);st3=new Object(0);$(".rollover").mouseover(function(){$(".menu-lien").removeClass("menu-lien-on");s=$(this).attr("class").split(" ");z=s[1].substr(9,99);$(".menu-"+z).addClass("menu-lien-on");window.clearTimeout(st2);window.clearTimeout(st3)});$(".rollover").each(function(){$(this).find(".rollover-item").length<=2&&$(this).addClass("rollover2")});$(".menu-lien").mouseover(function(){window.clearTimeout(st1); window.clearTimeout(st2);window.clearTimeout(st3);st3=$.browser.msie&&$.browser.version<7?window.setTimeout('$(".rollover").hide(); ',500):window.setTimeout('$(".rollover").hide()',500);$(".menu-lien").removeClass("menu-lien-on");$(this).addClass("menu-lien-on");s=$(this).attr("class").split(" ");if(s[1]){z=s[1].substr(5,99);if($(".rollover-"+z).is("div")==true){o=$(this).offset();o.top=$.browser.mozilla==true&&$.browser.version.substr(0,3)==1.9?o.top+1:o.top;$(".rollover-"+z).css("top",o.top);$(".rollover-"+ z).css("left",o.left+$(this).width()+30);st2=window.setTimeout('RollOverShow("'+z+'");',500)}}st1=new Object(0);$("html").mouseover(function(a){window.clearTimeout(st1);for(a=a.target;a.parentNode;){if(a.className=="menu"||a.className.substr(0,8)=="rollover")break;if(a.nodeName=="HTML"){st1=window.setTimeout('$(".rollover").hide(); $("html").unbind(); $(".menu-lien").removeClass("menu-lien-on");',100);window.clearTimeout(st2)}a=a.parentNode}})});$(".selectbox-titre").click(function(){$(this).blur(); if($(this).next(".selectbox-liste").hasClass("none")==true){$(this).next(".selectbox-liste").removeClass("none");$("html").click(function(a){for(a=a.target;a.parentNode;){if(a.className.substr(0,9)=="selectbox")break;if(a.nodeName=="HTML"){$(".selectbox-liste").addClass("none");$("html").unbind()}a=a.parentNode}})}else $(this).next(".selectbox-liste").addClass("none")});var b=[0.8,0.9,1,1.2,1.4,1.6];TTc=2;$(".actions-agrandir").click(function(){$(this).blur();TTc=TTc<b.length-1?TTc+1:TTc;$("html").css("font-size", b[TTc]+"em");return false});$(".actions-reduire").click(function(){$(this).blur();TTc=TTc>0?TTc-1:TTc;$("html").css("font-size",b[TTc]+"em");return false});t=$(".conseiller-form-champ").prev("label").text();$(".conseiller-form-champ").attr("value",t.substr(0,t.length-0));$(".conseiller-form-champ").focus(function(){$(this).attr("value","")});$(".conseiller-form-champ").blur(function(){if($(this).attr("value")==""){t=$(".conseiller-form-champ").prev("label").text();$(this).attr("value",t.substr(0, t.length-0))}});$(".conseiller-form-champ").keypress(function(a){a=a.charCode?a.charCode:a.keyCode?a.keyCode:0;if(a==13){__doPostBack("RechercheDistribution","CallRechercherDistribution");return false}else if($(this).attr("value").length>=5&&(a>=65&&a<=90||a>=97&&a<=122||a>=48&&a<=57||a==32))return false});t=$(".conseiller-form-champ-rouge").prev("label").text();$(".conseiller-form-champ-rouge").attr("value",t.substr(0,t.length-0));$(".conseiller-form-champ-rouge").focus(function(){$(this).attr("value", "")});$(".conseiller-form-champ-rouge").blur(function(){if($(this).attr("value")==""){t=$(".conseiller-form-champ-rouge").prev("label").text();$(this).attr("value",t.substr(0,t.length-0))}});$(".conseiller-form-champ-rouge").keypress(function(a){a=a.charCode?a.charCode:a.keyCode?a.keyCode:0;if(a==13){__doPostBack("RechercheDistribution","CallRechercherDistribution");return false}else if($(this).attr("value").length>=5&&(a>=65&&a<=90||a>=97&&a<=122||a>=48&&a<=57||a==32))return false});$(".actions-lien-imprimer").click(function(){$(".actions-lien-imprimer").attr("name")!= null&&$(".actions-lien-imprimer").attr("name")!=""&&clickAction_stats($(".actions-lien-imprimer").attr("name"));window.print();return false});LoadOnloadScriptForBO();AddLoaderOnClick()});function LoadOnloadScriptForBO(){}function RollOverShow(b){$(".rollover-"+b).show("",function(){$.browser.msie&&$(".rollover-"+b).css("filter","progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#7f7f7f,strength=3)")})} function showHMCLoader(){$(".resultat").hide();$("#masterpage_load_div").show();$(".thematiques-resultat").hide()}function AddLoaderOnClick(){$(".thematiques-liste-item").each(function(){$(this).find("input[type=checkbox]").click(function(){showHMCLoader()})});$("#masterpage_load_div").hide();$(".thematiques-resultat").show()}function flash_stats(b){xt_med("F",xtn2,b)}function clickAction_stats(b){xt_med("C",xtn2,b,"N")}function clickAction_stats_action(b){xt_med("C",xtn2,b,"A")} var Utf8={encode:function(b){b=b.replace(/\r\n/g,"\n");for(var a="",d=0;d<b.length;d++){var c=b.charCodeAt(d);if(c<128)a+=String.fromCharCode(c);else{if(c>127&&c<2048)a+=String.fromCharCode(c>>6|192);else{a+=String.fromCharCode(c>>12|224);a+=String.fromCharCode(c>>6&63|128)}a+=String.fromCharCode(c&63|128)}}return a},decode:function(b){for(var a="",d=0,c=c1=c2=0;d<b.length;){c=b.charCodeAt(d);if(c<128){a+=String.fromCharCode(c);d++}else if(c>191&&c<224){c2=b.charCodeAt(d+1);a+=String.fromCharCode((c& 31)<<6|c2&63);d+=2}else{c2=b.charCodeAt(d+1);c3=b.charCodeAt(d+2);a+=String.fromCharCode((c&15)<<12|(c2&63)<<6|c3&63);d+=3}}return a}};function replaceAll(b,a,d){for(;b.indexOf(a)!=-1;)b=b.replace(a,d);return b} function htmlToAccent(b){for(var a=new Array("\u00e9","\u00e8","\u00ea","\u00eb","\u00e0","\u00e2","\u00f9","\u00ee","\u00e7","\u2026","\u00ab","\u00bb"),d=new Array("&eacute;","&egrave;","&ecirc;","&euml;","&agrave;","&acirc;","&ugrave;","&icirc;","&ccedil;","...","&quot;","&quot;"),c=0;c<d.length;c++)b=replaceAll(b,a[c],d[c]);return b}function ProcessImn(){};