$sfr=jQuery.noConflict(true);function getCookie(B){var A=document.cookie.split("; ");var E=[];for(var D=0;D<A.length;
D++){var C=A[D];var G=C.split("=")[0];var F=C.split("=")[1];E[G]=unescape(F);}if(E[B]!=null){return E[B];
}else{return false;}}function setCookie(D,F,C){if(typeof D!="undefined"&&typeof F!="undefined"){C=C||{};
if(F===null){F="";C.expires=-1;}var A="";if(C.expires&&(typeof C.expires=="number"||C.expires.toUTCString)){var B;
if(typeof C.expires=="number"){B=new Date();B.setTime(B.getTime()+(C.expires*24*60*60*1000));
}else{B=C.expires;}A="; expires="+B.toUTCString();}var H=C.path?"; path="+(C.path):"";
var E=C.domain?"; domain="+(C.domain):"";var G=C.secure?"; secure":"";document.cookie=[D,"=",escape(F),A,H,E,G].join("");
}}function delCookie(A){if(getCookie(A)){var B=(window.location.host=="cms.sfr.fr")?"cms.sfr.fr":"sfr.fr";
setCookie(A,null,{path:"/",domain:B});}}(function(B){sfrHeader={_setMenuSelectedItem:function(E){if(typeof E!="undefined"&&typeof E.menuSelectedItem!="undefined"){var C=B("#mainMenu_"+E.menuSelectedItem);
if(C.hasClass("menuItemContainer")){C.append('<span class="selectedItem">&nbsp;</span>');
C.find("a:first").addClass("selectedItemLink");var D=C.innerWidth()/3;C.find(".selectedItem").css({width:D*2,left:D/2,display:"block"});
}}},_setSelectedUniversTabPosition:function(){var G=B("#selectedUnivers");var E=0;
var I=(navigator.userAgent.indexOf("MSIE")>-1)?1:2;if(G.length>0){var H=G.attr("class");
var F=B("#sfrUnivers li");for(var D=0;D<F.length;D++){var C=B(F[D]);if(C.attr("class")==H){if(H!="productsAndOffers"&&H!="portail"){E-=I;
}if(H=="portail"){E+=parseInt(C.css("margin-left"));}G.css({"left":E}).show();break;
}E+=C.outerWidth(true);}}},_initLeftMenuHoverActions:function(){var C=-1;var E=B("#sfrUniversSubMenu .megaMenu").eq(0).outerWidth();
var F=B("#sfrUniversSubMenu").outerWidth();B(".menuItemContainer").each(function(L){var K=B(this);
var J=K.outerWidth();var M=Math.floor(K.position().left);if((M+E)>F){K.find(".megaMenu").css({"left":(J-E+1)+"px"});
}});var I;if(window.Touch){var G=document.createElement("link");G.href="/resources/css/touchscreen.fixes.css";
G.type="text/css";G.rel="stylesheet";B("head").append(G);var D=B("#sfrUniversSubMenu .fakeItemNoChild").parents(".menuItemContainer");
var H=B("#sfrUniversSubMenu li.menuItemContainer").not(D);H.bind("touchstart",function(K){B("#sfrUniversSubMenu .active").removeClass("active");
var J=B(K.target);if(J.parents(".megaMenu").size()==0&&!J.hasClass("fakeItem")&&!J.parent().hasClass("fakeItem")&&!B(this).hasClass("active")){B("body").unbind();
$li=B(this).addClass("active");B("#sfrUniversSubMenu .opened").hide().removeClass("opened");
$li.find(".fakeItem, .megaMenu").addClass("opened").fadeIn(250);B("body").bind("touchstart click",function(M){var L=B(M.target);
if(L.parents(".megaMenu").size()==0&&L.parents(".fakeItem").size()==0){B("#sfrUniversSubMenu .opened").removeClass("opened").fadeOut(250);
B("body").unbind();}else{if(L.attr("nodeName")=="A"&&M.type=="touchstart"){B("#sfrUniversSubMenu .opened").removeClass("opened").fadeOut(250);
B("body").unbind();document.location.href=L.attr("href");}}});return false;}});H.first("a").bind("click",function(J){J.preventDefault();
return false;});}else{B("#sfrUniversSubMenu li.menuItemContainer").not("li.selected").hover(function(J){var K=B(this);
I=setTimeout(function(){K.find(".fakeItem, .megaMenu").fadeIn();},300);},function(){clearTimeout(I);
B(this).find(".fakeItem, .megaMenu").fadeOut();});B("#sfrUniversSubMenu a").click(function(){var J=B(this);
J.parents(".menuItemContainer").find(".fakeItem, .megaMenu").hide();});}},_initServicesHeaderManager:function(){B(".hasTooltip").hover(function(){var D=B(this);
B("#"+D.attr("rel")).show();},function(){var D=B(this);B("#"+D.attr("rel")).hide();
});try{if(sfrIstConfig.headerName!=""){B("#servicesMenu h1").html(sfrIstConfig.headerName);
}if(sfrIstConfig.headerDisplaySearch===false){B("#sfrHeaderSearch").hide();}if(sfrIstConfig.headerDisplayMiscLinks===false){B("#sfrBusinessLinks").hide();
}if(sfrIstConfig.headerDisplayUserInfo===false){B("#userInfos").css({"visibility":"hidden"});
}if(B("#servicesList").size()>0){B("#servicesMenu_"+sfrIstConfig.headerServiceSelectedItem+" a").addClass("selected");
}else{B("#servicesMenu h1").addClass("alone");}if(sfrIstConfig.menuSelectedItem!=0){B(".sfrDom#sfrHeaderServices #sfrUniversLinks #megaMenu_"+sfrIstConfig.menuSelectedItem).addClass("selected");
}}catch(C){}},_initOldHeaderManager:function(){try{if(sfrIstConfig.headerName){oldHeaderParams.headerName=sfrIstConfig.headerName;
}if(A(sfrIstConfig.headerDisplayUserInfo)){oldHeaderParams.headerDisplayUserInfo=sfrIstConfig.headerDisplayUserInfo;
}if(sfrIstConfig.headerDisplaySearch===true&&sfrIstConfig.headerName==""){B("#sfrHeaderSearch").show();
B("#oldHeaderBodyRight h1").hide();}else{B("#oldHeaderBodyRight h1").html(oldHeaderParams.headerName);
}if(oldHeaderParams.headerDisplayUserInfo===false){B("#connexionInfo").hide();}}catch(C){}},_initTooltips:function(){B(".hasTooltip").hover(function(){var C=B(this);
B("#"+C.attr("rel")).show();},function(){var C=B(this);B("#"+C.attr("rel")).hide();
});},_backgroundAdsHandler:function(){if(navigator.userAgent.indexOf("iPad")>-1){if(B("body").css("background-image")!=""){B("body").css({"background-image":"none"});
}}},_flushUserUnreadEmails:function(){delCookie("sfrUserUnreadMessages");},_rewriteLogoLink:function(){var D=getCookie("sfrHome");
if(D&&D=="portail"){var C=B("#headerLogo a:first");var E=C.attr("href").split("#");
C.attr("href",E[0]+"portail.html#"+E[1]);}},_rewriteProductsTabLink:function(E){if(document.location.protocol=="https:"){switch(E){case"services":var C=B("#sfrUniversLinks #megaMenu_10000 a");
break;default:var C=B("#sfrUnivers .productsAndOffers a");break;}var F=C.attr("href").split("#");
var D=F[0]+"?offres#"+F[1];C.attr("href",D);}}};B.fn.sfrHeader=function(D,C){return this.each(function(E){switch(C){case"home":sfrHeader._setSelectedUniversTabPosition();
sfrHeader._setMenuSelectedItem(D);sfrHeader._initLeftMenuHoverActions();sfrHeader._initTooltips();
sfrHeader._backgroundAdsHandler();sfrHeader._rewriteLogoLink();sfrHeader._rewriteProductsTabLink("home");
break;case"portail":sfrHeader._setSelectedUniversTabPosition();sfrHeader._setMenuSelectedItem(D);
sfrHeader._initLeftMenuHoverActions();sfrHeader._initTooltips();sfrHeader._backgroundAdsHandler();
sfrHeader._rewriteLogoLink();sfrHeader._rewriteProductsTabLink("portail");break;case"services":sfrHeader._initServicesHeaderManager();
sfrHeader._initTooltips();sfrHeader._flushUserUnreadEmails();sfrHeader._rewriteLogoLink();
sfrHeader._rewriteProductsTabLink("services");break;case"old":sfrHeader._initOldHeaderManager();
break;}});};function A(C){return(C!=null&&(/^(true|false)$/.test(C)));}})($sfr);(function(B){var A={_setNavSelectedItem:function(D){if(D!=null&&D.navSelectedItem!=null&&D.navSelectedItem!=""){var C=B("#navigationMenu_"+D.navSelectedItem);
C.addClass("selected");if(C.parents(".navLinkContainer").length>0){C.parents(".navLinkContainer").addClass("selected");
}}},_initNavigationHoverActions:function(){B("#sfrNavigation li.hasChildren").hover(function(){B(this).find(".navFakeItem, .subNavMenu").show();
},function(){B(this).find(".navFakeItem, .subNavMenu").hide();});B("#sfrNavigation a").click(function(){var C=B(this);
C.parents(".navLinkContainer").find(".navFakeItem, .subNavMenu").hide();});}};B.fn.sfrNavigation=function(C){return this.each(function(D){A._setNavSelectedItem(C);
A._initNavigationHoverActions();B("#sfrHeaderHome").css({"margin-bottom":0});});};
})($sfr);(function(A){var B={_setSubNavSelectedItem:function(D){if(D!=null&&D.subNavSelectedItem!=null&&D.subNavSelectedItem!=""){var C=A("#subNavigationMenu_"+D.subNavSelectedItem);
if(C.hasClass("catItem")){C.addClass("selected");C.parents(".catItemsWrap").show();
C.parents(".catItemsWrap").prev().addClass("parentOfSelected");}if(C.hasClass("cat")){C.addClass("parentOfSelected");
C.next().show();}}}};A.fn.sfrVerticalNavigation=function(C){return this.each(function(D){B._setSubNavSelectedItem(C);
A("li.cat").not(".catItemsWrap").last().addClass("last");});};})($sfr);(function(B){var A={_setNavSelectedItem:function(E){var D=B("#sfrOldNavigation_"+E.navOldSelectedItem);
if(D.parents(".inlineSublist").length>0){D.find("a").addClass("selected");D.parents(".inlineSublist").show();
var C=D.parents(".inlineSublist").attr("rel");B(".inlineList").find("#"+C).find("a").addClass("selected");
}else{D.find("a").addClass("selected");B(".inlineSublist[rel=sfrOldNavigation_"+E.navOldSelectedItem+"]").show();
B(".inlineSublist[rel=sfrOldNavigation_"+E.navOldSelectedItem+"]").parents("div.inlineSublist").show();
if(B(".inlineSublist[rel=sfrOldNavigation_"+E.navOldSelectedItem+"]").children().length==0){$sfr("#sfrOldNavigation .bgWhite").hide();
}}}};B.fn.sfrOldNavigation=function(C){return this.each(function(D){if(C!=null&&C.navOldSelectedItem!=null&&C.navOldSelectedItem!=""){A._setNavSelectedItem(C);
}});};})($sfr);(function(A){A.fn.sfrActualites=function(B){sfrActualites=function(C,D){this.params=A.extend({nbChar:50},D);
this.$referer=A(C);this.$allContents=null;this.$allMenuItems=null;this.inProcess=false;
this._init();};sfrActualites.prototype={_init:function(){var C=this;this.$allContents=this.$referer.find(".newsContentWrapper");
this.$allMenuItems=this.$referer.find(".newsMenu a");this._shortenArticleTitle(this.params.nbChar);
this._showContent(A(this.$allMenuItems[0]).attr("id"));this.$allMenuItems.click(function(){if(C.inProcess==false){C.inProcess=true;
C._showContent(this.id);}return false;});},_shortenArticleTitle:function(C){this.$referer.find(".newsContent a").html(function(D,E){if(E.length<=C){return E;
}else{return E.substr(0,E.lastIndexOf(" ",C))+"...";}});},_highlightCurrentMenuItem:function(C){this.$allMenuItems.removeClass("on");
this.$referer.find("#"+C).addClass("on");},_showContent:function(C){var D=this;this._highlightCurrentMenuItem(C);
this.$allContents.hide();this.$referer.find("."+C).slideDown(400,function(){D.inProcess=false;
});}};return this.each(function(){var C=new sfrActualites(this,B);});};})($sfr);(function(A){A.fn.sfrCarrousel=function(C){var M={delay:5000,autoStart:false,startIndex:0},G=null,J=null,L=null,E=null,H=0,K=0;
function I(){J.find("a.goto").removeClass("current").eq(H).addClass("current");}function D(){G.eq(H).fadeOut("normal",function(){H++;
if(H==K){H=0;}G.eq(H).fadeIn(I);});}function B(){G.eq(H).fadeOut("normal",function(){H--;
if(H<0){H=K-1;}G.eq(H).fadeIn(I);});}A.fn.sfrCarrouselAPI={setup:function(){G=L.find(".itemList li");
J=L.find(".nav");F();},start:function(){G.hide();G.eq(H).fadeIn(I);E=setInterval(D,M.delay);
},stop:function(){clearInterval(E);E=null;}};function F(){K=G.length;J.empty();J.append(A('<a href="#" class="prev"/>').click(function(){stop();
B();return false;}));for(var N=0;N<K;N++){var O=A('<a href="#" class="goto" />').html(N+1).data("index",N);
if(M.startIndex==N){O.addClass("current");}O.click(function(){G.hide();H=A(this).data("index");
G.eq(H).fadeIn(I);return false;}).appendTo(J);}J.append(A('<a href="#" class="next"/>').click(function(){stop();
D();return false;}));}return this.each(function(N){M=A.extend(M,C);L=A(this);if(M.autoStart){A.fn.sfrCarrouselAPI.setup();
A.fn.sfrCarrouselAPI.start();}});};})($sfr);(function(A){A.fn.sfrCarrouselActus=function(B){sfrActuCarrousel=function(C,D){this.params=A.extend({fadingDelay:150,rotatingSpeed:7000},D);
this.$referer=A(C);this.inProcess=false;this.$thumbLinks=null;this.$hiddenContents=null;
this.$currentSlide=null;this.autoIndex=0;this.slideTimer=null;this._init();};sfrActuCarrousel.prototype={_init:function(){this.$thumbLinks=this.$referer.find(".thumbs a");
this.$hiddenContents=this.$referer.find(".hiddenContent");this.$currentSlide=this.$referer.find(".currentSlide");
if(this.$thumbLinks.length==this.$hiddenContents.length){A.each(this.$thumbLinks,function(C,D){A(D).data("index",C);
});this._setRollover();this._setTimer();}},_setRollover:function(){var C=this;C.$thumbLinks.hover(function(D){D.preventDefault();
clearInterval(C.slideTimer);C._nextSlide(A(this));});},_setTimer:function(){var C=this;
this.slideTimer=setInterval(function(){C.autoIndex+=1;if(C.autoIndex==C.$thumbLinks.length){C.autoIndex=0;
}C._nextSlide(C.$thumbLinks.eq(C.autoIndex));},C.params.rotatingSpeed);},_nextSlide:function(E){var C=this;
if(!C.inProcess&&!E.hasClass("current")){C.inProcess=true;var D=E.data("index");C.$thumbLinks.removeClass("current");
E.addClass("current");C.$currentSlide.fadeOut(C.params.fadingDelay,function(){C.$currentSlide.empty().html(C.$hiddenContents[D].innerHTML).fadeIn(C.params.fadingDelay,function(){C.inProcess=false;
});});}}};return this.each(function(){var C=new sfrActuCarrousel(this,B);});};})($sfr);
(function(A){A.fn.sfrCarrouselSlide=function(B){sfrCarrouselSlide=function(C,D){this.params=A.extend({hoverSpeed:90,hoverStep:15,groupBy:1,event:"click",effect:"slide",autoPlay:false,autoPlaySpeed:4000,showFullNavigation:false,animationSpeed:500,writeNavigation:true},D);
this.$referer=A(C);this.interval=null;this.autoPlayInterval=null;this.currentElement=1;
this.positions=null;this._init();};sfrCarrouselSlide.prototype={_init:function(){var G=this;
this.$leftArrow=this.$referer.find(".tLeftArrow");this.$rightArrow=this.$referer.find(".tRightArrow");
this.$carrousel=this.$referer.find(".tCarrousel");this.$carrouselMask=this.$referer.find(".tCarrouselMask");
this.$carrouselElements=this.$referer.find(".tCarrouselElement");this.$carrouselElementsContainer=this.$referer.find(".tCarrouselElementsContainer");
this.nbCarrouselElements=this.$carrouselElements.size();this.$carrouselNavigation=this.$referer.find(".tCarrouselNavigation");
var F=this.$carrousel.find("img");if(F.size()>0){var H=0;var D=false;function E(){H++;
if(H==F.size()&&!D){D=true;G._initEvents();}}var C=new Date();F.each(function(){var I=new Image();
I.src=A(this).attr("src");if(I.complete){E();}else{I.onload=function(){E();};}});
}else{G._initEvents();}},_initEvents:function(){var C=this;this._setPositions();this._setFullNavigation();
this.$carrousel.css({"visibility":"visible"});this.$carrouselMask.removeClass("loading bigLoading");
switch(this.params.event){case"mouseover":this.$leftArrow.fadeTo(100,0.2).addClass("faded");
if(navigator.userAgent.indexOf("iPad")>-1){this._ipadGestures();}else{this.$leftArrow.hover(function(){C.interval=setInterval(function(){C._move("previous");
},C.params.hoverSpeed);},function(){clearInterval(C.interval);});this.$rightArrow.hover(function(){C.interval=setInterval(function(){C._move("next");
},C.params.hoverSpeed);},function(){clearInterval(C.interval);});}this.$leftArrow.click(function(D){D.preventDefault();
});this.$rightArrow.click(function(D){D.preventDefault();});break;case"click":if(!this.infiniteLoop){this.$leftArrow.fadeTo(100,0.2).addClass("faded");
}this.$leftArrow.click(function(D){D.preventDefault();if(C.autoPlayInterval!=null){clearInterval(C.autoPlayInterval);
}if(!C.$leftArrow.hasClass("faded")){C._move("previous");}});this.$rightArrow.click(function(D){D.preventDefault();
if(C.autoPlayInterval!=null){clearInterval(C.autoPlayInterval);}if(!C.$rightArrow.hasClass("faded")){C._move("next");
}});break;}if(this.params.autoPlay==true&&this.params.event!="mouseover"){this.autoPlayInterval=setInterval(function(){C._move("next");
},C.params.autoPlaySpeed);}if(this.params.showFullNavigation==true&&this.params.event!="mouseover"){this.$fullNavigation.show();
}},_setPositions:function(){var C=this.$carrouselElements.outerWidth(true);if(this.$carrouselElements.attr("nodeName")=="LI"){totalCarrouselWidth=this.nbCarrouselElements*C;
if(navigator.userAgent.search(/MSIE 6/)!=-1){totalCarrouselWidth+=3;}this.$carrousel.width(totalCarrouselWidth);
}this.positions=new Array();if(this.$carrouselMask.width()!=C){this.maxPos=(this.$carrousel.width()-this.$carrouselMask.width())*(-1);
this.nbCarrouselElements=Math.floor(this.nbCarrouselElements/this.params.groupBy);
if(this.nbCarrouselElements%this.params.groupBy>0){this.nbCarrouselElements+=1;}C=C*this.params.groupBy;
for(var D=0;D<this.nbCarrouselElements;D++){if(C*D*(-1)>this.maxPos){this.positions.push(C*D*(-1));
}else{this.positions.push(this.maxPos);break;}}this.nbPossibleClicks=D+1;}else{for(var D=0;
D<this.nbCarrouselElements;D++){this.positions.push(C*D*(-1));}this.maxPos=this.positions[this.nbCarrouselElements-1];
this.nbPossibleClicks=D;}this.infiniteLoop=(this.params.groupBy==1&&(this.nbPossibleClicks==this.nbCarrouselElements))?true:false;
},_setFullNavigation:function(){var D=this;this.$fullNavigation=this.$carrouselNavigation.find(".tFullNavigation");
if(this.params.writeNavigation==true){for(var C=0;C<this.nbCarrouselElements;C++){this.$fullNavigation.append('<a href="#">'+(C+1)+"</a>");
}}this.$navLinks=this.$fullNavigation.find("a");this.$navLinks.first().addClass("tCurrentElement");
this.$navLinks.each(function(E){A(this).data("position",E).click(function(H){H.preventDefault();
if(D.autoPlayInterval!=null){clearInterval(D.autoPlayInterval);}var F=A(this);if(!F.hasClass("tCurrentElement")){D.$navLinks.removeClass("tCurrentElement");
F.addClass("tCurrentElement");var G=A(this).data("position");D._displayItem(G);}});
});this.$carrouselNavigation.show();},_displayItem:function(C){var D=this;switch(this.params.effect){case"slide":this.$carrousel.stop().animate({"left":this.positions[C]});
break;case"fade":this.$carrousel.stop().fadeOut(200,function(){D.$carrousel.css({"left":D.positions[C]}).fadeIn(200);
});break;default:this.$carrousel.css({"left":this.positions[C]});break;}this.currentElement=C+1;
},_move:function(G){var E=this;var D=null;switch(G){case"next":if(this.params.event=="mouseover"){var F=this.$carrousel.position();
if(this.$leftArrow.hasClass("faded")){this.$leftArrow.fadeTo(100,1);}if((F.left-this.params.hoverStep)>this.maxPos){this.$carrousel.css({"left":F.left-this.params.hoverStep});
}else{this.$carrousel.css({"left":this.maxPos});clearInterval(this.interval);this.$rightArrow.fadeTo(100,0.2).addClass("faded");
}}else{switch(this.params.effect){case"slide":if(this.currentElement<this.nbPossibleClicks){if(this.$leftArrow.hasClass("faded")){this.$leftArrow.fadeTo(100,1).removeClass("faded");
}this.currentElement+=1;D=this.positions[this.currentElement-1];}else{if(this.infiniteLoop){var C=this.$carrouselElements.first().clone().addClass("tmpElt");
this.$carrouselElementsContainer.append(C);this.$carrousel.css({"left":this.positions[this.nbCarrouselElements-1]});
D=this.positions[this.nbCarrouselElements-1]-this.$carrouselElements.outerWidth();
this.currentElement=1;}}if(D!=null){this.$carrousel.stop().animate({"left":D},this.params.animationSpeed,function(){if(A(".tmpElt").length>0){E.$carrousel.css({"left":0});
A(".tmpElt").remove();}});if(!this.infiniteLoop&&this.currentElement==this.nbPossibleClicks){this.$rightArrow.fadeTo(100,0.2).addClass("faded");
}}break;case"fade":if(this.currentElement==1){if(this.$leftArrow.hasClass("faded")){this.$leftArrow.fadeTo(100,1).removeClass("faded");
}}if(this.currentElement<this.nbCarrouselElements){this.currentElement+=1;}else{this.currentElement=1;
}if(this.currentElement==this.nbCarrouselElements){this.$rightArrow.fadeTo(100,0.2).addClass("faded");
}this.$carrousel.stop().fadeOut(200,function(){E.$carrousel.css({"left":E.positions[E.currentElement-1]}).fadeIn(200);
});break;default:if(this.currentElement<this.nbCarrouselElements){this.currentElement+=1;
}else{this.currentElement=1;}this.$carrousel.css({"left":this.positions[this.currentElement-1]});
break;}}break;case"previous":if(this.params.event=="mouseover"){var F=this.$carrousel.position();
if(this.$rightArrow.hasClass("faded")){this.$rightArrow.fadeTo(100,1).removeClass("faded");
}if((F.left+this.params.hoverStep)<this.positions[0]){this.$carrousel.css({"left":F.left+this.params.hoverStep});
}else{this.$carrousel.css({"left":this.positions[0]});clearInterval(this.interval);
this.$leftArrow.fadeTo(100,0.2).addClass("faded");}}else{switch(this.params.effect){case"slide":if(this.currentElement>1){if(this.$rightArrow.hasClass("faded")){this.$rightArrow.fadeTo(100,1).removeClass("faded");
}this.currentElement-=1;D=this.positions[this.currentElement-1];}else{if(this.infiniteLoop){var C=this.$carrouselElements.last().clone().addClass("tmpElt");
this.$carrouselElementsContainer.prepend(C);this.$carrousel.css({"left":this.positions[1]});
D=0;this.currentElement=this.nbCarrouselElements;}}if(D!=null){this.$carrousel.stop().animate({"left":D},this.params.animationSpeed,function(){if(A(".tmpElt").length>0){E.$carrousel.css({"left":E.positions[E.nbCarrouselElements-1]});
A(".tmpElt").remove();}});if(!this.infiniteLoop&&this.currentElement==1){this.$leftArrow.fadeTo(100,0.2).addClass("faded");
}}break;case"fade":if(this.currentElement==this.nbCarrouselElements){if(this.$rightArrow.hasClass("faded")){this.$rightArrow.fadeTo(100,1).removeClass("faded");
}}if(this.currentElement>1){this.currentElement-=1;}else{this.currentElement=this.nbCarrouselElements;
}if(this.currentElement==1){this.$leftArrow.fadeTo(100,0.2).addClass("faded");}this.$carrousel.stop().fadeOut(200,function(){E.$carrousel.css({"left":E.positions[E.currentElement-1]}).fadeIn(200);
});break;default:if(this.currentElement>1){this.currentElement-=1;}else{this.currentElement=this.nbCarrouselElements;
}this.$carrousel.css({"left":this.positions[this.currentElement-1]});break;}}break;
}this.$navLinks.removeClass("tCurrentElement");this.$navLinks.eq(this.currentElement-1).addClass("tCurrentElement");
},_ipadGestures:function(){var G=this;var D=this.$carrousel.attr("id");var F;var K;
var I;function J(){G.$carrousel.unbind("touchmove",C);G.$carrousel.unbind("touchend",H);
F=null;I=null;}function C(L){if(L.originalEvent.touches.length>1){J();}else{K=L.originalEvent.touches[0].pageX-F;
if(I==null){I=K;L.preventDefault();}else{if((I<0&&K>0)||(I>0&&K<0)){J();}}if(Math.abs(K)>20){G.$carrousel.css({"webkitTransitionDuration":"400ms"});
G.params.hoverStep=Math.abs(K);if(K>0){G._move("previous");return false;}else{G._move("next");
return false;}}}}function H(L){J();}function E(L){if(L.originalEvent.touches.length==1){F=L.originalEvent.touches[0].pageX;
G.$carrousel.bind("touchmove",C,false);G.$carrousel.bind("touchend",H,false);}}this.$carrousel.bind("touchstart",E,false);
}};return this.each(function(){var C=new sfrCarrouselSlide(this,B);});};})($sfr);
(function(A){A.fn.piledBtnsTrigCarousel=function(F){var E={delay:5,autoplay:true,pointerUrl:null,defaultImgUrl:"/resources/img/dummies/blocs/piledBtnsTrigCarousel/dummyDefault.png",$this:null};
var C={trHeight:0,triggerArrow:null,triggerArrowHeight:0,positionTop:0};function B(H,I){if(E.pointerUrl==null){return ;
}if(I){if(H.index()==$this.find(".triggersWrap tr:first").index()){$this.find(".triggersWrap tr:last").find("td img.triggerArrow").remove();
}H.prev().find("td img.triggerArrow").remove();}H.find("td").append(C.triggerArrow);
if(C.triggerArrowHeight==0){C.triggerArrowHeight=A("img.triggerArrow").height();}C.positionTop=Math.round(((C.trHeight-C.triggerArrowHeight)/2)+(C.trHeight*($this.find(".triggersWrap tr.selected").index())));
C.triggerArrow.css("top",C.positionTop+"px");}function G(){var I=$this.find(".triggersWrap tr.selected"),H=I.next();
if(I.index()==$this.find(".triggersWrap tr:last").index()){H=$this.find(".triggersWrap tr:first");
}$this.find(".contentWrap li").eq(I.index()).stop(true,true).fadeOut(function(){I.removeClass("selected");
H.addClass("selected");B(H,true);$this.find(".contentWrap li").eq(H.index()).fadeIn();
});}function D(){$this.find(".triggersWrap tr").click(function(){if(!A(this).hasClass("selected")){if(E.autoplay){A.fn.pbtcFunctions.stop();
}$this.find(".contentWrap li").eq($this.find(".triggersWrap tr.selected").index()).stop(true,true).fadeOut();
$this.find(".triggersWrap tr.selected").removeClass("selected");A(this).addClass("selected");
B(A(this),true);$this.find(".contentWrap li").eq(A(this).index()).stop(true,true).fadeIn();
if(E.autoplay){A.fn.pbtcFunctions.start();}}});}A.fn.pbtcFunctions={init:function(){var I=$this.find(".triggersWrap tr").eq(0),K=$this.find(".triggersWrap tr").length,H=$this.find(".contentWrap li").length;
if(K<2||H<2){E.autoplay=false;}if(H<K){for(var J=0;J<(K-H);J++){$this.find(".contentWrap").append('<li><img src="'+E.defaultImgUrl+'"></li>');
}}C.triggerArrow=A("<img>").attr("class","triggerArrow").attr("src",E.pointerUrl);
C.trHeight=A(".triggersWrap tr:first").outerHeight();$this.find(".contentWrap li").height(((K*C.trHeight)-2)+"px");
$this.find(".contentWrap li").not(":eq(0)").hide();I.addClass("selected");B(I);D();
},start:function(){this.intervalId=setInterval(G,E.delay*1000);},stop:function(){clearInterval(this.intervalId);
return false;}};return this.each(function(){$this=A(this);E=A.extend(E,F);A.fn.pbtcFunctions.init();
if(E.autoplay){A.fn.pbtcFunctions.start();}});};})($sfr);(function(A){A(document).ready(function(){A("#homeTabbedMenu").sfrTabbedMenu({container:"#tabbedContent"});
});A.fn.autoResize=function(B){var C={ratio:"",direction:""};return this.each(function(){if(B){A.extend(C,B);
}if(C.direction=="height"){A(this).css("height",((A(this).outerWidth())*C.ratio)+"px");
}else{A(this).css("width",((A(this).outerHeight())*C.ratio)+"px");}});};A.fn.sfrTabbedMenu=function(C){var B={container:"",selectedIndex:0};
return this.each(function(E){B=A.extend(B,C);var F=A(this);var D=F.find(".tabbedMenuItem");
D.each(function(K){var J=A(this);J.data("item",K);});var H=F.find(".activeItem");
var G=F.find(".tabbedMenuItem").outerWidth();var I=A(B.container);D.click(function(){var J=A(this);
H.html(J.html());if(J.data("item")!=D.length-1){H.css({"left":(G*J.data("item"))-1});
}else{H.css({"left":(G*J.data("item"))-2});}I.find(".tab").hide().eq(J.data("item")).show();
});D.eq(B.selectedIndex).click();});};})($sfr);(function(A){A(document).ready(function(){var C=A(".laidTitleMultiBoxWrap p");var B=((95+5.5)/C.length)-8.5;
C.width(B+"%");});})($sfr);(function(A){A.fn.shortenString=function(B){A(this).html(function(C,D){if(D.length<=B){return D;
}else{return D.substr(0,D.lastIndexOf(" ",B-3))+"...";}});return A(this);};})($sfr);
function fnInsertPrint(F){var B=document.createElement("a");var E=document.createElement("span");
var D=document.createElement("img");var A=document.createTextNode("imprimer");E.setAttribute("href","#");
E.setAttribute("class","minorText");B.setAttribute("class","mediumLink");D.setAttribute("src","http://static.s-sfr.fr/media/print.png");
E.appendChild(A);B.appendChild(E);B.onclick=function(){window.print();return false;
};var C=document.getElementById(F);if(!C){return ;}C.appendChild(B);C.appendChild(D);
}function camelizeWord(E){var B="";if(typeof E!="undefined"&&E!=null&&E.length>0){var D=E.length;
var A=E.substring(1,D);var C=E.charAt(0);B=C.toUpperCase()+A.toLowerCase();}return B;
}function camelizeString(G){var D="";if(typeof G!="undefined"&&G!=null){var F=/[\s\-]/;
var C=0;var E=G.length;var A;var B=G.search(F);while(B!=-1){A=G.substring(C,B);D+=camelizeWord(A);
separationChar=G.charAt(B);G=G.substring(B+1,E);E=G.length;B=G.search(F);D+=separationChar;
}if(B==-1){D+=camelizeWord(G);}}return D;}(function(A){getSfrContext=function(){var B="www.sfr.fr";if(window.location.host=="cms.sfr.fr"){B="cms.sfr.fr";
}return B;};})($sfr);(function(A){A.cookie=function(C,J,M){if(typeof J!="undefined"){M=M||{};if(J===null){J="";
M.expires=-1;}var F="";if(M.expires&&(typeof M.expires=="number"||M.expires.toUTCString)){var G;
if(typeof M.expires=="number"){G=new Date();G.setTime(G.getTime()+(M.expires*24*60*60*1000));
}else{G=M.expires;}F="; expires="+G.toUTCString();}var L=M.path?"; path="+(M.path):"";
var H=M.domain?"; domain="+(M.domain):"";var B=M.secure?"; secure":"";document.cookie=[C,"=",encodeURIComponent(J),F,L,H,B].join("");
}else{var E=null;if(document.cookie&&document.cookie!=""){var K=document.cookie.split(";");
for(var I=0;I<K.length;I++){var D=A.trim(K[I]);if(D.substring(0,C.length+1)==(C+"=")){E=decodeURIComponent(unescape(D.substring(C.length+1)));
break;}}}return E;}};})($sfr);(function(A){isAuthenticated=function(){var B=false;if(A.cookie("sfrUserInfos")!=null){B=true;
}return B;};})($sfr);(function(B){var A="www.sfr.fr";if(window.location.host=="cms.sfr.fr"){A="cms.sfr.fr";
}formatUserName=function(C){if(C.indexOf("@")>0){C=C.split("@");if(C[0].length>7){C[0]=C[0].substr(0,7)+"...";
}return decodeURIComponent(C[0])+'<span class="userMailDomain">@'+C[1]+"</span>";
}else{var D=decodeURIComponent(C);D=D.replace("+"," ");return camelizeString(D);}};
B.fn.displayHeaderUserInfos=function(F){if(typeof F=="undefined"){var F="head_deconnexion";
}var C=getCookie("sfrHome");if(C&&C=="portail"){var E="http://"+A+"/portail.html#sfrintid="+F;
}else{var E="http://"+A+"/#sfrintid="+F;}if(isAuthenticated()){B("#logOut a").attr("href","https://"+A+"/cas/logout?url="+E);
var D=getCookie("sfrUserInfos");if(D!=false&&D!='""'){B("#sfrUserName").html(formatUserName(D));
}else{B("#sfrUserName").hide();}B("#userInfos").html(B("#userInfosHidden").html());
B("#userInfosHidden").remove();B("#sfrUserMailNb").displayUserUnreadMessages();}else{B("#userInfosHidden").remove();
}B("#sfrMailAccess").fadeIn(1000,function(){B("#sfrUserMailInfo").hover(function(){B(this).toggleClass("sfrMailOver");
},function(){B(this).toggleClass("sfrMailOver");});});};B.fn.displayUserUnreadMessages=function(){var C=function(D){var E=B(D);
var F=getCookie("sfrUserUnreadMessages");if(F===false){B.ajax({url:location.protocol+"//"+A+"/export/bloc/messagerie/vide/message.html",contentType:"application/javascript",cache:true,dataType:"jsonp",success:function(G){if(G.unreadMessagesCount!=-1){E.html("Mail ("+G.unreadMessagesCount+")");
}var H=(window.location.host=="cms.sfr.fr")?"cms.sfr.fr":"sfr.fr";setCookie("sfrUserUnreadMessages",G.unreadMessagesCount,{path:"/",domain:H});
}});}else{if(F>-1){E.html("Mail ("+F+")");}}};return this.each(function(){C(this);
});};})($sfr);(function(A){A.fn.tabbedBox=function(){function C(E){var D=E[0];for(i=1;i<E.length;
i++){if(A(E[i]).outerHeight()>A(D).outerHeight()){D=E[i];}}return A(D).outerHeight();
}function B(){var E=$container.find(".tabbedBoxTriggers li"),F=E.css("margin-right"),D=$container.find(".tabbedBoxContent");
D.height((C(D.find(".tabbedBoxContentUnit")))+"px");E.width(Math.round(($container.width()/E.length)-70)+"px");
}A.fn.tabbedBoxFunctions={init:function(){B();$container.find(".tabbedBoxTriggers li:eq(0)").addClass("active");
A(".sfrDom.tabbedBox .tabbedBoxContentUnit").not(":eq(0)").hide();$container.find(".tabbedBoxTriggers li").css("cursor","pointer");
},onclick:function(){$container.find(".tabbedBoxTriggers li").bind("click",function(){$container.find(".active").removeClass("active");
$container.find(".tabbedBoxContentUnit").hide();A(this).addClass("active");$container.find(".tabbedBoxContentUnit").eq(A(this).index()).show();
});}};return this.each(function(){$container=A(this);A.fn.tabbedBoxFunctions.init();
A.fn.tabbedBoxFunctions.onclick();});};})($sfr);(function(A){A(document).ready(function(){A(".sfrDom .orderStatusTrigger").click(function(){if(A(".botmListContent").is(":visible")){A(".botmListContent").slideUp(function(){A(".botmListTrigg").attr("src","//static.s-sfr.fr/resources/img/botmListTrigg.png");
});}else{A(".botmListContent").slideDown(function(){A(".botmListTrigg").attr("src","//static.s-sfr.fr/resources/img/botmListTriggRev.png");
});}});});})($sfr);(function(A){A(document).ready(function(){var B=A(".sfrDom .legalBox p");B.hide();
A(".sfrDom .legalBox a").click(function(){if(B.is(":visible")){B.slideUp();}else{B.slideDown();
}});});})($sfr);(function(A){A.fn.stdMeaBoxManager=function(C){var B=stdMeaBoxDefaultParams={MEAcontainerWidth:"autoMeaWidth",MEAcontainerHeight:"autoMeaHeight",MEAcoloredBorderType:false,noRightMargin:false,noBottomMargin:false,MEAtitle:true,MEAtitleIsClickable:false,MEAboldTitle:false,MEAboldTitleIsClickable:false,MEAsubTitle:false,MEAcentralImg:false,MEAcentralText:false,MEAcentralLinksList:false,MEAColContentColImg:{MEAColContentColImg:false,MEAColContentColImgProportions:"",MEAColImg:true,MEAColContent:true,MEAColContentColImgREVERT:false,MEAColContentSubTitle:false,MEAColContentText:false,MEAColContentLinksList:false,MEAColContentLinksListColored:false,MEAColImgImg:true,MEAColImgLabel:false},MEAstretchedImg:false,MEAmajorLink:true};
return this.each(function(F){if(C[F]!=null&&typeof C[F]!="undefined"){B=A.extend({},true,stdMeaBoxDefaultParams,C[F]);
}for(stdMeaBoxParameter in B){if(typeof B[stdMeaBoxParameter]=="boolean"){if(stdMeaBoxParameter=="noRightMargin"&&B[stdMeaBoxParameter]===true){A(this).addClass("noRightMargin");
}if(stdMeaBoxParameter=="noBottomMargin"&&B[stdMeaBoxParameter]===true){A(this).addClass("noBottomMargin");
}if(stdMeaBoxParameter=="MEAcoloredBorderType"&&B[stdMeaBoxParameter]===true){A(this).addClass("coloredThickBorder");
}else{A(this).find("."+stdMeaBoxParameter).show();}if(!B[stdMeaBoxParameter]){if(stdMeaBoxParameter=="MEAtitleIsClickable"&&B["MEAtitleIsClickable"]===false&&B["MEAtitle"]===true){A(this).find(".MEAtitle a").replaceWith(A(this).find(".MEAtitle a").text());
}if(stdMeaBoxParameter=="MEAboldTitleIsClickable"&&B["MEAboldTitleIsClickable"]===false&&B["MEAboldTitle"]===true){A(this).find(".MEAboldTitle a").replaceWith(A(this).find(".MEAboldTitle a").text());
}A(this).find("."+stdMeaBoxParameter).hide();}}else{if(typeof B[stdMeaBoxParameter]=="string"){A(this).addClass(B[stdMeaBoxParameter]);
if(stdMeaBoxParameter=="MEAcontainerWidth"){var E="bottomShadow33";switch(B[stdMeaBoxParameter]){case"biggerMeaWidth":E="bottomShadow66";
break;case"mediumMeaWidth":case"bigMeaWidth":E="bottomShadow50";break;}A(this).find(".bottomShadow").addClass(E);
}}else{if(typeof B[stdMeaBoxParameter]=="object"){for(objectParam in B[stdMeaBoxParameter]){if(objectParam=="MEAColContentColImgREVERT"&&B[stdMeaBoxParameter][objectParam]===true){var D=A(this).find(".MEAColContentColImg").get(0).getElementsByTagName("li");
A(D[1]).prependTo(A(this).find(".MEAColContentColImg"));A(D[1]).remove();}if(objectParam=="MEAColContentColImgProportions"&&objectParam!=""){A(this).find(".MEAColContentColImg").addClass(B[stdMeaBoxParameter][objectParam]);
}if(B[stdMeaBoxParameter][objectParam]){A(this).find("."+objectParam).show();}else{A(this).find("."+objectParam).hide();
}}}}}}});};})($sfr);(function(A){swfobject=function(){var AQ="undefined",Ac="object",AB="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",Ad="application/x-shockwave-flash",AC="SWFObjectExprInst",AW="onreadystatechange",AF=window,Ak=document,Aa=navigator,AA=false,Z=[Am],Af=[],AG=[],AL=[],Ai,AD,AP,AS,AK=false,At=false,Ag,AN,Ah=true,AH=function(){var B=typeof Ak.getElementById!=AQ&&typeof Ak.getElementsByTagName!=AQ&&typeof Ak.createElement!=AQ,F=Aa.userAgent.toLowerCase(),D=Aa.platform.toLowerCase(),I=D?/win/.test(D):/win/.test(F),K=D?/mac/.test(D):/mac/.test(F),H=/webkit/.test(F)?parseFloat(F.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,E=!+"\v1",G=[0,0,0],L=null;
if(typeof Aa.plugins!=AQ&&typeof Aa.plugins[AB]==Ac){L=Aa.plugins[AB].description;
if(L&&!(typeof Aa.mimeTypes!=AQ&&Aa.mimeTypes[Ad]&&!Aa.mimeTypes[Ad].enabledPlugin)){AA=true;
E=false;L=L.replace(/^.*\s+(\S+\s+\S+$)/,"$1");G[0]=parseInt(L.replace(/^(.*)\..*$/,"$1"),10);
G[1]=parseInt(L.replace(/^.*\.(.*)\s.*$/,"$1"),10);G[2]=/[a-zA-Z]/.test(L)?parseInt(L.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0;
}}else{if(typeof AF.ActiveXObject!=AQ){try{var J=new ActiveXObject(X);if(J){L=J.GetVariable("$version");
if(L){E=true;L=L.split(" ")[1].split(",");G=[parseInt(L[0],10),parseInt(L[1],10),parseInt(L[2],10)];
}}}catch(C){}}}return{w3:B,pv:G,wk:H,ie:E,win:I,mac:K};}(),Aj=function(){if(!AH.w3){return ;
}if((typeof Ak.readyState!=AQ&&Ak.readyState=="complete")||(typeof Ak.readyState==AQ&&(Ak.getElementsByTagName("body")[0]||Ak.body))){Ao();
}if(!AK){if(typeof Ak.addEventListener!=AQ){Ak.addEventListener("DOMContentLoaded",Ao,false);
}if(AH.ie&&AH.win){Ak.attachEvent(AW,function(){if(Ak.readyState=="complete"){Ak.detachEvent(AW,arguments.callee);
Ao();}});if(AF==top){(function(){if(AK){return ;}try{Ak.documentElement.doScroll("left");
}catch(B){setTimeout(arguments.callee,0);return ;}Ao();})();}}if(AH.wk){(function(){if(AK){return ;
}if(!/loaded|complete/.test(Ak.readyState)){setTimeout(arguments.callee,0);return ;
}Ao();})();}Ab(Ao);}}();function Ao(){if(AK){return ;}try{var C=Ak.getElementsByTagName("body")[0].appendChild(AR("span"));
C.parentNode.removeChild(C);}catch(B){return ;}AK=true;var E=Z.length;for(var D=0;
D<E;D++){Z[D]();}}function AJ(B){if(AK){B();}else{Z[Z.length]=B;}}function Ab(B){if(typeof AF.addEventListener!=AQ){AF.addEventListener("load",B,false);
}else{if(typeof Ak.addEventListener!=AQ){Ak.addEventListener("load",B,false);}else{if(typeof AF.attachEvent!=AQ){Al(AF,"onload",B);
}else{if(typeof AF.onload=="function"){var C=AF.onload;AF.onload=function(){C();B();
};}else{AF.onload=B;}}}}}function Am(){if(AA){Y();}else{AM();}}function Y(){var E=Ak.getElementsByTagName("body")[0];
var C=AR(Ac);C.setAttribute("type",Ad);var B=E.appendChild(C);if(B){var D=0;(function(){if(typeof B.GetVariable!=AQ){var F=B.GetVariable("$version");
if(F){F=F.split(" ")[1].split(",");AH.pv=[parseInt(F[0],10),parseInt(F[1],10),parseInt(F[2],10)];
}}else{if(D<10){D++;setTimeout(arguments.callee,10);return ;}}E.removeChild(C);B=null;
AM();})();}else{AM();}}function AM(){var H=Af.length;if(H>0){for(var I=0;I<H;I++){var D=Af[I].id;
var M=Af[I].callbackFn;var B={success:false,id:D};if(AH.pv[0]>0){var J=Ar(D);if(J){if(AO(Af[I].swfVersion)&&!(AH.wk&&AH.wk<312)){AX(D,true);
if(M){B.success=true;B.ref=AU(D);M(B);}}else{if(Af[I].expressInstall&&AT()){var F={};
F.data=Af[I].expressInstall;F.width=J.getAttribute("width")||"0";F.height=J.getAttribute("height")||"0";
if(J.getAttribute("class")){F.styleclass=J.getAttribute("class");}if(J.getAttribute("align")){F.align=J.getAttribute("align");
}var G={};var E=J.getElementsByTagName("param");var L=E.length;for(var K=0;K<L;K++){if(E[K].getAttribute("name").toLowerCase()!="movie"){G[E[K].getAttribute("name")]=E[K].getAttribute("value");
}}AE(F,G,D,M);}else{Ae(J);if(M){M(B);}}}}}else{AX(D,true);if(M){var C=AU(D);if(C&&typeof C.SetVariable!=AQ){B.success=true;
B.ref=C;}M(B);}}}}}function AU(C){var E=null;var D=Ar(C);if(D&&D.nodeName=="OBJECT"){if(typeof D.SetVariable!=AQ){E=D;
}else{var B=D.getElementsByTagName(Ac)[0];if(B){E=B;}}}return E;}function AT(){return !At&&AO("6.0.65")&&(AH.win||AH.mac)&&!(AH.wk&&AH.wk<312);
}function AE(G,E,I,F){At=true;AP=F||null;AS={success:false,id:I};var B=Ar(I);if(B){if(B.nodeName=="OBJECT"){Ai=An(B);
AD=null;}else{Ai=B;AD=I;}G.id=AC;if(typeof G.width==AQ||(!/%$/.test(G.width)&&parseInt(G.width,10)<310)){G.width="310";
}if(typeof G.height==AQ||(!/%$/.test(G.height)&&parseInt(G.height,10)<137)){G.height="137";
}Ak.title=Ak.title.slice(0,47)+" - Flash Player Installation";var C=AH.ie&&AH.win?"ActiveX":"PlugIn",D="MMredirectURL="+AF.location.toString().replace(/&/g,"%26")+"&MMplayerType="+C+"&MMdoctitle="+Ak.title;
if(typeof E.flashvars!=AQ){E.flashvars+="&"+D;}else{E.flashvars=D;}if(AH.ie&&AH.win&&B.readyState!=4){var H=AR("div");
I+="SWFObjectNew";H.setAttribute("id",I);B.parentNode.insertBefore(H,B);B.style.display="none";
(function(){if(B.readyState==4){B.parentNode.removeChild(B);}else{setTimeout(arguments.callee,10);
}})();}AZ(G,E,I);}}function Ae(B){if(AH.ie&&AH.win&&B.readyState!=4){var C=AR("div");
B.parentNode.insertBefore(C,B);C.parentNode.replaceChild(An(B),C);B.style.display="none";
(function(){if(B.readyState==4){B.parentNode.removeChild(B);}else{setTimeout(arguments.callee,10);
}})();}else{B.parentNode.replaceChild(An(B),B);}}function An(C){var E=AR("div");if(AH.win&&AH.ie){E.innerHTML=C.innerHTML;
}else{var F=C.getElementsByTagName(Ac)[0];if(F){var B=F.childNodes;if(B){var G=B.length;
for(var D=0;D<G;D++){if(!(B[D].nodeType==1&&B[D].nodeName=="PARAM")&&!(B[D].nodeType==8)){E.appendChild(B[D].cloneNode(true));
}}}}}return E;}function AZ(F,H,D){var E,B=Ar(D);if(AH.wk&&AH.wk<312){return E;}if(B){if(typeof F.id==AQ){F.id=D;
}if(AH.ie&&AH.win){var G="";for(var J in F){if(F[J]!=Object.prototype[J]){if(J.toLowerCase()=="data"){H.movie=F[J];
}else{if(J.toLowerCase()=="styleclass"){G+=' class="'+F[J]+'"';}else{if(J.toLowerCase()!="classid"){G+=" "+J+'="'+F[J]+'"';
}}}}}var I="";for(var K in H){if(H[K]!=Object.prototype[K]){I+='<param name="'+K+'" value="'+H[K]+'" />';
}}B.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+G+">"+I+"</object>";
AG[AG.length]=F.id;E=Ar(F.id);}else{var C=AR(Ac);C.setAttribute("type",Ad);for(var L in F){if(F[L]!=Object.prototype[L]){if(L.toLowerCase()=="styleclass"){C.setAttribute("class",F[L]);
}else{if(L.toLowerCase()!="classid"){C.setAttribute(L,F[L]);}}}}for(var M in H){if(H[M]!=Object.prototype[M]&&M.toLowerCase()!="movie"){Ap(C,M,H[M]);
}}B.parentNode.replaceChild(C,B);E=C;}}return E;}function Ap(C,E,D){var B=AR("param");
B.setAttribute("name",E);B.setAttribute("value",D);C.appendChild(B);}function AV(B){var C=Ar(B);
if(C&&C.nodeName=="OBJECT"){if(AH.ie&&AH.win){C.style.display="none";(function(){if(C.readyState==4){As(B);
}else{setTimeout(arguments.callee,10);}})();}else{C.parentNode.removeChild(C);}}}function As(B){var C=Ar(B);
if(C){for(var D in C){if(typeof C[D]=="function"){C[D]=null;}}C.parentNode.removeChild(C);
}}function Ar(B){var D=null;try{D=Ak.getElementById(B);}catch(C){}return D;}function AR(B){return Ak.createElement(B);
}function Al(B,D,C){B.attachEvent(D,C);AL[AL.length]=[B,D,C];}function AO(B){var C=AH.pv,D=B.split(".");
D[0]=parseInt(D[0],10);D[1]=parseInt(D[1],10)||0;D[2]=parseInt(D[2],10)||0;return(C[0]>D[0]||(C[0]==D[0]&&C[1]>D[1])||(C[0]==D[0]&&C[1]==D[1]&&C[2]>=D[2]))?true:false;
}function AY(C,G,B,D){if(AH.ie&&AH.mac){return ;}var F=Ak.getElementsByTagName("head")[0];
if(!F){return ;}var H=(B&&typeof B=="string")?B:"screen";if(D){Ag=null;AN=null;}if(!Ag||AN!=H){var E=AR("style");
E.setAttribute("type","text/css");E.setAttribute("media",H);Ag=F.appendChild(E);if(AH.ie&&AH.win&&typeof Ak.styleSheets!=AQ&&Ak.styleSheets.length>0){Ag=Ak.styleSheets[Ak.styleSheets.length-1];
}AN=H;}if(AH.ie&&AH.win){if(Ag&&typeof Ag.addRule==Ac){Ag.addRule(C,G);}}else{if(Ag&&typeof Ak.createTextNode!=AQ){Ag.appendChild(Ak.createTextNode(C+" {"+G+"}"));
}}}function AX(B,D){if(!Ah){return ;}var C=D?"visible":"hidden";if(AK&&Ar(B)){Ar(B).style.visibility=C;
}else{AY("#"+B,"visibility:"+C);}}function AI(C){var B=/[\\\"<>\.;]/;var D=B.exec(C)!=null;
return D&&typeof encodeURIComponent!=AQ?encodeURIComponent(C):C;}var Aq=function(){if(AH.ie&&AH.win){window.attachEvent("onunload",function(){var B=AL.length;
for(var C=0;C<B;C++){AL[C][0].detachEvent(AL[C][1],AL[C][2]);}var E=AG.length;for(var D=0;
D<E;D++){AV(AG[D]);}for(var F in AH){AH[F]=null;}AH=null;for(var G in swfobject){swfobject[G]=null;
}swfobject=null;});}}();return{registerObject:function(B,F,D,C){if(AH.w3&&B&&F){var E={};
E.id=B;E.swfVersion=F;E.expressInstall=D;E.callbackFn=C;Af[Af.length]=E;AX(B,false);
}else{if(C){C({success:false,id:B});}}},getObjectById:function(B){if(AH.w3){return AU(B);
}},embedSWF:function(L,F,I,G,D,B,C,J,H,K){var E={success:false,id:F};if(AH.w3&&!(AH.wk&&AH.wk<312)&&L&&F&&I&&G&&D){AX(F,false);
AJ(function(){I+="";G+="";var R={};if(H&&typeof H===Ac){for(var P in H){R[P]=H[P];
}}R.data=L;R.width=I;R.height=G;var O={};if(J&&typeof J===Ac){for(var Q in J){O[Q]=J[Q];
}}if(C&&typeof C===Ac){for(var M in C){if(typeof O.flashvars!=AQ){O.flashvars+="&"+M+"="+C[M];
}else{O.flashvars=M+"="+C[M];}}}if(AO(D)){var N=AZ(R,O,F);if(R.id==F){AX(F,true);
}E.success=true;E.ref=N;}else{if(B&&AT()){R.data=B;AE(R,O,F,K);return ;}else{AX(F,true);
}}if(K){K(E);}});}else{if(K){K(E);}}},switchOffAutoHideShow:function(){Ah=false;},ua:AH,getFlashPlayerVersion:function(){return{major:AH.pv[0],minor:AH.pv[1],release:AH.pv[2]};
},hasFlashPlayerVersion:AO,createSWF:function(B,C,D){if(AH.w3){return AZ(B,C,D);}else{return undefined;
}},showExpressInstall:function(C,B,E,D){if(AH.w3&&AT()){AE(C,B,E,D);}},removeSWF:function(B){if(AH.w3){AV(B);
}},createCSS:function(C,B,D,E){if(AH.w3){AY(C,B,D,E);}},addDomLoadEvent:AJ,addLoadEvent:Ab,getQueryParamValue:function(C){var B=Ak.location.search||Ak.location.hash;
if(B){if(/\?/.test(B)){B=B.split("?")[1];}if(C==null){return AI(B);}var D=B.split("&");
for(var E=0;E<D.length;E++){if(D[E].substring(0,D[E].indexOf("="))==C){return AI(D[E].substring((D[E].indexOf("=")+1)));
}}}return"";},expressInstallCallback:function(){if(At){var B=Ar(AC);if(B&&Ai){B.parentNode.replaceChild(Ai,B);
if(AD){AX(AD,true);if(AH.ie&&AH.win){Ai.style.display="block";}}if(AP){AP(AS);}}At=false;
}}};}();})($sfr);(function(G){G.effects={};G.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(M,L){G.fx.step[L]=function(N){if(!N.colorInit){N.start=K(N.elem,L);
N.end=I(N.end);N.colorInit=true;}N.elem.style[L]="rgb("+Math.max(Math.min(parseInt((N.pos*(N.end[0]-N.start[0]))+N.start[0],10),255),0)+","+Math.max(Math.min(parseInt((N.pos*(N.end[1]-N.start[1]))+N.start[1],10),255),0)+","+Math.max(Math.min(parseInt((N.pos*(N.end[2]-N.start[2]))+N.start[2],10),255),0)+")";
};});function I(M){var L;if(M&&M.constructor==Array&&M.length==3){return M;}if(L=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(M)){return[parseInt(L[1],10),parseInt(L[2],10),parseInt(L[3],10)];
}if(L=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(M)){return[parseFloat(L[1])*2.55,parseFloat(L[2])*2.55,parseFloat(L[3])*2.55];
}if(L=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(M)){return[parseInt(L[1],16),parseInt(L[2],16),parseInt(L[3],16)];
}if(L=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(M)){return[parseInt(L[1]+L[1],16),parseInt(L[2]+L[2],16),parseInt(L[3]+L[3],16)];
}if(L=/rgba\(0, 0, 0, 0\)/.exec(M)){return A["transparent"];}return A[G.trim(M).toLowerCase()];
}function K(N,L){var M;do{M=G.curCSS(N,L);if(M!=""&&M!="transparent"||G.nodeName(N,"body")){break;
}L="backgroundColor";}while(N=N.parentNode);return I(M);}var A={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};
var E=["add","remove","toggle"],C={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};
function F(){var O=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,P={},M,N;
if(O&&O.length&&O[0]&&O[O[0]]){var L=O.length;while(L--){M=O[L];if(typeof O[M]=="string"){N=M.replace(/\-(\w)/g,function(Q,R){return R.toUpperCase();
});P[N]=O[M];}}}else{for(M in O){if(typeof O[M]==="string"){P[M]=O[M];}}}return P;
}function B(M){var L,N;for(L in M){N=M[L];if(N==null||G.isFunction(N)||L in C||(/scrollbar/).test(L)||(!(/color/i).test(L)&&isNaN(parseFloat(N)))){delete M[L];
}}return M;}function H(L,N){var O={_:0},M;for(M in N){if(L[M]!=N[M]){O[M]=N[M];}}return O;
}G.effects.animateClass=function(L,M,O,N){if(G.isFunction(O)){N=O;O=null;}return this.queue("fx",function(){var T=G(this),Q=T.attr("style")||" ",V=B(F.call(this)),S,R=T.attr("className");
G.each(E,function(W,X){if(L[X]){T[X+"Class"](L[X]);}});S=B(F.call(this));T.attr("className",R);
T.animate(H(V,S),M,O,function(){G.each(E,function(W,X){if(L[X]){T[X+"Class"](L[X]);
}});if(typeof T.attr("style")=="object"){T.attr("style").cssText="";T.attr("style").cssText=Q;
}else{T.attr("style",Q);}if(N){N.apply(this,arguments);}});var P=G.queue(this),U=P.splice(P.length-1,1)[0];
P.splice(1,0,U);G.dequeue(this);});};G.fn.extend({_addClass:G.fn.addClass,addClass:function(M,L,O,N){return L?G.effects.animateClass.apply(this,[{add:M},L,O,N]):this._addClass(M);
},_removeClass:G.fn.removeClass,removeClass:function(M,L,O,N){return L?G.effects.animateClass.apply(this,[{remove:M},L,O,N]):this._removeClass(M);
},_toggleClass:G.fn.toggleClass,toggleClass:function(N,M,L,P,O){if(typeof M=="boolean"||M===undefined){if(!L){return this._toggleClass(N,M);
}else{return G.effects.animateClass.apply(this,[(M?{add:N}:{remove:N}),L,P,O]);}}else{return G.effects.animateClass.apply(this,[{toggle:N},M,L,P]);
}},switchClass:function(L,N,M,P,O){return G.effects.animateClass.apply(this,[{add:N,remove:L},M,P,O]);
}});G.extend(G.effects,{version:"1.8.9",save:function(M,N){for(var L=0;L<N.length;
L++){if(N[L]!==null){M.data("ec.storage."+N[L],M[0].style[N[L]]);}}},restore:function(M,N){for(var L=0;
L<N.length;L++){if(N[L]!==null){M.css(N[L],M.data("ec.storage."+N[L]));}}},setMode:function(L,M){if(M=="toggle"){M=L.is(":hidden")?"show":"hide";
}return M;},getBaseline:function(M,N){var O,L;switch(M[0]){case"top":O=0;break;case"middle":O=0.5;
break;case"bottom":O=1;break;default:O=M[0]/N.height;}switch(M[1]){case"left":L=0;
break;case"center":L=0.5;break;case"right":L=1;break;default:L=M[1]/N.width;}return{x:L,y:O};
},createWrapper:function(L){if(L.parent().is(".ui-effects-wrapper")){return L.parent();
}var M={width:L.outerWidth(true),height:L.outerHeight(true),"float":L.css("float")},N=G("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});
L.wrap(N);N=L.parent();if(L.css("position")=="static"){N.css({position:"relative"});
L.css({position:"relative"});}else{G.extend(M,{position:L.css("position"),zIndex:L.css("z-index")});
G.each(["top","left","bottom","right"],function(O,P){M[P]=L.css(P);if(isNaN(parseInt(M[P],10))){M[P]="auto";
}});L.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"});}return N.css(M).show();
},removeWrapper:function(L){if(L.parent().is(".ui-effects-wrapper")){return L.parent().replaceWith(L);
}return L;},setTransition:function(M,O,L,N){N=N||{};G.each(O,function(Q,P){unit=M.cssUnit(P);
if(unit[0]>0){N[P]=unit[0]*L+unit[1];}});return N;}});function D(M,L,N,O){if(typeof M=="object"){O=L;
N=null;L=M;M=L.effect;}if(G.isFunction(L)){O=L;N=null;L={};}if(typeof L=="number"||G.fx.speeds[L]){O=N;
N=L;L={};}if(G.isFunction(N)){O=N;N=null;}L=L||{};N=N||L.duration;N=G.fx.off?0:typeof N=="number"?N:N in G.fx.speeds?G.fx.speeds[N]:G.fx.speeds._default;
O=O||L.complete;return[M,L,N,O];}function J(L){if(!L||typeof L==="number"||G.fx.speeds[L]){return true;
}if(typeof L==="string"&&!G.effects[L]){return true;}return false;}G.fn.extend({effect:function(O,N,Q,S){var M=D.apply(this,arguments),P={options:M[1],duration:M[2],callback:M[3]},R=P.options.mode,L=G.effects[O];
if(G.fx.off||!L){if(R){return this[R](P.duration,P.callback);}else{return this.each(function(){if(P.callback){P.callback.call(this);
}});}}return L.call(this,P);},_show:G.fn.show,show:function(M){if(J(M)){return this._show.apply(this,arguments);
}else{var L=D.apply(this,arguments);L[1].mode="show";return this.effect.apply(this,L);
}},_hide:G.fn.hide,hide:function(M){if(J(M)){return this._hide.apply(this,arguments);
}else{var L=D.apply(this,arguments);L[1].mode="hide";return this.effect.apply(this,L);
}},__toggle:G.fn.toggle,toggle:function(M){if(J(M)||typeof M==="boolean"||G.isFunction(M)){return this.__toggle.apply(this,arguments);
}else{var L=D.apply(this,arguments);L[1].mode="toggle";return this.effect.apply(this,L);
}},cssUnit:function(L){var M=this.css(L),N=[];G.each(["em","px","%","pt"],function(O,P){if(M.indexOf(P)>0){N=[parseFloat(M),P];
}});return N;}});G.easing.jswing=G.easing.swing;G.extend(G.easing,{def:"easeOutQuad",swing:function(M,N,L,P,O){return G.easing[G.easing.def](M,N,L,P,O);
},easeInQuad:function(M,N,L,P,O){return P*(N/=O)*N+L;},easeOutQuad:function(M,N,L,P,O){return -P*(N/=O)*(N-2)+L;
},easeInOutQuad:function(M,N,L,P,O){if((N/=O/2)<1){return P/2*N*N+L;}return -P/2*((--N)*(N-2)-1)+L;
},easeInCubic:function(M,N,L,P,O){return P*(N/=O)*N*N+L;},easeOutCubic:function(M,N,L,P,O){return P*((N=N/O-1)*N*N+1)+L;
},easeInOutCubic:function(M,N,L,P,O){if((N/=O/2)<1){return P/2*N*N*N+L;}return P/2*((N-=2)*N*N+2)+L;
},easeInQuart:function(M,N,L,P,O){return P*(N/=O)*N*N*N+L;},easeOutQuart:function(M,N,L,P,O){return -P*((N=N/O-1)*N*N*N-1)+L;
},easeInOutQuart:function(M,N,L,P,O){if((N/=O/2)<1){return P/2*N*N*N*N+L;}return -P/2*((N-=2)*N*N*N-2)+L;
},easeInQuint:function(M,N,L,P,O){return P*(N/=O)*N*N*N*N+L;},easeOutQuint:function(M,N,L,P,O){return P*((N=N/O-1)*N*N*N*N+1)+L;
},easeInOutQuint:function(M,N,L,P,O){if((N/=O/2)<1){return P/2*N*N*N*N*N+L;}return P/2*((N-=2)*N*N*N*N+2)+L;
},easeInSine:function(M,N,L,P,O){return -P*Math.cos(N/O*(Math.PI/2))+P+L;},easeOutSine:function(M,N,L,P,O){return P*Math.sin(N/O*(Math.PI/2))+L;
},easeInOutSine:function(M,N,L,P,O){return -P/2*(Math.cos(Math.PI*N/O)-1)+L;},easeInExpo:function(M,N,L,P,O){return(N==0)?L:P*Math.pow(2,10*(N/O-1))+L;
},easeOutExpo:function(M,N,L,P,O){return(N==O)?L+P:P*(-Math.pow(2,-10*N/O)+1)+L;},easeInOutExpo:function(M,N,L,P,O){if(N==0){return L;
}if(N==O){return L+P;}if((N/=O/2)<1){return P/2*Math.pow(2,10*(N-1))+L;}return P/2*(-Math.pow(2,-10*--N)+2)+L;
},easeInCirc:function(M,N,L,P,O){return -P*(Math.sqrt(1-(N/=O)*N)-1)+L;},easeOutCirc:function(M,N,L,P,O){return P*Math.sqrt(1-(N=N/O-1)*N)+L;
},easeInOutCirc:function(M,N,L,P,O){if((N/=O/2)<1){return -P/2*(Math.sqrt(1-N*N)-1)+L;
}return P/2*(Math.sqrt(1-(N-=2)*N)+1)+L;},easeInElastic:function(M,O,L,S,R){var P=1.70158;
var Q=0;var N=S;if(O==0){return L;}if((O/=R)==1){return L+S;}if(!Q){Q=R*0.3;}if(N<Math.abs(S)){N=S;
var P=Q/4;}else{var P=Q/(2*Math.PI)*Math.asin(S/N);}return -(N*Math.pow(2,10*(O-=1))*Math.sin((O*R-P)*(2*Math.PI)/Q))+L;
},easeOutElastic:function(M,O,L,S,R){var P=1.70158;var Q=0;var N=S;if(O==0){return L;
}if((O/=R)==1){return L+S;}if(!Q){Q=R*0.3;}if(N<Math.abs(S)){N=S;var P=Q/4;}else{var P=Q/(2*Math.PI)*Math.asin(S/N);
}return N*Math.pow(2,-10*O)*Math.sin((O*R-P)*(2*Math.PI)/Q)+S+L;},easeInOutElastic:function(M,O,L,S,R){var P=1.70158;
var Q=0;var N=S;if(O==0){return L;}if((O/=R/2)==2){return L+S;}if(!Q){Q=R*(0.3*1.5);
}if(N<Math.abs(S)){N=S;var P=Q/4;}else{var P=Q/(2*Math.PI)*Math.asin(S/N);}if(O<1){return -0.5*(N*Math.pow(2,10*(O-=1))*Math.sin((O*R-P)*(2*Math.PI)/Q))+L;
}return N*Math.pow(2,-10*(O-=1))*Math.sin((O*R-P)*(2*Math.PI)/Q)*0.5+S+L;},easeInBack:function(M,N,L,Q,P,O){if(O==undefined){O=1.70158;
}return Q*(N/=P)*N*((O+1)*N-O)+L;},easeOutBack:function(M,N,L,Q,P,O){if(O==undefined){O=1.70158;
}return Q*((N=N/P-1)*N*((O+1)*N+O)+1)+L;},easeInOutBack:function(M,N,L,Q,P,O){if(O==undefined){O=1.70158;
}if((N/=P/2)<1){return Q/2*(N*N*(((O*=(1.525))+1)*N-O))+L;}return Q/2*((N-=2)*N*(((O*=(1.525))+1)*N+O)+2)+L;
},easeInBounce:function(M,N,L,P,O){return P-G.easing.easeOutBounce(M,O-N,0,P,O)+L;
},easeOutBounce:function(M,N,L,P,O){if((N/=O)<(1/2.75)){return P*(7.5625*N*N)+L;}else{if(N<(2/2.75)){return P*(7.5625*(N-=(1.5/2.75))*N+0.75)+L;
}else{if(N<(2.5/2.75)){return P*(7.5625*(N-=(2.25/2.75))*N+0.9375)+L;}else{return P*(7.5625*(N-=(2.625/2.75))*N+0.984375)+L;
}}}},easeInOutBounce:function(M,N,L,P,O){if(N<O/2){return G.easing.easeInBounce(M,N*2,0,P,O)*0.5+L;
}return G.easing.easeOutBounce(M,N*2-O,0,P,O)*0.5+P*0.5+L;}});})($sfr);(function($){sfrPhoneInfos=function(phoneId,callback){if(phoneId&&phoneId!="0"){$.ajax({url:"https://"+getSfrContext()+"/assistance/telephone-mobile/mode-emploi/rest/public/v1/mobile/"+phoneId,cache:true,dataType:"jsonp",contentType:"json",jsonpCallback:callback});
}else{eval(callback+"(null)");}};})($sfr);(function(I,F){var T=I.fn.domManip,H="_tmplitem",U=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,P={},E={},Y,X={key:0,data:{}},W=0,Q=0,G=[];
function K(b,a,d,e){var c={data:e||(a?a.data:{}),_wrap:a?a._wrap:null,tmpl:null,parent:a||null,nodes:[],calls:C,nest:B,wrap:N,html:R,update:Z};
if(b){I.extend(c,b,{nodes:[],parent:a});}if(d){c.tmpl=d;c._ctnt=c._ctnt||c.tmpl(I,c);
c.key=++W;(G.length?E:P)[W]=c;}return c;}I.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){I.fn[a]=function(c){var f=[],j=I(c),e,g,d,k,h=this.length===1&&this[0].parentNode;
Y=P||{};if(h&&h.nodeType===11&&h.childNodes.length===1&&j.length===1){j[b](this[0]);
f=this;}else{for(g=0,d=j.length;g<d;g++){Q=g;e=(g>0?this.clone(true):this).get();
I.fn[b].apply(I(j[g]),e);f=f.concat(e);}Q=0;f=this.pushStack(f,a,j.selector);}k=Y;
Y=null;I.tmpl.complete(k);return f;};});I.fn.extend({tmpl:function(c,b,a){return I.tmpl(this[0],c,b,a);
},tmplItem:function(){return I.tmplItem(this[0]);},template:function(a){return I.template(a,this[0]);
},domManip:function(c,g,h,b){if(c[0]&&c[0].nodeType){var f=I.makeArray(arguments),e=c.length,d=0,a;
while(d<e&&!(a=I.data(c[d++],"tmplItem"))){}if(e>1){f[0]=[I.makeArray(c)];}if(a&&Q){f[2]=function(i){I.tmpl.afterManip(this,i,h);
};}T.apply(this,f);}else{T.apply(this,arguments);}Q=0;if(!Y){I.tmpl.complete(P);}return this;
}});I.extend({tmpl:function(c,f,e,b){var d,a=!b;if(a){b=X;c=I.template[c]||I.template(null,c);
E={};}else{if(!c){c=b.tmpl;P[b.key]=b;b.nodes=[];if(b.wrapped){S(b,b.wrapped);}return I(M(b,null,b.tmpl(I,b)));
}}if(!c){return[];}if(typeof f==="function"){f=f.call(b||{});}if(e&&e.wrapped){S(e,e.wrapped);
}d=I.isArray(f)?I.map(f,function(g){return g?K(e,b,c,g):null;}):[K(e,b,c,f)];return a?I(M(b,null,d)):d;
},tmplItem:function(b){var a;if(b instanceof I){b=b[0];}while(b&&b.nodeType===1&&!(a=I.data(b,"tmplItem"))&&(b=b.parentNode)){}return a||X;
},template:function(b,a){if(a){if(typeof a==="string"){a=L(a);}else{if(a instanceof I){a=a[0]||{};
}}if(a.nodeType){a=I.data(a,"tmpl")||I.data(a,"tmpl",L(a.innerHTML));}return typeof b==="string"?(I.template[b]=a):a;
}return b?(typeof b!=="string"?I.template(null,b):(I.template[b]||I.template(null,U.test(b)?b:I(b)))):null;
},encode:function(a){return(""+a).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;");
}});I.extend(I.tmpl,{tag:{"tmpl":{_default:{$2:"null"},open:"if($notnull_1){_=_.concat($item.nest($1,$2));}"},"wrap":{_default:{$2:"null"},open:"$item.calls(_,$1,$2);_=[];",close:"call=$item.calls();_=call._.concat($item.wrap(call,_));"},"each":{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},"html":{open:"if($notnull_1){_.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){_.push($.encode($1a));}"},"!":{open:""}},complete:function(a){P={};
},afterManip:function V(c,a,d){var b=a.nodeType===11?I.makeArray(a.childNodes):a.nodeType===1?[a]:[];
d.call(c,a);O(b);Q++;}});function M(a,e,c){var d,b=c?I.map(c,function(f){return(typeof f==="string")?(a.key?f.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+H+'="'+a.key+'" $2'):f):M(f,a,f._ctnt);
}):a;if(e){return b;}b=b.join("");b.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(g,h,f,i){d=I(f).get();
O(d);if(h){d=A(h).concat(d);}if(i){d=d.concat(A(i));}});return d?d:A(b);}function A(b){var a=document.createElement("div");
a.innerHTML=b;return I.makeArray(a.childNodes);}function L(a){return new Function("jQuery","$item","var $=jQuery,call,_=[],$data=$item.data;"+"with($data){_.push('"+I.trim(a).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(i,c,g,d,e,j,f){var l=I.tmpl.tag[g],b,h,k;
if(!l){throw"Template command not found: "+g;}b=l._default||[];if(j&&!/\w$/.test(e)){e+=j;
j="";}if(e){e=J(e);f=f?(","+J(f)+")"):(j?")":"");h=j?(e.indexOf(".")>-1?e+j:("("+e+").call($item"+f)):e;
k=j?h:"(typeof("+e+")==='function'?("+e+").call($item):("+e+"))";}else{k=h=b.$1||"null";
}d=J(d);return"');"+l[c?"close":"open"].split("$notnull_1").join(e?"typeof("+e+")!=='undefined' && ("+e+")!=null":"true").split("$1a").join(k).split("$1").join(h).split("$2").join(d?d.replace(/\s*([^\(]+)\s*(\((.*?)\))?/g,function(n,m,o,p){p=p?(","+p+")"):(o?")":"");
return p?("("+m+").call($item"+p):n;}):(b.$2||""))+"_.push('";})+"');}return _;");
}function S(b,a){b._wrap=M(b,true,I.isArray(a)?a:[U.test(a)?a:I(a).html()]).join("");
}function J(a){return a?a.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null;}function D(a){var b=document.createElement("div");
b.appendChild(a.cloneNode(true));return b.innerHTML;}function O(g){var j="_"+Q,b,a,e={},f,d,c;
for(f=0,d=g.length;f<d;f++){if((b=g[f]).nodeType!==1){continue;}a=b.getElementsByTagName("*");
for(c=a.length-1;c>=0;c--){h(a[c]);}h(b);}function h(o){var l,n=o,m,i,k;if((k=o.getAttribute(H))){while(n.parentNode&&(n=n.parentNode).nodeType===1&&!(l=n.getAttribute(H))){}if(l!==k){n=n.parentNode?(n.nodeType===11?0:(n.getAttribute(H)||0)):0;
if(!(i=P[k])){i=E[k];i=K(i,P[n]||E[n],null,true);i.key=++W;P[W]=i;}if(Q){p(k);}}o.removeAttribute(H);
}else{if(Q&&(i=I.data(o,"tmplItem"))){p(i.key);P[i.key]=i;n=I.data(o.parentNode,"tmplItem");
n=n?n.key:0;}}if(i){m=i;while(m&&m.key!=n){m.nodes.push(o);m=m.parent;}delete i._ctnt;
delete i._wrap;I.data(o,"tmplItem",i);}function p(q){q=q+j;i=e[q]=(e[q]||K(i,P[i.parent.key+j]||i.parent,null,true));
}}}function C(c,a,d,b){if(!c){return G.pop();}G.push({_:c,tmpl:a,item:this,data:d,options:b});
}function B(a,c,b){return I.tmpl(I.template(a),c,b,this);}function N(c,a){var b=c.options||{};
b.wrapped=a;return I.tmpl(I.template(c.tmpl),c.data,b,c.item);}function R(b,c){var a=this._wrap;
return I.map(I(I.isArray(a)?a.join(""):a).filter(b||"*"),function(d){return c?d.innerText||d.textContent:d.outerHTML||D(d);
});}function Z(){var a=this.nodes;I.tmpl(null,null,null,this).insertBefore(a[0]);
I(a).remove();}})($sfr);(function(A){A.fn.selfcareRemonteControl=function(){selfcareRemoteControl={hashtag:null,lines:new Array(),$remote:null,context:"cms.sfr.fr",phonesInfos:new Array(),phonesInfosIndex:0,currentLineDatas:null,_init:function(B){this.$remote=A(B);
if(window.location.host=="cms.sfr.fr"){this.context="cms.sfr.fr";}var C=getCookie("JSESSIDRTM");
if(C!=false&&isAuthenticated()){this.hashtag=C.split(".")[0];this._callLinesDatas();
}},_callLinesDatas:function(){A.ajax({url:"https://"+this.context+"/webservices/userprofile/json/runtime/"+this.hashtag,cache:true,dataType:"jsonp",contentType:"json",jsonpCallback:"linescallback",success:function(C){selfcareRemoteControl.lines.push(C.fiche);
if(sfrIstConfig.myLinesSelectedItem!=0&&getCookie("encrypted")!=false){var D=getCookie("encrypted");
if(typeof selfcareRemoteControl.lines[0].lignesMobiles!="undefined"){for(var B=0;
B<selfcareRemoteControl.lines[0].lignesMobiles.length;B++){if(D==selfcareRemoteControl.lines[0].lignesMobiles[B].encrypted){selfcareRemoteControl.lines[0].lignesMobiles[B].selectedLine=true;
selfcareRemoteControl.lines[0].lignesMobiles[B].selectedItem=sfrIstConfig.myLinesSelectedItem;
selfcareRemoteControl.currentLineDatas=selfcareRemoteControl.lines[0].lignesMobiles[B];
break;}else{selfcareRemoteControl.lines[0].lignesMobiles[B].selectedLine=false;}}}if(typeof selfcareRemoteControl.lines[0].lignesFixes!="undefined"){for(var B=0;
B<selfcareRemoteControl.lines[0].lignesFixes.length;B++){if(D==selfcareRemoteControl.lines[0].lignesFixes[B].encrypted){selfcareRemoteControl.lines[0].lignesFixes[B].selectedLine=true;
selfcareRemoteControl.lines[0].lignesFixes[B].selectedItem=sfrIstConfig.myLinesSelectedItem;
break;}else{selfcareRemoteControl.lines[0].lignesFixes[B].selectedLine=false;}}}if(typeof selfcareRemoteControl.lines[0].lignes3g!="undefined"){for(var B=0;
B<selfcareRemoteControl.lines[0].lignes3g.length;B++){if(D==selfcareRemoteControl.lines[0].lignes3g[B].encrypted){selfcareRemoteControl.lines[0].lignes3g[B].selectedLine=true;
selfcareRemoteControl.lines[0].lignes3g[B].selectedItem=sfrIstConfig.myLinesSelectedItem;
break;}else{selfcareRemoteControl.lines[0].lignes3g[B].selectedLine=false;}}}}selfcareRemoteControl._getPhonesInfos();
}});},_getPhonesInfos:function(){if(typeof selfcareRemoteControl.lines[0].lignesMobiles!="undefined"){for(var B=0;
B<this.lines[0].lignesMobiles.length;B++){sfrPhoneInfos(this.lines[0].lignesMobiles[B].bacarat,"selfcareRemoteControl._storePhoneInfos");
}}},_storePhoneInfos:function(B){if(B!=null){this.phonesInfos[B.id]=B;}this.phonesInfosIndex+=1;
if(this.phonesInfosIndex==this.lines[0].lignesMobiles.length){this._pushPhoneInfos();
}},_pushPhoneInfos:function(){if(typeof this.lines[0].lignesMobiles!="undefined"){for(var B=0;
B<this.lines[0].lignesMobiles.length;B++){if(this.phonesInfos[this.lines[0].lignesMobiles[B].bacarat]){this.lines[0].lignesMobiles[B].phoneInfos=this.phonesInfos[this.lines[0].lignesMobiles[B].bacarat];
}else{this.lines[0].lignesMobiles[B].phoneInfos=false;}}}this._renderTemplate();},_renderTemplate:function(){A("#mobileTemplate").tmpl(this.lines,{getDateFromTimestamp:function(D){function C(E){if(E<10){return"0"+E;
}else{return E;}}var B=new Date(D);return C(B.getDate())+"/"+C(Number(B.getMonth()+1))+"/"+B.getFullYear();
}}).appendTo("#templateRender");this._loadImages();if(typeof fillLineInfos=="function"){console.log(this.currentLineDatas);
fillLineInfos(this.currentLineDatas);}},_loadImages:function(){var E=this.$remote.find("img");
if(E.size()>0){var F=0;var C=false;function D(){F++;if(F==E.size()&&!C){C=true;selfcareRemoteControl._launchPositionning(selfcareRemoteControl.$remote);
}}var B=new Date();E.each(function(){var G=new Image();G.src=A(this).attr("src");
if(G.complete){D();}else{G.onload=function(){D();};}});}else{this._launchPositionning(this.$remote);
}},_launchPositionning:function(D){var B=D.find(".sfrRcContentWrapper:not(.selectedContent) .rcButton, #sfrMoreLine .rcButton");
B.each(function(){A(this).css({"top":selfcareRemoteControl._adjustRcButtonPos(this)}).fadeIn(1000);
});if(!A.browser.msie){this._drawCanvasArrow(D);}else{var C=D.find(".selectedContent .rcButton");
C.each(function(){A(this).css({"top":selfcareRemoteControl._adjustRcButtonPos(this)}).show();
});}this._bindContentClick();A("#sfrRcMask").animate({top:this.$remote.height()},1000,"swing",function(){A("#sfrRcPontis").slideDown();
});},_showLineInfos:function(B){A("#sfrRemoteControl .sfrRcWrapper").eq(B).slideDown("slow");
B+=1;if(B<A("#sfrRemoteControl .sfrRcWrapper").length){setTimeout("selfcareRemoteControl._showLineInfos("+B+")",1000);
}},_adjustRcButtonPos:function(G){var C=A(G);var F=C.parent();var E=C.height();var D=F.innerHeight();
var B=Math.round((D/2)-(E/2));return B;},_drawCanvasArrow:function(D){var B=D.find(".selectedContent");
var C=0;B.each(function(){var H=A(this);var I=H.innerHeight();var F=I/2;var J=A('<canvas id="sfrSelectedCanvas_'+C+'" width="25" height="eltHeight" class="sfrCanvas" />');
H.append(J);var G=document.getElementById("sfrSelectedCanvas_"+C);var E=G.getContext("2d");
E.save();E.beginPath();E.moveTo(0,0);E.lineTo(0,I);E.lineTo(20,F);E.lineTo(0,0);E.closePath();
E.fillStyle="rgb(89, 89, 89)";E.shadowColor="black";E.shadowBlur=5;E.fill();E.restore();
C++;});},_bindContentClick:function(){var B=this.$remote.find(".sfrRcContentWrapper");
B.hover(function(){A(this).toggleClass("sfrRcContentWrapperHover");},function(){A(this).toggleClass("sfrRcContentWrapperHover");
}).click(function(D){D.preventDefault();var C=A(this).find(".rcButton");var E=C.attr("href").split("#");
setCookie("encrypted",E[1],{path:"/"});document.location.href=E[0];return false;});
}};return this.each(function(){selfcareRemoteControl._init(this);});};})($sfr);
