var _navigateur=(function(){var E=IsOP=IsIE=IsWebKit=IsSafari=IsChrome=IsMac=IsWin=IsLinux=false;
var F=H=A="";var G=0;var A=navigator?navigator.userAgent.toLowerCase():false;
var H=navigator&&navigator.platform.toLowerCase()||"";
var I=function(K,J){return(String(K).toLowerCase().indexOf(String(J).toLowerCase())>-1)
};var C=(function(){if(A){IsOP=window.opera?true:false;
IsIE=(!IsOP&&I(A,"msie")&&document.all);IsWebKit=(!IsOP&&I(A,"webkit"));
E=(!IsOP&&!I(A,"webkit")&&!!navigator.product&&navigator.product.toLowerCase()=="gecko");
IsChrome=window.chrome?true:false;IsSafari=(!E&&IsWebKit&&!IsChrome)
}})();var B=(function(){IsMac=I(H,"mac");IsWin=I(H,"win");
IsLinux=I(H,"linux");var J=navigator.appVersion.toLowerCase();
if(!J){J=""}IsLinux=(!!navigator&&(I(J,"x11")||I(J,"unix")))
})();var D=function(){if(IsOP){var L=window.opera.version;
G=(typeof L=="function")?L():L}else{var K="";if(E){if(I(A,"firefox/")){K=/firefox\/(\S+)/
}else{if(I(A,"clr")){K=/clr\/(\S+)/}else{if(I(A,"iceweasel")){K=/iceweasel\/(\S+)/
}else{if(I(A,"icecat")){K=/icecat\/(\S+)/}}}}}else{if(IsIE){K=/msie\s+([^\);]+)(\)|;)/
}else{if(IsWebKit){K=/webkit\/(\S+)/}}}if(K!=""){try{K=K.exec(A)?K.exec(A)[1]:"";
G=isNaN(parseFloat(K,10))?0:parseFloat(K,10)}catch(J){}}}}();
if(IsOP){F="opera"}else{if(IsIE){F="ie"}else{if(E){F="firefox"
}else{if(IsChrome){F="chrome"}else{if(IsSafari){F="safari"
}}}}}if(IsMac){H="mac"}if(IsWin){H="win"}if(IsLinux){H="linux"
}if(!F){F="firefox"}if(!H){H="win"}if(!G){G=2}return{browser:F,version:G,platform:H}
})();if(typeof _JSdebug=="undefined"){var _JSdebug=false
}var _Developer="";var _ErrorCommunication="La communication avec nos serveurs n'a pu aboutir.\nMerci de réessayer dans quelques instants.";
var _ErrorScript="Une erreur est survenue, veuillez nous en excuser.\nMerci de réessayer dans quelques instants.\nSi cette erreur persiste, merci de contacter notre service client.";
var _editorVersion="2.2";var _RessourcesFolder="/ressources/";
var _RessourcesFolderPictures=_RessourcesFolder+"pictures/";
var _RessourcesFolderEditeur=_RessourcesFolder+"editeur/";
var _RessourcesFolderSession=_RessourcesFolder+"session/";
var _RessourcesFolderSharing=_RessourcesFolder+"sharing/";
var _VolumeTemp="/volumeTmp/";var _MutualFolder="/mutual/";
function RetrieveTextPath(C){var B=C.toString().split("");
var D="";for(var A=0;A<10;A++){D+=B[A]+"/"}return _VolumeTemp+D+C+".png"
}function FormatTextString(B,A){if(B==null||B.length==0){return""
}if(A=="2xml"){return String(B).replace(new RegExp(String.fromCharCode(38),"g"),"&amp;").replace(new RegExp(String.fromCharCode(60),"g"),"&lt;").replace(new RegExp(String.fromCharCode(62),"g"),"&gt;").replace(new RegExp(String.fromCharCode(34),"g"),"&quot;").replace(new RegExp(String.fromCharCode(39),"g"),"&apos;").replace(new RegExp(String.fromCharCode(145),"g"),"").replace(new RegExp(String.fromCharCode(146),"g"),"")
}if(A=="2html"){return String(B).replace(/\&apos\;/g,"'").replace(/\n/g,"<br>")
}if(A=="2text"){return String(B).replace(/\&amp\;/g,"&").replace(/\&lt\;/g,"<").replace(/\&gt\;/g,">").replace(/\&quot\;/g,'"').replace(/\&apos\;/g,"'").replace(new RegExp(String.fromCharCode(9),"g")," ")
}}function GrabPictureChemin(E){if(typeof E!="object"){E=PLg(E)
}if(!E){return }if(E.src==""){return }var A=E.src.split("/");
var B="";for(var C=0,D=A.length-1;C<D;C++){B+=A[C]+"/"
}return B}function ResetFieldValue(A){if(A.value==A.alt){A.value=""
}setGlobalEvent(A,"blur",function(){RevertResetFieldValue(A)
})}function RevertResetFieldValue(A){if(A.value==""){A.value=A.alt
}}var _PLDisplayMessageTimer=null;function PLDisplayMessage(B,D,C){if(PLg(B)){var A=null;
if(_PLDisplayMessageTimer==null){A=PLg(B).innerHTML.JSQuotes()
}PLg(B).innerHTML='<span style="color:red;font-weight:bold">'+D+"</span>";
if(!C&&A!=null){_PLDisplayMessageTimer=window.setTimeout("PLDisplayMessageReset('"+B+"','"+A+"')",6000)
}PLpopUpResize()}}function PLDisplayMessageReset(B,A){_PLDisplayMessageTimer=null;
if(PLg(B)){PLg(B).innerHTML=A;PLpopUpResize()}}function PLSignalInputError(D,E){if(killDblClick(arguments.callee)){return 
}try{var C=PLg(D);if(C){if((C.tagName.toLowerCase()=="input"&&C.type.toLowerCase()!="password")||C.tagName=="TEXTAREA"){if(C.value==E){return 
}var A=PLescape(C.value);C.style.color=C.style.borderColor="#"+_ColorA;
C.value=E}else{if((C.tagName.toLowerCase()=="input"&&C.type.toLowerCase()=="password")){C.style.position="relative";
var A="";if(E){CreateGraphicObjectV2({Otarget:"body",Otype:"DIV",id:"SignalInputErrorDiv",className:"txt","class":"txt",style:{background:"#"+_ColorA,position:"absolute",padding:"2px 5px 2px 5px",top:(PLgetPosTop(C))+"px",left:(PLgetPosLeft(C))+"px",zIndex:999999,color:"white"},innerHTML:E.JSQuotes()});
PLg("SignalInputErrorDiv").onclick=function(){PLSignalInputErrorReset(D,PLUnescape(A))
}}}else{if(C.tagName.toLowerCase()=="div"){var A="";
C.style.border="2px dotted #"+_ColorA;C.style.padding="5px";
C.style.position="relative";C.style.marginBottom="15px";
if(E){CreateGraphicObjectV2({Otarget:C,Otype:"DIV",id:"SignalInputErrorDiv",className:"txt","class":"txt",style:{clear:"both",background:"#"+_ColorA,position:"relative",padding:"2px 5px 2px 5px",color:"white",zIndex:200002,clear:"both",marginTop:"3px"},innerHTML:E.JSQuotes()})
}}}}C.onfocus=function(){PLSignalInputErrorReset(D,A)
};_PLSignalInputErrorTO[D]=setTimeout("PLSignalInputErrorReset('"+D+"','"+A.JSQuotes()+"')",1500)
}}catch(B){Stack="target : "+PLescape(D.toString())+"\nmssg : "+PLescape(E.toString());
ErrorHandler("Erreur de la fonction PLSignalInputError",document.location,352,Stack)
}}var _PLSignalInputErrorTO=[];function PLSignalInputErrorReset(C,A){if(typeof _PLSignalInputErrorTO[C]=="number"){clearTimeout(_PLSignalInputErrorTO[C])
}if(PLg(C)){PLg(C).onfocus="";if((PLg(C).tagName.toLowerCase()=="input"&&PLg(C).type.toLowerCase()!="password")||PLg(C).tagName=="TEXTAREA"){PLg(C).style.color=PLg(C).style.borderColor="";
PLg(C).value=PLUnescape(A);try{PLg(C).focus()}catch(B){}}else{if((PLg(C).tagName.toLowerCase()=="input"&&PLg(C).type.toLowerCase()=="password")){RemoveElement("SignalInputErrorDiv");
try{PLg(C).focus()}catch(B){}}else{if(PLg(C).tagName.toLowerCase()=="div"){PLg(C).style.border="";
PLg(C).style.padding="";PLg(C).style.marginBottom="";
RemoveElement("SignalInputErrorDiv")}}}}}function ResetMultipleObjectsBorders(G,B,F,E,A){var H=document.getElementsByTagName(G);
for(var C=0,D=H.length;C<D;C++){if(H[C].id.length>0&&H[C].id.indexOf(B)==0){H[C].style.border=F+"px "+E+" "+A
}}}function Scrollify(F,C,J,D,H,E,G){if(typeof F!="object"){F=PLg(F)
}if(F.id==""||F.id=="undefined"||F.id==null){F.id=="scrollified_"+new Date().getTime()
}if(PLg(F.id+"_container")){var B=PLg(F.id+"_container");
B.style.width=C+"px";B.style.height=J+"px";B.style.position="relative"
}F.style.position="absolute";F.style.left=F.style.top="0px";
F.M_orientation=D;F.M_delay=E;F.M_clipWidth=F.M_InitclipWidth=C;
F.M_clipHeight=F.M_InitclipHeight=J;F.M_clipTop=F.M_clipLeft=0;
F.M_pas=H;if(G){if((_navigateur.browser=="ie")){setGlobalEvent(F,"mousewheel",function(){var K=(event.wheelDelta<0)?true:false;
DoScroll(F.id,K);DoScrollStop(F.id);return false})}else{setGlobalEvent(F,"DOMMouseScroll",function(L){var K=(L.detail<0)?false:true;
DoScroll(F.id,K);DoScrollStop(F.id);if(L.preventDefault){L.preventDefault()
}})}}F.style.clip="rect("+F.M_clipTop+"px,"+F.M_clipWidth+"px,"+F.M_clipHeight+"px,"+F.M_clipLeft+"px)";
var I=PLg(F.id+"_next");if(I){setGlobalEvent(I,"mousedown",function(){DoScroll(F.id,true)
});setGlobalEvent(I,"mouseup",function(){DoScrollStop(F.id)
});setGlobalEvent(I,"mouseout",function(){DoScrollStop(F.id)
})}var A=PLg(F.id+"_prev");if(A){setGlobalEvent(A,"mousedown",function(){DoScroll(F.id,false)
});setGlobalEvent(A,"mouseup",function(){DoScrollStop(F.id)
});setGlobalEvent(A,"mouseout",function(){DoScrollStop(F.id)
})}}function DoScroll(D,F,A){if(typeof D!="object"){D=PLg(D)
}var I=parseInt(D.M_clipLeft,10);var B=parseInt(D.M_clipTop,10);
var G=parseInt(D.M_clipWidth,10);var C=parseInt(D.M_clipHeight,10);
var H=parseInt(D.style.left,10);var J=parseInt(D.style.top,10);
if(F){var E=D.M_pas}else{var E=D.M_pas*-1}if(D.offsetWidth>D.M_InitclipWidth||D.offsetHeight>D.M_InitclipHeight){if(typeof (A)!="number"){if(D.M_orientation=="h"){I+=E;
G+=E;H-=E;if(I<5){I=0;G=D.M_InitclipWidth;H=0}if(G>D.offsetWidth){I=D.offsetWidth-D.M_InitclipWidth;
G=D.offsetWidth;H=I*-1}clipstring="rect("+B+"px,"+G+"px,"+C+"px,"+I+"px)";
D.style.clip=clipstring;D.style.left=H+"px"}else{alert("a faire...")
}D.M_clipLeft=I;D.M_clipTop=B;D.M_clipWidth=G;D.M_clipHeight=C;
D.timer=window.setTimeout(CallDoScroll(D.id,F),D.M_delay)
}else{if(D.M_orientation=="h"){I=A;G=A+D.M_InitclipWidth;
H=A*-1;if(G>D.offsetWidth){I=D.offsetWidth-D.M_InitclipWidth;
G=D.offsetWidth;H=I*-1}clipstring="rect("+B+"px,"+G+"px,"+C+"px,"+I+"px)";
D.style.clip=clipstring;D.style.left=H+"px";D.M_clipLeft=I;
D.M_clipTop=B;D.M_clipWidth=G;D.M_clipHeight=C}}}}function CallDoScroll(B,A){return function(){DoScroll(PLg(B),A)
}}function DoScrollStop(A){if(typeof A!="object"){A=PLg(A)
}if(A.timer){clearTimeout(A.timer)}}function XssClean(A){return A.toString().replace("<script","").replace("< script","").replace("<scr\nipt","")
}function DoDecalPos(G,A){var J=parseInt(G.M_clipLeft,10);
var C=parseInt(G.M_clipTop,10);var H=parseInt(G.M_clipWidth,10);
var D=parseInt(G.M_clipHeight,10);var I=parseInt(G.style.left,10);
var K=parseInt(G.style.top,10);var F=PLgetPosLeft(PLg("ironPage_"+CurrentPage));
if(F>A){var E=F-A;J+=E+1;H+=E+1}if(F<A){var B=A-F;J-=B;
H-=B}if(J<5){J=0;H=G.M_InitclipWidth;I=0}if(H>G.offsetWidth){J=G.offsetWidth-G.M_InitclipWidth;
H=G.offsetWidth}I=J*-1;clipstring="rect("+C+"px,"+H+"px,"+D+"px,"+J+"px)";
G.style.clip=clipstring;G.style.left=I+"px";G.M_clipLeft=J;
G.M_clipTop=C;G.M_clipWidth=H;G.M_clipHeight=D}function FormatPrice(A){if(isNaN(parseFloat(A,10))){return 
}return parseFloat(A,10).toFixed(2).toString().replace(".",",")+"&nbsp;&euro;"
}String.prototype.isValidEmail=function(){var A=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return A.test(this)};String.prototype.isValidDate=function(){var ladate=(this).split("/");
if((ladate.length!=3)||isNaN(ladate[0])||isNaN(ladate[1])||isNaN(ladate[2])){return false
}try{var unedate=new Date(ladate[2],ladate[1]-1,ladate[0])
}catch(e){Stack="this : "+this.toString();ErrorHandler("Erreur de la fonction isValidDate",document.location,626,Stack)
}var annee=unedate.getYear();if((Math.abs(annee)+"").length<4){annee=annee+1900
}return((unedate.getDate()==eval(ladate[0]))&&(unedate.getMonth()==eval(ladate[1])-1)&&(annee==eval(ladate[2])))
};function pop(A){if(PLg(A).style.display=="none"){PLg(A).style.display="block"
}else{PLg(A).style.display="none"}}function Dragify(G,B,F,M){function K(O){var P=(_navigateur.browser=="ie")?event.clientY+GetDoc().scrollTop:O.pageY;
var Q=(_navigateur.browser=="ie")?event.clientX+GetDoc().scrollLeft:O.pageX;
var P=P<0?0:P;var Q=Q<0?0:Q;return{Y:P,X:Q}}function L(O){if(!H){G.style.top=(parseInt((J=K(O).Y+D-N+"px"),10))+"px";
G.style.left=(parseInt((I=K(O).X+E-A+"px"),10))+"px";
PLpopUpResizeShade(G)}}function C(){H=1;SetOpacity(G,100);
removeGlobalEvent(document,"mousemove",L);removeGlobalEvent(document,"mouseup",C);
if(typeof M=="object"){B.call(M,parseInt(G.style.left,10),parseInt(G.style.top,10))
}else{if(typeof B=="function"){B(parseInt(G.style.left,10),parseInt(G.style.top,10))
}}}SetOpacity(G,90);G.style.cursor="move";setGlobalEvent(G,"selectstart",function(){return false
});setGlobalEvent(document,"mousemove",L);setGlobalEvent(document,"mouseup",C);
var E=parseInt(G.style.left),D=parseInt(G.style.top),A=K(F).X,N=K(F).Y,J,I,H
}function DragifyV2(G,D){function K(O){var P=(_navigateur.browser=="ie")?event.clientY+GetDoc().scrollTop:O.pageY;
var Q=(_navigateur.browser=="ie")?event.clientX+GetDoc().scrollLeft:O.pageX;
P=P<0?0:P;Q=Q<0?0:Q;return{Y:P,X:Q}}function M(O){if(!H){if(D.moveY){I=(K(O).Y+E-N);
D.elem.style.top=I+"px"}if(D.moveX){J=(K(O).X+F-A);
if(J<D.moveX.low){return }if(J>D.moveX.high){return 
}if(typeof D.moveX.mid!="undefined"&&J>D.moveX.mid-6&&J<D.moveX.mid+6){J=parseInt(D.moveX.mid,10)
}D.elem.style.left=J+"px"}PLpopUpResizeShade(D.elem);
if(typeof D.dragCallBack=="function"){D.dragCallBack(parseInt(D.elem.style.left,10),parseInt(D.elem.style.top,10))
}}}function C(){H=1;if(_navigateur.browser!="ie"){SetOpacity(D.elem,100)
}removeGlobalEvent(document,"mousemove",M);removeGlobalEvent(document,"mouseup",C);
removeGlobalEvent(D.elem,"mouseup",C);if(D.backObjects){for(var O=0,P=D.backObjects.length;
O<P;O++){removeGlobalEvent(D.backObjects[O],"mouseup",C);
removeGlobalEvent(D.backObjects[O],"mousemove",M)}}if(D.callBack){if(typeof D.scope=="object"){D.callBack.call(D.scope,parseInt(D.elem.style.left,10),parseInt(D.elem.style.top,10))
}else{if(typeof D.callBack=="function"){D.callBack(parseInt(D.elem.style.left,10),parseInt(D.elem.style.top,10))
}}}}if(_navigateur.browser!="ie"){SetOpacity(D.elem,60)
}if(D.moveX&&D.moveY){D.elem.style.cursor="move"}else{if(D.moveX){D.elem.style.cursor="e-resize"
}if(D.moveY){D.elem.style.cursor="n-resize"}}setGlobalEvent(D.elem,"selectstart",function(){return false
});setGlobalEvent(document,"mousemove",M);setGlobalEvent(document,"mouseup",C);
setGlobalEvent(D.elem,"mouseup",C);if(D.backObjects){for(var B=0,L=D.backObjects.length;
B<L;B++){setGlobalEvent(D.backObjects[B],"mouseup",C);
setGlobalEvent(D.backObjects[B],"mousemove",M)}}if(typeof D.moveX.mid=="number"){CreateGraphicObjectV2({Otype:"DIV",Otarget:D.elem.offsetParent,style:{left:D.moveX.mid+6+"px"},className:"sliderMidRep Unselect",innerHTML:'<img src="/p2/p.gif" style="width:1px;height:1px">'})
}var F=parseInt(D.elem.style.left),E=parseInt(D.elem.style.top),A=K(G).X,N=K(G).Y,J,I,H
}function PLg(A){return document.getElementById(A)}function GetDoc(){return{scrollTop:(document.documentElement.scrollTop||document.body.scrollTop),scrollLeft:(document.documentElement.scrollLeft||document.body.scrollLeft)}
}function GetUserPartnerContext(A){switch(A){case"mayProposeSignUp":return(!GetUserInfo("MemberId")&&!GetUserPartnerContext("isOrangeUser")&&!GetUserPartnerContext("isGeoUser"));
break;case"cartePHSpricing":return(GetUserInfo("PartnerShip")==1||GetUserPartnerContext("isOrangeUser"));
break;case"getOrangeServiceName":if(GetUserInfo("PartnerShip")==11){return"service Photo Orange"
}else{if(GetUserInfo("PartnerShip")==26){return"service Mes donn&eacute;es"
}}break;case"isPHSUser":return(GetUserInfo("PartnerShip")==1);
break;case"isINDIGOuser":return(GetUserInfo("PartnerShip")==5);
break;case"isGeoUser":return(GetUserInfo("PartnerShip")==38);
break;case"isOrangeUser":return(GetUserInfo("PartnerShip")==11||GetUserInfo("PartnerShip")==26);
break;case"isPikeoUser":if(typeof GetUserInfo("Legacy")=="undefined"){return false
}if(typeof GetUserInfo("Legacy").id=="undefined"){return false
}return(GetUserInfo("Legacy").id==28);break;case"mediaselectorAvalaible":return(GetUserPartnerContext("isOrangeUser")&&GetUserInfo("MemberId")&&GetUserInfo("ORAalbums"));
break;case"releaseState":return _SContext.release;break;
default:ErrorHandler("Critere non defini pour GetUserPartnerContext()",document.location,38);
break}}function GetUserInfo(A){if(typeof G_User[A]!="undefined"){return G_User[A]
}else{return false}}function GetUnicId(){return String(new Date().getTime())+"_"+randRange(1,99999999)
}function GetIDuser(){if(!IsCookieEnabled()){PLAlert("<b>Le support des COOKIES est d&eacute;sactiv&eacute; sur votre navigateur</b>  <br>Notre site requiert l'activation de cette fonctionnalit&eacute;. Merci d'autoriser la prise en charge des cookies avant de continuer.");
return false}if(!GetUserInfo("IDuser")){ErrorHandler("G_User.IDuser indefini a l'appel de GetIDuser()",document.location,11);
return false}else{return GetUserInfo("IDuser")}}function ReturnJsonValue(C,A){var B="";
if(C!=null){B=[B,'"',String(C),'":'].join("")}if(typeof A=="boolean"||A=="true"||A=="false"){return[B,A].join("")
}if(A===""){return[B,'""'].join("")}if(A==null||A=="null"){return[B,"null"].join("")
}if(typeof A=="number"){return[B,A].join("")}if(String(parseFloat(A,10))==A){if(A.length==6&&C!=null&&C.toLowerCase().indexOf("color")<0){return[B,A].join("")
}}return[B,'"',EscapeJsonSChars(String(A)),'"'].join("")
}String.prototype.EscDblQuotes=Number.prototype.EscDblQuotes=function(){return this.toString().replace(new RegExp('"',"g"),'\\"')
};String.prototype.escapeSChars=function(){return this.replace(new RegExp(String.fromCharCode(13),"g"),"").replace(new RegExp(String.fromCharCode(12),"g"),"").replace(new RegExp(String.fromCharCode(10),"g"),"\\n").replace(new RegExp(String.fromCharCode(9),"g")," ").replace(new RegExp(String.fromCharCode(8),"g"),"")
};function EscapeJsonSChars(A){var C=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
var B={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};
return C.test(A)?A.replace(C,function(D){var E=B[D];
if(typeof E==="string"){return E}else{if(_navigateur.browser=="safari"&&_navigateur.version<=420){return D.replace(new RegExp(String.fromCharCode(13),"g"),"").replace(new RegExp(String.fromCharCode(12),"g"),"").replace(new RegExp(String.fromCharCode(10),"g"),"\\n").replace(new RegExp(String.fromCharCode(9),"g")," ").replace(new RegExp(String.fromCharCode(8),"g"),"")
}else{return"\\u"+("0000"+D.charCodeAt(0).toString(16)).slice(-4)
}}}):A}function SerializeJSON(D){var F="",E=false;if(typeof D!="object"||D===null){F=ReturnJsonValue(null,D)
}else{if(D instanceof Array){F=[F,"["].join("");for(var C=0,A=D.length;
C<A;C++){if(C>0){F=[F,","].join("")}if(typeof D[C]!="object"||D[C].length===null){F=[F,ReturnJsonValue(null,D[C])].join("")
}else{F=[F,SerializeJSON(D[C])].join("")}}F=[F,"]"].join("")
}else{F=[F,"{"].join("");for(var B in D){if(E){F=[F,","].join("")
}else{E=true}F=[F,'"',B.toString(),'":',SerializeJSON(D[B])].join("")
}F=[F,"}"].join("")}}return F}function Digest(E,A){if(!A){var A="\n"
}if(typeof (E)!="object"){return E}if(E==null){return E
}var C="";for(var B in E){try{if(E instanceof Array){C+=A+"[ "+B+" ] : "
}else{C+='"'+B+'" : '}if(E[B]==null||E[B].tagName||typeof E[B]=="event"){C+=E[B]+A
}else{C+=Digest(E[B],A)+A}}catch(D){}}return C}function Clone(C){if(typeof C!="object"||C===null){return C
}else{if(C instanceof Array){var E=[];for(var B=0,D=C.length;
B<D;B++){E[B]=Clone(C[B])}return E}else{var F={};for(var A in C){F[A]=Clone(C[A])
}return F}}}function getElementsByAttribute(G,H,I,C){var D=(H=="*"&&document.all)?document.all:G.getElementsByTagName(H);
var B=[];var F=(typeof C!="undefined")?new RegExp("(^|\\s)"+C+"(\\s|$)"):null;
var E;for(var A=D.length-1;A>=0;A--){E=D[A].getAttribute(I);
if(typeof E=="string"&&E.length>0){if(typeof C=="undefined"||(F&&F.test(E))){B.push(D[A])
}}}D=F=E=null;return B}function PLgetPosLeft(A){if(A.offsetParent){return(parseInt(A.offsetLeft,10)+PLgetPosLeft(A.offsetParent))
}else{return(parseInt(A.offsetLeft,10))}}function PLgetPosTop(A){if(A.offsetParent){return(parseInt(A.offsetTop,10)+PLgetPosTop(A.offsetParent))
}else{return(parseInt(A.offsetTop,10))}}var setGlobalEvent;
if(document.addEventListener){setGlobalEvent=function(A,C,B){A.addEventListener(C,B,false)
}}else{if(document.attachEvent){setGlobalEvent=function(A,C,B){A.attachEvent("on"+C,B)
}}else{setGlobalEvent=new Function}}var removeGlobalEvent;
if(document.removeEventListener){removeGlobalEvent=function(A,C,B){A.removeEventListener(C,B,false)
}}else{if(document.detachEvent){removeGlobalEvent=function(A,C,B){A.detachEvent("on"+C,B)
}}else{removeGlobalEvent=new Function}}function GetWindowSize(B){var C=window.innerWidth;
var C=(C)?C:document.documentElement.clientWidth;var C=(C)?C:document.body.clientWidth;
if(typeof (window.innerWidth)=="number"&&B){C=window.innerWidth-B
}var A=window.innerHeight;var A=(A)?A:document.documentElement.clientHeight;
var A=(A)?A:document.body.clientHeight;return{width:C,height:A}
}function getPageSize(){var C=GetWindowSize();var E=document.body.scrollWidth;
var A=(window.innerHeight&&window.scrollMaxY)?window.innerHeight+window.scrollMaxY:document.body.scrollHeight;
var B=(E<C.width)?C.width:E;var D=(A<C.height)?C.height:A;
return{width:B,height:D}}function CreateGraphicObject(ParamsObj){if(!ParamsObj||typeof ParamsObj!="object"||typeof ParamsObj.Otype=="undefined"){return 
}var TGO=document.createElement(ParamsObj.Otype);for(var key in ParamsObj){try{if(key!="Otype"&&key!="Otarget"){eval("TGO."+key+"='"+ParamsObj[key]+"'")
}}catch(o){}}if(ParamsObj.Otarget&&typeof ParamsObj.Otarget=="string"){if(ParamsObj.Otarget=="body"){document.body.appendChild(TGO)
}else{if(PLg(ParamsObj.Otarget)){PLg(ParamsObj.Otarget).appendChild(TGO)
}}}else{return TGO}}function CreateGraphicObjectV2(E){if(!E||typeof E!="object"||typeof E.Otype=="undefined"){return 
}var A,C=document.createElement(E.Otype);for(var D in E){if(D!="Otype"&&D!="Otarget"){if(typeof E[D]=="object"){for(var A in E[D]){C[D][A]=E[D][A]
}}else{C[D]=E[D]}}}D=A=null;if(E.Otarget){if(typeof E.Otarget=="string"){if(E.Otarget=="body"){document.body.appendChild(C)
}else{var B=PLg(E.Otarget);if(B){B.appendChild(C)}B=null
}}else{if(typeof E.Otarget=="object"){E.Otarget.appendChild(C)
}}C=null}else{return C}}function pushMe(A){if(typeof A!="object"){return 
}SetOpacity(A,50);setGlobalEvent(A,"mouseup",function(){SetOpacity(A,100)
});setGlobalEvent(A,"mouseout",function(){SetOpacity(A,100)
})}function AddButton2(Args){if(Args.TheId==null||typeof Args.TheId=="undefined"){var TheId=""
}var TheButton=CreateGraphicObjectV2({Otype:"DIV"});
if(TheId!=""){TheButton.id=TheId}TheButton.innerHTML='<div class="start"><a>'+Args.TheValue+"</a></div>";
TheButton.className="aButton "+Args.TheClass;if(Args.HelpBoxId){SetContextHelp({obj:TheButton,HelpId:Args.HelpBoxId})
}if(typeof Args.tabindex=="number"){TheButton.tabIndex=Args.tabindex
}TheButton.onclick=function(){eval(Args.TheAction)};
TheButton.onmousedown=function(){pushMe(this)};if(Args.TargetObject!=null){var TargetObject=null;
if(typeof Args.TargetObject!="object"){TargetObject=PLg(Args.TargetObject)
}if(TargetObject){if(Args.CleanTarget){TargetObject.innerHTML=""
}TargetObject.appendChild(TheButton)}TargetObject=TheButton=null
}else{return TheButton}}function AddButtonHTML(H,C,B,D,G,F,A){if(!G){var G="100%"
}if(H==null){var H=""}if(typeof F=="undefined"){var F=""
}F="width:"+G+";"+F;if(typeof A!="undefined"&&A!=""){var E='HelpBoxId="'+A+'"'
}else{var E=""}return ButtonData='<div id="'+H+'" style="'+F+'" onclick="'+D+'" class="aButton '+B+'" onmousedown="pushMe(this)" '+E+'><div class="start"><a>'+C+"</a></div></div>"
}Math.rounder=(function(){return function(A,C){C=Math.abs(parseInt(C))||0;
var B=Math.pow(10,C);return Math.round(A*B)/B}})();
function isEven(A){return((A-1)%2)}function SetFocus(B){try{PLg(B).focus()
}catch(A){}}function killBubble(A){if(!A){A=event}A.cancelBubble=true
}function PLescape(A){return encodeURIComponent(A)}function PLUnescape(A){return decodeURIComponent(A)
}function IsDefined(A){return(typeof A!=undefined)?true:false
}function resetHistory(){if(history.length){history.go(1)
}}function historyGoback(){if(history.length){history.go(-1)
}else{document.location="/"}}function IncDec(A,B){if(isNaN(parseInt(PLg(A).value,10))){PLg(A).value=0
}if(B){PLg(A).value=parseInt(PLg(A).value)+1}else{if(parseInt(PLg(A).value)>0){PLg(A).value=parseInt(PLg(A).value)-1
}}}function DisplayPNG(B,D,C,A){if(typeof B!="object"){var B=PLg(B)
}if(!B||!D){return }if((_navigateur.browser=="ie"&&_navigateur.version<7)&&D.indexOf(".png")>-1){if(!C){var C="crop"
}B.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+D+", sizingMethod="+C+")";
B.style.background="none"}else{if(!A){var A=""}B.style.background="url("+D+") "+A
}}String.prototype.Limit=Number.prototype.Limit=Boolean.prototype.Limit=function(A,F){if(!A){return this
}if(typeof F=="undefined"){var F=0}var B=this.toString().split("");
if(B.length>A){var E="";for(var C=0,D=A;C<D;C++){E+=B[C]
}return E+"..."}else{return this}};String.prototype.Trim=Number.prototype.Trim=function(){return this.toString(10).replace(/\s+/g,"")
};String.prototype.RemoveQuotes=Number.prototype.RemoveQuotes=function(){return this.toString().replace(/'/g,"")
};String.prototype.JSQuotes=Number.prototype.JSQuotes=function(){return this.toString().replace(/'/g,"\\'")
};Function.prototype.bind=function(A){var B=this;return function(){return B.apply(A,arguments)
}};function DoBind(C,A,B){return function(){if(C===true){C=this
}var D=typeof A==="string"?C[A]:A;return D.apply(C,Array.prototype.slice.call(B||[]).concat(Array.prototype.slice.call(arguments)))
}}function killDblClick(A){if(A.LastClick&&(new Date().getTime())-A.LastClick<1000){return true
}A.LastClick=new Date().getTime();return false}function JumpTo(B,A){if(typeof A!="undefined"){try{if(top.location!=self.document.location){top.location=B
}else{document.location=B}}catch(C){document.location=B
}}else{document.location=B}}function pourcentage(A,B){return((A/100)*B)
}var RemoveElement=function(A,B){if(typeof A!="object"){var A=PLg(A)
}if(!A){return }if(B||A.id==""){if(A&&A.parentNode){A.parentNode.removeChild(A)
}return }if(A.style){if(isNaN(parseInt(A.style.opacity,10))){A.style.opacity=1
}SetOpacity(A,(A.style.opacity-0.3)*100)}if(A.style.opacity<0.1){if(A&&A.parentNode){A.parentNode.removeChild(A)
}}else{window.setTimeout(function(){RemoveElement(A)
},1)}};var _FadeInSpeed=(_navigateur.browser=="ie")?2:100;
function FadeInObject(A){if(typeof A!="object"){A=PLg(A)
}if(!A||A.id==""){return }if(A.style){if(typeof A.style.opacity=="undefined"){A.style.opacity=0.1
}SetOpacity(A,(0.3+(parseFloat(A.style.opacity,10)))*100)
}if(A.style.opacity>=0.8){if(A.id=="ThePopUpBackgroundDiv"){SetOpacity(A,70)
}else{SetOpacity(A,100)}}else{window.setTimeout(function(){FadeInObject(A)
},_FadeInSpeed)}}function SetOpacity(A,B){if(typeof A!="object"){return 
}A.style.opacity=B/100;A.style.filter=["alpha(opacity=",B,")"].join("")
}function SetObjectCoords(B,E,D,C,A){if(typeof B!="object"||B==null||B=="null"){return 
}if(!isNaN(parseInt(E,10))){B.style.top=parseInt(E,10)+"px"
}if(!isNaN(parseInt(D,10))){B.style.left=parseInt(D,10)+"px"
}if(!isNaN(parseInt(C,10))&&parseInt(C,10)>0){B.style.width=parseInt(C,10)+"px"
}if(!isNaN(parseInt(A,10))&&parseInt(A,10)>0){B.style.height=parseInt(A,10)+"px"
}}function randRange(B,A){return Math.floor(Math.random()*(A-B+1))+B
}function ListAppend(A,C,B){if(!B){var B=","}if(A.length<1){return String(C)
}else{return[A,"",B,"",String(C)].join("")}}function ListAppendUnic(A,E,D){A=A.toString();
if(!D){var D=","}if(A.length<1){return E}else{var F=String(A).split(D);
for(var B=0,C=F.length;B<C;B++){if(F[B]===String(E)){return A
}}return[A,"",D,"",String(E)].join("")}}function ListFind(A,F,E){A=A.toString();
if(!E){var E=","}if(A.length<1){return -1}if(A.indexOf(E)<0){var C=[A]
}else{var C=A.split(E)}for(var B=0,D=C.length;B<D;B++){if(C[B].toString()==F.toString()){return B
}}return -1}function GetURLParameter(B,A){if(!A){A=window.location.href
}B=B.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");regex=new RegExp("[\\?&]"+B+"=([^&#]*)");
results=regex.exec(A);if(results==null){return false
}else{return results[1]}}function appendUrlAttribute(A,B,C){if(GetURLParameter(B,A)){B=B.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");
regex=new RegExp(B+"=([^&#]*)");return A.replace(regex,B+"="+C)
}else{if((/\?/).test(A)){return A+"&"+B+"="+C}else{return A+"?"+B+"="+C
}}}function checkAllCheckBoxs(A,C){if(!C){C=""}var E=document.getElementsByTagName("input");
for(var D=0,B=E.length;D<B;D++){if(E[D].type=="checkbox"){if(E[D].id.indexOf(C)>-1){if(A=="reverse"){if(E[D].checked){E[D].checked=false
}else{E[D].checked=true}}else{E[D].checked=A}}}}}function CallCookieCheckPage(){CreateGraphicObjectV2({Otarget:"body",Otype:"IFRAME",id:"CookieCheckPage",src:_RessourcesFolder+"IsCookiesEnabled.cfm",style:{position:"absolute",top:"-1000px"}})
}function IsCookieEnabled(){var A=(navigator.cookieEnabled)?true:false;
if(typeof navigator.cookieEnabled=="undefined"&&!A){document.cookie="testcookie";
A=(document.cookie.indexOf("testcookie")!=-1)?true:false
}return A}function createCookie(C,D,E){if(E){var B=new Date();
B.setTime(B.getTime()+(E*24*60*60*1000));var A="; expires="+B.toGMTString()
}else{var A=""}document.cookie=C+"="+D+A+"; path=/"
}function readCookie(B){var D=B+"=";var A=document.cookie.split(";");
for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)
}if(E.indexOf(D)==0){return E.substring(D.length,E.length)
}}return null}function eraseCookie(A){createCookie(A,"",-1)
}function PropageHelp(C){if(!C){var C=document.body
}var D=getElementsByAttribute(C,"*","HelpBoxId");for(var A=0,B=D.length;
A<B;A++){SetContextHelp({obj:D[A]})}D=null}function SetContextHelp(A){if(typeof A.obj!="object"){A.obj=PLg(A.obj)
}if(!A.obj){return }if(A.obj.getAttribute("HelpJobDone")){return 
}if(A.HelpId){A.obj.setAttribute("HelpBoxId",A.HelpId)
}else{if(A.insertion){if(!_HelpData[A.insertion.id]){_HelpData[A.insertion.id]={};
_HelpData[A.insertion.id].title=A.insertion.title;if(A.insertion.content&&A.insertion.content!=""){_HelpData[A.insertion.id].content=A.insertion.content
}}A.obj.setAttribute("HelpBoxId",A.insertion.id)}}setGlobalEvent(A.obj,"mousemove",ContextHelp);
setGlobalEvent(A.obj,"mouseout",ContextHelpClose);setGlobalEvent(A.obj,"mousedown",ContextHelpClose);
A.obj.setAttribute("HelpJobDone",true);A=null}function ContextHelpClose(){if(_LastHelpBox){if(_navigateur.browser!="ie"||_navigateur.version>7){PLpopUpClearShade(_LastHelpBox)
}RemoveElement(_LastHelpBox,true);_LastHelpBox=null
}}var _isHelpactive=true;var _LastHelpBox;function ContextHelp(D){if(!_isHelpactive){return 
}if(!D){return }var C=D.srcElement?D.srcElement:D.target;
var E=C.getAttribute("HelpBoxId");while(E==null){C=C.parentNode;
if(typeof C.tagName=="undefined"||C.tagName.toLowerCase()=="html"){return 
}E=C.getAttribute("HelpBoxId")}if(_LastHelpBox&&_LastHelpBox.id!=("HelpBox"+E)){ContextHelpClose()
}var B=PLg("HelpBox"+E);if(!B){if(!_HelpData[E]){return 
}var B=CreateGraphicObjectV2({Otype:"DIV",id:"HelpBox"+E,className:"HelpBox",HelpBoxObj:1,style:{top:"-500px",margin:"0 15px 0 0"}});
var A="<strong>"+_HelpData[E].title+"</strong>";if(_HelpData[E].content&&_HelpData[E].content!=""){A=[A,"<br>",_HelpData[E].content].join("")
}if(_HelpData[E].shortcut&&_HelpData[E].shortcut!=""){A=[A,"<br><em>Raccourcis clavier : ",_HelpData[E].shortcut,"</em>"].join("")
}B.innerHTML=A;document.body.appendChild(B);if(_navigateur.browser!="ie"||_navigateur.version>7){PLpopUpAddShade(B)
}setGlobalEvent(B,"mousemove",ContextHelpClose)}_LastHelpBox=B;
B.style.top=(D.clientY+parseInt(GetDoc().scrollTop,10)+15)+"px";
B.style.left=(D.clientX+parseInt(GetDoc().scrollLeft,10)-20)+"px";
if(_navigateur.browser!="ie"||_navigateur.version>7){PLpopUpResizeShade(B)
}B=null}var _HelpData={empty:{title:"",content:""},EcalendarMepsPopup:{title:"Changer de style de calendrier",content:"Choisir une mise en page diff&eacute;rente pour l'ensemble de mon calendrier"},ESetZoneSizeX:{title:"Positionnement horizontal de la zone",content:"Valeur en pixels, taille &eacute;cran"},ESetZoneSizeY:{title:"Positionnement vertical de la zone",content:"Valeur en pixels, taille &eacute;cran"},ESetZoneSizeL:{title:"Largeur de la zone",content:"Valeur en pixels, taille &eacute;cran"},ESetZoneSizeH:{title:"Hauteur de la zone",content:"Valeur en pixels, taille &eacute;cran"},Echemindefer:{title:"Acc&egrave;s rapide aux pages de votre projet"},Eapercu:{title:"Aper&ccedil;u du projet",content:"Visualiser votre projet tel qu'il sera imprim&eacute; en masquant les outils de cr&eacute;ation et les zones laiss&eacute;es vierges.",shortcut:"Ctrl + A"},Esauvegarder:{title:"Sauvegarder / Sauvegarder-sous",content:"Vous permet de sauvegarder vos modifications ou de sauvegarder en tant que nouveau projet.",shortcut:"Ctrl + S"},Ecommander:{title:"Commander votre projet",content:"Ajoute le projet actuel &agrave; votre caddy.<br>Attention, N'ajoutez votre projet &agrave; votre caddy que lorsque celui-ci est pr&ecirc;t &agrave; &ecirc;tre command&eacute;. Toute modification a posteriori de votre projet sauvegard&eacute; sera sans impact sur le contenu de votre panier et donc sur la version de votre projet qui sera r&eacute;ellement imprim&eacute;e."},Elistephotosprojet:{title:"Vos albums photo",content:"Vous permet d'acc&eacute;der aux photos de vos albums en ligne."},Eremplissageauto:{title:"Remplissage automatique",content:"Modifier la mise en page automatique pr&eacute;c&eacute;demment choisie.<br>ATTENTION : la modification de la mise en page entra&icirc;nera la perte de la mise en page actuelle."},EPetitesicones:{title:"Afficher de petites icones",content:"Afficher votre s&eacute;lection de photos en petite taille"},EGrandesicones:{title:"Afficher de grandes icones",content:"Afficher votre s&eacute;lection de photos en grande taille"},EMasquerphotosutilisees:{title:"Masquer les photos utilis&eacute;es",content:"Ne pas afficher les photos d&eacute;j&agrave; pr&eacute;sentes dans la mise en page de ce projet."},Eajouterphotos:{title:"Ajouter de nouvelles photos",content:"Permet de t&eacute;l&eacute;charger de nouvelles photos."},Ecollerpage:{title:"Coller la page courante",content:"Coller sur la page courante la page pr&eacute;c&eacute;demment copi&eacute;e. Voir fonction ''Copier la page courante''.",shortcut:"Ctr + Maj + V"},Ecopierpage:{title:"Copier la page courante",content:"Copier la page courante et tout son contenu afin de pouvoir la coller ensuite ailleurs dans le projet en cours",shortcut:"Ctr + Maj + C"},Esupprimerunepage:{title:"Supprimer la page courante et sa mise en page"},Einsererunepage:{title:"Ins&eacute;rer une page",content:"Ins&eacute;rer une page vierge devant la page courante."},Eajouterunepage:{title:"Ajouter une page",content:"Ajouter une page vierge &agrave; la fin de votre projet"},Epagesuivante:{title:"Page suivante",content:"Afficher la page suivante de votre projet.",shortcut:"Fl&egrave;che droite"},Epageprecedente:{title:"Page pr&eacute;c&eacute;dente",content:"Afficher la page pr&eacute;c&eacute;dente de votre projet.",shortcut:"Fl&egrave;che gauche"},Efonddepage:{title:"Couleur / image de fond de page",content:"Choisir une couleur de fond pour la page courante."},Einsertzonetxt:{title:"Ajouter une zone texte",content:"Ajoute une nouvelle zone de saisie texte &agrave; la page courante."},Etxtdirection:{title:"Sens du texte (horizontal / vertical)"},Etxtalign:{title:"Alignement horizontal du texte"},EtxtValign:{title:"Alignement vertical du texte"},Etxtsizelist:{title:"Taille du texte"},Etxtpolice:{title:"Police de caract&egrave;re"},Etxttailleplus:{title:"Augmenter la taille du texte"},Etxttaillemoins:{title:"R&eacute;duire la taille du texte"},Etxtbold:{title:"Passer le texte en gras"},Etxtitalic:{title:"Passer le texte en italique"},Etxtcouleur:{title:"Couleur du texte",content:"D&eacute;finir la couleur du texte."},Etxtbackcouleur:{title:"Couleur de fond de la zone",content:"D&eacute;finir la couleur de fond de cette zone texte."},Epiccentrerhoriz:{title:"Centrer horizontalement la zone s&eacute;lectionn&eacute;e dans la page"},Epiccentrervert:{title:"Centrer verticalement la zone s&eacute;lectionn&eacute;e dans la page"},Epicsupprimer:{title:"Supprimer la zone s&eacute;lectionn&eacute;e",shortcut:"Suppr"},Epiccopyzone:{title:"Copier la zone s&eacute;lectionn&eacute;e",shortcut:"Ctrl + C"},Epicpastezone:{title:"Coller la zone pr&eacute;cedement copi&eacute;e",shortcut:"Ctrl + V"},Epicopaciteplus:{title:"Augmenter l'opacit&eacute; de la zone s&eacute;lectionn&eacute;e"},Epicopacitemoins:{title:"Augmenter la transparence de la zone s&eacute;lectionn&eacute;e"},Epicenavant:{title:"Afficher la zone s&eacute;lectionn&eacute;e en avant plan"},Epicenarriere:{title:"Afficher la zone s&eacute;lectionn&eacute;e en arri&egrave;re plan"},Epichomotethie:{title:"Proportions homoth&eacute;tiques",content:"Maintenir le rapport hauteur/largeur de votre image."},Epicrotationgauche:{title:"Rotation anti-horaire",content:"Faire pivoter l'image de 90&ordm; vers la gauche"},Epicrotationdroite:{title:"Rotation horaire",content:"Faire pivoter l'image de 90&ordm; vers la droite"},Epiccorrecauto:{title:"Correction automatique",content:"Appliquer une correction colorim&eacute;trique automatique &agrave; cette photo"},Epicdecalgauche:{title:"Cadrer vers la gauche",shortcut:"Ctrl + Fl&egrave;che gauche"},Epicdecaldroite:{title:"Cadrer vers la droite",shortcut:"Ctrl + Fl&egrave;che droite"},Epicdecalhaut:{title:"Cadrer vers le haut",shortcut:"Ctrl + Fl&egrave;che haut"},Epicdecalbas:{title:"Cadrer vers le bas",shortcut:"Ctrl + Fl&egrave;che bas"},Epicverrouiller:{title:"V&eacute;rouiller/D&eacute;verouiller les dimensions et la position de cette zone"},Ezoomin:{title:"Zoom avant",content:"zoomer dans l'image"},Ezoomout:{title:"Zoom arri&egrave;re",content:"D&eacute;zoomer. Attention, le zoom arri&egrave;re ne peut pas cr&eacute;er une image plus petite que la zone image qui la contient."},Epreferences:{title:"Pr&eacute;f&eacute;rences",content:"D&eacute;finir les pr&eacute;f&eacute;rences de l'&eacute;diteur.",shortcut:"Ctrl + O"},OngMescrea:{title:"Vos cr&eacute;ations",content:"Retrouvez ici l'ensemble de vos projets &eacute;dition sauvegard&eacute;s"},OngMesalb:{title:"Vos albums photo en ligne",content:"Cr&eacute;ez, modifiez, visualisez vos albums photo en ligne"},OngMescomm:{title:"Vos commandes",content:"Suivi et historique de vos commandes"},OngMesinfos:{title:"Vos infos utilisateur",content:"Modifiez vos coordonn&eacute;es, g&eacute;rez vos cartes Photo Service ou carte PASS"},PrintMarge:{title:"Tirages marg&eacute;s",content:"Ajoute une marge blanche autour de vos photos"},PrintCorrection:{title:"Correction automatique",content:"Applique une correction automatique &agrave; vos photos visant &agrave; r&eacute;equilibrer couleurs, luminosit&eacute; et nettet&eacute;"},PrintQuality:{title:"Indicateur de qualit&eacute;",content:"Vous permet de connaitre la qualit&eacute; que vous pouvez attendre pour cette photo en fonction du format de tirage correspondant"},MFavoris:{title:"Les favoris",content:"<b>Comment ca marche ?</b><br>Lorsqu&#39;un proche vous envoie le lien de partage de l&#39;un de ses albums, un bouton &quot;Ajouter &agrave; vos favoris&quot; vous est propos&eacute; &agrave; la consultation. Cliquez sur ce bouton pour l&#39;ajouter dans la liste de vos favoris. Vous pourrez ainsi y acc&eacute;der facilement, quand il vous plaira.<br><b>A noter :</b> Si le d&eacute;tenteur de l&#39;album change son mot de passe d&#39;acc&egrave;s, vous ne pourrez plus le visionner &agrave; partir de vos favoris tant qu&#39;un lien de partage mis &agrave; jour ne vous aura pas &eacute;t&eacute; communiqu&eacute; par le proprietaire de l&#39;album. Si celui-ci passe l'album concern&eacute; en mode Priv&eacute;, il ne vous sera plus possible d'y acc&eacute;der.<br><br><b>Utilisateurs de l&#39;ancienne version du site :</b><br>Les favoris sont l&#39;&eacute;quivalent de ce que vous connaissiez sous le nom d&#39;&quot;albums de vos proches&quot;. Si certains albums partag&eacute;s avec vous dans l&#39;ancienne version du site n&#39;apparaissent plus ici, merci de contacter notre service client."}};
function DisplayHelp(A){if(!_HelpData[A]){return }PLAlert(_HelpData[A].content,false,_HelpData[A].title)
}var _HelpNoteOcc=0;function CreateHelpNote(E){_HelpNoteOcc++;
if(typeof E.id=="string"&&PLg(E.id)){RemoveElement(PLg(E.id))
}if(typeof E.top!="number"){E.top=0}if(typeof E.left!="number"){E.left=0
}if(typeof E.position!="string"){E.position="absolute"
}E.left=parseInt(E.left,10)+15;var B=CreateGraphicObjectV2({Otype:"DIV",id:E.id.toString(),className:"txt",style:{position:E.position,zIndex:99999,background:"#FFF2CB",top:(E.top-6)+"px",left:(E.left-18)+"px",padding:"5px",paddingTop:"15px",color:"#4C483D",fontSize:"11px",lineHeight:"13px",textAlign:"left",margin:"15px"}});
B.style.width=parseInt(E.width,10)+"px";if(typeof E.Closable=="undefined"||E.Closable!="none"){var F=CreateGraphicObjectV2({Otype:"IMG",src:"/p2/icones/closePuce.gif",style:{width:"15px",height:"15px"},align:"right"});
B.appendChild(F);B.onclick=function(){RemoveElement(E.id.toString())
};F=null}B.innerHTML+=E.data;var H;if(typeof E.target=="string"){H=PLg(E.target)
}else{if(typeof E.target=="object"){H=E.target}}if(H){H.insertBefore(B,H.firstChild)
}else{document.body.appendChild(B)}H=null;var G=["helpNote_topLeft","helpNote_Left","helpNote_Right","helpNote_topRight","helpNote_bttmRight","helpNote_bttm","helpNote_bttmLeft"];
for(var D=0,I=G.length;D<I;D++){var C=CreateGraphicObjectV2({Otype:"DIV",id:G[D]+_HelpNoteOcc,className:"empty",style:{position:"absolute",zIndex:100001}});
B.appendChild(C)}for(var D=0,I=G.length;D<I;D++){var A=PLg(G[D]+_HelpNoteOcc);
if(!A){continue}switch(G[D]){case"helpNote_topLeft":SetObjectCoords(A,0,-15,15,16);
break;case"helpNote_Left":SetObjectCoords(A,16,-15,15,parseInt(B.offsetHeight,10)-16);
break;case"helpNote_Right":SetObjectCoords(A,16,parseInt(B.offsetWidth,10),10,parseInt(B.offsetHeight,10)-16);
break;case"helpNote_topRight":SetObjectCoords(A,0,parseInt(B.offsetWidth,10),10,16);
break;case"helpNote_bttmRight":SetObjectCoords(A,parseInt(B.offsetHeight,10),parseInt(B.offsetWidth,10),10,18);
break;case"helpNote_bttm":SetObjectCoords(A,parseInt(B.offsetHeight,10),0,parseInt(B.offsetWidth,10),18);
break;case"helpNote_bttmLeft":SetObjectCoords(A,parseInt(B.offsetHeight,10),-15,15,18);
break}DisplayPNG(A,"/p2/"+G[D]+".png","scale")}B=null
}function EvaluateJsonString(json){try{return eval("("+json+")")
}catch(e){var Stack="\nERROR : "+e.message;try{Stack+="\nCALLER : "+String(arguments.callee.caller).substring(0,70)
}catch(e){Stack+="\nIMPOSSIBLE D'ACCEDER AU CALLER\n"
}Stack+="\n\nJSON :\n\n--- START ---\n\n"+json+"\n\n--- END ---";
ErrorHandler("ERREUR EVALUATEJSONSTRING",document.location,1,Stack)
}}var _RequestPool=[];function RequestJson(C){C.altCallBack=(typeof C.altCallBack=="undefined")?null:C.altCallBack;
C.retryReq=(typeof C.retryReq=="undefined")?0:parseInt(C.retryReq,10);
C.url=(typeof C.url=="undefined")?_RessourcesFolder+"mainRessource.cfm":C.url;
if(_navigateur.browser=="firefox"&&_navigateur.version<2){PLAlert('La version actuelle de votre navigateur (firefox) est trop ancienne pour que notre site fonctionne correctement. La version 2 de ce navigateur est requise.<br><br>Nous vous invitons &agrave; vous rendre &agrave; cette adresse pour le mettre &agrave; jours : <a href="http://www.mozilla-europe.org/fr/" target="_blank">http://www.mozilla-europe.org/fr/</a>');
return }var G=-1;for(var B=0;B<_RequestPool.length;
B++){if(_RequestPool[B].isfree==1){G=B;break}}if(G==-1){G=_RequestPool.length;
_RequestPool[G]=new CreateHttpObject(1)}C.pos=G;if(!_RequestPool[C.pos].xmlhttp){alert("La version actuelle de votre navigateur est trop ancienne pour que notre site fonctionne correctement.\nPensez a le mettre a jour, ce site ainsi que de nombreux autres ne seront pas accessibles avec cette version.\n\n( Ref : Impossible de creer une instance XMLHTTP)");
return false}_RequestPool[C.pos].isfree=0;_RequestPool[C.pos].ReqUrl=C.url;
if(C.strResultFunc=="return"){var A=false}else{var A=true
}try{C.url=appendUrlAttribute(C.url,"req",C.retryReq);
_RequestPool[C.pos].xmlhttp.open("POST",C.url,A)}catch(F){if(A&&C.retryReq<4){try{C.retryReq=C.retryReq+1;
_RequestPool[C.pos].xmlhttp.open("POST",C.url+"?req="+C.retryReq,A)
}catch(F){var E="\nERROR : "+F.message+"\nPARAMS : "+Digest(C);
ErrorHandler("xmlhttp exception : open",document.location,125,E);
PLAlert(_ErrorCommunication,true,"Attention")}}else{var E="\nERROR : "+F.message+"\nPARAMS : "+Digest(C);
ErrorHandler("xmlhttp exception en mode synchrone : open",document.location,130,E);
PLAlert(_ErrorCommunication,true,"Attention")}}if(C.strResultFunc&&A){_RequestPool[C.pos].xmlhttp.onreadystatechange=function(){if(typeof HandleRequestJson!="undefined"){HandleRequestJson(C)
}}}else{_RequestPool[C.pos].xmlhttp.onreadystatechange=function(){empty=0
}}_RequestPool[C.pos].xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
try{_RequestPool[C.pos].xmlhttp.send(C.data)}catch(F){if(A&&C.retryReq<4){try{C.retryReq=parseInt(C.retryReq,10)+1;
RequestJson(C)}catch(F){var E="\nERROR : "+Digest(F)+"\nPARAMS : "+Digest(C);
ErrorHandler("xmlhttp exception : send 1",document.location,71,E);
PLAlert(_ErrorCommunication,true,"Attention")}return 
}else{var E="\nERROR : "+Digest(F)+"\nPARAMS : "+Digest(C);
ErrorHandler("xmlhttp exception : send 2",document.location,78,E);
PLAlert(_ErrorCommunication,true,"Attention");return 
}}if(C.strResultFunc=="return"){var D=_RequestPool[C.pos].xmlhttp.responseText;
setTimeout("ReleasePoolEntry('"+parseInt(C.pos,10)+"')",500);
return evalJsonResponse({response:D,xhrObj:C})}}function HandleRequestJsonClosure(A){return function(){RequestJson(A)
}}function HandleRequestJson(Obj){if(typeof (_RequestPool[Obj.pos])=="undefined"&&_RequestPool[Obj.pos].isfree!=0){return 
}if(_RequestPool[Obj.pos].xmlhttp.readyState==4){if(_RequestPool[Obj.pos].xmlhttp.status==200||_RequestPool[Obj.pos].xmlhttp.status==301||_RequestPool[Obj.pos].xmlhttp.status==302||_RequestPool[Obj.pos].xmlhttp.status==304){if(!_RequestPool[Obj.pos].xmlhttp.responseText.toString().length){if(Obj.retryReq<4){Obj.retryReq=parseInt(Obj.retryReq,10)+1;
setTimeout(HandleRequestJsonClosure(Obj),500)}else{var ReqResult=evalJsonResponse({response:_RequestPool[Obj.pos].xmlhttp.responseText,xhrObj:Obj});
if(ReqResult!=null){eval(Obj.strResultFunc+"(ReqResult)")
}}}else{var ReqResult=evalJsonResponse({response:_RequestPool[Obj.pos].xmlhttp.responseText,xhrObj:Obj});
if(ReqResult!=null){eval(Obj.strResultFunc+"(ReqResult)")
}}}else{if(Obj.strResultFunc=="CreateTextBitmap"){return 
}if(Obj.retryReq<4){Obj.retryReq=parseInt(Obj.retryReq,10)+1;
setTimeout(HandleRequestJsonClosure(Obj),500)}else{if(_JSdebug){var ErrorHtml=_RequestPool[Obj.pos].xmlhttp.responseText;
var IsXmp=ErrorHtml.indexOf("</XMP>");if(IsXmp>0){ErrorHtml=ErrorHtml.substring(IsXmp+6,ErrorHtml.length)
}var DisplayServerError="<strong>Erreur "+_RequestPool[Obj.pos].xmlhttp.status+" ("+_RequestPool[Obj.pos].xmlhttp.statusText+")</strong><br><strong>PARAMETRES DE L'APPEL :</strong><br>"+Digest(Obj,"<br>")+'<br><strong>REPONSE DU SERVEUR :</strong><hr><div style="width:100%;height:400px;overflow:auto;padding-right:8px;">'+ErrorHtml+"</div>";
PLAlert(DisplayServerError,false,"Une erreur est survenue",true)
}else{var ErrorCode=parseInt(_RequestPool[Obj.pos].xmlhttp.status,10);
if(ErrorCode==403){alert("La communication a ete interrompue (http 403). Veuillez renouveller la derniere action demandee.\nSi cette erreur persiste, il est possible que le reseau par lequel vous accedez a internet ait bloque cette demande (Ex : Intranet d'entreprise, restrictions proxy, reglage de firewall...).\nCertains logiciels de securite sont egalement susceptibles de provoquer ce genre de problemes dans certaines configurations. (Ex : Zone Alarm, Bitdefender...)")
}else{if(ErrorCode==500||ErrorCode==502||ErrorCode==504||ErrorCode==12031||ErrorCode==12152){alert("La connexion avec nos serveurs n'a pu aboutir (http "+ErrorCode+"). Merci de reessayer la derniere action demandee.\nSi cette erreur persiste, merci de contacter notre service client.")
}else{alert(_ErrorCommunication)}}var Stack="\nXMLHTTP.STATUS : "+_RequestPool[Obj.pos].xmlhttp.status+"\nPARAMS : "+Digest(Obj);
try{Stack+="\nSTATUSTEXT : "+_RequestPool[Obj.pos].xmlhttp.statusText
}catch(e){}try{var ServerResponse=_RequestPool[Obj.pos].xmlhttp.responseText.replace(/[ \t]+/g," ");
if(ServerResponse.indexOf("<body>")>-1){ServerResponse=ServerResponse.substring(ServerResponse.indexOf("<body>"),ServerResponse.indexOf("<body>")+500)
}else{ServerResponse=ServerResponse.substring(0,500)
}Stack+="\nSERVER RESPONSE : "+ServerResponse}catch(e){}var ErrorLabel="ECHEC XHR ";
try{ErrorLabel+="HTTP CODE : "+String(_RequestPool[Obj.pos].xmlhttp.status)
}catch(e){}ErrorHandler(ErrorLabel,document.location,166,Stack)
}}}setTimeout("ReleasePoolEntry('"+parseInt(Obj.pos,10)+"')",100)
}}function ReleasePoolEntry(A){if(!A){return }if(typeof _RequestPool[A]!="object"){return 
}if(!_RequestPool[A].isfree){_RequestPool[A].isfree=1
}}function CreateHttpObject(A){this.isfree=A;this.xmlhttp=false;
try{this.xmlhttp=new XMLHttpRequest()}catch(C){var B=["MSXML2.XMLHTTP.7.0","MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];
for(ct=0;ct<B.length;ct++){try{this.xmlhttp=new ActiveXObject(B[ct])
}catch(C){}}}}var LastRecupCharIndex=null;var InitialResponseText=null;
function evalJsonResponse(Obj){var response=String(Obj.response);
var nbtry=(typeof Obj.nbtry=="undefined")?null:Obj.nbtry;
if(typeof Obj.xhrObj=="undefined"){Obj.xhrObj=null}var altCallBack=(Obj.xhrObj!=null&&typeof Obj.xhrObj.altCallBack!="undefined")?Obj.xhrObj.altCallBack:null;
try{var TheResponse=EvaluateJsonString(response)}catch(e){if(InitialResponseText===null){try{InitialResponseText=response.substring(0,200)+"[...]"+response.substring((response.length-200),(response.length+1))
}catch(o){InitialResponseText="erreur sur substring de TheResponse"
}}var NBtry=parseInt(nbtry,10);if(isNaN(NBtry)){NBtry=1
}else{NBtry++}if(response.lastIndexOf("}")>-1&&NBtry<200){if(response.indexOf('{"')!=0){var response2=response.substring(response.indexOf('{"'),response.length+1);
if(response2.length==LastRecupCharIndex){var response2=response2.substring(response.indexOf('{"'),response.length+1);
var response3=response2.substring(response.indexOf('{"')-1,response.length+1)
}else{var response3=response2}}else{var response2=response.substring(0,response.lastIndexOf("}")+1);
if(response2.length==LastRecupCharIndex){var response2=response2.substring(0,response2.length);
var response3=response2.substring(0,response2.lastIndexOf("}"))
}else{var response3=response2}}LastRecupCharIndex=response3.length;
return evalJsonResponse({response:response3,nbtry:NBtry,xhrObj:Obj.xhrObj})
}else{if(typeof Obj.xhrObj.xhrRetry=="undefined"||Obj.xhrObj.xhrRetry<4){Obj.xhrObj.xhrRetry=(typeof Obj.xhrObj.xhrRetry=="undefined")?1:parseInt(Obj.xhrObj.xhrRetry,10)+1;
return RequestJson(Obj.xhrObj)}var ErrorType=_ErrorCommunication;
var TresponseString=InitialResponseText.toString().toLowerCase();
if(TresponseString.indexOf("a temporary network error occurred while trying to retrieve the requested url")>-1||TresponseString.indexOf("la passerelle ou le serveur proxy a perdu la connexion avec le serveur web")>-1||TresponseString.indexOf("network error (tcp_error)")>-1){ErrorType=DisplayShader(10,10)+"<strong>Une erreur de connexion internet s'est produite. Merci de reessayer la derniere action demand&eacute;e.<br><br>Si cette erreur persiste et que vous acc&eacute;dez &agrave; internet par l'intermediaire d'un proxy, il est possible que celui-ci vous interdise l'acc&eacute;s &agrave; notre site</strong>"
}if(TresponseString.indexOf("bitdefender")>-1||TresponseString.indexOf("contr?parental")>-1||TresponseString.indexOf("www.qklinkserver.com")>-1||TresponseString.indexOf("www.srch-results.com")>-1||TresponseString.indexOf("begin popup blocker")>-1||TresponseString.indexOf("windowopen.js")>-1){ErrorType=DisplayShader(10,10)+"<strong>Une erreur est survenue lors de la r&eacute;cup&eacute;ration de certaines donn&eacute;es.<br>Il est possible qu'une application, presente sur votre ordinateur, en soit &agrave; l'origine en ayant bloqu&eacute; cet &eacute;change (Ex : Logiciel de contr&ocirc;le parental, bloqueur de popup, BitDefender, LinkMaker, etc...).</strong>"
}if(TresponseString.Trim()!=""&&typeof ErrorType!="undefined"&&ErrorType!=""){ErrorType+='<span class="Mtxt"><br><br><strong>Pour information, voici la r&eacute;ponse obtenue :</strong><br></span><div style="width:400px;border:1px solid grey;padding:10px;height:150px;overflow:auto;background:#F4F5F6;">';
ErrorType+=InitialResponseText;ErrorType+="</div>"+DisplayShader(15,5)
}RemoveElement("ProgressBarreSquareContainerDiv",true);
if(parent.PLg("PLpopUpSubTitle")){parent.PLDisplayMessage("PLpopUpSubTitle",ErrorType)
}else{if(PLg("PLpopUpSubTitle")){PLDisplayMessage("PLpopUpSubTitle",ErrorType)
}else{PLAlert(ErrorType,false,"Attention")}}var Stack="response : "+response+"\n\nInitialResponseText : "+InitialResponseText+"\n\nFULLPARAMS : "+Digest(Obj);
ErrorHandler("Erreur evaluation Json",document.location,0,Stack);
InitialResponseText=null;return null}}if(typeof TheResponse!="object"){PLAlert(_ErrorCommunication);
var Stack="response : "+response+"\n\nInitialResponseText : "+InitialResponseText+"\n\nFULLPARAMS : "+Digest(Obj);
ErrorHandler("Erreur evaluation Json - typeof TheResponse != 'object'",document.location,10,Stack);
return null}if(typeof TheResponse.status=="undefined"){if(typeof Obj.xhrObj.strResultFunc!="undefined"||Obj.xhrObj.strResultFunc=="CreateTextBitmap"){return 
}PLAlert(_ErrorCommunication);var Stack="response : "+response+"\n\nInitialResponseText : "+InitialResponseText+"\n\nFULLPARAMS : "+Digest(Obj);
ErrorHandler("evalJsonResponse : La ressource ne comportait pas de propriete status",document.location,10,Stack);
Stack=null;return null}else{if(TheResponse.status!=1){var clientMessage=_ErrorCommunication;
if(typeof TheResponse.clientMessage!="undefined"&&TheResponse.clientMessage.length){clientMessage=TheResponse.clientMessage;
if(altCallBack!=null&&altCallBack!="null"){eval(altCallBack+"(TheResponse)");
return null}}PLAlert(clientMessage,false,"Attention");
if(typeof TheResponse.errorMssg!="undefined"){var Stack="errorMssg : "+TheResponse.errorMssg+"\nresponse : "+response+"\n\nInitialResponseText : "+InitialResponseText+"\n\nFULLPARAMS : "+Digest(Obj);
ErrorHandler("evalJsonResponse : "+TheResponse.errorMssg,document.location,10,Stack);
Stack=null}return null}}LastRecupCharIndex=null;if(typeof TheResponse.data!="undefined"){return TheResponse.data
}else{return true}}function PLAlert(C,D,E,B){var A="small";
if(typeof B!="undefined"){A=B}if(!E||E==""){E="Attention"
}if(PLpopUp(A,E,"",D)){PLg("ThePopUpDivContent").innerHTML='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="txt">'+C+"</td></tr></table>";
if(!D){PLg("ThePopUpDivContent").innerHTML+='<br><table width="100%" cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td id="OkButtonTd"></td></tr></table>';
AddButton2({TargetObject:"OkButtonTd",CleanTarget:true,TheId:null,TheValue:"Ok",TheClass:"buttonsA",TheAction:"PLpopUpClose()"})
}}}function PLpopUpWait(B,A){if(PLpopUp("small",B,A,true,true)){removeGlobalEvent(document,"keydown",PLpopUpEscapeClose);
PLg("ThePopUpDiv").innerHTML='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td width=45><img src="/mutual/images/wait.gif" width="45" height="48"></td><td width=5>&nbsp;</td><td><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td id="PLpopUpTitle">'+B+'</td></tr><tr><td id="PLpopUpSubTitle">'+A+'</td></tr></table><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td id="ThePopUpDivContent"></td></tr></table></td></tr></table>'
}}var _PLpopUpSize;function PLpopUp(size,title,subtitle,NoEscap,quick,closeCallback){if(_PLDisplayMessageTimer!=null){clearTimeout(_PLDisplayMessageTimer);
_PLDisplayMessageTimer=null}ContextHelpClose();if(!PLg("ThePopUpBackgroundDiv")){var ZIndex=GetGlobalIndex();
CreateGraphicObjectV2({Otype:"DIV",Otarget:"body",id:"ThePopUpBackgroundDiv",style:{left:0,top:0,width:"99%",height:getPageSize().height,opacity:0,zIndex:ZIndex}});
if(typeof quick!="boolean"||!quick){FadeInObject("ThePopUpBackgroundDiv")
}else{SetOpacity(PLg("ThePopUpBackgroundDiv"),70)}}if(!PLg("ThePopUpDiv")){var ZIndex=GetGlobalIndex();
CreateGraphicObjectV2({Otype:"DIV",Otarget:"body",id:"ThePopUpDiv",style:{opacity:0,zIndex:ZIndex}});
if(typeof quick!="boolean"||!quick){FadeInObject("ThePopUpDiv")
}else{SetOpacity(PLg("ThePopUpDiv"),100)}}var ThePopUpBackgroundDiv=PLg("ThePopUpBackgroundDiv");
var ThePopUpDiv=PLg("ThePopUpDiv");_PLpopUpSize=size;
if(!title||title=="undefined"){title=""}if(!subtitle||subtitle=="undefined"){subtitle='<img src="/p2/p.gif" width="1" height="1">'
}if(ThePopUpBackgroundDiv){ThePopUpBackgroundDiv.M_scrollTop=GetDoc().scrollTop
}ThePopUpDiv.innerHTML='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td id="PLpopUpTitle" width="95%">'+title+'</td><td align="right" width="5%" id="PLpopUpCloseButton" valign="top"></td></tr><tr><td colspan="2" id="PLpopUpSubTitle">'+subtitle+'</td></tr></table><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td id="ThePopUpDivContent"></td></tr></table>';
if(!NoEscap){AddButton2({TargetObject:"PLpopUpCloseButton",CleanTarget:true,TheId:null,TheValue:"  X  ",TheClass:"buttonClose",TheAction:"PLpopUpClose()"});
setGlobalEvent(document,"keydown",PLpopUpEscapeClose)
}else{if(typeof closeCallback!="undefined"){AddButton2({TargetObject:"PLpopUpCloseButton",CleanTarget:true,TheId:null,TheValue:"  X  ",TheClass:"buttonClose",TheAction:closeCallback});
setGlobalEvent(document,"keydown",function(e){var TheEvent=(e)?e.keyCode:event.keyCode;
if(TheEvent==27){eval(closeCallback)}})}}setGlobalEvent(window,"resize",PLpopUpResize);
setGlobalEvent(window,"scroll",PLpopUpResize);hideInputs4IE(1);
PLpopUpResize();PLpopUpAddShade(ThePopUpDiv);window.setTimeout("PLpopUpResize()",100);
window.setTimeout("PLpopUpResize()",1000);return true
}function PLpopUpResize(){if(PLg("ThePopUpBackgroundDiv")){if(typeof (window.innerWidth)=="number"){PLg("ThePopUpBackgroundDiv").style.width=GetWindowSize(16).width+"px"
}else{PLg("ThePopUpBackgroundDiv").style.width="100%"
}}if(isNaN(_PLpopUpSize)){_PLpopUpSize=(_PLpopUpSize=="large")?914:430
}var ThePopupdiv=PLg("ThePopUpDiv");if(ThePopupdiv){with(ThePopupdiv){style.width=_PLpopUpSize+"px";
style.left=((GetWindowSize(16).width/2)-offsetWidth/2)+"px";
var browserHeight=GetWindowSize().height;if(offsetHeight<browserHeight){style.top=((browserHeight/2)-offsetHeight/2+GetDoc().scrollTop)+"px"
}else{if(PLg("ThePopUpBackgroundDiv")&&typeof PLg("ThePopUpBackgroundDiv").M_scrollTop=="number"){var TopPos=PLg("ThePopUpBackgroundDiv").M_scrollTop
}else{var TopPos=10}style.top=TopPos+"px"}if(parseInt(style.top,10)<10){style.top=10+"px"
}}PLpopUpResizeShade(ThePopupdiv)}}function PLpopUpEscapeClose(A){var B=(A)?A.keyCode:event.keyCode;
if(B==27){PLpopUpClose();removeGlobalEvent(document,"keydown",PLpopUpEscapeClose);
ContextHelpClose()}}function PagePopup(C,F,A,B){if(typeof B=="undefined"){var B="large"
}if(typeof C=="object"){C=C.href}Rref=appendUrlAttribute(C,"ispopup",1);
if(B=="large"){var E=920;var D=500}else{var E=430;var D=400
}PLpopUp(B,F,A);PLg("ThePopUpDivContent").innerHTML='<iframe src="'+Rref+'" style="border:0;borderStyle:none;width:'+E+"px;height:"+D+'px;" frameborder="0" ></iframe>'
}var _ThePopupShadeElements=["TheTopRightPopShade","TheRightPopShade","TheBottomCornerPopShade","TheBottomPopShade","TheBottomBottomPopShade"];
function GetGlobalIndex(){if(!arguments.callee.NewZIndexSlice){arguments.callee.NewZIndexSlice=100000
}arguments.callee.NewZIndexSlice++;return arguments.callee.NewZIndexSlice
}function PLpopUpAddShade(G,F){if(typeof G=="string"){var G=PLg(G)
}if(typeof G!="object"){if(PLg("ThePopUpDiv")){var G=PLg("ThePopUpDiv")
}else{return }}if(G.id==""||G.id=="undefined"||G.id==null){G.id=="boxId_"+new Date().getTime()
}var B=G.id;var A=GetGlobalIndex();if(typeof F=="undefined"){F="body"
}for(var D=0,C=_ThePopupShadeElements.length;D<C;D++){if(!PLg(_ThePopupShadeElements[D]+"_"+B)){CreateGraphicObjectV2({Otarget:F,Otype:"DIV",id:_ThePopupShadeElements[D]+"_"+B,className:"empty",style:{position:"absolute",zIndex:A}});
var E=PLg(_ThePopupShadeElements[D]+"_"+B);DisplayPNG(E,"/p2/"+_ThePopupShadeElements[D]+".png","crop")
}else{var E=PLg(_ThePopupShadeElements[D]+"_"+B)}}PLpopUpResizeShade(G)
}function PLpopUpResizeShade(E){if(typeof E=="string"){var E=PLg(E)
}if(typeof E!="object"){if(PLg("ThePopUpDiv")){var E=PLg("ThePopUpDiv")
}else{return }}var A=E.id;for(var C=0,B=_ThePopupShadeElements.length;
C<B;C++){var D=PLg(_ThePopupShadeElements[C]+"_"+A);
if(!D){continue}switch(_ThePopupShadeElements[C]){case"TheTopRightPopShade":SetObjectCoords(D,parseInt(E.offsetTop,10),(parseInt(E.offsetLeft,10)+parseInt(E.offsetWidth,10)),11,11);
break;case"TheRightPopShade":SetObjectCoords(D,(parseInt(E.offsetTop,10)+11),(parseInt(E.offsetLeft,10)+parseInt(E.offsetWidth,10)),11,(parseInt(E.offsetHeight,10)-11));
break;case"TheBottomCornerPopShade":SetObjectCoords(D,(parseInt(E.offsetTop,10)+parseInt(E.offsetHeight,10)),(parseInt(E.offsetLeft,10)+parseInt(E.offsetWidth,10)),11,11);
break;case"TheBottomPopShade":SetObjectCoords(D,(parseInt(E.offsetTop,10)+parseInt(E.offsetHeight,10)),(parseInt(E.offsetLeft,10)+11),(parseInt(E.offsetWidth,10)-11),11);
break;case"TheBottomBottomPopShade":SetObjectCoords(D,(parseInt(E.offsetTop,10)+parseInt(E.offsetHeight,10)),parseInt(E.offsetLeft,10),11,11);
break}}E=A=D=null}function PLpopUpClearShade(C){if(typeof C=="string"){C=PLg(C)
}if(!C){return }var A=C.id;for(var B=0;B<_ThePopupShadeElements.length;
B++){RemoveElement(_ThePopupShadeElements[B]+"_"+A,true)
}}function PLpopUpClose(B){if(typeof B=="undefined"){B=false
}var A=PLg("ThePopUpDiv");if(A){PLpopUpClearShade(A);
RemoveElement(A,B);RemoveElement(PLg("ThePopUpBackgroundDiv"),B);
hideInputs4IE(0);_SelectProductPreview=0}else{try{if(parent.document&&document.location!=parent.document.location){parent.PLpopUpClose()
}}catch(C){}}removeGlobalEvent(document,"keydown",PLpopUpEscapeClose);
ContextHelpClose()}function hideInputs4IE(A){if(_navigateur.browser=="ie"&&_navigateur.version<7){var B=document.getElementsByTagName("select");
if(A){for(var C=0,D=B.length;C<D;C++){B[C].style.visibility="hidden"
}}else{if(B.length>0){for(var C=0,D=B.length;C<D;C++){B[C].style.visibility="visible"
}}}}}function DeclareReductionCode(){if(!PLg("reductionCode")){return 
}if(PLg("reductionCode").value.Trim().length<4){PLSignalInputError("reductionCode","Ce code promo est incorrect. Merci de verifier votre saisie");
return }PLpopUpWait("Appel en cours","Merci de patienter un instant");
var A="ressource=declareReductionCode&codevalue="+PLg("reductionCode").value;
RequestJson({data:A,strResultFunc:"window.location.reload"})
}function DeleteCaddyProductEntry(B,A){if(PLpopUp("small","Supprimer un produit","Etes-vous sur(e) de vouloir supprimer ce produit de votre commande ?")){WindowData='<br><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=WindowData;AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Non",TheClass:"buttonsB",TheAction:"PLpopUpClose()"});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Oui",TheClass:"buttonsA",TheAction:"DoDeleteCaddyProductEntry("+B+",'"+A+"')"})
}}function DoDeleteCaddyProductEntry(C,A){PLpopUpWait("Appel en cours","Merci de patienter un instant");
var B="ressource=deleteCaddyEntry&id="+C+"&cat="+A;
RequestJson({data:B,strResultFunc:"DoDeleteCaddyProductEntryCallBack"})
}function DoDeleteCaddyProductEntryCallBack(A){window.location.reload(true)
}function ProposeSignUp(B){if(typeof B=="undefined"){var B=true
}if(!GetUserPartnerContext("mayProposeSignUp")){return 
}if(B){if(readCookie("ProposeSignUpCookie")!=null){return 
}}var A="<br><strong>Afin de retrouver vos cr&eacute;ations et vos photos lors de vos prochaines visites et pouvoir ainsi les modifier ou les recommander en toute s&eacute;r&eacute;nit&eacute;, pensez &agrave; vous identifier.</strong><br>";
A+='<br><br><table width="100%" cellpadding="3" cellspacing="0" border="0"><tr><td id="SaveButtonNoTd"></td></tr><tr><td id="SaveButtonYesTd"></td></tr><tr><td id="SaveButtonCancelTd"></td></tr></table>';
if(PLpopUp("small","Retrouvez vos cr&eacute;ations<br> et vos photos &agrave; chacune de vos visites",A)){AddButton2({TargetObject:"SaveButtonCancelTd",CleanTarget:true,TheId:null,TheValue:"Je poursuis sans m'identifier",TheClass:"buttonsC",TheAction:"PLpopUpClose()"});
AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"J'ai d&eacute;j&agrave; un compte : je m'identifie",TheClass:"buttonsB",TheAction:"CallLoginScreen()"});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Je n'ai pas de compte : je m'inscris gratuitement",TheClass:"buttonsA",TheAction:"CallSignUpPage()"})
}if(B){createCookie("ProposeSignUpCookie","1",1)}}function CallLoginScreen(){if(PLpopUp("small","Merci de vous identifier","")){var A='<form method="post" id="DynMemberLogForm" name="DynMemberLogForm"  action="javascript:DoLoginMember({form:\'DynMemberLogForm\',email:\'FMemberEmail\',password:\'FMemberPassword\'});"><table cellpadding="0" cellspacing="2" border="0" width="100%"><tr><td class="txt" nowrap width="25%" valign="top" style="padding-top:4px">Adresse e-mail :</td><td><input type="text" name="FMemberEmail" id="FMemberEmail" class="inputs_" tabindex="1"></td></tr><tr><td class="txt" valign="top" style="padding-top:4px">Mot de passe :</td><td><input type="password" name="FMemberPassword" id="FMemberPassword" class="inputs_" tabindex="2"></td></tr><tr><td colspan="2" class="txt" align="right"><a href="javascript:CallForgottenLoginScreen()">'+_PuceA+'&nbsp;Mot de passe oubli&eacute; ?</a></td></tr></table><input type="Submit" style="position:absolute;top:-500px;left:-500px;"></form><br><table width="100%" cellpadding="0" cellspacing="2" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table><br><table cellpadding="0" cellspacing="2" border="0" width="100%"><tr><td class="txt" style="border:1px solid #DBDBDB;padding:10px"><a href="javascript:CallSignUpPage()"><b class="gtxta"><b>Pas encore membre ?</b></b><br><b>Inscrivez-vous gratuitement et b&eacute;n&eacute;ficiez de tous les avantages offerts &agrave; nos membres :</b></a><br>'+_PuceA+"&nbsp;Un espace de sauvegarde et de publication illimit&eacute;, gratuit et s&eacute;curis&eacute;  pour vos photos<br>"+_PuceA+"&nbsp;L'assurance de toujours retrouver vos cr&eacute;ations &eacute;dition<br>"+_PuceA+'&nbsp;Un acc&eacute;s privil&eacute;gi&eacute; &agrave; nos offres promotionnelles tout au long de l\'ann&eacute;e</td></tr><tr><td>&nbsp;</td></tr><tr><td id="SignUpButtonTd"></td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=A;AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Annuler",TheClass:"buttonsB",TheAction:"PLpopUpClose()"});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:"SubmitBttn_Login",TheValue:"Ok",TheClass:"buttonsA",TheAction:'DoLoginMember({form:"DynMemberLogForm",email:"FMemberEmail",password:"FMemberPassword"})',tabindex:3});
AddButton2({TargetObject:"SignUpButtonTd",CleanTarget:true,TheId:null,TheValue:"Je m'inscris !",TheClass:"buttonsA",TheAction:"CallSignUpPage()",tabindex:4});
window.setTimeout("SetFocus('FMemberEmail')",300)}}function DoLoginMember(D){var G=PLg(D.email);
var A=PLg(D.password);var F=PLg(D.form);if(!G||!A||!F){return 
}var B=G.value.Trim();var H=A.value.Trim();if(!B.isValidEmail()){PLSignalInputError(G.id,"Cette adresse e-mail est invalide");
return }if(H.length<4){PLSignalInputError(A.id,"Ce mot de passe est invalide");
return }G.name="e";A.name="p";if(!PLg("LoginReturnUrl")){var C=document.createElement("INPUT");
C.type="hidden";C.name="LoginReturnUrl";C.id="LoginReturnUrl";
C.value=window.location;F.appendChild(C)}var E="http://"+window.location.host+"/ressources/session/dologinPost.cfm";
F.action=E;F.submit()}function CallForgottenLoginScreen(C){var A="";
if(PLg("FMemberEmail")){A=PLg("FMemberEmail").value
}if(typeof C!="undefined"&&C.Trim().length>0){A=C}if(PLpopUp("small","Retrouvez votre mot de passe","Indiquez l'adresse email utilis&eacute;e &agrave; la cr&eacute;ation de votre compte.")){var B='<table cellpadding="0" cellspacing="2" border="0" width="100%"><tr><td class="txt" nowrap width="25%">Adresse e-mail :</td><td><input type="text" name="RetrieveEmail" id="RetrieveEmail" class="inputs_" value="'+A+'" tabindex="1"></td></tr></table>';
B+='<br><table width="100%" cellpadding="0" cellspacing="2" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=B;AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Annuler",TheClass:"buttonsB",TheAction:"PLpopUpClose()",tabindex:3});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Envoyer",TheClass:"buttonsA",TheAction:"SendForgottenLogin()",tabindex:2})
}}function SendForgottenLogin(B){if(B){arguments.callee.atWork=false;
return }if(!arguments.callee.atWork){if(!PLg("RetrieveEmail")){return 
}var C=PLg("RetrieveEmail").value.Trim();if(!C.isValidEmail()){PLSignalInputError("RetrieveEmail","Cette adresse e-mail est invalide");
return }var A="ressource=retrievePassword&e="+PLescape(C);
RequestJson({data:A,strResultFunc:"SendForgottenLoginCallBack"})
}}function SendForgottenLoginCallBack(){SendForgottenLogin(true);
PLAlert("<b>Vos identifiants de connexion vous ont &eacute;t&eacute; envoy&eacute;s par e-mail.</b>  <br>Merci de v&eacute;rifier votre messagerie d'ici quelques minutes.")
}function CallSignUpPage(){JumpTo("/ressources/session/inscription.cfm?returnurl="+PLescape(document.location.pathname+""+document.location.search))
}function SubmitSignUpForm(){if(killDblClick(arguments.callee)){return 
}Flastname=PLg("lastname").value;Ffirstname=PLg("firstname").value;
Femail=PLg("signup_email").value.Trim();Fpassword=PLg("password").value.Trim();
FpasswordVerify=PLg("passwordVerify").value.Trim();
Fcivility=Fbirth=0;Fnewsletter=PLg("newsletter").checked;
for(var C=1;C<=4;++C){if(PLg("civility_"+C).checked){Fcivility=C
}}if(Fcivility==0){PLSignalInputError("civilityBlock","Merci d&rsquo;indiquer votre civilité");
return }if(Flastname.length<2){PLSignalInputError("lastname","Merci d'indiquer votre nom");
return }if(Ffirstname.length<2){PLSignalInputError("firstname","Merci d'indiquer votre prénom");
return }if(!Femail.isValidEmail()){PLSignalInputError("signup_email","Cette adresse e-mail est invalide");
return }if(Fpassword.length<6){PLSignalInputError("password","Votre mot de passe doit contenir au moins 6 caractères");
return }if(Fpassword.length>15){PLSignalInputError("password","Votre mot de passe ne doit pas excéder 15 caractères");
return }var D="92,47,96,34,35,39,60,62";for(var C=0,A=Fpassword.length;
C<A;C++){if(ListFind(D,Fpassword.charCodeAt(C))>-1){PLSignalInputError("password",'<table border="0" cellpadding="2" cellspacing="2"><tr><td style=color:#'+_ColorA+">Votre mot de passe ne peut contenir aucun des caract\350res suivant :</td></tr><tr><td style=color:#"+_ColorA+"> \134 , \57 , \140 , \42 , \43 , &rsquo; , \74 , \76 </td></tr></table>");
return }}if(Fpassword!=FpasswordVerify){PLSignalInputError("passwordVerify","Les mots de passe ne correspondent pas");
return }FbirthDay=PLg("birthDay").options[PLg("birthDay").options.selectedIndex].value.Trim();
FbirthMonth=PLg("birthMonth").options[PLg("birthMonth").options.selectedIndex].value.Trim();
FbirthYear=PLg("birthYear").options[PLg("birthYear").options.selectedIndex].value.Trim();
if((FbirthDay+""+FbirthMonth+""+FbirthYear).Trim()!=""){if(isNaN(parseInt(FbirthDay,10))){PLSignalInputError("BirthBlock","Vérifiez votre saisie");
return }if(isNaN(parseInt(FbirthMonth,10))){PLSignalInputError("BirthBlock","Vérifiez votre saisie");
return }if(isNaN(parseInt(FbirthYear,10))){PLSignalInputError("BirthBlock","Vérifiez votre saisie");
return }Fbirth=FbirthYear+"-"+FbirthMonth+"-"+FbirthDay+" 00:00:00"
}if(!PLg("cgu").checked){PLSignalInputError("cguBlock","Vous devez accepter les conditions générales d'utilisation pour devenir membre de ce site");
return }var E="&fn="+PLescape(Ffirstname)+"&ln="+PLescape(Flastname)+"&e="+PLescape(Femail)+"&p="+PLescape(Fpassword)+"&c="+PLescape(Fcivility)+"&nl="+PLescape(Fnewsletter);
if(Fbirth.length>8){E+="&bd="+PLescape(Fbirth)}var B="ressource=memberInscription"+E;
RequestJson({data:B,strResultFunc:"DoInscriptionCallBack"})
}function DoInscriptionCallBack(){if(GetURLParameter("returnurl")&&GetURLParameter("returnurl")!=""){window.location=PLUnescape(GetURLParameter("returnurl"))
}else{window.location="/votre_espace/index.cfm"}}function OrderProductShop(G,C,D,F,E,B){if(PLpopUp("small",G,C)){var A=D;
A+='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=A;AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheValue:"Annuler",TheClass:"buttonsB",TheAction:"PLpopUpClose()",tabindex:2});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheValue:"Ajouter &agrave; ma commande",TheClass:"buttonsA",TheAction:"DoOrderProductShop("+F+","+E+","+B+")",tabindex:1})
}}function DoOrderProductShop(D,C,B){PLpopUpWait("Appel en cours","Merci de patienter un instant");
var A="ressource=addProductBoutique&idproduct="+D+"&quantity="+C+"&addcurrent="+B;
RequestJson({data:A,strResultFunc:"DoOrderProductShopCallBack"})
}function DoOrderProductShopCallBack(){if(PLpopUp("small","Commander un produit","Le produit a &eacute;t&eacute; ajout&eacute; &agrave; votre commande")){PLg("ThePopUpDivContent").innerHTML='<br><table width="100%" cellpadding="0" cellspacing="2" border="0"><tr><td id="SaveButtonYesTd"></td></tr></table>';
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Continuer",TheClass:"buttonsA",TheAction:"JumpTo('/commander/index.cfm')",tabindex:1})
}}function ReOrientation(C,A){if(typeof A=="undefined"){var A=""
}var B=GetURLParameter("action");if(!B){B="prints"}switch(B){case"photobook":if(C){JumpTo(A+"/partner/orange/photobook/create.cfm")
}else{JumpTo(A+"/tirages_photo/selection.cfm?action=photobook")
}break;case"prints":case"print":case"tirage":if(C){JumpTo(A+"/tirages_photo/commande.cfm")
}else{JumpTo(A+"/tirages_photo/selection.cfm?action=prints")
}break;case"frames":if(C){JumpTo(A+"/tirages_photo/encadrement.cfm")
}else{JumpTo(A+"/tirages_photo/selection.cfm?action=frames")
}break;case"coach":if(!GetUserPartnerContext("isPHSUser")){alert("Ce service n'est pas disponible sur ce site");
return }if(C){JumpTo(A+"/coach/createOrder.cfm")}else{}break;
case"album":if(C){if(GetURLParameter("a")&&!isNaN(GetURLParameter("a"))){JumpTo(A+"/votre_espace/album.cfm?a="+GetURLParameter("a"))
}else{JumpTo(A+"/votre_espace/index.cfm")}}else{}break;
case"editeur":if(C){JumpTo(A+"/editeur/create.cfm?load="+GetURLParameter("project"))
}else{}break;case"archive":if(C){JumpTo(A+"/archive/index.cfm")
}else{}break;case"sb_miniprestige":if(C){JumpTo(A+"/editeur/create.cfm?product=2004")
}else{}break;case"sb_toile2233":if(C){JumpTo(A+"/editeur/create.cfm?product=2200")
}else{}break;case"vp_classique":if(C){JumpTo(A+"/editeur/create.cfm?product=2002")
}else{}break;case"vp_prestige":if(C){JumpTo(A+"/editeur/create.cfm?product=2006")
}else{}break;case"vp_grandprestige":if(C){JumpTo(A+"/editeur/create.cfm?product=2008")
}else{}break;case"vp_folio":if(C){JumpTo(A+"/editeur/create.cfm?product=2775")
}else{}break;case"vp_calendrier":if(C){JumpTo(A+"/editeur/create.cfm?product=2100")
}else{}break;case"vp_cartes":if(C){JumpTo(A+"/editeur/create.cfm?product=2150")
}else{}break;case"vp_poster5075":if(C){JumpTo(A+"/editeur/create.cfm?product=2053")
}else{}break;case"vp_poster5067":if(C){JumpTo(A+"/editeur/create.cfm?product=2052")
}else{}break;case"vp_toile8080":if(C){JumpTo(A+"/editeur/create.cfm?product=2203")
}else{}break;case"vp_puzzle":if(C){JumpTo(A+"/editeur/create.cfm?product=2157")
}else{}break;case"vp_toile6090":if(C){JumpTo(A+"/editeur/create.cfm?product=2202")
}else{}break;case"vp_tirage3040":if(C){JumpTo(A+"/tirages_photo/commande.cfm")
}else{JumpTo(A+"/tirages_photo/selection.cfm?action=prints")
}break;default:if(C){JumpTo(A+"/editeur/create.cfm?category="+B)
}else{}break}}var _SendToProductCategory;function SendToProduct(B){if(!B||B==""){return 
}switch(B.toLowerCase()){case"prints":case"tirage":_SendToProductCategory="prints";
break;case"livre":_SendToProductCategory="book";break;
case"book":case"photobook":case"poster":case"cahier":case"calendrier":case"puzzle":case"carte":case"toile":case"agenda":case"frames":case"coach":case"archive":_SendToProductCategory=B.toLowerCase();
break;case"sb_miniprestige":case"sb_toile2233":_SendToProductCategory=B.toLowerCase();
break;case"calendrier_orange":_SendToProductCategory=B.toLowerCase();
break;case"vp_classique":case"vp_prestige":case"vp_grandprestige":case"vp_folio":case"vp_calendrier":case"vp_cartes":case"vp_poster5075":case"vp_poster5067":case"vp_toile8080":case"vp_tirage3040":case"vp_puzzle":case 'vp_toile6090':_SendToProductCategory=B.toLowerCase();
break;default:alert("Ce type de produit n'est pas disponible sur ce site");
return ;break}if(!GetUserPartnerContext("isOrangeUser")&&!GetUserInfo("IDuser")){SendToUpload();
return }PLpopUpWait("Appel en cours","Merci de patienter un instant");
var A="ressource=grabAlbums&action=listAlbums";RequestJson({data:A,strResultFunc:"SelectPicturesSource"})
}function SendToSelection(A){JumpTo("/tirages_photo/selection.cfm?action="+_SendToProductCategory+"&a="+A)
}function SendToUpload(){JumpTo("/telechargement/index.cfm?action="+_SendToProductCategory)
}function GoToMediaSelector(B){if(typeof B!="undefined"){var A="?action=editeur&project="+B
}else{var A="?action="+_SendToProductCategory}JumpTo("/partner/orange/mediaselector.cfm"+A)
}function SelectPicturesSource(D){var C=D;if(C!=null){var G=0;
for(var E=0,F=C.length;E<F;E++){if(C[E].NBOBJECT!=0){G++
}}if(!GetUserPartnerContext("isOrangeUser")&&(!G)){SendToUpload();
return }PLpopUp("large","Que souhaitez-vous faire ?","",false);
var B='<div class="Mtxt" style="margin-top:25px;"><b>T&eacute;l&eacute;charger de nouvelles photos :</b></div><img src="/p2/pgrey.gif" width="100%" height="1" vspace="5">';
B+='<div style="margin-top:10px;margin-bottom:10px">'+AddButtonHTML(null,"T&eacute;l&eacute;charger des photos depuis votre ordinateur &raquo;","buttonsA","SendToUpload()")+"</div>";
if(GetUserPartnerContext("isPikeoUser")){B+='<div style="margin-top:10px;margin-bottom:10px">'+AddButtonHTML(null,"Utiliser des photos stock&eacute;es sur mon compte Pikeo &raquo;","buttonsC","JumpTo('"+GetUserInfo("Legacy").returnurl+"')")+"</div>"
}if(GetUserPartnerContext("isOrangeUser")){if(G){var A=null;
for(var E=0,F=C.length;E<F;E++){if(C[E].STATUS!="D"){continue
}else{if(C[E].NBOBJECT!=0){A=C[E].IDALBUM}}}if(A!=null){B+='<div class="Mtxt" style="margin-top:10px;">'+AddButtonHTML(null,"Utiliser des photos d&eacute;ja transf&eacute;r&eacute;es","buttonsB","SendToSelection('"+C[0].IDALBUM+"')")+"</div>"
}}if(GetUserPartnerContext("mediaselectorAvalaible")){B+='<div style="margin-top:10px;margin-bottom:10px">'+AddButtonHTML(null,"Utiliser des photos stock&eacute;es sur le "+GetUserPartnerContext("getOrangeServiceName"),"buttonsC","GoToMediaSelector()")+"</div>"
}else{B+='<div style="margin-top:10px;margin-bottom:10px">'+AddButtonHTML(null,"Utiliser des photos stock&eacute;es sur le "+GetUserPartnerContext("getOrangeServiceName"),"buttonsC","JumpTo(GetUserInfo('ORAReturnUrl'))")+"</div>"
}}if(!GetUserPartnerContext("isOrangeUser")&&G){B+='<div class="Mtxt" style="margin-top:25px;"><b>Utiliser des photos de vos albums :</b></div><img src="/p2/pgrey.gif" width="100%" height="1" vspace="5">';
B+='<div style="margin-top:10px;height:370px;overflow:auto">';
for(var E=0,F=C.length;E<F;E++){B+='<div class="Alb_Div_album Lnk" onclick="SendToSelection('+C[E].IDALBUM+')"><table cellpadding="0" cellspacing="0" border="0" class="content"><tr><td valign="middle" class="txt"><b>';
if(C[E].COMPUTEDPATHV!=""){B+="<img src="+C[E].COMPUTEDPATHV+"><br>"
}if(C[E].TITLE.Trim()!=""){B+=C[E].TITLE}else{B+="Sans-titre"
}B+='</b><br><b class="txts">'+C[E].NBOBJECT+" photo(s)</b>";
B+="</td></tr></table>";B+="</div>"}B+="</div>"}}PLg("ThePopUpDivContent").innerHTML=B
}function CreateUserAlbumsSelectOptions(B,F){if(typeof B!="object"){return 
}var C="";for(var D=0,E=B.length;D<E;D++){var G="";
var A="AlbList";if(F&&!isNaN(F)){if(B[D].IDALBUM==F){G=" selected"
}}if(B[D].STATUS=="D"){A=" listesGray"}C+='<option class="'+A+'" value="'+B[D].IDALBUM+'"'+G+">&gt; "+B[D].TITLE+" ("+B[D].NBOBJECT+")</option>"
}return C}function CreateUserAlbumsSelectOptionsWithFavs(B,G){if(typeof B!="object"){return 
}var C="";var A="";for(var D=0,E=B.length;D<E;D++){if(!GetUserInfo("MemberId")||parseInt(B[D].IDMEMBER,10)==parseInt(GetUserInfo("MemberId"),10)){C+='<option value="'+B[D].IDALBUM+'"';
if(B[D].STATUS=="D"){C+='class="listesGray"'}if(B[D].IDALBUM==G){C+="selected"
}C+=">"+B[D].TITLE+" ("+B[D].NBOBJECT+")</option>"}else{A+='<option value="'+B[D].IDALBUM+'"';
if(B[D].IDALBUM==G){A+="selected"}A+=">"+B[D].MEMBERNAME+" : "+B[D].TITLE+" ("+B[D].NBOBJECT+")</option>"
}}var F=C;if(A!=""){F+='<option value="shared" class="listesBlue">Vos favoris</option>';
F+=A}return F}function GetAvalaibleUserAlbums(A,C){if(typeof _AlbumsUpldStruct!="undefined"&&_AlbumsUpldStruct.length>0){A=_AlbumsUpldStruct;
C=false}if(A==null&&C==true){if(GetUserInfo("MemberId")){var B="ressource=grabAlbums&action=listAlbums";
RequestJson({data:B,strResultFunc:"GetAvalaibleUserAlbums"})
}}else{if(typeof A=="object"){_AlbumsUpldStruct=A}DisplayAvalaibleUserAlbums()
}}function DisplayAvalaibleUserAlbums(){if(_AlbumsUpldStruct.length>0){var A='<select name="UploadAlbumSelection" id="UploadAlbumSelection" class="bloc_albums_forms" style="width:100%">';
if(GetURLParameter("a")&&!isNaN(GetURLParameter("a"))){A+=CreateUserAlbumsSelectOptions(_AlbumsUpldStruct,GetURLParameter("a"))
}else{A+=CreateUserAlbumsSelectOptions(_AlbumsUpldStruct)
}A+="</select>";PLg("UploadAlbumSelectionBlock").innerHTML='<span class="txts">T&eacute;l&eacute;charger vers l\'album :</span>'+A
}}var _UploadSessionId=null;function CreateUploadSessionId(){var A=GetIDuser();
if(!A){return false}var B=String(GetUserInfo("PartnerShip"))+""+A.toString(10);
var C=new Date().getTime().toString(10);if((B+""+C).length>32){C=C.substring((C.length-(32-B.length)),C.length)
}B+=C;return B}var _CacheUploadSessionId=null;var _TMotif=null;
var _UploadContext;function CheckUploadResult(B){if(_UploadSessionId==null){return 
}if(_UploadSessionId.toString(10).length<16){_UploadSessionId=null;
return }_CacheUploadSessionId=_UploadSessionId;_TMotif=B;
_UploadContext="static";try{if(typeof parent.PRD=="object"){_UploadContext="editeur"
}}catch(C){}var A="ressource=grabUploadedPictures&uploadSession="+String(_CacheUploadSessionId);
if(_UploadContext!="editeur"){A+="&storeResult=clientSelection"
}RequestJson({data:A,strResultFunc:"InitMonitorPictureTreatment"})
}var _CurrentUploadInfos;var _RetryInitOnEmptyResponseCount=0;
function InitMonitorPictureTreatment(A){_CurrentUploadInfos={total:A.length,motif:_TMotif,context:_UploadContext,nbcalls:0,error:[],done:[],retryinit:_RetryInitOnEmptyResponseCount};
FeedLibelles("Traitement en cours...","Merci de patienter quelques instants.");
var C=PLg("GlobalUploadersResultZone");if(!C){ErrorHandler("MONITORPICTURETREATMENT : GlobalUploadersResultZone n'existe pas...",document.location,390);
return }C.style.background="none";if(A.length<1){if(_TMotif!="CANCEL"&&_RetryInitOnEmptyResponseCount<20){_RetryInitOnEmptyResponseCount++;
setTimeout("CheckUploadResult('"+_TMotif+"')",2000);
return }else{if(_TMotif=="CANCEL"){FeedLibelles("T&eacute;l&eacute;chargement annul&eacute;","");
C.innerHTML="Le transfert de fichier a &eacute;t&eacute; annul&eacute; &agrave; votre demande.";
return }else{FeedLibelles("Echec du t&eacute;l&eacute;chargement","<strong>Le transfert de fichier a &eacute;chou&eacute;</strong>");
C.innerHTML="Aucun fichier n'a pu &ecirc;tre transf&eacute;r&eacute;.<br>Merci de r&eacute;essayer l'envoi d'un fichier.<br>Si le probl&egrave;me persiste, contactez notre service client";
var B="MonitorPictureTreatment : concernant la session :"+String(_CacheUploadSessionId);
try{B+="\n"+Digest(_CurrentUploadInfos)}catch(D){}ErrorHandler("AUCUNE IMAGE INSEREE DANS PICTURESESSIONUPLOAD : MOTIF > "+_TMotif,document.location,394,B,true);
return }}}MonitorPictureTreatment(A)}function EvalPictureTreatmentResult(B){_CurrentUploadInfos.remainings=[];
for(var A=0,C=B.length;A<C;A++){if(parseInt(B[A].STATUS,10)==1){_CurrentUploadInfos.done.push(String(B[A].IDPICTURE))
}else{if(parseInt(B[A].STATUS,10)==0){_CurrentUploadInfos.remainings.push(String(B[A].IDPICTURE))
}else{_CurrentUploadInfos.error.push({name:B[A].ORIGINALFILENAME.RemoveQuotes(),status:parseInt(B[A].STATUS,10)})
}}}}function GetUploadErrorLib(A){switch(A){case 6:return"Ce fichier n'est pas une photo ou son format n'est pas pris en charge par nos serveurs.";
break;case 13:case 15:return"Ce fichier a &eacute;t&eacute; corrompu lors du transfert. Merci de r&eacute;essayer.";
break;case 14:return"Le format de fichier PNG entrelac&eacute; n'est pas pris en charge par nos serveurs.";
break;default:return"Cette image n'a pu &ecirc;tre trait&eacute;e. Merci de r&eacute;essayer dans quelques instants.";
break}}function MonitorPictureTreatment(C){FeedLibelles(null,"Merci de patienter quelques instants");
EvalPictureTreatmentResult(C);var H='<span class="gtxtb">'+_CurrentUploadInfos.done.length+" fichiers trait&eacute;s sur "+_CurrentUploadInfos.total+"</span>";
if(_CurrentUploadInfos.error.length){H+="<br><br><fieldset><LEGEND align=top class=aa> <strong>ATTENTION</strong> </LEGEND>";
if(_CurrentUploadInfos.error.length<2){H+="<strong>Le fichier suivant n'a pu &ecirc;tre trait&eacute; par nos serveurs :</strong>"
}else{H+="<strong>Les fichiers suivants n'ont pu &ecirc;tre trait&eacute;s par nos serveurs :</strong>"
}H+="<ul>";for(var D=0,J=_CurrentUploadInfos.error.length;
D<J;D++){H+="<li><strong>&laquo; "+_CurrentUploadInfos.error[D].name+" &raquo;</strong> : "+GetUploadErrorLib(_CurrentUploadInfos.error[D].status)+"</li>"
}H+="</ul>";H+="</fieldset>"}H+='<br><div id="GlobalUploadersResultZone_buttons" style="margin-top:15px"></div>';
var B=PLg("GlobalUploadersResultZone");if(B){B.innerHTML=H
}if(_CurrentUploadInfos.remainings.length){if(_CurrentUploadInfos.nbcalls<10){var A=_CurrentUploadInfos.nbcalls*500
}else{var A=5000}setTimeout("CallMonitorPictureTreatment()",A)
}else{FeedLibelles("Traitement termin&eacute;","");
_CacheUploadSessionId=null;if(_CurrentUploadInfos.error.length){var E="";
try{E+="\nNOMBRE INITIAL DE FICHIERS : "+String(_FileStruct.length)
}catch(G){}try{E+="\n"+Digest(_CurrentUploadInfos)}catch(G){}ErrorHandler("UPLOAD TERMINE AVEC ERREURS",document.location,494,E,true)
}if(_CurrentUploadInfos.context=="editeur"){var F="";
for(var D=0,J=_CurrentUploadInfos.done.length;D<J;D++){F=ListAppend(F,_CurrentUploadInfos.done[D])
}parent.GrabPictureBunchV2({PicListe:F,refresh:true,doreload:false});
var I='<strong>Les nouvelles photos ont &eacute;t&eacute; ajout&eacute;es &agrave; votre s&eacute;lection de photos</strong><br><br><br><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td>'+AddButtonHTML(null,"Ok","buttonsB","parent.PLpopUpClose()")+"</td></tr></table>";
PLg("GlobalUploadersResultZone_buttons").innerHTML=I
}else{var I='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>';
if(_CurrentUploadInfos.motif!="classique"){I+='<td width="30%">'+AddButtonHTML(null,"Envoyer plus de photos","buttonsB","window.location.reload(true)")+"</td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td>"
}I+='<td width="70%">'+AddButtonHTML(null,"Continuer","buttonsA","ReOrientation(true)")+"</td></tr></table>";
PLg("GlobalUploadersResultZone_buttons").innerHTML=I
}}}function CallMonitorPictureTreatment(){FeedLibelles(null,"Appel...");
_CurrentUploadInfos.nbcalls++;var D="";for(var B=0,C=_CurrentUploadInfos.remainings.length;
B<C;B++){D=ListAppend(D,_CurrentUploadInfos.remainings[B])
}var A="ressource=grabUploadedPictures&idPictures="+D;
if(_UploadContext!="editeur"){A+="&storeResult=clientSelection"
}RequestJson({data:A,strResultFunc:"MonitorPictureTreatment"})
}function FeedLibelles(C,A){if(C!=null){if(parent.PLg("PLpopUpTitle")){var D=parent.PLg("PLpopUpTitle")
}else{if(PLg("UploadMainTitleDiv")){var D=PLg("UploadMainTitleDiv")
}}if(D){D.innerHTML=C}}if(A!=null){if(parent.PLg("PLpopUpSubTitle")){var B=parent.PLg("PLpopUpSubTitle")
}else{if(PLg("UploadSubTitleDiv")){var B=PLg("UploadSubTitleDiv")
}}if(B){B.innerHTML=A}}}function DisplayAlbums(){var A="ressource=grabAlbums&action=listAllAlbums";
RequestJson({data:A,strResultFunc:"DisplayAlbumsCallBack"})
}var _AlbumsListe;function DisplayAlbumsCallBack(C){if(typeof C!="undefined"){_AlbumsListe=C
}var E='<div style="width:680px;clear:both;">';for(var D=0,B=_AlbumsListe.length;
D<B;D++){if(_AlbumsListe[D].STATUS=="D"){E+='<div style="float:left;width:370px;">'+CreateAlbumEntry(_AlbumsListe[D])+"</div>";
D=B}}for(var D=0,B=_AlbumsListe.length;D<B;D++){if(_AlbumsListe[D].STATUS=="G"){E+='<div style="float:right;width:300px;">'+CreateAlbumEntry(_AlbumsListe[D])+"</div>";
D=B}}E+="</div>";E+='<div style="clear:both">';E+='<div style="width:150px;float:left;margin-left:2px;margin-top:5px;margin-bottom:5px;margin-right:15px;">'+AddButtonHTML(null,"Cr&eacute;er un album","buttonsC","CreateNewAlbum()")+"</div>";
if(_AlbumsListe.length>3){E+='<div style="padding-top:10px;"><b>Classer par : </b><a href=javascript:OrderListe("TITLE")>Titre</a> | <a href=javascript:OrderListe("DATE")>Date de cr&eacute;ation</a> | <a href=javascript:OrderListe("DATEM")>Date de modification</a> | <a href=javascript:OrderListe("NBOBJ")>Nombre de photos</a></div>'
}E+="</div>";if(_AlbumsListe.length>1){for(var D=0,B=_AlbumsListe.length;
D<B;D++){if(_AlbumsListe[D].STATUS=="S"){E+=CreateAlbumEntry(_AlbumsListe[D]);
E+='<div style="clear:both;height:10px"></div>'}if(typeof _AlbumsListe[D].JSDTCREATION=="undefined"){var A=_AlbumsListe[D].DTCREATION.split(" ");
TheDate=A[0].split("/");var F=A[2].split(":");_AlbumsListe[D].JSDTCREATION=new Date(TheDate[2],TheDate[1],TheDate[0],F[0],F[1])
}if(_AlbumsListe[D].DTMODIFICATION&&typeof _AlbumsListe[D].JSDTMODIFICATION=="undefined"){var A=_AlbumsListe[D].DTMODIFICATION.split(" ");
TheDate=A[0].split("/");var F=A[2].split(":");_AlbumsListe[D].JSDTMODIFICATION=new Date(TheDate[2],TheDate[1],TheDate[0],F[0],F[1])
}}}PLg("DisplayAlbumsContainer").innerHTML=E}function CreateAlbumEntry(B){var A={p:"priv&eacute;",s:"partag&eacute;",o:"public"};
var C='<table id="SAlbum_'+B.IDALBUM+'" cellpadding="0" cellspacing="0" border="0" width="100%" class="SAlbum" style="clear:both"><tr><td><table cellpadding="0" cellspacing="0" border="0" width="100%" class="inner innershade"><tr><td>';
C+='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>';
if(B.STATUS=="S"&&B.COMPUTEDPATHV!=""){C+='<td width="5%" valign="top">';
if(B.SHARINGSTATUS.toLowerCase()!="p"){C+='<div style="position:absolute;width:30px;height:30px;border:1px solid #CCCCCC;" title="Cet album est '+A[B.SHARINGSTATUS.toLowerCase()]+'"><img src="/p2/icones/ico_sharealb_'+B.SHARINGSTATUS+'.gif" width="30" height="30"></div>'
}C+='<img class="Lnk" style="margin-right:10px;border:1px solid #CCCCCC;" onclick="LoadAlbum('+B.IDALBUM+')" src='+B.COMPUTEDPATHV+">";
C+="</td>"}C+='<td valign="top">';if(B.STATUS=="S"){C+='<div style="float:right;width:30px">'+AddButtonHTML(null,"X","buttonClose","DeleteAlbum("+B.IDALBUM+")")+"</div>"
}C+='<span class="gtxta"><b>'+B.TITLE+"</b></span><br><b>"+B.NBOBJECT+" photo(s)</b>";
if(B.STATUS=="S"){C+="<b>&nbsp;&nbsp;-&nbsp;&nbsp;Album "+A[B.SHARINGSTATUS.toLowerCase()]+"</b>";
C+='<br><span class="txts">Cr&eacute;e le '+B.DTCREATION+" | Modifi&eacute; le "+B.DTMODIFICATION+"</span>"
}if(B.DESCRIPTION&&B.DESCRIPTION.length){C+="<br>&laquo; <i>"+B.DESCRIPTION+"</i> &raquo;"
}if(B.STATUS=="G"){C+='<div style="margin-top:5px;">'+AddButtonHTML(null,"Afficher la corbeille","buttonsB","LoadAlbum("+B.IDALBUM+")")+"</div>"
}else{C+='<table cellpadding="0" cellspacing="0" border="0" style="margin-top:5px;" width="100%"><tr>';
C+="<td>"+AddButtonHTML(null,"Ajouter des photos","buttonsC","UploadToAlbum("+B.IDALBUM+")")+"</td><td>&nbsp;</td>";
if(B.STATUS!="D"){C+="<td>"+AddButtonHTML(null,"Partager cet album","buttonsA","CallSharingScreen("+B.IDALBUM+")")+"</td><td>&nbsp;</td>"
}C+="<td>"+AddButtonHTML(null,"Afficher cet album","buttonsB","LoadAlbum("+B.IDALBUM+")")+"</td>";
C+='</tr></table><div style="clear:both"></div>'}C+="</td>";
C+="</tr></table>";C+="</td></tr></table></td></tr></table>";
return C}var CompareAlbumDTCREATION=function(B,A){return B.JSDTCREATION.getTime()<A.JSDTCREATION.getTime()?-1:B.JSDTCREATION.getTime()==A.JSDTCREATION.getTime()?0:1
};var CompareAlbumDTMODIFICATION=function(B,A){return B.JSDTMODIFICATION.getTime()<A.JSDTMODIFICATION.getTime()?-1:B.JSDTMODIFICATION.getTime()==A.JSDTMODIFICATION.getTime()?0:1
};var CompareAlbumNBOBJECTS=function(B,A){return B.NBOBJECT<A.NBOBJECT?-1:B.NBOBJECT==A.NBOBJECT?0:1
};var CompareAlbumTITLE=function(B,A){return B.TITLE.toString().toLowerCase()<A.TITLE.toString().toLowerCase()?-1:B.TITLE.toString().toLowerCase()==A.TITLE.toString().toLowerCase()?0:1
};var _PreviousOrderIndice;function OrderListe(A){if(!_AlbumsListe||typeof _AlbumsListe!="object"){return 
}if(_PreviousOrderIndice!=A){switch(A){case"DATE":_AlbumsListe.sort(CompareAlbumDTCREATION);
break;case"DATEM":_AlbumsListe.sort(CompareAlbumDTMODIFICATION);
break;case"NBOBJ":_AlbumsListe.sort(CompareAlbumNBOBJECTS);
break;case"TITLE":_AlbumsListe.sort(CompareAlbumTITLE);
break}}else{_AlbumsListe.reverse()}_PreviousOrderIndice=A;
DisplayAlbumsCallBack()}function LoadAlbum(A){JumpTo("/votre_espace/album.cfm?a="+A)
}function UploadToAlbum(A){JumpTo("/telechargement/index.cfm?action=album&a="+A)
}var _RequiredSharingAlbumId=null;function CallSharingScreen(A){_RequiredSharingAlbumId=A;
if(PLpopUp("large","Partage")){var B='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="txt" valign="top">Appel en cours...</td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=B}var C="ressource=albumGrabSharingState&a="+A;
RequestJson({data:C,strResultFunc:"DisplaySharingScreen"})
}function DisplaySharingScreen(A){var C=A[0];if(C.IDALBUM!=_RequiredSharingAlbumId){return 
}var D=PLg("ThePopUpDivContent");if(!D){PLpopUpClose();
return }var G=PLg("PLpopUpTitle");if(G){G.innerHTML="Partages pour &laquo;"+C.TITLE+"&raquo;"
}if(typeof C.PASSWORDALBUM=="undefined"){C.PASSWORDALBUM=""
}var B="";if(C.SHARINGSTATUS.toLowerCase()=="s"||C.SHARINGSTATUS.toLowerCase()=="o"){B+='<span id="ShareWithFriendsContainer"><span class="gtxtb"><b>Pr&eacute;venir mes proches par e-mail</b></span>'+DisplayShader(0,5)+'<table width="100%" cellpadding="0" cellspacing="2" border="0" style="margin-top:8px"><tr><td id="ShareWithFriendsButton"></td></tr></table><br></span>'
}B+='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="txt">';
var F="";if(C.SHARINGSTATUS.toLowerCase()=="p"){F="checked"
}var E="";if(C.SHARINGSTATUS.toLowerCase()=="s"){E="checked"
}B+='<span class="gtxtb"><b>Modifier le statut de partage de mon album</b></span>'+DisplayShader(0,5)+'<table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" style="padding-top:4px"><input type="Radio" name="sharingStatus" id="sharingStatus_p" value="p" onclick="SetSharingState(\'p\')" onchange="SetSharingState(\'p\')" '+F+'></td><td style="padding-bottom:5px;padding-left:5px;" valign="top"><label for="sharingStatus_p"><span class="mtxt"><b>Mode priv&eacute;</b></span><br>L\'album s&eacute;lectionn&eacute; n\'est accessible que par vous, une fois identifi&eacute; sur ce site, gr&acirc;ce &agrave; votre email et votre mot de passe</label></td></tr><tr><td colspan="3"><img src="/p2/p.gif" width="1" height="20"></td></tr><tr><td valign="top" style="padding-top:4px"><input type="Radio" name="sharingStatus" id="sharingStatus_s" value="s" onclick="SetSharingState(\'s\',\''+C.PASSWORDALBUM+"')\" onchange=\"SetSharingState('s','"+C.PASSWORDALBUM+"')\" "+E+'></td></td><td valign="top" style="padding-bottom:5px;padding-left:5px;"><label for="sharingStatus_s"><span class="mtxt"><b>Mode partag&eacute;</b></span><br>L\'album s&eacute;lectionn&eacute; est accessible uniquement aux proches &agrave; qui vous aurez pr&eacute;alablement communiqu&eacute; le mot de passe d\'acc&egrave;s &agrave; l\'album.</label></td></tr></table><div id="passwordContainer"></div>';
B+="</td></tr></table>";B+='<br><table width="100%" cellpadding="0" cellspacing="2" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table>';
D.innerHTML=B;SetSharingState(C.SHARINGSTATUS.toLowerCase(),C.PASSWORDALBUM);
AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Annuler",TheClass:"buttonsB",TheAction:"PLpopUpClose()",tabindex:2});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Valider",TheClass:"buttonsA",TheAction:"SubmitSharingEdition("+C.IDALBUM+")",tabindex:1});
if(C.SHARINGSTATUS.toLowerCase()=="s"||C.SHARINGSTATUS.toLowerCase()=="o"){AddButton2({TargetObject:"ShareWithFriendsButton",CleanTarget:true,TheId:null,TheValue:"Inviter des proches &agrave; visiter mon album",TheClass:"buttonsC",TheAction:"SendSharingToFriends("+C.IDALBUM+")",tabindex:3})
}PLpopUpResize()}function SetSharingState(B,C){var A=PLg("passwordContainer");
if(!A){return }if(B=="s"){A.innerHTML='<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:10px;"><tr><td style="border:1px solid #DBDBDB;padding:10px" class="txt"><span class="txtb"><b>Veuillez fournir un mot de passe :</b></span><br><input class="inputs_" type="Text" name="SharePassword" id="SharePassword" value="'+C+'" style="margin-bottom:5px"><br><span class="txts">NOTE : Ce mot de passe est attribu&eacute; &agrave; l\'album s&eacute;lectionn&eacute;. Vous pourrez le communiquer &agrave; vos proches qui pourront alors consulter les photos de cet album. Si vous modifiez ce mot de passe, les personnes en possession de l\'ancien mot de passe ne pourront plus y acc&egrave;der.</span></td></tr></table>'
}else{A.innerHTML="";if(PLg("ShareWithFriendsContainer")){PLg("ShareWithFriendsContainer").style.display="none"
}}PLpopUpResize()}function SubmitSharingEdition(C){var B=null;
var E="";if(PLg("sharingStatus_p").checked){B="p"}else{if(PLg("sharingStatus_s").checked){B="s";
var A=PLg("SharePassword").value;if(A.Trim()==""){PLSignalInputError("SharePassword","Merci de fournir un mot de passe");
return }if(A.toString().length<5){PLSignalInputError("SharePassword","Le mot de passe doit comporter au moins 5 caractères");
return }if(!isNaN(A)){PLSignalInputError("SharePassword","Votre mot de passe doit comporter au moins 1 lettre");
return }E="&p="+PLescape(A)}}var D="ressource=albumSetSharingState&a="+C+"&s="+B+E;
RequestJson({data:D,strResultFunc:"SubmitSharingEditionCallback"})
}function DisplaySharingLink(B){if(B.s=="s"){var A=_SContext.WebsiteUrl+"/albums_en_ligne/album.cfm?ap="+B.ap+"&e="+parseInt(Math.random()*9999,10)
}else{if(B.s=="o"){var A=_SContext.WebsiteUrl+"/albums_en_ligne/album.cfm?a="+B.a+"&e="+parseInt(Math.random()*9999,10)
}}var C='<br><br><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td style="padding:15px;border:1px solid #DBDBDB">'+AddButtonHTML(null,"Inviter des proches &agrave; visiter mon album","buttonsC","SendSharingToFriends("+B.a+")")+'<br><b>Ou utilisez le lien de partage ci-dessous</b><br><textarea rows="1" class="inputs_" onfocus="this.select()" style="margin-top:5px;">'+A+"</textarea></td></tr></table>";
return C}function SubmitSharingEditionCallback(B){var F=B;
var D="";if(F.s=="s"){D=DisplaySharingLink(F)}for(var C=0,E=_AlbumsListe.length;
C<E;C++){if(_AlbumsListe[C].IDALBUM==parseInt(F.a,10)){_AlbumsListe[C].SHARINGSTATUS=F.s
}}DisplayAlbumsCallBack();if(PLpopUp("large","Modification  enregistr&eacute;e")){var A='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="txt" valign="top"><b>Votre modification a &eacute;t&eacute; correctement prise en compte.</b>'+D+"</td></tr></table><br>";
A+='<table width="100%" cellpadding="0" cellspacing="2" border="0"><tr><td id="SaveButtonNoTd"></td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=A;AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Fermer",TheClass:"buttonsB",TheAction:"PLpopUpClose()",tabindex:1})
}}function SendSharingToFriends(A){if(PLpopUp("large","Inviter des proches")){var B='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="txt" valign="top" width="68%"><b>Indiquez les adresses e-mail des proches que vous souhaitez inviter :</b>';
B+='<table cellpadding="0" cellspacing="0" border="0" width="100%" id="MailInputsTable">';
for(var C=0;C<10;C++){B+='<tr><td><input style="margin-bottom:10px" class="inputs_" type="Text" name="SendSharingEmail_'+C+'" id="SendSharingEmail_'+C+'" onchange="CheckAvalaibleMailInputs()" onblur="CheckAvalaibleMailInputs()"></td></tr>'
}B+='</table></td><td class="txt" valign="top" style="padding-left:15px"><br><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td style="border:1px solid #CCCCCC;padding:10px;"><span class="txtb"><b>Votre carnet d\'adresses</b></span><div id="adressBookContainerSharingPopup"><em>Appel en cours...</em></div></td></tr></table></td></tr></table>';
B+='<b>Message d\'accompagnement :</b><br><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><textarea class="inputs_" rows="5" id="SendSharingMessage"></textarea></td></tr></table>';
B+='<br><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=B;GetAdressBook("web",225,"adressBookContainerSharingPopup");
AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Annuler",TheClass:"buttonsB",TheAction:"PLpopUpClose()",tabindex:2});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Envoyer",TheClass:"buttonsA",TheAction:"DoSendSharingToFriends("+A+")",tabindex:1})
}}function CountMailInputs(){var E=document.getElementsByTagName("INPUT");
var D=0;var A=0;var F=null;for(var B=0,C=E.length;B<C;
B++){if(E[B].type=="text"&&E[B].id.lastIndexOf("SendSharingEmail_")>-1){D++;
if(E[B].value.Trim().length>0){A++}else{if(F==null){F=B
}}}}return{FieldsNumber:D,UsedFieldsNumber:A,NextFreeField:F}
}function GetFreeInput(){var A=CountMailInputs();if(A.UsedFieldsNumber==A.FieldsNumber){var B=AddNewMailInput();
if(B){return PLg("SendSharingEmail_"+B)}}else{return PLg("SendSharingEmail_"+A.NextFreeField)
}}function CheckAvalaibleMailInputs(){var A=CountMailInputs();
if(A.UsedFieldsNumber==A.FieldsNumber){AddNewMailInput()
}}function AddNewMailInput(){var D=CountMailInputs();
var B=PLg("MailInputsTable");var A=B.insertRow(B.rows.length);
var E=A.insertCell(-1);var C=document.createElement("SPAN");
C.innerHTML='<input style="margin-bottom:10px" class="inputs_" type="Text" name="SendSharingEmail_'+D.FieldsNumber+'" id="SendSharingEmail_'+D.FieldsNumber+'" onchange="CheckAvalaibleMailInputs()" onblur="CheckAvalaibleMailInputs()">';
E.appendChild(C);return D.FieldsNumber}function DoSendSharingToFriends(A){var F="";
for(var C=0;C<CountMailInputs().FieldsNumber;C++){var E=PLg("SendSharingEmail_"+C);
if(E&&E.value.Trim().length>0){if(!E.value.isValidEmail()){PLSignalInputError("SendSharingEmail_"+C,"Cette adresse e-mail est invalide");
return }else{F=ListAppend(F,E.value.Trim())}}}if(F==""){alert("Veuillez indiquer au moins une adresse de destinataire")
}else{var D=PLg("SendSharingMessage").value;if(D.Trim().length==0){PLSignalInputError("SendSharingMessage","Merci de fournir un message d'accompagnement")
}else{var B="ressource=albumSendSharingInvitation&a="+A+"&el="+PLescape(F)+"&m="+PLescape(D);
RequestJson({data:B,strResultFunc:"DoSendSharingToFriendsCallBack"})
}}}function DoSendSharingToFriendsCallBack(){PLAlert("Votre message a &eacute;t&eacute; correctement envoy&eacute; aux destinataires indiqu&eacute;s",false,"Message envoy&eacute;")
}function AddToFavorites(){if(PLpopUp("small","Ajoutez cet album &agrave; vos favoris")){var A='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="txt" valign="top"><b>Ajouter l\'album &laquo; '+_CurrentAlbumTitle+' &raquo; &agrave; vos favoris</b><br>Description<br><textarea id="FavouriteDescription" class="inputs_" rows="6"></textarea></td></tr></table><br><table width="100%" cellpadding="0" cellspacing="2" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=A;AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Annuler",TheClass:"buttonsB",TheAction:"PLpopUpClose()",tabindex:2});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Valider",TheClass:"buttonsA",TheAction:"DoAddToFavorites()",tabindex:1})
}}function DoAddToFavorites(){var B=PLg("FavouriteDescription").value;
if(B.length>2000){PLSignalInputError("FavouriteDescription","La description d'un favoris ne doit pas exceder 2000 caracteres");
return }var A="ressource=addToFavorites&a="+_CurrentAlbumId+"&c="+PLescape(B);
PLpopUpWait("Appel en cours","Merci de patienter un instant");
RequestJson({data:A,strResultFunc:"DoAddToFavoritesCallBack"})
}function DoAddToFavoritesCallBack(){RemoveElement("AddToFavoritesTable");
PLAlert("L'album a &eacute;t&eacute; ajout&eacute; &agrave; vos favoris",false,"Album ajout&eacute;")
}function DeleteAlbum(A){if(PLpopUp("small","Supprimer un album","Etes-vous sur(e) de vouloir supprimer cet album ?")){WindowData='<br><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=WindowData;AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Annuler",TheClass:"buttonsB",TheAction:"PLpopUpClose()",tabindex:2});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Supprimer",TheClass:"buttonsA",TheAction:"DoDeleteAlbum("+A+")",tabindex:1})
}}function DoDeleteAlbum(A){PLpopUpWait("Appel en cours","Merci de patienter un instant");
var B="ressource=albumDelete&idalbum="+A;RequestJson({data:B,strResultFunc:"DeleteAlbumCallBack"})
}function DeleteAlbumCallBack(A){if(typeof A.idalbum=="number"&&PLg("SAlbum_"+parseInt(A.idalbum,10))){PLpopUpClose();
RemoveElement("SAlbum_"+parseInt(A.idalbum,10))}else{JumpTo("/votre_espace/index.cfm?r=2")
}}function AlbumDeletePicture(C){var B=PLg("Alb_Cart_"+C);
if(!B){return }ClearTheAlbDeletPictureConfirmation(true);
var A='<div>Supprimer ?&nbsp;&nbsp;<a href="javascript:DoAlbumDeletePicture('+C+')">OUI</a>&nbsp;&nbsp;<a href="javascript:ClearTheAlbDeletPictureConfirmation()">NON</a></div>';
CreateGraphicObjectV2({Otarget:"body",Otype:"DIV",id:"TheAlbDeletPictureConfirmation",style:{top:PLgetPosTop(B)+"px",width:B.offsetWidth+"px",height:B.offsetHeight+"px",left:PLgetPosLeft(B)+"px"},innerHTML:A})
}function ClearTheAlbDeletPictureConfirmation(A){if(A){RemoveElement("TheAlbDeletPictureConfirmation",true)
}else{RemoveElement("TheAlbDeletPictureConfirmation")
}}function DoAlbumDeletePicture(B){var A="ressource=albumDeletePicture&idpictures="+B;
RequestJson({data:A,strResultFunc:"DoAlbumDeletePictureCallBack"})
}function DoAlbumDeletePictureCallBack(A){var B=A;if(PLg("Alb_Div_"+B.idpictures)){RemoveElement(PLg("Alb_Div_"+B.idpictures))
}RemoveElement("TheAlbDeletPictureConfirmation",true)
}function AlbumRestorePicture(B){if(!PLg("Alb_Cart_"+B)){return 
}var A="ressource=albumRestorePicture&idpictures="+B;
RequestJson({data:A,strResultFunc:"DoAlbumRestorePictureCallBack"})
}function DoAlbumRestorePictureCallBack(A){var B=A;
if(PLg("Alb_Div_"+B.idpictures)){RemoveElement(PLg("Alb_Div_"+B.idpictures))
}}function CreateNewAlbum(){if(PLpopUp("small","Cr&eacute;er un album")){var A='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="txt" valign="top"><b>Titre</b><input class="inputs_" name="AlbumTitle" id="AlbumTitle"><br><b>Description</b><textarea class="inputs_" name="AlbumDesc" id="AlbumDesc" rows="6"></textarea></td></tr></table><br><table width="100%" cellpadding="0" cellspacing="2" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=A;AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Annuler",TheClass:"buttonsB",TheAction:"PLpopUpClose()",tabindex:2});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Cr&eacute;er",TheClass:"buttonsA",TheAction:"DoCreateNewAlbum()",tabindex:1})
}}function DoCreateNewAlbum(){var C=PLg("AlbumTitle").value;
var A=PLg("AlbumDesc").value;if(C.Trim()==""){PLSignalInputError("AlbumTitle","Merci d'indiquer un titre");
return }if(A.length>2000){PLSignalInputError("AlbumDesc","La description de votre album ne peut pas excéder 2000 caractères");
return }var B="ressource=albumCreateNewAlbum&t="+PLescape(C)+"&d="+PLescape(A);
RequestJson({data:B,strResultFunc:"DoCreateNewAlbumCallBack"})
}function DoCreateNewAlbumCallBack(A){UploadToAlbum(A.idalbum)
}function EditMyAlbum(){if(typeof _EditAlbIdalbum=="undefined"||typeof _EditAlbTitle=="undefined"||typeof _EditAlbDescription=="undefined"){ErrorHandler("Probleme sur appel a EditMyAlbum(). Variables globales manquantes",document.location,145);
return }if(PLpopUp("small",_EditAlbTitle)){var A='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="txt" valign="top"><b>Titre</b><input class="inputs_" name="AlbumTitle" id="AlbumTitle" value="'+_EditAlbTitle+'"><br><b>Description</b><textarea class="inputs_" name="AlbumDesc" id="AlbumDesc" rows="6">'+_EditAlbDescription+'</textarea></td></tr></table><br><table width="100%" cellpadding="0" cellspacing="2" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=A;AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Annuler",TheClass:"buttonsB",TheAction:"PLpopUpClose()",tabindex:2});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Valider",TheClass:"buttonsA",TheAction:"DoEditMyAlbum("+_EditAlbIdalbum+")",tabindex:1})
}}function DoEditMyAlbum(B){var D=PLg("AlbumTitle").value.toString();
var A=PLg("AlbumDesc").value.toString();if(D.Trim()==""){PLSignalInputError("AlbumTitle","Merci d'indiquer un titre");
return }if(A.length>2000){PLSignalInputError("AlbumDesc","La description de votre album ne peut pas excéder 2000 caractères");
return }var C="ressource=albumEditAlbum&a="+B+"&t="+PLescape(D)+"&d="+PLescape(A);
RequestJson({data:C,strResultFunc:"window.location.reload"})
}function EditPictureComment(){if(typeof _CurrentComment!="undefined"){var A=_CurrentComment
}else{var A=""}if(PLpopUp("small","L&eacute;gende")){var B='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="txt" valign="top"><textarea class="inputs_" name="PictureLegende" id="PictureLegende" rows="10">'+A+'</textarea></td></tr></table><br><table width="100%" cellpadding="0" cellspacing="2" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=B;AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Annuler",TheClass:"buttonsB",TheAction:"PLpopUpClose()",tabindex:2});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Valider",TheClass:"buttonsA",TheAction:"DoEditPictureComment()",tabindex:1})
}}function DoEditPictureComment(){var A=PLg("PictureLegende").value;
if(A.length>2000){PLSignalInputError("PictureLegende","La legende de votre photo ne peut pas excéder 2000 caractères");
return }PLpopUpWait("Appel en cours","Merci de patienter un instant");
var B="ressource=albumEditPictureComent&p="+_CurrentIdPicture+"&c="+PLescape(A);
RequestJson({data:B,strResultFunc:"EditPictureCommentCallBack"})
}function EditPictureCommentCallBack(A){var B=PLg("PictureCommentContainer");
if(B){B.innerHTML=A.newcomment}PLpopUpClose()}function deleteFavoris(A){if(!A){return 
}if(PLpopUp("small","Supprimer un favoris","Etes-vous sur(e) de vouloir supprimer ce favoris ?")){WindowData='<br><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=WindowData;AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Annuler",TheClass:"buttonsB",TheAction:"PLpopUpClose()",tabindex:2});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Supprimer",TheClass:"buttonsA",TheAction:"DodeleteFavoris("+A+")",tabindex:1})
}}function DodeleteFavoris(B){PLpopUpWait("Appel en cours","Merci de patienter un instant");
var A="ressource=deleteFavorite&f="+B;RequestJson({data:A,strResultFunc:"DodeleteFavorisCallback"})
}function DodeleteFavorisCallback(B){var A=B;var C=PLg("FavoritesDisplayEntry_"+A.deletedfav);
if(C){RemoveElement(C)}PLpopUpClose()}function CallMessage(G){var D=null;
for(var B=0,C=_InBoxContent.length;B<C;B++){if(_InBoxContent[B].IDMEMBERMESSAGE==G){D=_InBoxContent[B]
}}if(D==null){return }if(PLpopUp("small","Message")){var E=PLg("ThePopUpDivContent");
var F='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="txt">';
if(D.FIRSTNAME!=""||D.LASTNAME!=""||D.EMAIL!=""){F+="<b>DE : </b>"
}if(D.FIRSTNAME!=""){F+=D.FIRSTNAME+" "}if(D.LASTNAME!=""){F+=D.LASTNAME+" "
}if(D.EMAIL!=""){F+="( "+D.EMAIL+" )"}F+="</td></tr>";
F+='<tr><td class="txt"><b>ENVOYE LE : </b>'+D.DTCREATION+"</td></tr>";
F+='<tr><td><img src="/p2/pgrey.gif" width="100%" height="1" vspace="10"></td></tr>';
F+='<tr><td class="mtxt"><b>'+D.OBJECT+'</b></td></tr><tr><td class="txt">'+D.CONTENT+"</td></tr>";
F+="</table>";F+='<br><table width="100%" cellpadding="0" cellspacing="2" border="0"><tr><td width="50%" id="SaveButtonNoTd"></td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%" id="SaveButtonYesTd"></td></tr></table>';
E.innerHTML=F;AddButton2({TargetObject:"SaveButtonNoTd",CleanTarget:true,TheId:null,TheValue:"Fermer",TheClass:"buttonsB",TheAction:"PLpopUpClose()",tabindex:2});
AddButton2({TargetObject:"SaveButtonYesTd",CleanTarget:true,TheId:null,TheValue:"Effacer ce message",TheClass:"buttonsA",TheAction:"DeleteInboxMessage("+G+")",tabindex:1});
PLpopUpResize()}if(D.DTREAD==""){var A="ressource=messagingSetAsReaded&m="+G;
RequestJson({data:A,strResultFunc:"setMessageAsReadedCallBack"})
}}function setMessageAsReadedCallBack(B){var C=B;var A=PLg("NewMessageIcone_"+parseInt(C.messageid,10));
if(A){RemoveElement(A)}var F=0;for(var D=0,E=_InBoxContent.length;
D<E;D++){if(_InBoxContent[D].IDMEMBERMESSAGE==parseInt(C.messageid,10)){_InBoxContent[D].DTREAD=new Date()
}if(_InBoxContent[D].DTREAD==""){F++}}if(F>0){PLg("NewMessagesDisplay").innerHTML="("+F+" nouveau)"
}else{PLg("NewMessagesDisplay").innerHTML=""}}function DeleteInboxMessage(B){var A="ressource=messagingDeleteMessage&m="+B;
RequestJson({data:A,strResultFunc:"DeleteInboxMessageCallBack"})
}function DeleteInboxMessageCallBack(A){var B=A;for(var C=0,D=_InBoxContent.length-1;
C<D;C++){if(_InBoxContent[C].IDMEMBERMESSAGE==parseInt(B.messageid,10)){_InBoxContent.splice(C,1)
}}var E=PLg("OneMessageTableMain_"+parseInt(B.messageid,10));
if(E){RemoveElement(E)}PLpopUpClose()}function DisplayInBoxMessages(){if(typeof _InBoxContent=="undefined"){PLg("InBoxMessageTableContainer").style.display="none"
}var B=PLg("InBoxMessageContainer");if(!B){return }if(_InBoxContent.length==0){B.innerHTML="<em>Vous n'avez pas de message</em>";
B.style.height="20px";return }var A=function(H,G){return G.IDMEMBERMESSAGE-H.IDMEMBERMESSAGE
};_InBoxContent.sort(A);var F="";var E=0;for(var C=0,D=_InBoxContent.length;
C<D;C++){F+='<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:15px" id="OneMessageTableMain_'+_InBoxContent[C].IDMEMBERMESSAGE+'"><tr><td style="border-right:1px solid #DBDBDB;padding-right:5px;" valign="top" width="12">';
if(_InBoxContent[C].DTREAD==""){F+='<img src="/p2/icones/exclDot.gif" width="12" height="12" title="Nouveau message" id="NewMessageIcone_'+_InBoxContent[C].IDMEMBERMESSAGE+'">'
}F+='<img src="/p2/icones/ico_'+_InBoxContent[C].STATUS+'_message.gif" width="12" height="12" vspace="3">';
F+='</td><td valign="top" style="padding-left:5px"><a href="javascript:CallMessage('+_InBoxContent[C].IDMEMBERMESSAGE+')" style="line-height:14px;"><b>'+_InBoxContent[C].OBJECT+"</b><br>de <b>"+_InBoxContent[C].FIRSTNAME+" "+_InBoxContent[C].LASTNAME+"</b> ("+_InBoxContent[C].DTCREATION+')<img src="/p2/pgrey.gif" width="100%" height="1" vspace="3">'+_InBoxContent[C].CONTENT.Limit(70)+"</a></td></tr></table>";
if(_InBoxContent[C].DTREAD==""){E++}}B.innerHTML=F;
if(_InBoxContent.length>3){B.style.height="240px"}else{if(_InBoxContent.length>0){B.style.height=parseInt(_InBoxContent.length*70,10)+"px"
}}if(E>0){PLg("NewMessagesDisplay").innerHTML="("+E+" nouveau)"
}}var _adressBookMode=null;var _adressBookHeight=220;
var _adressBookTarget=null;function GetAdressBook(D,A,C){if(!D||!C){return 
}if(_adressBookTarget!=null){PLg(_adressBookTarget).innerHTML=""
}_adressBookMode=D;_adressBookTarget=C;if(typeof A=="number"){_adressBookHeight=A
}if(typeof _TheAdressBookStruct=="object"&&_TheAdressBookStruct!=null){DisplayAdressBook()
}else{var B="ressource=AdressbookGet";RequestJson({data:B,strResultFunc:"GetAdressBookCallBack"})
}}var _CompareContactsLastName=function(B,A){return B.LASTNAME.toString().toLowerCase()<A.LASTNAME.toString().toLowerCase()?-1:B.LASTNAME.toString().toLowerCase()==A.LASTNAME.toString().toLowerCase()?0:1
};var _TheAdressBookStruct=null;function GetAdressBookCallBack(C){if(_adressBookMode===null){return 
}var B=PLg(_adressBookTarget);var A=C;_TheAdressBookStruct=A;
_TheAdressBookStruct.sort(_CompareContactsLastName);
DisplayAdressBook()}function CallPosteAdressBook(){if(PLpopUp("small","Votre carnet d'adresses")){var A='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="txt" valign="top" id="adressBookContainerPostePopup">Appel en cours...</td></tr></table>';
PLg("ThePopUpDivContent").innerHTML=A;GetAdressBook("poste",400,"adressBookContainerPostePopup");
window.setTimeout("PLpopUpResize()",100)}}function DisplayAdressBook(){var A='<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:0px"><tr><td style="padding:5px;border-bottom:1px solid #CCCCCC;line-height:16px">';
var H="</td></tr></table>";var D="";for(var F=0,I=_TheAdressBookStruct.length;
F<I;F++){var J='<table cellpadding="1" cellspacing="0" border="0" style="margin-top:6px;margin-bottom:6px" align="left"><tr>';
if(_adressBookMode!="edit"){J+="<td><a href=\"javascript:UseAdressBookEntry('"+_TheAdressBookStruct[F].IDMEMBERADDRESSBOOK+'\')"><img src="/p2/icones/bt_add.gif"></a></td>'
}J+='<td><a href="javascript:ModifyAdressBookEntry('+_TheAdressBookStruct[F].IDMEMBERADDRESSBOOK+')"><img src="/p2/icones/bt_modif.gif"></a></td><td><a href="javascript:DeleteAdressBookEntry('+_TheAdressBookStruct[F].IDMEMBERADDRESSBOOK+')"><img src="/p2/icones/bt_delete.gif"></a></td></tr></table>';
D+=A;if(_adressBookMode=="web"){D+='<table cellpadding="0" cellspacing="0" border="0" width="100%" id="TitleBlock_'+_TheAdressBookStruct[F].IDMEMBERADDRESSBOOK+'"><tr><td><a href="javascript:UseAdressBookEntry(\''+_TheAdressBookStruct[F].IDMEMBERADDRESSBOOK+'\')"><span class="Mtxt"><b>'+_TheAdressBookStruct[F].FIRSTNAME+"&nbsp;"+_TheAdressBookStruct[F].LASTNAME+"</b></span> ("+_TheAdressBookStruct[F].EMAIL+")</a></td></tr></table>"
}else{if(_adressBookMode=="edit"){D+='<table cellpadding="0" cellspacing="0" border="0" width="100%" id="TitleBlock_'+_TheAdressBookStruct[F].IDMEMBERADDRESSBOOK+'"><tr><td><a href="javascript:ShowContactDetail(\''+_TheAdressBookStruct[F].IDMEMBERADDRESSBOOK+'\')"><span class="Mtxt"><b>'+_TheAdressBookStruct[F].FIRSTNAME+"&nbsp;"+_TheAdressBookStruct[F].LASTNAME+"</b></span></a></td></tr></table>"
}else{D+='<table cellpadding="0" cellspacing="0" border="0" width="100%" id="TitleBlock_'+_TheAdressBookStruct[F].IDMEMBERADDRESSBOOK+'"><tr><td><a href="javascript:UseAdressBookEntry(\''+_TheAdressBookStruct[F].IDMEMBERADDRESSBOOK+'\')"><span class="Mtxt"><b>'+_TheAdressBookStruct[F].FIRSTNAME+"&nbsp;"+_TheAdressBookStruct[F].LASTNAME+'</b></span></a> &nbsp; <a href="javascript:ShowContactDetail('+_TheAdressBookStruct[F].IDMEMBERADDRESSBOOK+')">[&nbsp;d&eacute;tail&nbsp;]</a></td></tr></table>'
}D+='<table cellpadding="0" cellspacing="0" border="0" width="100%" style="display:none;" id="DetailBlock_'+_TheAdressBookStruct[F].IDMEMBERADDRESSBOOK+'"><tr><td colspan="2">&nbsp;</td></tr>';
for(var B in _AdressBookProps){if(_AdressBookProps[B].type=="text"&&_TheAdressBookStruct[F][B]&&String(_TheAdressBookStruct[F][B]).Trim().length>0&&B!="LASTNAME"&&B!="FIRSTNAME"){if(B!="ADDRESS2"&&B!="ADDRESS3"){var C=_AdressBookProps[B].Lib
}else{var C=""}D+='<tr><td class="txtsb" align="right" width="15%" nowrap valign="top">'+C+'&nbsp;&nbsp;</td><td valign="top">'+_TheAdressBookStruct[F][B]+"</td></tr>"
}}D+='<tr><td class="txtsb" align="right" valign="top">PAYS&nbsp;&nbsp;</td><td valign="top">'+_TheAdressBookStruct[F].LBCOUNTRY+'</td></tr><tr><td colspan="2">&nbsp;</td></tr></table>'
}D+=J;D+=H}var G='<div style="overflow:auto;height:'+_adressBookHeight+'px;margin-bottom:5px">';
if(D==""){G+="<br><br><center><em>Votre carnet d'adresse est vide</em></center>"
}else{G+=D}G+="</div>";G+=AddButtonHTML(null,"Ajouter un contact","buttonsBS","AddNewAdressbookContact()");
var E=PLg(_adressBookTarget);E.innerHTML=G;PLpopUpResize()
}function ShowContactDetail(C){var B=PLg("DetailBlock_"+C);
if(B){if(B.style.display!="none"){B.style.display="none"
}else{B.style.display="inline";var A=PLg("TitleBlock_"+C);
if(A){A.scrollIntoView()}}}}function DeleteAdressBookEntry(B){if(typeof B!="number"){return 
}if(confirm("Supprimer ce contact ?")){var A="ressource=AdressbookDeleteEntry&IDMEMBERADDRESSBOOK="+B;
RequestJson({data:A,strResultFunc:"DeleteAdressBookEntryCallBack"})
}}function DeleteAdressBookEntryCallBack(A){var C=parseInt(A,10);
var B=FindAdressBookEntry(C);_TheAdressBookStruct.splice(B,1);
DisplayAdressBook()}function AddNewAdressbookContact(){ModifyAdressBookEntry(0)
}function ModifyAdressBookEntry(D){var H=false;if(D===0){H=true
}var G=PLg(_adressBookTarget);var K=_TheAdressBookStruct[FindAdressBookEntry(D)];
if(!H&&(typeof K!="object"||!G)){return }var J=H?"Nouveau contact":K.FIRSTNAME+"&nbsp;"+K.LASTNAME;
var L='<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="txts" style="padding:5px;"><span class="Mtxt"><b>'+J+'</b></span><br><img src="/p2/pgrey.gif" width="100%" height="1" vspace="3">';
var F=1;for(var E in _AdressBookProps){if(!_AdressBookProps[E].enabled){continue
}if(_AdressBookProps[E].type=="hidden"){var C=H?0:K[E];
L+='<input type="Hidden" id="ABField_'+E+'" value="'+C+'">'
}if(_AdressBookProps[E].type=="text"){var C=H?"":K[E];
L+=_AdressBookProps[E].Lib+'<input type="Text" class="inputs_" id="ABField_'+E+'" value="'+C+'" style="margin-bottom:5px" tabindex="'+F+'"><br>'
}if(_AdressBookProps[E].type=="radio"){var B='<div id="container_ABField_'+E+'"><table cellpadding="0" cellspacing="0" border="0" style="margin-top:3px;margin-bottom:3px;"><tr>';
for(var A in _AdressBookProps[E].radiovalues){var I=H?0:_AdressBookProps[E].radiovalues[A]==K[E]?"checked":"";
B+='<td><input type="Radio" name="ABField_'+E+'" id="ABField_'+E+"_"+_AdressBookProps[E].radiovalues[A]+'" value="'+_AdressBookProps[E].radiovalues[A]+'" '+I+'></td><td class="txts"><label for="ABField_'+E+"_"+_AdressBookProps[E].radiovalues[A]+'">&nbsp;'+A+"&nbsp;&nbsp;&nbsp;</label></td>"
}B+="</tr></table></div>";L+=B}if(_AdressBookProps[E].type=="country"){var C=H?0:K[E];
L+=_AdressBookProps[E].Lib+DisplayCountrys(C)}}L+='</td></tr></table><br><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td width="50%">'+AddButtonHTML(null,"Annuler","buttonsBS","DisplayAdressBook()")+'</td><td>&nbsp;&nbsp;&nbsp;</td><td width="50%">'+AddButtonHTML(null,"Valider","buttonsAS","UpdateAdressBook()")+"</td></tr></table>";
G.innerHTML=L;PLpopUpResize()}var _AdressBookProps={IDMEMBERADDRESSBOOK:{Lib:"IdAdressBook",type:"hidden",enabled:true,required:true},IDADDRESS:{Lib:"IdAdress",type:"hidden",enabled:true,required:true},CIVILITY:{Lib:"Civilit&eacute;",type:"radio",radiovalues:{Mme:2,Mlle:3,Mr:1,Societe:4},enabled:true,required:true},LASTNAME:{Lib:"Nom",type:"text",enabled:true,required:true},FIRSTNAME:{Lib:"Pr&eacute;nom",type:"text",enabled:true,required:true},COMPANY:{Lib:"Soci&eacute;t&eacute;",type:"text",enabled:false,required:false},EMAIL:{Lib:"E-mail",type:"text",enabled:true,required:"web edit"},PHONE:{Lib:"T&eacute;l&eacute;phone",type:"text",enabled:true,required:false},MOBILE:{Lib:"T&eacute;l&eacute;phone mobile",type:"text",enabled:true,required:false},FAX:{Lib:"Fax",type:"text",enabled:false,required:false},ADDRESS1:{Lib:"Adresse",type:"text",enabled:true,required:"poste"},ADDRESS2:{Lib:"Adresse suite",type:"text",enabled:true,required:false},ADDRESS3:{Lib:"Adresse suite",type:"text",enabled:true,required:false},ZIPCODE:{Lib:"Code postal",type:"text",enabled:true,required:"poste"},CITY:{Lib:"Ville",type:"text",enabled:true,required:"poste"},STATE:{Lib:"Etat",type:"text",enabled:false,required:false},LBCOUNTRY:{Lib:"Pays",type:"countryName",enabled:false,required:false},IDCOUNTRY:{Lib:"Pays",type:"country",enabled:true,required:"poste"}};
function UpdateAdressBook(){var E="";for(var F in _AdressBookProps){if(!_AdressBookProps[F].enabled){continue
}if(_AdressBookProps[F].type=="hidden"&&_AdressBookProps[F].required!=false){E+="&"+F+"="+PLescape(PLg("ABField_"+F).value)
}if(_AdressBookProps[F].type=="text"){if(_AdressBookProps[F].required===true||_AdressBookProps[F].required.toString().indexOf(_adressBookMode)>-1){if(PLg("ABField_"+F).value.Trim().length<1){PLSignalInputError("ABField_"+F,"Information requise");
return }if(F==="EMAIL"&&!PLg("ABField_"+F).value.Trim().isValidEmail()){PLSignalInputError("ABField_"+F,"Adresse incorrecte");
return }}E+="&"+F+"="+PLescape(PLg("ABField_"+F).value.toString())
}if(_AdressBookProps[F].type=="radio"){var B=null;for(var D in _AdressBookProps[F].radiovalues){if(PLg("ABField_"+F+"_"+_AdressBookProps[F].radiovalues[D]).checked){B=PLg("ABField_"+F+"_"+_AdressBookProps[F].radiovalues[D]).value
}}if(_AdressBookProps[F].required===true||_AdressBookProps[F].required.indexOf(_adressBookMode)>-1){if(B==null){PLSignalInputError("container_ABField_"+F,"Information requise");
return }}E+="&"+F+"="+B}if(_AdressBookProps[F].type=="country"){if(PLg("ABField_IDCOUNTRY").value==0){PLSignalInputError("container_ABField_IDCOUNTRY","Merci d'indiquer un pays");
return }E+="&"+F+"="+PLg("ABField_IDCOUNTRY").value
}}var A=PLg(_adressBookTarget);if(A){A.innerHTML='<span class="txtb"><em><strong>Mise &agrave; jours en cours</strong></em></span>'
}var C="ressource=AdressbookUpdateEntry"+E;RequestJson({data:C,strResultFunc:"UpdateAdressBookCallBack"})
}function UpdateAdressBookCallBack(I){var F=I;var C=F.IDMEMBERADDRESSBOOK;
var G=FindAdressBookEntry(C);if(F.IDCOUNTRY){for(var D=0,H=_Countrys.length;
D<H;D++){if(_Countrys[D].IDCOUNTRY==parseInt(F.IDCOUNTRY,10)){F.LBCOUNTRY=_Countrys[D].LBCOUNTRY
}}}if(G!==false){var E=_TheAdressBookStruct[G];for(var A in F){E[A]=F[A]
}}else{var B=_TheAdressBookStruct.length;_TheAdressBookStruct[B]={};
for(var A in F){_TheAdressBookStruct[B][A]=F[A]}}_TheAdressBookStruct.sort(_CompareContactsLastName);
DisplayAdressBook()}function FindAdressBookEntry(C){if(!_TheAdressBookStruct||_TheAdressBookStruct==null){return 
}for(var A=0,B=_TheAdressBookStruct.length;A<B;A++){if(_TheAdressBookStruct[A].IDMEMBERADDRESSBOOK==C){return A
}}return false}var _Countrys=null;function GetCountrys(){if(_Countrys==null){var A=RequestJson({data:"ressource=getCountrys",strResultFunc:"return"});
if(typeof A=="object"){_Countrys=A}}if(_Countrys!=null){return _Countrys
}else{return null}}function DisplayCountrys(B){if(B==""||B=="undefined"||B==undefined||B==null){var B=0
}var A=GetCountrys();if(A==null){return }var C='<div id="container_ABField_IDCOUNTRY"><select id="ABField_IDCOUNTRY" class="inputs_"><option value="0">--- Choisissez un pays ---</option>';
for(var E in A){var D=A[E].IDCOUNTRY==B?"selected":"";
C+='<option value="'+A[E].IDCOUNTRY+'" '+D+">"+A[E].LBCOUNTRY+"</option>"
}C+="</select></div>";return C}function UseAdressBookEntry(F){if(!_TheAdressBookStruct||_TheAdressBookStruct==null){return 
}var C=_TheAdressBookStruct[FindAdressBookEntry(F)];
if(_adressBookMode=="web"){GetFreeInput().value=C.EMAIL;
CheckAvalaibleMailInputs()}else{for(var E in _AdressBookProps){var D=E.toLowerCase();
var A=PLg(D);if(A){if(A.tagName.toLowerCase()=="input"&&A.type.toLowerCase()=="text"){A.value=""
}if(A.tagName.toLowerCase()=="select"){A.value=0}}if(_AdressBookProps[E].type=="text"){if(A){A.value=C[E]
}}}if(A.tagName.toLowerCase()=="select"&&A.id.toLowerCase()=="idcountry"){A.value=C.IDCOUNTRY;
if(typeof verifyCountryDeliveryForFlashDeliveryMode=="function"){verifyCountryDeliveryForFlashDeliveryMode(C.IDCOUNTRY)
}}if(C.CIVILITY){var B=PLg("civility_"+C.CIVILITY);
if(B){B.checked=true}}PLpopUpClose()}}function Digest2(F,B,A){if(typeof A!="number"){A=0
}if(!B){var B="\n"}for(C=0;C<A;C++){B+="> "}if(typeof (F)!="object"){return F
}if(F==null){return F}var D="";for(var C in F){D+=B;
try{if(F instanceof Array){D+="[ "+C+" ] : "}else{D+='"'+C+'" : '
}if(F[C]==null||F[C].nodeType||typeof F[C]=="event"){D+=String(F[C])
}else{if(A<20){A++;D+="{ "+Digest2(F[C],B,A)+" }"}else{D+="  STOP !!! \n"
}}}catch(E){}}return D}var EHTicket=false;function ErrorHandler(N,J,C,H,L){if(typeof J=="undefined"){J="URL de l'erreur non fourni"
}if(J.toString().indexOf("urchin.js")>-1||J.toString().indexOf("xtroi_phs.js")>-1||J.toString().indexOf("decisiveinsight/trjs.asp")>-1||J.toString().indexOf("injection_graph_func.js")>-1||J.toString().indexOf("chrome://")>-1||J.toString().indexOf("greasemonkey.js")>-1||J.toString().indexOf("idzone.cgi?action=jsVar")>-1||J.toString().indexOf("xtcore.js")>-1||J.toString().indexOf("xtclicks.js")>-1||J.toString().indexOf("netboosterTracking.js")>-1||J.toString().indexOf("c.viralmoneysoftware.com")>-1){return true
}if(N.toString().toLowerCase().indexOf("erreur vote process_play")>-1){return true
}if(H&&H.FUNC&&H.FUNC.toString().toLowerCase().indexOf("createtextbitmap")>-1){return true
}if(arguments&&arguments.callee&&arguments.callee.caller&&arguments.callee.caller.toString().indexOf("__flash__removeCallback")>-1){return true
}if(N.toString().toLowerCase().indexOf("permission refus")>-1&&N.toString().toLowerCase().indexOf("thode location.tostring")>-1){return true
}if(N.toString().toLowerCase().indexOf("moire insuffisante")>-1||N.toString().toLowerCase().indexOf("out of memory")>-1||(H&&H!=""&&H.toString().toLowerCase().indexOf("moire insuffisante")>-1)){alert("Une erreur est survenue.\nVotre ordinateur n'a pu accomplir la tache demandee car il ne dispose plus de suffisament de memoire disponible.\nNous vous suggerons de fermer les applications non utilisees et de reessayer la derniere action demandee.")
}if(typeof N=="object"){H=Digest2(N);N="TheError est un objet"
}if(EHTicket==true&&!_JSdebug){return true}if(!L){var L=false
}var B=new Date().toLocaleString().toString(10);EHTicket=true;
if(!L){RemoveElement(PLg("EHTicker"));CreateGraphicObjectV2({Otype:"DIV",Otarget:"body",id:"EHTicker",style:{opacity:90,top:GetDoc().scrollTop}});
var I=PLg("EHTicker");I.innerHTML="Une erreur est survenue. Veuillez nous en excuser. Nos equipes techniques en ont &eacute;t&eacute; inform&eacute;es."
}var Q="---------------------------------";var G=[];
var P=function(S,R){G[G.length]="\n"+S;if(typeof R!="undefined"&&typeof R!=undefined){G[G.length]=" : "+R
}};P("TEXT",N);P("LINE",C);P("URL",J);P("LOAD",_LoadTime);
P("EVENT",B);P("SILENT",L);try{P(Q);for(var F in G_User){P(F.toUpperCase(),G_User[F])
}}catch(K){}try{P(Q);P("USERAGENT",navigator.userAgent);
if(!navigator.cookieEnabled){P("!! COOKIEENABLED",navigator.cookieEnabled)
}if(!navigator.javaEnabled()){P("!! JAVAENABLED",navigator.javaEnabled())
}}catch(K){}if(typeof H!="undefined"){try{P(Q);P(H);
P(Q)}catch(K){}}try{if(typeof arguments!="undefined"&&typeof arguments.callee!="undefined"&&typeof arguments.callee.caller!="undefined"){P("---------------------------------\nCALLEE.CALLER",String(arguments.callee.caller).substring(0,100))
}}catch(K){}try{var D=arguments.callee.caller;if(typeof D=="function"){var M="";
for(var F=0;F<D.arguments.length;F++){M+="\n**** "+F+" ****\n"+Digest(D.arguments[F])+"\n**********"
}P("---------------------------------\nCALLEE.CALLER.ARGS",M)
}}catch(K){}try{P("---------------------------------\nCALLEE.CALLER.CALLER",arguments.callee.caller.caller.toString().substring(0,100))
}catch(K){}try{P("---------------------------------\nCALLEE.CALLER.CALLER.CALLER",arguments.callee.caller.caller.caller.toString().substring(0,100))
}catch(K){}try{P("---------------------------------\nCALLEE.CALLER.CALLER.CALLER.CALLER",arguments.callee.caller.caller.caller.caller.toString().substring(0,100))
}catch(K){}try{P(Q);P("REAL URL",document.location)
}catch(K){}try{if(document!=parent.document){P("PARENT URL",parent.document.location)
}}catch(K){}try{P("DOMAIN",document.domain)}catch(K){}try{P("REFERRER",document.referrer)
}catch(K){}try{P("LAUNCHREQUESTLISTING",_LaunchRequestListing)
}catch(K){}if(typeof PRD!="undefined"){P(Q);try{P("CURRENTPAGE",CurrentPage);
P("GPRD().IDPROJECT",Gprd().idproject);P("GPRD().IDPRODUCT",Gprd().idproduct)
}catch(K){}}var O=_RessourcesFolder+"errorhandling.cfm";
var E=O+"?Title="+PLescape(N);if(GetUserInfo("IDuser")){E+="&u="+String(GetUserInfo("IDuser"))
}E+="&t="+PLescape(G.join(""));E=(_navigateur.browser=="ie")?E.substring(0,2000):E.substring(0,15000);
var A=document.createElement("IMG");A.onload=EHEnd;
A.src=E;if(_JSdebug&&!L){alert(G.join(""))}else{return true
}}function EHEnd(){EHTicket=false;RemoveElement(PLg("EHTicker"))
}function CreateTextReqString(B){var C=["zone=",B.zoneWidth,",",B.zoneHeight,"&v=",_editorVersion].join("");
for(var A in B){if(A!="zoneWidth"&&A!="zoneHeight"){C+="&"+A+"="+B[A]
}}return C}function GetProductTypeIcones(D){WindowData='<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:15px">';
if(typeof D!="undefined"&&D!=""){for(var A=0,C=_OrderGammeData.length;
A<C;A++){if(A%4==0){WindowData+="<tr>"}var B=_OrderGammeData[A].uri+D;
WindowData=[WindowData,'<td width="20%" class="txt" align="center" style="border-bottom:2px solid white" onmouseover="swapBorder(this,\'bottom\',\'2px solid red\')" onmouseout="swapBorder(this,\'bottom\',\'2px solid white\')"><a href="',B,'"><img src="',_OrderGammeData[A].ico.pre,"l",_OrderGammeData[A].ico.suff,'" height="80" align="absmiddle"><br>',_OrderGammeData[A].lib,"</a></td>"].join("");
if(A%4==4){WindowData+='</tr><tr><td colspan="5"><img src="/p2/p.gif" width="1" height="20"></td></tr>'
}}}else{WindowData+="<tr>";for(var A=0,C=_DisplayGammeData.length;
A<C;A++){var B=_DisplayGammeData[A].uri;WindowData=[WindowData,'<td class="txt" align="center" style="border-bottom:2px solid white" onmouseover="swapBorder(this,\'bottom\',\'2px solid red\')" onmouseout="swapBorder(this,\'bottom\',\'2px solid white\')"><a href="',B,'"><img src="',_DisplayGammeData[A].ico.pre,"l",_DisplayGammeData[A].ico.suff,'" height="80" align="absmiddle"><br>',_DisplayGammeData[A].lib,"</a></td>"].join("")
}WindowData+="</tr>"}return[WindowData,"</table>"].join("")
}function SelectProductTypeForOrder(A){if(!A){var A=""
}if(PLpopUp("large","S&eacute;lectionnez un type de produit","",false,true)){PLg("ThePopUpDivContent").innerHTML=GetProductTypeIcones(A)
}}

var _OrderGammeData=[{lib:"Tirages photo",uri:"/tirages_photo/selection.cfm?action=prints&a=",ico:{pre:"/p2/products/tmn_ico_",suff:"_tirage.gif"}},{lib:"Livres photo",uri:"/tirages_photo/selection.cfm?action=book&a=",ico:{pre:"/p2/products/tmn_ico_",suff:"_book.gif"}},{lib:"Calendriers photo",uri:"/tirages_photo/selection.cfm?action=calendrier&a=",ico:{pre:"/p2/products/tmn_ico_",suff:"_calendrier.gif"}},{lib:"Toiles",uri:"/tirages_photo/selection.cfm?action=toile&a=",ico:{pre:"/p2/products/tmn_ico_",suff:"_toile.gif"}},{lib:"Posters",uri:"/tirages_photo/selection.cfm?action=poster&a=",ico:{pre:"/p2/products/tmn_ico_",suff:"_poster_seul.gif"}},{lib:"Cahiers",uri:"/tirages_photo/selection.cfm?action=cahier&a=",ico:{pre:"/p2/products/tmn_ico_",suff:"_cahier_seul.gif"}},{lib:"V&oelig;ux et Faire-part",uri:"/tirages_photo/selection.cfm?action=carte&a=",ico:{pre:"/p2/products/tmn_ico_",suff:"_carte.gif"}},{lib:"Agendas",uri:"/tirages_photo/selection.cfm?action=agenda&a=",ico:{pre:"/p2/products/tmn_ico_",suff:"_agenda_seul.gif"}},{lib:"Puzzles photo",uri:"/tirages_photo/selection.cfm?action=puzzle&a=",ico:{pre:"/p2/products/tmn_ico_",suff:"_puzzle.gif"}}];

if(GetUserPartnerContext("isPHSUser"))_OrderGammeData.push({lib:"Archive DVD",uri:"/tirages_photo/selection.cfm?action=archive&a=",ico:{pre:"/p2/products/tmn_ico_",suff:"_archive.gif"}})

var _DisplayGammeData=[{lib:"Tirages photo",uri:"/produits_photo/tirage_photo.cfm",ico:{pre:"/p2/products/tmn_ico_",suff:"_tirage.gif"}},{lib:"Livres photo",uri:"/produits_photo/livre_photos.cfm",ico:{pre:"/p2/products/tmn_ico_",suff:"_book.gif"}},{lib:"Calendriers photo",uri:"/produits_photo/calendrier_photo.cfm",ico:{pre:"/p2/products/tmn_ico_",suff:"_calendrier.gif"}},{lib:"Toiles &amp; posters",uri:"/produits_photo/toiles_et_posters.cfm",ico:{pre:"/p2/products/tmn_ico_",suff:"_poster.gif"}},{lib:"Agendas &amp; cahiers",uri:"/produits_photo/agendas_et_cahiers.cfm",ico:{pre:"/p2/products/tmn_ico_",suff:"_agenda.gif"}},{lib:"V&oelig;ux et Faire-part",uri:"/produits_photo/cartes_fairepart.cfm",ico:{pre:"/p2/products/tmn_ico_",suff:"_carte.gif"}},{lib:"Objets photo",uri:"/produits_photo/objets_photo.cfm",ico:{pre:"/p2/products/tmn_ico_",suff:"_objets.gif"}}];
function swapBorder(C,A,B){if(typeof C!="object"){return 
}switch(A){case"top":C.style.borderTop=B;break;case"bottom":C.style.borderBottom=B;
break;case"left":C.style.borderLeft=B;break;case"right":C.style.borderRight=B;
break}}function swapBGimage(B,A){if(typeof B!="object"){return 
}B.style.background=A}function swapBGcolor(B,A){if(typeof B!="object"){return 
}B.style.backgroundColor=A}function CreateListe(){this.Init=function(A){this.values=A.values.split(",");
this.labels=A.labels.split(",");this.width=A.width;
this.height=A.height;this.callBack=A.callBack;this.name=A.name;
this.title=A.title;this.HelpBoxId=A.HelpBoxId};this.updateLabel=function(A){if(PLg(this.name+"_DisplayedVal")){PLg(this.name+"_DisplayedVal").innerHTML="&nbsp;"+A
}};this.Deploy=function(F){var A=CreateGraphicObjectV2({Otype:"DIV"});
var E="";for(var D=0,B=this.labels.length;D<B;D++){E+='<div class="ListeDeroulanteEntry" onmousedown="killBubble" onmouseup="killBubble" onmouseover="swapBGcolor(this,\'#F7F7F7\')" onmouseout="swapBGcolor(this,\'\')" onclick="'+this.name+".updateLabel('"+this.labels[D]+"');"+this.callBack+"("+this.page+","+this.index+",'"+this.values[D]+"')\">"+this.labels[D]+"</div>"
}A.innerHTML=E;A.style.width=parseInt(this.width,10)+"px";
A.className="ListeDeroulanteContainer";A.id="DeployedListe";
setGlobalEvent(document.body,"mouseover",function(){PLpopUpClearShade(A);
RemoveElement(A)});setGlobalEvent(A,"mouseover",killBubble);
setGlobalEvent(A,"mouseup",function(){PLpopUpClearShade(A);
RemoveElement(A)});setGlobalEvent(A,"mouseup",killBubble);
setGlobalEvent(A,"mousedown",killBubble);setGlobalEvent(A,"click",killBubble);
document.body.appendChild(A);var C=PLgetPosTop(this.target)+(this.target.offsetHeight/2)-(A.offsetHeight/2);
A.style.top=parseInt(C,10)+"px";A.style.left=PLgetPosLeft(this.target)+"px";
PLpopUpAddShade(A)};this.render=function(E,B,D,C){this.target=E;
this.page=D;this.index=C;var A=CreateGraphicObjectV2({Otype:"DIV",className:"ListeDeroulante"});
if(this.HelpBoxId!="undefined"){A.setAttribute("HelpBoxId",this.HelpBoxId)
}if(typeof this.width=="number"){A.style.width=this.width+"px"
}else{if(E.offsetParent&&typeof E.offsetParent.offsetWidth=="number"){this.width=E.offsetParent.offsetWidth;
A.style.width=this.width+"px"}}if(typeof this.height=="number"){A.style.height=this.height+"px"
}if(this.title&&this.title.Trim()!=""){A.title=this.title
}A.innerHTML='<table><tr><td id="'+this.name+'_DisplayedVal">'+B+"</td></tr></table>";
setGlobalEvent(A,"mouseup",this.Deploy.bind(this));
E.appendChild(A)}}onerror=function(){return true};var _LoadTime=null;
function GlobalLoadingHandler(){onerror=ErrorHandler;
if(window!=window.top){try{var IsPHSPopup=GetURLParameter("ispopup")
}catch(e){var IsPHSPopup=false}try{if(!IsPHSPopup){top.location.href=location.href
}}catch(e){}}_LoadTime=new Date().toLocaleString().toString(10);
try{document.execCommand("BackgroundImageCache",false,true)
}catch(e){}try{if(_InitEditionProject){InitEditionProject()
}}catch(o){}if(_LaunchRequestListing){_LaunchRequestListing=_LaunchRequestListing.split(";");
for(var i=0,Li=_LaunchRequestListing.length;i<Li;i++){if(_LaunchRequestListing[i]!=""){eval(_LaunchRequestListing[i])
}}}try{PropageHelp()}catch(e){}}(function(B){var A=navigator.userAgent.toLowerCase();
if(/webkit/.test(A)){timeout=setTimeout(function(){if(document.readyState=="loaded"||document.readyState=="complete"){B()
}else{setTimeout(arguments.callee,100)}},100)}else{if((/mozilla/.test(A)&&!/(compatible)/.test(A))||(/opera/.test(A))){document.addEventListener("DOMContentLoaded",B,false)
}else{if(_navigateur.browser=="ie"){(function(){var C=document.createElement("document:ready");
try{C.doScroll("left");B();C=null}catch(D){setTimeout(arguments.callee,100)
}})()}else{window.onload=B}}}})(GlobalLoadingHandler);