var DEBUG=false,$playVideoType="video",$cboxClose=$.fn.colorbox.close,$fsFlowPlayerInternal=0;$.fn.colorbox.close=function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)?$videoEmbeddedColorbox==true?$playVideoType!="video"&&$playVideoType=="flash"&&$fsFlowPlayerInternal.getState()==3&&($cboxClose(),$videoEmbeddedColorbox=false):$cboxClose():$cboxClose()};
$(document).ready(function(){function Vb(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=RegExp("[\\?&]"+a+"=([^&#]*)").exec(window.location.href);return a==null?"":decodeURIComponent(a[1].replace(/\+/g," "))}function r(a,g,b){a==0?$(b[0]).hide():$(b[0]).show();a==g-1?$(b[1]).hide():$(b[1]).show()}function A(a){a[0]!="#playlistHolder"?(k==a[1]-1?k=0:k++,r(k,a[1],a[3])):(v==a[1]-1?v=0:v++,r(v,a[1],a[3]));K(a)}function Wb(){switch(B){case "home":!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&
!navigator.userAgent.match(/iPad/i)&&(orientation==0?($("#main").css("height","1100px"),$("footer").css("top","1170px")):orientation==180?($("#main").css("height","1100px"),$("footer").css("top","1170px")):orientation==90?($("#main").css("height","520px"),$("footer").css("top","620px")):orientation==-90?($("#main").css("height","520px"),$("footer").css("top","620px")):orientation==180&&($("#main").css("height","1100px"),$("footer").css("top","1160px")));break;case "activation_de_marque":orientation==
0?($("#main").css("height","1200px"),$(".videoWall").css("height","1200px"),$("footer").css("top","1280px")):orientation==180?($("#main").css("height","1200px"),$(".videoWall").css("height","1200px"),$("footer").css("top","1280px")):orientation==90?($("#main").css("height","1000px"),$(".videoWall").css("height","1000px"),$("footer").css("top","1070px")):orientation==-90?($("#main").css("height","1000px"),$(".videoWall").css("height","1000px"),$("footer").css("top","1070px")):orientation==180&&($("#main").css("height",
"1000px"),$(".videoWall").css("height","1000px"),$("footer").css("top","1070px"));yb();break;case "animation_vente":orientation==0?($("#main").css("height","1460px"),$("footer").css("top","1550px")):orientation==180?($("#main").css("height","1460px"),$("footer").css("top","1550px")):orientation==90?($("#main").css("height","1460px"),$("footer").css("top","1550px")):orientation==-90?($("#main").css("height","1460px"),$("footer").css("top","1550px")):orientation==180&&($("#main").css("height","1460px"),
$("footer").css("top","1550px"));db();break;case "my_globe":orientation==0?($("#main").css("height","1100px"),$("footer").css("top","1160px")):orientation==180?$("footer").css("top","1160px"):orientation==90?($("#main").css("height","520px"),$("footer").css("top","620px")):orientation==-90?($("#main").css("height","520px"),$("footer").css("top","620px")):orientation==180&&($("#main").css("height","1100px"),$("footer").css("top","1160px"));break;case "recrutement":orientation==0?($("#main").css("height",
"1100px"),$("footer").css("top","1170px")):orientation==180?($("#main").css("height","1100px"),$("footer").css("top","1170px")):orientation==90?($("#main").css("height","900px"),$("footer").css("top","970px")):orientation==-90?($("#main").css("height","900px"),$("footer").css("top","970px")):orientation==180&&($("#main").css("height","900px"),$("footer").css("top","970px"))}}function K(a){a[0]!="#playlistHolder"?$(a[0]).animate({marginLeft:a[2]*-k}):$(a[0]).animate({marginLeft:a[2]*-v})}function Z(a){a.split("/");
$("#main").show();zb();B!=a&&Xb(a)}function Xb(a){$.manageAjax.add("ajaxProfile",{dataType:"html",success:function(g){$("#menu-ACTIVATION").show();$("#menu-ANIMATION").show();$("#menu-DIFFUION").show();$("#menu-RECRUTEMENT").show();$("#menu-MYGLOBE").show();$("#flag-fr").show();$("#flag-en").show();a!="home"&&sa();B=a;Yb(a,g)},error:function(){},url:$baseUrl+a.replace(/_/g,"")+"?media="+f})}function aa(a,g,b){if(a)switch(a){case "home":$(window).unbind("resize");clearTimeout(Ab);clearTimeout(Zb);
if(f=="video")$("#fullscreenVideoWrapper").fadeOut(100,"easeOutExpo",function(){$("#videoP1").kill();$("#fullscreenVideoWrapper").remove();$("#fullscreenSliderWrapper").remove();$("#videoControls1").remove();N(a,g,b)});else if(f=="flash"){try{ba.stop()}catch(d){}try{ba.unload()}catch(c){}try{$f()._api().fp_close()}catch(j){}document.getElementById("fullscreenFlashWrapper").style.display="none";$("#fullscreenSliderWrapper").remove();N(a,g,b)}else $("#fullscreenVideoLinkWrapper").fadeOut(100,"easeOutExpo",
function(){$("#fullscreenVideoLinkWrapper").remove();N(a,g,b)});break;case "activation_de_marque":if(f=="flash"){try{$fsFlowPlayerInternal.stop()}catch(n){}try{$fsFlowPlayerInternal.unload()}catch(q){}try{$f()._api().fp_close()}catch(h){}document.getElementById("fullscreenFlashWrapper").style.display="none";$("#fullscreenSliderWrapper").remove();N(a,g,b)}clearTimeout(ta);Ea();R=[];ca=[];S=false;$(window).unbind("resize");N(a,g,b);break;case "animation_vente":Fa=u=da=false;clearTimeout(Ga);clearTimeout(Ha);
clearTimeout(Bb);clearTimeout(Cb);clearTimeout(Db);clearTimeout(Eb);e=0;try{$("#answerPop").remove()}catch(l){}try{$(".idea").remove()}catch(uc){}$(window).unbind("resize");clearInterval(ea);clearInterval(fa);$(document).unbind("cbox_cleanup");$(document).unbind("cbox_complete");N(a,g,b);break;case "recrutement":N(a,g,b);break;case "my_globe":clearInterval(ga),$(document).unbind("cbox_cleanup"),$(document).unbind("cbox_complete"),N(a,g,b)}else g(b)}function N(a,g,b){$("#main").fadeOut(100,"easeOutExpo",
function(){$("#main").children().each(function(){$(this).is("#main-loader")||$(this).remove()});g(b)})}function Yb(a,g){var b=$(g).get(),d=0;switch(a){case "home":document.title=$pageTitles[0];$(".navigation li").each(function(){$(this).find("a").css("color","#6d7a7f");$(this).find("a").css("text-decoration","none")});$(".navigation2 li").each(function(a){a==0&&($(this).find("a").css("color","#6d7a7f"),$(this).find("a").css("text-decoration","none"))});for(d=0;$(b)[d];){if($(b)[d].id=="fullscreenVideoWrapper"&&
f=="video")$("header").after($(b)[d]),G(f,ha,"#fullscreenVideoWrapper");else if($(b)[d].id=="placeHolder")$("#main").append($(b)[d]),$("."+$(b)[d].id).hide();else if($(b)[d].id=="fullscreenVideoWrapper"&&f=="video")$("header").after($(b)[d]),G(f,ha,"#fullscreenVideoWrapper");else if($(b)[d].id=="trame"&&f=="video")$("#main").append($(b)[d]);else if($(b)[d].id=="videoControls1"&&f=="video")$("#main").after($(b)[d]),$("#"+$(b)[d].id).hide();else if($(b)[d].id=="fullscreenSliderWrapper")!navigator.userAgent.match(/iPhone/i)&&
!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&($("header").after($(b)[d]),f!=false&&$("#fullscreenSliderWrapper").hide());else if($(b)[d].id=="fullscreenVideoLinkWrapper"){if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)||!($msieVer>=9||$msieVer==-1))$("header").after($(b)[d]),$("#fullscreenVideoLinkWrapper").hide()}else $(b)[d].id=="fullscreenFlashWrapper"&&f=="flash"?$("header").after($(b)[d]):$(b)[d].id==
"skipHolder"?f=="video"&&($("#main").append($(b)[d]),$("#skipHolder").bind("click",function(){L==true&&fb()}),$("#"+$(b)[d].id).hide()):$(b)[d].id=="playHolder"&&(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i))&&$("#main").append($(b)[d]);d++}$(".fsimage-slide").each(function(){$(this).css("background-image","none");$(this).find("img").show()});if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i))orientation==
0?($("#main").css("height","1100px"),$("footer").css("top","1170px")):orientation==180?($("#main").css("height","1100px"),$("footer").css("top","1170px")):orientation==90?($("#main").css("height","520px"),$("footer").css("top","620px")):orientation==-90?($("#main").css("height","520px"),$("footer").css("top","620px")):orientation==180&&($("#main").css("height","1100px"),$("footer").css("top","1160px"));if(!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i))if(f==
"video")$("#videoP1").gVideo(),L=true,$("#videoP1").bind("ended",function(){fb()}),$("#videoP1").bind("canplay",function(){a=="home"&&($b(),$(".placeHolder").each(function(){$(this).show()}),f=="video"&&$("#skipHolder").show(),$("#scrollbar1").tinyscrollbar()&&(sa(),$("#videoP1")[0].play(),$("#videoControls1").show()))}),$(window).resize(function(){G(f,ha,"#fullscreenVideoWrapper")});else{if(f=="flash"){if(b=1,gb=="en"&&(b=0),L=true,ba=$f("fullscreenFlashWrapper",{src:$baseUrl+"flowplayer/flowplayer-3.2.7.swf",
wmode:"opaque"},{clip:{url:$introVideo[b],autoPlay:true,autoBuffering:true},plugins:{controls:{fullscreen:false}},onResized:function(){var a=$(this.getParent());this.getControls().css("top",eval(parseInt(String($(a).css("top")).replace(/px/g,""))+parseInt(String($(a).css("height")).replace(/px/g,""))-70)+"px");this.getControls().css("width",parseInt(String($(window).width()).replace(/px/g,""))+"px")},onLoad:function(){this.play();L=true},onBeforeUnload:function(){return false},onFinish:function(){L=
false},onUnload:function(){this.style.display="none"}}),G(f,ha,"#fullscreenFlashWrapper"),document.getElementById("fullscreenFlashWrapper").style.display="block",Fb==true&&(ba.play(),Fb=false),$(window).resize(function(){G(f,ha,"#fullscreenFlashWrapper")}),$(".placeHolder").each(function(){$(this).show()}),a=="home")try{$("#scrollbar1").tinyscrollbar()}catch(eb){return false}}else{$(".placeHolder").each(function(){$(this).show()});if(a=="home")try{$("#scrollbar1").tinyscrollbar()}catch(j){return false}fb()}sa()}else{$(".placeHolder").each(function(){$(this).show()});
if(a=="home")try{$("#scrollbar1").tinyscrollbar()}catch(n){return false}ac()}Ia=$(".chiffre");numberOfChiffres=Ia.length;numberOfChiffres>1&&(k=Math.floor(Math.random()*(numberOfChiffres-1-0+1))+0,r(k,numberOfChiffres,["#leftCommand","#rightCommand"]),Ja==true&&(ua=setInterval(function(){A(["#chiffresHolder",numberOfChiffres,T,["#leftCommand","#rightCommand"]])},C)),$("#leftCommand").bind("click",function(){k--;r(k,numberOfChiffres,["#leftCommand","#rightCommand"]);Ja==true&&(clearInterval(ua),ua=
setInterval(function(){A(["#chiffresHolder",numberOfChiffres,T,["#leftCommand","#rightCommand"]])},C));K(["#chiffresHolder",numberOfChiffres,T])}),$("#rightCommand").bind("click",function(){k++;r(k,numberOfChiffres,["#leftCommand","#rightCommand"]);Ja==true&&(clearInterval(ua),ua=setInterval(function(){A(["#chiffresHolder",numberOfChiffres,T,["#leftCommand","#rightCommand"]])},C));K(["#chiffresHolder",numberOfChiffres,T])}),Ia.wrapAll('<div id="chiffresHolder"></div>'),Ia.css({"float":"left"}),$("#chiffresHolder").css("marginLeft",
T*-k),$("#chiffresHolder").css("width",T*numberOfChiffres+"px"),Ja==true&&r(k,numberOfChiffres,["#leftCommand","#rightCommand"]));$("#main").append('<div class="tooltipWrapper" style="display:none;"><div class="tooltipContents"></div></div>');!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&($("area").hover(function(a){parseInt($(this).attr("title"))!=4&&parseInt($(this).attr("title"))!=8&&parseInt($(this).attr("title"))!=11?$(".tooltipWrapper").css("left",
a.pageX-86+"px"):$(".tooltipWrapper").css("left",a.pageX-95+"px");$(".tooltipWrapper").css("top",a.pageY+37-220+"px");$(".tooltipContents").html($zones[parseInt($(this).attr("title"))]);$(".tooltipWrapper").fadeIn(100)},function(){$(".tooltipWrapper").fadeOut(100)}),$(".tooltipWrapper").hover(function(){$(".tooltipWrapper").fadeOut(100)},function(){}));$(".videoFluxImage").bind("click",function(){var a=parseInt(String($(this).attr("id")).replace(/videoFluxImage/g,""));if(L==true&&f=="video")try{document.getElementById("videoP1").pause()}catch(b){}$.colorbox({href:$baseUrl+
"getvideoplayer?id="+a+"&playlist=1&image="+O,width:U[0][1],height:625,onOpen:function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)?($("html").css("overflow-y","auto"),$("body").css("overflow-y","auto")):$("#cboxOverlay").height($(document).height())},onClosed:function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&($("html").css("overflow-y","hidden"),$("body").css("overflow-y",
"hidden"),$("body").scrollTop(0))}});$playVideoType=="video"?V(0):$playVideoType=="flash"&&ia()});$(".videoFluxItem").bind("click",function(){var a=parseInt(String($(this).attr("id")).replace(/videoFlux/g,""));if(L==true)if(f=="video")try{document.getElementById("videoP1").pause()}catch(b){}else if(f=="flash")try{ba.pause()}catch(d){}$.colorbox({href:$baseUrl+"getvideoplayer?id="+a+"&playlist=1&image="+O,width:U[0][1],height:625,onOpen:function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&
!navigator.userAgent.match(/iPad/i)?($("html").css("overflow-y","auto"),$("body").css("overflow-y","auto")):$("#cboxOverlay").height($(document).height())},onClosed:function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&($("html").css("overflow-y","hidden"),$("body").css("overflow-y","hidden"),$("body").scrollTop(0))}});$playVideoType=="video"?V(0):$playVideoType=="flash"&&ia()});break;case "activation_de_marque":document.title=
$pageTitles[1];$(".navigation li").each(function(a){a<5&&(a==0?($(this).find("a").css("color","#0093bd"),$(this).find("a").css("text-decoration","underline")):($(this).find("a").css("color","#6d7a7f"),$(this).find("a").css("text-decoration","none")))});$(".navigation2 li").each(function(a){a==0&&($(this).find("a").css("color","#6d7a7f"),$(this).find("a").css("text-decoration","none"))});for(d=0;$(b)[d];)$("#main").append($(b)[d]),d++;$msieVer<9&&$msieVer!=-1?$(".movingmosa").each(function(){$(this).css("background-image",
"none")}):$(".movingmosa").each(function(){$(this).find("img").remove()});if(cc==true){Ka=va=wa=0;xa=$(".videoWall");xa.css({position:"relative",width:"auto"});l=$(".videoWall").width();l<796&&(l=800);W=l/p[0];H=[];ja=0;h=c=1;i=0;ka=[[]];x=[];hb=La=Ma=0;$(".videoWall").children().each(function(){var a=parseInt(String($(this).attr("id")).replace(/box/g,""));!$(this).is(".text-box")&&!$(this).is(".staticmosa")&&($(this).css("position","absolute"),$(this).css("display","none"),$(this).hasClass("t1a")&&
(Na=1,Ma++),$(this).hasClass("t2a")&&(Na=2,La++),$(this).hasClass("t3a")&&(Na=3,hb++),ka[a-1]=[0,0,Na,0],ja++)});if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i))ya=false,orientation==0?($("#main").css("height","1200px"),$(".videoWall").css("height","1200px"),$("footer").css("top","1280px")):orientation==180?($("#main").css("height","1200px"),$(".videoWall").css("height","1200px"),$("footer").css("top","1280px")):orientation==90?($("#main").css("height",
"1000px"),$(".videoWall").css("height","1000px"),$("footer").css("top","1070px")):orientation==-90?($("#main").css("height","1000px"),$(".videoWall").css("height","1000px"),$("footer").css("top","1070px")):orientation==180&&($("#main").css("height","1000px"),$(".videoWall").css("height","1000px"),$("footer").css("top","1070px"));for(;c<=P;){for(h=0;h<parseInt(l/p[0]);)c<=P&&(H[c]=[0,p[0]*h,p[1]*i,i+1,h+1,c],ya==true&&xa.append('<div id="grid'+c+'" class="grid" style="display:block;background-color:yellow;width:128px;height:72px;position:absolute;opacity:0.5;left:'+
p[0]*h+"px;top:"+p[1]*i+'px">'+c+"</div>")),h++,c++;i++}for(i=h=c=0;c<ja;)R.push(c),ca.push(c+1),ca[c+1]=$seed==c?1:0,c++;c=0;y(Gb,1,H,p,"blue",false);for(y(la,4,H,p,"red",false);c<P;)x[c]=c,c++;x=ib(x);R=ib(R);Hb(0,1,x,H,[la,Ib,p],ja,ka,P,"red",3);jb=window.$brands;kb=window.$accroches;$(".movingmosa").bind("click",function(){var a=parseInt(String($(this).attr("id")).replace(/box/g,""));$(document).unbind("cbox_cleanup");$(document).unbind("cbox_complete");clearTimeout(ta);Ea();S=true;var b=0;f==
"video"&&(b=1);$.colorbox({href:$baseUrl+"getvideoplayer?id="+a+"&playlist="+b+"&image="+O,width:U[0][1],onOpen:function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)?($("html").css("overflow-y","auto"),$("body").css("overflow-y","auto")):$("#cboxOverlay").height($(document).height())},onClosed:function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&($("html").css("overflow-y",
"hidden"),$("body").css("overflow-y","hidden"))}});$playVideoType=="video"?!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)?V(1):V(0):$playVideoType=="flash"&&ia()});$(".staticmosa").bind("click",function(){$(document).unbind("cbox_cleanup");$(document).unbind("cbox_complete");clearTimeout(ta);Ea();S=true;$.colorbox({href:$baseUrl+"getvideoplayer?id=0&playlist=1&image="+O,width:U[0][1],height:625,onOpen:function(){!navigator.userAgent.match(/iPhone/i)&&
!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)?($("html").css("overflow-y","auto"),$("body").css("overflow-y","auto")):$("#cboxOverlay").height($(document).height())},onClosed:function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&($("html").css("overflow-y","hidden"),$("body").css("overflow-y","hidden"))}});$playVideoType=="video"?V(0):$playVideoType=="flash"&&ia()});!navigator.userAgent.match(/iPhone/i)&&
!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&($(".movingmosa").hover(function(){var a=parseInt(String($(this).attr("id")).replace(/box/g,"")),b=parseInt(String($(this).css("left")).replace(/px/g,""))-53.5+$(this).width()/2-45;b<0?b=0:b>l&&(b=l-parseInt(String($(".tooltipWrapper3").width()).replace(/px/g,"")));$(".tooltipWrapper3").css("left",b+"px");b=parseInt(String($(this).css("top")).replace(/px/g,""))-60;b<parseInt(String($("#main").css("top")).replace(/px/g,""))?
(b=parseInt(String($(this).css("top")).replace(/px/g,""))+parseInt(String($(this).css("height")).replace(/px/g,""))+30,$(".tooltipWrapper3").css("background-image","url("+$baseUrl+"images/tooltip3_downside.png)"),$(".tooltipContents3").css("padding-bottom","5px"),$(".tooltipContents3").css("padding-top","10px")):($(".tooltipWrapper3").css("background-image","url("+$baseUrl+"images/tooltip3.png)"),$(".tooltipContents3").css("padding-bottom","20px"),$(".tooltipContents3").css("padding-top","5px"));
$(".tooltipWrapper3").css("top",b+"px");$(".tooltipContents3 span").html(jb[a]);$(".tooltipContents3 p").html(kb[a]);$(".tooltipWrapper3").show()},function(){$(".tooltipWrapper3").hide()}),$(".tooltipWrapper3").hover(function(){$(".tooltipWrapper3").hide()},function(){}));!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&$(window).resize(function(){Oa(yb,500)})}break;case "animation_vente":document.title=$pageTitles[2];$(".navigation li").each(function(a){a<
5&&(a==1?($(this).find("a").css("color","#0093bd"),$(this).find("a").css("text-decoration","underline")):($(this).find("a").css("color","#6d7a7f"),$(this).find("a").css("text-decoration","none")))});$(".navigation2 li").each(function(a){a==0&&($(this).find("a").css("color","#6d7a7f"),$(this).find("a").css("text-decoration","none"))});for(d=0;$(b)[d];)$("#main").append($(b)[d]),d++;if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i))orientation==
0?($("#main").css("height","1460px"),$("footer").css("top","1550px")):orientation==180?($("#main").css("height","1460px"),$("footer").css("top","1550px")):orientation==90?($("#main").css("height","1460px"),$("footer").css("top","1550px")):orientation==-90?($("#main").css("height","1460px"),$("footer").css("top","1550px")):orientation==180&&($("#main").css("height","1460px"),$("footer").css("top","1550px"));k=0;Pa=$(".slide");w=Pa.length;w>1?(Qa==true&&(ea=setInterval(function(){A(["#slidesHolder",
w,$sliderBoxWidth,["#leftCommand","#rightCommand"]])},C)),$("#leftCommand").bind("click",function(){k--;r(k,w,["#leftCommand","#rightCommand"]);Qa==true&&(clearInterval(ea),ea=setInterval(function(){A(["#slidesHolder",w,$sliderBoxWidth,["#leftCommand","#rightCommand"]])},C));K(["#slidesHolder",w,$sliderBoxWidth])}),$("#rightCommand").bind("click",function(){k++;r(k,w,["#leftCommand","#rightCommand"]);Qa==true&&(clearInterval(ea),ea=setInterval(function(){A(["#slidesHolder",w,$sliderBoxWidth,["#leftCommand",
"#rightCommand"]])},C));K(["#slidesHolder",w,$sliderBoxWidth])}),Pa.wrapAll('<div id="slidesHolder"></div>'),Pa.css({"float":"left"}),$("#slidesHolder").css("width",$sliderBoxWidth*w+"px"),Qa==true&&r(k,w,["#leftCommand","#rightCommand"])):($("#leftCommand").hide(),$("#rightCommand").hide());w>=1&&$(".slider-playBtn").bind("click",function(){$.colorbox({href:$baseUrl+"getvideoplayer?sslider="+$isliderVideos[k+1]+"&playlist=1&image="+O,width:U[0][1],height:625,onOpen:function(){!navigator.userAgent.match(/iPhone/i)&&
!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)?($("html").css("overflow-y","auto"),$("body").css("overflow-y","auto")):$("#cboxOverlay").height($(document).height())},onClosed:function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&($("html").css("overflow-y","hidden"),$("body").css("overflow-y","hidden"))}});$playVideoType=="video"?V(0):$playVideoType=="flash"&&ia()});$(window).resize(function(){$sliderBoxWidth=
$(".slider-box").width();$(".slider-box").css("width");for(var a=w;a>=1;)$(".slide"+a).css("width",$sliderBoxWidth+"px"),$(".slide"+a).css("background-position","center"),a--;$("#slidesHolder").css("width",$sliderBoxWidth*w+"px")});if(dc==true){xa=$(".ideaWall");xa.css({position:"relative",width:"auto","margin-left":"10px",top:"4px","padding-right":"0px"});l=$(".ideaWall").width();l<796&&(l=800);ma=l/m[0];z=[];Ra=0;h=c=1;lb=i=0;o=[[]];maxV2s=na=I=0;for($(".idea").each(function(){var a=parseInt(String($(this).attr("id")).replace(/box/g,
""));$(this).is("#answerPop")||($(this).css("position","absolute"),$(this).css("display","none"),Jb=2,lb=1,na++,I+=lb,o[a-1]=[0,0,Jb,0],Ra++)});c<=J;){for(h=0;h<parseInt(l/m[0]);)c<=J&&(z[c]=[0,m[0]*h,m[1]*i,i+1,h+1,c],ec==true&&$("section").append('<div id="grid'+c+'" class="grid" style="display:block;background-color:yellow;width:'+m[0]+"px;height:"+m[1]+"px;position:absolute;opacity:0.5;left:"+m[0]*h+"px;top:"+m[1]*i+'px">'+c+"</div>")),h++,c++;i++}for(i=h=c=0;c<J;)x[c]=c,c++;$msieVer>=9||$msieVer==
-1?(za(z,[s,m],I,o,"red",0,null,null,0,true),!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&$(window).resize(function(){Oa(db,500)})):(Kb(z,[s,m],I,o,"red"),$(window).resize(function(){Oa(db,500)}))}break;case "diffusion_presse":for(d=0;$(b)[d];)$("#main").append($(b)[d]),d++;break;case "recrutement":document.title=$pageTitles[4];$(".navigation li").each(function(a){a<5&&(a==3?($(this).find("a").css("color","#0093bd"),$(this).find("a").css("text-decoration",
"underline")):($(this).find("a").css("color","#6d7a7f"),$(this).find("a").css("text-decoration","none")))});$(".navigation2 li").each(function(a){a==0&&($(this).find("a").css("color","#6d7a7f"),$(this).find("a").css("text-decoration","none"))});if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i))orientation==0?($("#main").css("height","1100px"),$("footer").css("top","1170px")):orientation==180?($("#main").css("height","1100px"),$("footer").css("top",
"1170px")):orientation==90?($("#main").css("height","900px"),$("footer").css("top","970px")):orientation==-90?($("#main").css("height","900px"),$("footer").css("top","970px")):orientation==180&&($("#main").css("height","900px"),$("footer").css("top","970px"));for(d=0;$(b)[d];)$("#main").append($(b)[d]),d++;if(document.getElementById("videoPlayer"))for(var b=document.getElementById("videoPlayer"),d=b.children,q=0,Da=d.length;q<Da;q++)if(d[q].tagName.toUpperCase()=="SOURCE"){var e=b.canPlayType(d[q].type);
if(e=="probably"||e=="maybe"){b.src=d[q].src;b.load();break}}break;case "my_globe":document.title=$pageTitles[5];$(".navigation li").each(function(a){a<5&&($(this).find("a").css("color","#6d7a7f"),$(this).find("a").css("text-decoration","none"))});$(".navigation2 li").each(function(a){a==0&&($(this).find("a").css("color","#0093bd"),$(this).find("a").css("text-decoration","underline"))});for(d=0;$(b)[d];)$("#main").append($(b)[d]),d++;$("#password-clear").show();$("#mdp").hide();$("#password-clear").focus(function(){$("#password-clear").hide();
$("#mdp").show();$("#mdp").focus()});$("#mdp").blur(function(){$("#mdp").val()==""&&($("#password-clear").show(),$("#mdp").hide())});if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i))orientation==0?($("#main").css("height","1100px"),$("footer").css("top","1160px")):orientation==180?$("footer").css("top","1160px"):orientation==90?($("#main").css("height","520px"),$("footer").css("top","620px")):orientation==-90?($("#main").css("height",
"520px"),$("footer").css("top","620px")):orientation==180&&($("#main").css("height","1100px"),$("footer").css("top","1160px"));Sa=$(".image-box-selection");D=Sa.length;k=0;D>1?(r(k,D,["#leftCommand","#rightCommand"]),Ta==true&&(ga=setInterval(function(){A(["#imagesHolder",D,X,["#leftCommand","#rightCommand"]])},C)),$("#leftCommand").bind("click",function(){k--;r(k,D,["#leftCommand","#rightCommand"]);Ta==true&&(clearInterval(ga),ga=setInterval(function(){A(["#imagesHolder",D,X,["#leftCommand","#rightCommand"]])},
C));K(["#imagesHolder",D,X])}),$("#rightCommand").bind("click",function(){k++;r(k,D,["#leftCommand","#rightCommand"]);Ta==true&&(clearInterval(ga),ga=setInterval(function(){A(["#imagesHolder",D,X,["#leftCommand","#rightCommand"]])},C));K(["#imagesHolder",D,X])}),Sa.wrapAll('<div id="imagesHolder"></div>'),Sa.css({"float":"left"}),$("#imagesHolder").css("marginLeft",X*-k),$("#imagesHolder").css("width",X*(D+1)+"px"),Ta==true&&r(k,D,["#leftCommand","#rightCommand"])):($("#leftCommand").hide(),$("#rightCommand").hide());
$(".image-slide").bind("click",function(){var a=parseInt(String($(this).attr("id")).replace(/image/g,""));$.colorbox({href:$baseUrl+"getimage?id="+a,onOpen:function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)?($("html").css("overflow-y","auto"),$("body").css("overflow-y","auto")):$("#cboxOverlay").height($(document).height())},onClosed:function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&
($("html").css("overflow-y","hidden"),$("body").css("overflow-y","hidden"))}})});Vb("erreur")=="1"&&alert("ERREUR : Merci de saisir \u00e0 nouveau votre login et votre mot de passe")}}function Ua(a,g){Va(a-1,z,[s,m],I,o,"red",false,false,null,g)}function Va(a,g,b,d,eb,j,n,q,Da,f){j=false;if(n==false){var e=parseInt(String($("#box"+(a+1)).css("width")).replace(/px/g,"")),bc=parseInt(String($("#box"+(a+1)).css("left")).replace(/px/g,""));Math.round((e+bc)/m[0])==Math.floor(ma)&&(j=true)}h=c=1;for(i=
0;c<=J;){for(h=0;h<parseInt(l/m[0]);)c<=J&&(z[c]=[0,m[0]*h,m[1]*i,i+1,h+1,c]),h++,c++;i++}for(c=0;c<Ra;)o[c][3]=0,o[c][1]=0,c==a&&(n==true?(o[c]=[0,0,2,0],$("#box"+(a+1)).animate({width:"280px",height:"168px","margin-left":"0px"}),$(".wrap"+(a+1)).animate({width:"280px",height:"168px","margin-left":"0px"})):(o[c]=[0,0,1,0],j==true?$("#box"+(a+1)).animate({width:s[0]+"px","margin-left":-(s[0]/2)-2+"px",height:s[1]+"px"}):$("#box"+(a+1)).animate({width:s[0]+"px",height:s[1]+"px"}),$(".wrap"+(a+1)).animate({width:s[0]+
"px",height:s[1]+"px"}))),c++;j==true?(y(s,a,g,m,"red",false),za(g,b,d,eb,"red",a,q,Da,0,true,f)):za(g,b,d,eb,"red",0,q,Da,0,true)}function fc(){$(".videoWall").children().each(function(){if($(this).is(".text-box"))$(this).css("left",eval((l-Math.floor(W)*p[0])/2)+"px");else if($(this).is(".staticmosa"))$(this).css("left",eval((l-Math.floor(W)*p[0])/2+384)+"px");else if(!$(this).is(".grid")){var a=parseInt(String($(this).attr("id")).replace(/box/g,"")),a=document.getElementById("box"+a);$(this).css("left",
eval(parseInt(String(a.style.left).replace(/px/g,""))+(l-Math.floor(W)*p[0])/2)+"px")}});$(".movingmosa").each(function(a){$(this).is(".t3a")&&$(this).css("z-index","7");$(this).is(".t2a")&&$(this).css("z-index","8");$(this).is(".t1a")&&$(this).css("z-index","9");$(this).delay(Lb*a).fadeIn(gc)});if(!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&($msieVer>=9||$msieVer==-1))ta=setTimeout(function(){(B="activation_de_marque")&&Wa()},Lb*
($maxVideoBoxes+1))}function Mb(){$(".idea").quickFlip({noResize:true});$(".idea").bind("click",function(){var a=parseInt(String($(this).attr("id")).replace(/box/g,""));u==false&&Fa==true&&(e>0?e!=a&&($("body").animate({scrollTop:eval($("#box"+a).offset().top-180)},"slow"),u=true,$("#box"+e).quickFlipper({panelWidth:$("#box"+e).width(),panelHeight:$("#box"+e).height(),openSpeed:oa,closeSpeed:oa,refresh:true,endCallback:function(){Va(e-1,z,[s,m],I,o,"red",true,false,a);e=a;Ha=setTimeout(function(){Ua(a);
Ga=setTimeout(function(){$("#box"+a).quickFlipper({panelWidth:$("#box"+a).width(),panelHeight:$("#box"+a).height(),openSpeed:pa,closeSpeed:pa,refresh:true,endCallback:function(){u=false}})},1E3)},1E3)}})):(u=true,e=a,Ua(a),Ga=setTimeout(function(){$("#box"+a).quickFlipper({panelWidth:$("#box"+a).width(),panelHeight:$("#box"+a).height(),openSpeed:pa,closeSpeed:pa,refresh:true,endCallback:function(){u=false}})},1E3)))});$(".answer-close").bind("click",function(){e>0&&u==false&&(u=true,$("#box"+e).quickFlipper({panelWidth:$("#box"+
e).width(),panelHeight:$("#box"+e).height(),openSpeed:oa,closeSpeed:oa,refresh:true,endCallback:function(){Va(e-1,z,[s,m],I,o,"red",true,false,0);Ha=setTimeout(function(){e=0;u=false},1E3)}}))});$(".answerPop").bind("click",function(){e>0&&u==false&&(u=true,$("#box"+e).quickFlipper({panelWidth:$("#box"+e).width(),panelHeight:$("#box"+e).height(),openSpeed:oa,closeSpeed:oa,refresh:true,endCallback:function(){Va(e-1,z,[s,m],I,o,"red",true,false,0);Ha=setTimeout(function(){e=0;u=false},1E3)}}))});$(".answer-video").bind("click",
function(){$.colorbox({href:$baseUrl+"getvideoplayer?image="+O+"&playlist=1&idea="+hc,width:U[0][1],height:625,onOpen:function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)?($("html").css("overflow-y","auto"),$("body").css("overflow-y","auto")):$("#cboxOverlay").height($(document).height())},onClosed:function(){!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&($("html").css("overflow-y",
"hidden"),$("body").css("overflow-y","hidden"))}});$playVideoType=="video"?V(0):$playVideoType=="flash"&&ia()});$(".idea").each(function(a){$(this).delay(ic*a).fadeIn(jc);Fa==false&&a==1&&(Cb=setTimeout(function(){u=true;e=1;Ua(1);Ga=setTimeout(function(){$("#box1").quickFlipper({panelWidth:$("#box1").width(),panelHeight:$("#box1").height(),openSpeed:pa,closeSpeed:pa,refresh:true,endCallback:function(){u=false;Fa=true}})},1E3)},1E3),Bb=setTimeout(function(){$("#box1 .answer-close").trigger("click")},
4E3))})}function db(){if($msieVer>=9||$msieVer==-1)clearTimeout(Eb),clearTimeout(Db),e!=0&&($("#box"+e).quickFlipper({panelWidth:280,panelHeight:168,openSpeed:0,closeSpeed:0,refresh:true,endCallback:function(){}},0),$("#box"+e).css("margin-left","0px"),o[e-1]=[0,0,2,0],e=0,u=false);l=$(".ideaWall").width();l<796&&(l=800);ma=l/m[0];z=[];h=c=1;for(i=0;c<=J;){for(h=0;h<parseInt(l/m[0]);)c<=J&&(z[c]=[0,m[0]*h,m[1]*i,i+1,h+1,c]),h++,c++;i++}c=0;for(x=[];c<J;)x[c]=c,c++;for(c=0;c<Ra;)o[c][3]=0,o[c][1]=
0,c++;$msieVer>=9||$msieVer==-1?za(z,[s,m],I,o,"red",0,null,null,0,false):Kb(z,[s,m],I,o,"red")}function yb(){S==true&&(clearTimeout(ta),Ea());$(".videoWall").children().each(function(){!$(this).is(".text-box")&&!$(this).is(".staticmosa")&&$(this).hide()});l=$(".videoWall").width();l<796&&(l=800);W=l/p[0];mb=[];H=[];h=c=1;for(Ka=va=wa=i=0;c<=P;){for(h=0;h<parseInt(l/p[0]);)c<=P&&(H[c]=[0,p[0]*h,p[1]*i,i+1,h+1,c],ya==true&&($("#grid"+c).css("background-color","yellow"),$("#grid"+c).css("left",p[0]*
h+"px"),$("#grid"+c).css("top",p[1]*i+"px"))),h++,c++;i++}y(Gb,1,H,p,"blue",false);y(la,4,H,p,"red",false);c=0;for(x=[];c<P;)x[c]=c,c++;for(c=0;c<ja;)ka[c][3]=0,ka[c][1]=0,c++;x=ib(x);Hb(0,1,x,H,[la,Ib,p],ja,ka,P,"red",3)}function ib(a){for(var g,b,d=a.length;d;g=parseInt(Math.random()*d),b=a[--d],a[d]=a[g],a[g]=b);return a}function y(a,g,b,d,c,j){for(var n=1,q=1,h=1,f=0,e=b[g][3]-1,g=b[g][4]-1,l=Math.round(a[0]/d[0]),a=Math.round(a[1]/d[1]),d=[],k;n<=l*a;){a:{k=e+h;for(var m=g+q,i=b,p=c,r=j,o=1;o<
i.length;){if(i[o][3]==k&&i[o][4]==m)if(i[o][0]==0){ya==true&&$("#grid"+o).css("background-color",p);k=i[o];break a}else if(r==false)break;else{k=i[o];break a}o++}k=-1}d.push(k);if(j==false)if(k!=-1){if(n%l==0?(h++,q=1):q++,n==l*a){for(;f<d.length;)b[d[f][5]][0]=1,f++;return true}}else return false;else if(n%l==0?(h++,q=1):q++,n==l*a){for(;f<d.length;)b[d[f][5]][0]=0,f++;return true}n++}}function Hb(a,g,b,d,c,j,n,q,h,f){for(var k=1,e=a=0,i=0,e=0;k<=q;){e=b[k-1];if(d[e+1][0]==0&&e<70){var m=(d[e][4]-
1)%f;if(m==0||m%f==0)if(e>i&&(i=e),wa<Ma)y(c[g-1],e,d,c[2],h,false)&&(wa++,m=Xa(g,j,n,e),Aa(m,d,e));else{nb(0,2,d,c,j,n,q,"yellow");break}}if(k==q&&wa<Ma){for(b=0;a<3;){if(b=Xa(g,j,n,i)){mb.push(b);mb.length>1&&alert("Petit probl\u00e8me technique ! Veuillez rafra\u00eechir la page !");Aa(b,d,i);h=document.getElementById("box"+(b+1));$("#box"+(b+1)).css("left",eval(parseInt(String(h.style.left).replace(/px/g,""))+(l-Math.floor(W)*p[0])/2)+"px");$("#box"+(b+1)).show();for(e=i-1;e<q;)d[e+1][0]=1,e++}a++}nb(0,
2,d,c,j,n,q,"yellow");break}else if(k==q){nb(0,2,d,c,j,n,q,"yellow");break}k++}}function nb(a,g,b,d,c,j,n,e){for(a=1;a<=n;){if(b[a][0]==0)if(va<La){if(y(d[g-1],a,b,d[2],e,false)){va++;var h=Xa(g,c,j,a);Aa(h,b,a);ob=a}}else{pb(0,3,b,d,c,j,n,"yellow");break}if(a==n&&va<La)pb(0,3,b,d,c,j,n,"yellow");else if(a==n){pb(0,3,b,d,c,j,n,"yellow");break}a++}}function qb(a,g,b){for(var d=0;d<g;){if(b[d][2]==a&&b[d][3]==0)return b[d][3]=1,d;d++}return-1}function rb(a,g,b,d,c,j,n){b>0&&(da==true?n==true?$("#box"+
a).animate({left:g[b][1]+(l-Math.floor(ma)*m[0])/2+"px",top:g[b][2]+"px"},kc,function(){b==j&&($msieVer>=9||$msieVer==-1)&&d>0&&c==true&&Ua(d)}):($("#box"+a).css("top",g[b][2]+"px"),$("#box"+a).css("left",g[b][1]+(l-Math.floor(ma)*m[0])/2+"px")):($("#box"+a).css("top",g[b][2]+"px"),$("#box"+a).css("left",g[b][1]+(l-Math.floor(ma)*m[0])/2+"px")))}function za(a,g,b,d,c,j,n,e,h,k){for(var f=1,l=0,i,m;f<=J;){if(a[f][0]==0)if(l!=j||j==0)if(l<na)m=d[l][2]==1?1:2,i=y(g[m-1],f,a,g[1],c,false),i==true&&(i=
qb(m,b,d),i>=0&&rb(i+1,a,f,e,n,na,k),l++);else{da==false&&Mb();da=true;break}else if(l++,h>0){za(a,g,b,d,c,j,1,null,null,0,true);break}else i=y(g[m-1],f,a,g[1],c,false),i==true&&(i=qb(m,b,d),i>=0&&rb(i+1,a,f,e,n,na,k),l++);f++}}function Kb(a,g,b,d,c){for(var j=1,n=0,e,f;j<=J;){if(a[j][0]==0)if(n<na)f=d[n][2]==1?1:2,e=y(g[f-1],j,a,g[1],c,false),e==true&&(e=qb(f,b,d),e>=0&&rb(e+1,a,j),n++);else{da==false&&Mb();da=true;break}j++}}function pb(a,g,b,d,c,j,n,e){for(a=1;a<=n;){if(b[a][0]==0)if(Ka<hb){if(y(d[2],
a,b,d[2],e,false)){Ka++;var f=Xa(g,c,j,a);Aa(f,b,a);sb=a}}else{fc();lc(b,d,c,j,n);break}a++}}function lc(a,g,b,d,c){for(var j=Math.max(sb,ob),e=0,f=[],i=0,j=0;d[j];)j++;for(;e<b-1;)d[e][2]==1&&d[e][3]>Math.max(sb,ob)+1&&(f.push(d[e][3]),y(la,d[e][3],a,g[2],"blue",true)),e++;for(e=0;e<f.length;){for(j=7;j<=c;){if(a[j][0]==0){var h=(a[j][4]-1)%3;if(h==0||h%3==0)if(j>i&&(i=j),h=mc(1,b,d,f[e]),y(la,i,a,g[2],"blue",false)){Aa(h,a,i);j=document.getElementById("box"+(h+1));$("#box"+(h+1)).css("left",eval(parseInt(String(j.style.left).replace(/px/g,
""))+(l-Math.floor(W)*p[0])/2)+"px");d[h][3]=i;break}}j++}e++}}function mc(a,g,b,d){for(var c=1;c<g;){if(b[c][2]==a&&b[c][3]==d)return c;c++}return 0}function Xa(a,c,b,d){for(var e=0;e<c;){if(b[e][2]==a&&b[e][3]==0)return b[e][3]=d,e;e++}return 0}function Aa(a,c,b){b>0?($("#box"+(a+1)).css("top",c[b][2]+"px"),$("#box"+(a+1)).css("left",c[b][1]+"px")):reloadWall()}function Ea(){try{var a=document.getElementById("videoP2");a.pause();$("#videoP2").remove()}catch(c){}try{a=document.getElementById("firstVideo"),
a.pause(),$("#firstVideo").remove()}catch(b){}}function Wa(){ya==false&&(S==false?(document.getElementById("firstVideo").play(),$("#firstVideo").bind("ended",function(){nc()})):$.manageAjax.add("ajaxProfile",{dataType:"html",success:function(a){a=$(a).get();$("#box"+$seed).append(a);if(tb==true)a=document.getElementById("videoP2"),a.muted=true,a.volume=0,a.play();ub==true&&document.getElementById("videoP2").addEventListener("timeupdate",function(){if(this.currentTime>=oc)this.currentTime=0,this.pause(),
this.src="",$("#videoP2").fadeOut(100,"easeOutExpo",function(){$("#videoP2").remove();$seed=Nb();Wa()})},false)},error:function(){},url:$baseUrl+"getvideo?id="+$seed}))}function ia(){$videoEmbeddedColorbox=true;$(document).bind("cbox_cleanup",function(){$fsFlowPlayerInternal.unload();$("#flashWrapper").text(" ");$("#flashWrapper").remove();$(document).unbind("cbox_complete");$(document).unbind("cbox_cleanup")});$(document).bind("cbox_complete",function(){$("#cboxLoadedContent").css("overflow","hidden");
$("#cboxPlaylist").hide();$fsFlowPlayerInternal=$f("flashWrapper",$baseUrl+"flowplayer/flowplayer-3.2.7.swf",{clip:{autoPlay:true,autoBuffering:true},plugins:{controls:{fullscreen:false}},onStart:function(){$videoEmbeddedColorbox=false},onStop:function(){var a=this;setTimeout(function(){a.unload()},10);a.style.display="none"}});try{ba.pause()}catch(a){}try{$fsFlowPlayerInternal.play()}catch(c){}})}function V(a){$videoEmbeddedColorbox=true;var c=0;a==1?$(document).bind("cbox_complete",function(){document.getElementById("cboxPlaylist").style.visibility=
"hidden";$("#cboxContent").append('<div class="tooltipWrapper2" style="display:none;"><div class="tooltipContents2"><span></span><p></p></div></div>');!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&($(".playlist-slide").hover(function(){var a=parseInt(String($(this).attr("id")).replace(/playlist/g,"")),b=a-v*4;$(".tooltipWrapper2").css("left",(b-1)*(Q/4)+180-53.5+"px");$(".tooltipWrapper2").css("top","510px");$(".tooltipContents2 span").html(jb[a]);
$(".tooltipContents2 p").html(kb[a]);$(".tooltipWrapper2").show()},function(){$(".tooltipWrapper2").hide()}),$(".tooltipWrapper2").hover(function(){$(".tooltipWrapper2").hide()},function(){}));Ya=$(".playlist-box-selection");E=Ya.length;Ba=false;v=0;if(E>1){r(v,E,["#leftCommand2","#rightCommand2"]);Ba==true&&(fa=setInterval(function(){A(["#playlistHolder",E,Q,["#leftCommand2","#rightCommand2"]])},C));$("#leftCommand2").bind("click",function(){v--;r(v,E,["#leftCommand2","#rightCommand2"]);Ba==true&&
(clearInterval(fa),fa=setInterval(function(){A(["#playlistHolder",E,Q,["#leftCommand2","#rightCommand2"]])},C));K(["#playlistHolder",E,Q])});$("#rightCommand2").bind("click",function(){v++;r(v,E,["#leftCommand2","#rightCommand2"]);Ba==true&&(clearInterval(fa),fa=setInterval(function(){A(["#playlistHolder",E,Q,["#leftCommand2","#rightCommand2"]])},C));K(["#playlistHolder",E,Q])});Ya.wrapAll('<div id="playlistHolder"></div>');Ya.css({"float":"left"});$("#playlistHolder").css("marginLeft",Q*-v);$("#playlistHolder").css("width",
Q*(E+1)+"px");Ba==true&&r(v,E,["#leftCommand2","#rightCommand2"]);if(!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)){$("#videoPlayer").gVideo({videoControls:"#videoControls2",videoContainer:"#videoPlayerWrapper",fullscreenContainer:false});try{document.getElementById("videoPlayer").play()}catch(a){}}$("#videoPlayer").bind("ended",function(){Ob()});$(".playlist-slide").bind("click",function(){document.getElementById("cboxPlaylist").style.visibility=
"hidden";var a=parseInt(String($(this).attr("id")).replace(/playlist/g,"")),b=document.getElementById("videoPlayer");b.pause();b.src="";$("#videoPlayer").remove();$("#videoControls2").remove();$.manageAjax.add("ajaxProfile",{dataType:"html",success:function(b){$("#videoTitle").html($titles[a]);$("#videoComments").html($comments[a]);b=$(b).get();for(c=0;$(b)[c];)$("#cboxInsideContent").prepend($(b)[c]),c++;b=document.getElementById("videoPlayer");!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&
!navigator.userAgent.match(/iPad/i)&&$("#videoPlayer").gVideo({videoControls:"#videoControls2",videoContainer:"#videoPlayerWrapper",fullscreenContainer:false});try{b=document.getElementById("videoPlayer"),b.play()}catch(e){}$("#videoPlayer").bind("ended",function(){Ob()})},error:function(){},url:$baseUrl+"getvideopop?id="+a})})}}):$(document).bind("cbox_complete",function(){if(!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)){$("#cboxLoadedContent").css("overflow",
"hidden");$("#cboxPlaylist").hide();$("#videoPlayer").gVideo({videoControls:"#videoControls2",videoContainer:"#videoPlayerWrapper",fullscreenContainer:false});try{document.getElementById("videoPlayer").play()}catch(a){}}else if(O==0){for(var d=$("#videoPlayer").attr("poster"),c=document.getElementById("videoPlayer"),g=c.children,e=0,f=g.length;e<f;e++)if(g[e].tagName.toUpperCase()=="SOURCE"){var h=c.canPlayType(g[e].type);if(h=="probably"||h=="maybe"){c.src=g[e].src;break}}$("#videoPlayer").remove();
$("#videoPlayerWrapper").append('<video poster="'+d+'" width="782" height="440" controls="controls"><source src="'+c.src+'"/></video>')}});$(document).bind("cbox_cleanup",function(){try{$("#videoPlayer").kill(),document.getElementById("videoPlayer").pause(),document.getElementById("videoPlayer").src="",$("#videoPlayer").remove(),$("#videoControls2").remove()}catch(a){}$(document).unbind("cbox_complete");B=="activation_de_marque"&&!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&
!navigator.userAgent.match(/iPad/i)&&(S==true&&($seed=Nb()),Wa());$(document).unbind("cbox_cleanup")})}function Nb(){for(var a=0;a<$maxVideoBoxes;){if(ca[R[a]]==0)return ca[R[a]]=1,R[a];a++}for(a=1;a<$maxVideoBoxes;)ca[a+1]=0,a++;return 1}function pc(){var a=new CanvasLoader("main-loader");a.setDensity(10);a.setSpeed(1);a.setFPS(23);a.setColor("#29679e");a=document.getElementById("CanvasLoader");a.style.position="absolute";a.style["margin-top"]=a.height*-0.5+"px";a.style["margin-left"]=a.width*-0.5+
"px"}function sa(){vb==true&&$("#main-loader").hide()}function zb(){vb==true&&$("#main-loader").show()}function $b(){$(".figure").draggable({containment:"#main",cursor:"move",snap:".placeHolder",snapMode:"inner",handle:".widget-title"});Ab=setTimeout(function(){if(f=="video"){try{$("#videoControls1").fadeOut(100,"easeOutExpo"),$("#skipHolder").fadeOut(100,"easeOutExpo")}catch(a){}$("#skipHolder").show()}$(".figure").fadeOut(500,"easeOutExpo",Pb);qc()},5E3)}function Ob(){document.getElementById("cboxPlaylist").style.visibility=
"visible"}function nc(){S=true;$("#firstVideo").fadeOut(1E3,"easeOutExpo",function(){$("#firstVideo").remove();Wa()})}function fb(){zb();f=="video"?(L=false,$("#skipHolder").remove(),$("#videoP1").fadeOut(500,"easeOutExpo",function(){$(window).unbind("resize");$("#videoP1").remove();try{$("#videoControls1").remove()}catch(a){}Qb()})):(f=="flash"&&(L=false,$(window).unbind("resize")),Qb())}function ac(){Ca=M("image",$origFsImageWidth[0],$origFsImageHeight[0]);G("link","#fsVideoLink","#fullscreenVideoLinkWrapper");
$("#fullscreenVideoLinkWrapper").fadeIn(500,"easeOutExpo",function(){sa();$(window).resize(function(){Oa(function(){G("link","#fsVideoLink","#fullscreenVideoLinkWrapper")},500)})})}function Qb(){rc==true&&(Ca=M("image",$origFsImageWidth[0],$origFsImageHeight[0]),G("image","#fsImage1","#fullscreenSliderWrapper"),$("#fullscreenSliderWrapper").show(),$("#fullscreenSliderWrapper").fadeIn(500,"easeOutExpo",function(){sa();$(window).resize(function(){G("image","#fsImage1","#fullscreenSliderWrapper")});
setTimeout(function(){wb(1,2)},Za)}))}function wb(a,c){$("#fsImage"+a).fadeOut($a,"easeOutExpo",function(){a++;Ca=M("image",$origFsImageWidth[c-1],$origFsImageHeight[c-1]);G("image","#fsImage"+c,"#fullscreenSliderWrapper");$("#fsImage"+c).fadeIn($a,"easeOutExpo",function(){c++;c<=$origFsImageWidth.length?setTimeout(function(){wb(a,c)},Za):setTimeout(function(){$("#fsImage"+(c-1)).fadeOut($a,"easeOutExpo",function(){$("#fsImage1").fadeIn($a,"easeOutExpo",function(){setTimeout(function(){wb(1,2)},Za)})})},
Za)})})}function Pb(){xb=true}function qc(){$(document).mousemove(function(){ab&&(window.clearTimeout(ab),ab=0);if(xb){if(f=="video")try{$("#videoControls1").fadeIn(100,"easeInExpo"),$("#skipHolder").fadeIn(100,"easeInExpo")}catch(a){}$(".figure").fadeIn(100,"easeInExpo")}ab=setTimeout(function(){if(f=="video")try{$("#videoControls1").fadeOut(100,"easeOutExpo"),$("#skipHolder").fadeOut(100,"easeOutExpo")}catch(a){}$(".figure").fadeOut(100,"easeOutExpo",Pb);xb=true},5E3)})}function M(a,c,b){var a=
t,d=F,e=0,e=0;proportion=a/d>=c/b?a/c:d/b;navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i);return[proportion*c,proportion*b]}function G(a,c,b){$w=$(window);F=$w.height();t=$w.width();if(a=="video"){a=Rb=M("video",$origFsVideoWidth,$origFsVideoHeight);try{$(".ghinda-video-seek","#videoControls1").css("width",$w.width()-80)}catch(d){return false}$(c).attr("width",a[0]);$(c).attr("height",a[1]);if(a[0]>t){var e=-((a[0]-t)/2);$(b).css("left",
e.toString()+"px")}else $(b).css("left","0px");if(a[1]>F){var f=-((a[1]-F)/2);$(b).css("top",f.toString()+"px")}else $(b).css("top","0px")}else if(a=="image"){var a=Ca=M("image",$origFsVideoWidth,$origFsVideoHeight),h=false;a[0]>t?(e=-((a[0]-t)/2),$(b).css("left",e.toString()+"px")):($(b).css("left","0px"),h=true);a[1]>F?(f=-((a[1]-F)/2),$(b).css("top",f.toString()+"px")):$(b).css("top","0px");$(b).css("width",t+"px");!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)?
($(c).find("img").css("width",a[0]+"px "),$(c).find("img").css("height",a[1]+"px "),$(b).css("height",F-120+"px"),$(b).css("width","200px")):($(b).css("top","0px"),orientation==0?($(c).find("img").css("width",eval(t+-e)+"px"),bb<4&&$(b).css("width","1550px")):orientation==180?($(c).find("img").css("width",eval(t+-e)+"px"),bb<4&&$(b).css("width","1550px")):orientation==90?h==true?$(c).find("img").css("width",eval($("#main").width())):$(c).find("img").css("width",eval($("#main").width()-e)):orientation==
-90?h==true?$(c).find("img").css("width",eval($("#main").width())):$(c).find("img").css("width",eval($("#main").width()-e)):orientation==180&&(h==true?$(c).find("img").css("width",eval($("#main").width())):$(c).find("img").css("width",eval($("#main").width()-e))),$(c).find("img").css("height",$("footer").css("top")),$(b).css("height",$("footer").css("top")))}else a=="flash"?(a=Rb=M("video",$origFsVideoWidth,$origFsVideoHeight),$(b).css("width",a[0]+"px"),$(b).css("height",a[1]+"px"),a[0]>t?(e=-((a[0]-
t)/2),$(b).css("left",e.toString()+"px")):$(b).css("left","0px"),a[1]>F?(f=-((a[1]-F)/2),$(b).css("top",f.toString()+"px")):$(b).css("top","0px")):a=="link"&&(a=Ca=M("image",$origFsVideoWidth,$origFsVideoHeight),$(c).find("img").css("width",a[0]+"px"),$(c).find("img").css("height",a[1]+"px"),orientation==0?($("#main").css("height","1100px"),$("footer").css("top","1170px"),$(b).css("height","1170px")):orientation==180?($("#main").css("height","1100px"),$("footer").css("top","1170px"),$(b).css("height",
"1170px")):orientation==90?($("#main").css("height","520px"),$("footer").css("top","620px"),$(b).css("height","620px")):orientation==-90&&($("#main").css("height","520px"),$("footer").css("top","620px"),$(b).css("height","620px")),a[1]<$(b).height()?($(b).css("top","106px"),$(c).css("top","106px"),$(b).css("height",eval($(b).height()-106)+"px")):a[1]>F?(f=-((a[1]-F)/2),$(b).css("top",f.toString()+"px")):$(b).css("top","0px"),h=false,a[0]>t?(e=-((a[0]-t)/2),$(b).css("left",e.toString()+"px")):($(b).css("left",
"0px"),h=true),h==true?$(c).css("width",t+"px"):$(c).css("width",eval(t-e)+"px"),$(b).css("width",t+"px"))}var Sb=window.location.href,Tb=RegExp("(_escaped_fragment_)","g");Sb.match(sc);var sc=RegExp("fr#","g"),gb="en",qa,B,Za=2E3,$a=200,rc=true,Qa=true,Fa=false,Cb,Bb,bb=-1,O=0,vb=true,f="video",ha="#videoP1",Zb,ba=0,Fb=true,L=false,cb=[[790,550],[790,550],[790,600],[790,690]],U=[[cb[2]],[cb[3]]],cc=true,W=0,ya=false,P=90,Gb=[384,288],la=[384,216],Ib=[256,144],p=[128,72],H=[],ja=0,Na,c=0,h=0,i=0,
ka=[[]],xa,l,x=[],sb=0,ob=0,ub=true,tb=true,S=false,wa=0,va=0,Ka=0,Ma=0,La=0,hb=0,mb=[],gc=150,Lb=100,ta,ca=[],R=[],oc=10,dc=true,ma=0,ec=false,hc=0,Eb,kc=500,u=false,Db,Ga,Ha,oa=200,pa=200,m=[284,172],s=[565,341],z=[],Ra=0,Jb,lb=0,o=[[]],na=0,J=35,I=0,da=false,jc=150,ic=150,e=0,C=3E3,k=0,Ab,v,Ia,Ja=false,ua,T=182,Sa,Ta=false,ga,X=1029,D,Ya,E,Ba=false,Q=424,fa,Pa,w,ea,ab,xb=false;/chrome/.test(navigator.userAgent.toLowerCase());var jb=[],kb=[];$w=$(window);var F=$w.height(),t=$w.width(),Rb=M("video",
$origFsVideoWidth,$origFsVideoHeight),Ca=M("image",$origFsImageWidth[0],$origFsImageHeight[0]),tc="onorientationchange"in window?"orientationchange":"resize",Oa=function(){var a={};return function(c,b,d){d||(d="Don't call this twice without a uniqueId");a[d]&&clearTimeout(a[d]);a[d]=setTimeout(c,b)}}(),ra=Sb.replace(/^http:\/\/+|\s+$/g,"").split("/");if(ra[$langIndex]=="fr"||ra[$langIndex]=="en")qa=ra[$langIndex];qa=="en"&&(gb="fr");if($msieVer>=9||$msieVer==-1){if(navigator.userAgent.match(/iPhone/i)||
navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)){var Tb=RegExp(/OS\s[0-9\w]+\s/),Y=Tb.exec(navigator.userAgent),Y=String(Y).replace(/OS/g,""),Y=Y.split("_"),bb=Y=Y[0]+"."+Y[1];bb<4&&(O=1);window.addEventListener(tc,Wb,false);f=false;$playVideoType="video";tb=ub=false}pc()}else U=[[cb[0]],[cb[1]]],$playVideoType=f="flash",ha=".fs-flash-fallback",tb=ub=vb=false;$.ajaxSetup({cache:false});$.manageAjax.create("ajaxProfile",{cacheResponse:false,maxRequests:10,queue:"clear",abortOld:true,
preventDoubbleRequests:true});var Ub=$.sammy(function(){this.get(/#!\/home(.*)/,function(){navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i);aa(B,Z,"home")});this.get(/#!\/activation_de_marque(.*)/,function(){aa(B,Z,"activation_de_marque")});this.get(/#!\/animation_vente(.*\/)/,function(){aa(B,Z,"animation_vente")});this.get(/#!\/diffusion_presse(.*)/,function(){aa(B,Z,"diffusion_presse")});this.get(/#!\/recrutement(.*)/,function(){aa(B,Z,"recrutement")});this.get(/#!\/my_globe(.*)/,
function(){aa(B,Z,"my_globe")})});!ra[$pageIndex]||ra[$pageIndex]==""?(Ub.run(),window.location=qa?$baseUrl+qa+"/#!/home/":$baseUrl+"fr/#!/home/"):(Ub.run(),B=ra[$pageIndex]);$("#menu-LANG").bind("click",function(){window.location.href=$baseUrl+gb;return false});$("header h1").bind("click",function(){window.location=$baseUrl+qa+"/#!/home/";return false});$("#flag-"+qa).css("opacity","0.3")});

