var JSUrl;var CSSUrl;var IMGUrl;var DEBUG=false;var yahooIsHere=false;try{var _YUD=YAHOO.util.Dom;yahooIsHere=true}catch(e){_YUD=false}try{var _YUDD=YAHOO.util.DD;yahooIsHere=true}catch(e){_YUDD=false}try{var _YUDDP=YAHOO.util.DDProxy;yahooIsHere=true}catch(e){_YUDDP=false}try{var _YUA=YAHOO.util.Anim;yahooIsHere=true}catch(e){_YUA=false}try{var _YUE=YAHOO.util.Event;yahooIsHere=true}catch(e){_YUE=false}try{var _YUC=YAHOO.util.Connect;yahooIsHere=true}catch(e){_YUC=false}if(!yahooIsHere){var YAHOO=false}function OB_Log(A){if(window.console){window.console.log(A)}else{alert(A)}}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.strip=function(){return this.replace(/(<([^>]+)>)/ig,"").replace(">","").replace("<","")};String.prototype.space=function(){return this.replace(/_/g," ")};var truncate=function(A,C,B,D){if(!A){return""}if(!C){C=80}if(!B){B="…"}if(!D){D=false}if(A.length==0){return""}if(A.length>C){C=C-B.length;if(D){A.substring(0,C+1);A.replace("/s+?(S+)?$/","")}return A.substring(0,C)+B}else{return A}};var showEl=function(B,A){B=getElmt(B);if(B){if(!A){B.style.display="block"}else{switch(A){case"height":B.style.height="auto";B.style.overflow="visible";break}}}};var hideEl=function(B,A){B=getElmt(B);if(B){if(!A){B.style.display="none"}else{switch(A){case"height":B.style.height=0;B.style.overflow="hidden";break}}}};var destroyEl=function(A){var C=getElmt(A);if(C.parentNode){C.parentNode.removeChild(C)}else{if(A[0]){for(var B=0;A[B];B++){destroyEl(A[B])}}}};function createLink(A,C,F,E){var B=document.createElement("a");if(typeof ("href")!="undefined"){B.setAttribute("href",A)}if(typeof ("class")!="undefined"){B.setAttribute("class",C)}if(typeof ("id")!="undefined"){B.setAttribute("id",F)}if(typeof ("innerText")!="undefined"){var D=document.createTextNode(E);B.appendChild(D)}return B}function getElmt(A){if(typeof A=="string"){return document.getElementById(A)}else{return A}}function getBrowser(){if(navigator.appName.indexOf("Internet Explorer")!=-1){if(navigator.appVersion.indexOf("MSIE 7")!=-1){return"ie7"}return"ie"}if(navigator.appName.indexOf("Opera")!=-1){return"op"}if(navigator.appVersion.indexOf("Safari")!=-1){return"sf"}if(navigator.appName.indexOf("Konqueror")!=-1){return"kq"}if(navigator.appCodeName.indexOf("Mozilla")!=-1){return"mz"}}var language;var localizedFile;function getLocalizedString(B){try{if(localizedString&&localizedString[B]){return localizedString[B]}}catch(A){return B}return B}function numericKeysOnly(B){var A=_YUE.getEvent(B).keyCode;if((A>47&&A<58)||(A>95&&A<106)||(A==8)||(A==13)||(A==27)||(A==46)||(A==188)||(A==190)){return A}return false}var toggle=function(A,B){A=getElmt(A);if(!B){B="block"}if(A.style.display==B||A.style.display==""){A.style.display="none"}else{A.style.display=B}return true};function trim(A){return A.trim()}var confirmOnQuit=function(A){if(A){window.onbeforeunload=function(){return A};document.body.onbeforeunload=function(){return A};return true}else{window.onbeforeunload=new Function();document.body.onbeforeunload=new Function();return true}};var setAltLines=function(C){C=getElmt(C);if(!C){return false}var B=C.getElementsByTagName("li");if(B.length==0){B=C.getElementsByTagName("tr")}var D=false;for(var A=1;B[A];A++){if(D){_YUD.addClass(B[A],"alt");D=false}else{_YUD.removeClass(B[A],"alt");D=true}B[A].onmouseover=function(){_YUD.addClass(this,"over")};B[A].onmouseout=function(){_YUD.removeClass(this,"over")}}};var OB_AutoInputs=new Array();var OB_AutoInput=function(A,C,B){this.element=getElmt(A);this.newElement=null;this.items=new Array();this.withPlus=C;this.focusEvent=null;if(B&&B.focusEvent){this.focusEvent=B.focusEvent}this.blurEvent=null;if(B&&B.blurEvent){this.blurEvent=B.blurEvent}this.id=null;OB_AutoInputs.push(this);this.id=OB_AutoInputs.length;if(getBrowser()!="sf"){this.init()}};OB_AutoInput.prototype={init:function(){this.newElement=document.createElement("ul");this.element.parentNode.insertBefore(this.newElement,this.element);this.element.style.display="none";if(this.element.value!=""){var A=this.element.value.split(",");for(var B=0;A[B];B++){this.addItem(A[B])}}else{this.addItem(getLocalizedString("nouveau tag"))}},addItem:function(B){var A=new OB_AutoInputItem(B);this.items.push(A);this.redraw()},deleteItem:function(A){if(this.items.length>1){this.items.splice(this.getInputPosition(A),1);this.redraw()}else{this.items[0].value=getLocalizedString("nouveau tag");this.redraw()}this.serialize()},redraw:function(){this.newElement.innerHTML="";for(var A=0;this.items[A];A++){this.items[A].init();this.newElement.appendChild(this.items[A].element)}if(this.withPlus){newLi=document.createElement("li");newLi.style.display="inline";newLi.style.position="relative";newLi.parent=this;newLi.onclick=function(){this.parent.addItem(getLocalizedString("nouveau tag"))};newDiv=document.createElement("div");newDiv.style.background='url("'+IMGUrl+'tiplus.gif") center no-repeat';newLi.style.position="absolute";newDiv.style.width="12px";newDiv.style.height="1em";newLi.appendChild(newDiv);this.newElement.appendChild(newLi)}},serialize:function(){var B="";for(var A=0;this.items[A];A++){if(this.items[A].value!=getLocalizedString("nouveau tag")){B+=this.items[A].value;if(this.items[A+1]&&this.items[A+1].value!=getLocalizedString("nouveau tag")){B+=","}}else{B=""}}this.element.value=B},getInputPosition:function(A){for(var B=0;this.items[B];B++){if(this.items[B]==A){return B}}return false},addFocusEvent:function(A){this.focusEvent=A},destroy:function(){this.serialize();this.newElement.parentNode.removeChild(this.newElement);this.element.style.display="inline"},toString:function(){return"OB_AutoInput_"+this.id}};OB_AutoInput.getAutoInputByItem=function(C){for(var B=0;OB_AutoInputs[B];B++){for(var A=0;OB_AutoInputs[B].items[A];A++){if(OB_AutoInputs[B].items[A]==C){return OB_AutoInputs[B]}}}return false};var OB_AutoInputItems=new Array();var OB_AutoInputItem=function(A){this.value=A;this.element=null;this.id=null;OB_AutoInputItems.push(this);this.id=OB_AutoInputItems.length;this.init()};OB_AutoInputItem.prototype={init:function(){this.element=document.createElement("li");this.element.style.display="inline";this.element.style.marginRight="0.2em";this.element.style.position="relative";var B=document.createElement("span");B.innerHTML=this.value+",";this.element.appendChild(B);this.element.newSpan=B;var A=document.createElement("input");A.value=this.value;A.style.display="none";A.style.border="1px solid #ccc";A.style.width=(this.value.length+1)*0.7+"em";A.style.fontFamily="monospace";A.parent=this;A.onblur=function(){if(this.value==""){OB_AutoInput.getAutoInputByItem(this.parent).deleteItem(this.parent)}else{this.value=this.value.replace(new RegExp("<.*?>","gi"),"");this.parent.value=this.value;B.innerHTML=this.parent.value+",";if(OB_AutoInput.getAutoInputByItem(this.parent)){OB_AutoInput.getAutoInputByItem(this.parent).serialize()}A.style.display="none";B.style.display="inline"}if(OB_AutoInput.getAutoInputByItem(this.parent).blurEvent){OB_AutoInput.getAutoInputByItem(this.parent).blurEvent()}};A.onkeydown=function(D){var E=_YUE.getEvent(D);if(E.keyCode==13){return false}};A.onkeypress=function(D){if(parseInt(this.value.length)<3){this.style.width="2em"}else{this.style.width=(this.value.length+1)*0.6+"em"}};A.onfocus=function(){setTimeout(function(){A.select()},1);if(OB_AutoInput.getAutoInputByItem(this.parent).focusEvent){OB_AutoInput.getAutoInputByItem(this.parent).focusEvent()}};this.element.appendChild(A);var C=document.createElement("div");C.style.background='url("'+IMGUrl+'ticlose.gif") center no-repeat';C.style.width="12px";C.style.height="1em";C.style.position="absolute";C.style.top=0;C.style.left=0;C.style.visibility="hidden";C.onclick=function(){var D=OB_AutoInputItem.getAutoInputItemByElmt(this.parentNode);OB_AutoInput.getAutoInputByItem(D).deleteItem(D)};this.element.appendChild(C);this.element.style.paddingLeft="12px";this.element.onmouseover=function(){C.style.visibility="visible"};this.element.onmouseout=function(){C.style.visibility="hidden"};this.element.onclick=function(){B.style.display="none";A.style.display="inline";A.focus()}},toString:function(){return"OB_AutoInputItem_"+this.id}};OB_AutoInputItem.getAutoInputItemByElmt=function(B){for(var A=0;OB_AutoInputItems[A];A++){if(OB_AutoInputItems[A].element==getElmt(B)){return OB_AutoInputItems[A]}}return false};var OB_Editors=new Array();var OB_Editor=function(A,B){this.element=getElmt(A);this.id=null;this.params=B?B:{};this.onEditorInit=new Function();if(this.element){OB_Editors.push(this);if(this.element.id){this.id=this.element.id}else{this.id="OB_Editor_"+OB_Editors.length;this.element.id=this.id}this.init()}else{throw"No element specified. Can't initialize OB_Editor."}};OB_Editor.prototype={init:function(){this.tmceParams=null;this.tmceParams={mode:"exact",elements:this.id};if(!this.params.lang|this.params.lang!="fr"&&this.params.lang!="en"&&this.params.lang!="de"&&this.params.lang!="it"&&this.params.lang!="es"){this.params.lang="fr"}this._getToolbar(this.params.toolbar?this.params.toolbar:null);this.tmceParams.theme="advanced";this.tmceParams.skin="OB";this.tmceParams.inlinepopups_skin="OBinlineDialog";this.tmceParams.theme_advanced_toolbar_location="top";this.tmceParams.theme_advanced_toolbar_align="left";this.tmceParams.theme_advanced_resizing=false;this.tmceParams.theme_advanced_styles=getLocalizedString("style.Citation")+" = hitcitation; "+getLocalizedString("style.Encart")+" = hitencart; "+getLocalizedString("style.Important")+" = hitimportant; "+getLocalizedString("style.perso1")+" = hitperso1; "+getLocalizedString("style.perso2")+" = hitperso2";this.tmceParams.extended_valid_elements="*[*],img[*],object[*|type|id],em[*|class],b[*|class]";this.tmceParams.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt";if(this.params.normalNewLines){this.tmceParams.force_br_newlines=false;this.tmceParams.forced_root_block="p"}else{this.tmceParams.force_br_newlines=true;this.tmceParams.forced_root_block=""}if(this.params.cssUrl){this.tmceParams.content_css=this.params.cssUrl}this.tmceParams.convert_urls=false;if(this.params.width){this.tmceParams.width=this.params.width}if(this.params.height){this.tmceParams.height=this.params.height}this.tmceParams.language=this.params.lang?this.params.lang:"fr";if(this.params.urls){this.tmceParams.urls=this.params.urls}if(this.params.onInit){this.onEditorInit=this.params.onInit}if(this.params.onKeyPress){this.tmceParams.onKeyPress=this.params.onKeyPress;this.tmceParams.setup=function(A){A.onKeyPress.add(A.settings.onKeyPress)}}this.tmceParams.init_instance_callback=function(B){var A=OB_Editor.getById(this.editorId);A.editor=this;if(A.params&&A.params.bodyClass){this.getBody().className=A.params.bodyClass}if(A.onEditorInit){A.onEditorInit()}};tinymce.EditorManager.init(this.tmceParams);tinymce.editor=true},_getToolbar:function(C){switch(C){case OB_Editor.TOOLBAR_ADVANCED:this.tmceParams.plugins="safari,style,table,advimage,advlink,iespell,inlinepopups,media,searchreplace,OB_ContextMenu,paste,fullscreen,visualchars,spellchecker,OB_Align,OB_Smileys";var A=1;if(this.params.urls){var B="";this.tmceParams["theme_advanced_buttons"+A]="";if(this.params.urls.OB_Pictures){this.tmceParams.theme_advanced_buttons1+=B+"OB_Pictures,|";this.tmceParams.plugins+=",OB_Pictures";B=","}if(this.params.urls.OB_Videos){this.tmceParams.theme_advanced_buttons1+=B+"OB_Videos,|";this.tmceParams.plugins+=",OB_Videos";B=","}if(this.params.urls.OB_Music){this.tmceParams.theme_advanced_buttons1+=B+"OB_Music,|";this.tmceParams.plugins+=",OB_Music";B=","}if(this.params.urls.OB_Links_add){this.tmceParams.theme_advanced_buttons1+=B+"OB_Links_Add,|,OB_Links_Rm";this.tmceParams.plugins+=",OB_Links";B=","}A++}this.tmceParams["theme_advanced_buttons"+A]="bold,italic,underline,strikethrough,|,sub,sup,|,forecolor,backcolor,|,OB_Align_Left,OB_Align_Center,OB_Align_Right,OB_Align_Justify,|,bullist,numlist,|,outdent,indent,|,link,unlink,|,removeformat,fullscreen,OB_Smileys";A++;this.tmceParams["theme_advanced_buttons"+A]="fontselect,fontsizeselect"+(this.params.cssUrl?",styleselect":"")+",formatselect";A++;this.tmceParams["theme_advanced_buttons"+A]="code,|,undo,redo,|,hr,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,charmap,spellchecker,|,tablecontrols";this.tmceParams.theme_advanced_statusbar_location="bottom";this._setSpellchecker();break;case OB_Editor.TOOLBAR_TEXTELIBRE:this.tmceParams.plugins="safari,style,table,advimage,advlink,iespell,inlinepopups,media,searchreplace,OB_ContextMenu,paste,fullscreen,visualchars,spellchecker,OB_Align,OB_Smileys";var A=1;if(this.params.urls){var B="";this.tmceParams["theme_advanced_buttons"+A]="";if(this.params.urls.OB_Pictures){this.tmceParams.theme_advanced_buttons1+=B+"OB_Pictures,|";this.tmceParams.plugins+=",OB_Pictures";B=","}if(this.params.urls.OB_Videos){this.tmceParams.theme_advanced_buttons1+=B+"OB_Videos,|";this.tmceParams.plugins+=",OB_Videos";B=","}if(this.params.urls.OB_Music){this.tmceParams.theme_advanced_buttons1+=B+"OB_Music,|";this.tmceParams.plugins+=",OB_Music";B=","}if(this.params.urls.OB_Links_add){this.tmceParams.theme_advanced_buttons1+=B+"OB_Links_Add,|,OB_Links_Rm";this.tmceParams.plugins+=",OB_Links";B=","}A++}this.tmceParams["theme_advanced_buttons"+A]="bold,italic,underline,|,forecolor,backcolor,|,OB_Align_Justify,OB_Align_Left,OB_Align_Center,OB_Align_Right,|,bullist,numlist,|,cut,copy,paste,pasteword,|,search,replace,|,link,unlink,|,undo,redo,|,removeformat,OB_Smileys";A++;this.tmceParams["theme_advanced_buttons"+A]="code,|,fontselect,fontsizeselect"+(this.params.cssUrl?",styleselect":"")+",|,tablecontrols";A++;this.tmceParams["theme_advanced_buttons"+A]="";break;case OB_Editor.TOOLBAR_COMMENTS:this.tmceParams.plugins="safari,inlinepopups,paste,OB_Align,OB_Smileys,OB_lightlink,OB_lightimg";this.tmceParams.theme_advanced_buttons1="bold,italic,underline,|,forecolor,backcolor,|,OB_Align_Left,OB_Align_Center,OB_Align_Right,bullist,|,OB_Smileys,OB_lightlink,OB_lightimg,undo,redo";this.tmceParams.theme_advanced_buttons2="";this.tmceParams.theme_advanced_buttons3="";this.tmceParams.theme_advanced_buttons4="";break;case OB_Editor.TOOLBAR_RESPONSE:this.tmceParams.plugins="safari,inlinepopups,paste,OB_Align,OB_Smileys,OB_lightlink";this.tmceParams.theme_advanced_buttons1="bold,italic,underline,|,forecolor,backcolor,|,OB_Align_Left,OB_Align_Center,OB_Align_Right,OB_Align_Justify,|,bullist,numlist,|,OB_Smileys,OB_lightlink,unlink,|,undo,redo,|,code";this.tmceParams.theme_advanced_buttons2="";this.tmceParams.theme_advanced_buttons3="";this.tmceParams.theme_advanced_buttons4="";break;case OB_Editor.TOOLBAR_FORUM:this.tmceParams.plugins="safari,style,OB_lightlink,inlinepopups,paste,visualchars,emotions";this.tmceParams.theme_advanced_buttons1="bold,italic,underline,|,bullist,numlist,|,OB_lightlink,unlink,|,undo,redo,|,emotions";this.tmceParams.theme_advanced_buttons2="";this.tmceParams.theme_advanced_buttons3="";this.tmceParams.theme_advanced_buttons4="";break;case OB_Editor.TOOLBAR_SA:this.tmceParams.plugins="safari,inlinepopups,paste,OB_Align,OB_lightlink";var A=1;if(this.params.urls){this.tmceParams["theme_advanced_buttons"+A]="";if(this.params.urls.OB_Pictures){this.tmceParams.theme_advanced_buttons1="OB_Pictures";this.tmceParams.plugins+=",OB_Pictures"}A++}this.tmceParams["theme_advanced_buttons"+A]="bold,italic,underline,|,forecolor,backcolor,|,OB_Align_Left,OB_Align_Center,OB_Align_Right,OB_Align_Justify,|,bullist,numlist,|,OB_Smileys,OB_lightlink,unlink,|,undo,redo,|,code";A++;this.tmceParams["theme_advanced_buttons"+A]="";A++;this.tmceParams["theme_advanced_buttons"+A]="";break;case OB_Editor.TOOLBAR_BLOGPOOL:this.tmceParams.plugins="safari,inlinepopups,OB_Smileys,OB_lightlink,OB_lightimg";this.tmceParams.theme_advanced_buttons1="bold,italic,underline,|,forecolor,backcolor,|,OB_lightlink,OB_lightimg,|,undo,redo,|,code";this.tmceParams.theme_advanced_buttons2="";this.tmceParams.theme_advanced_buttons3="";this.tmceParams.theme_advanced_buttons4="";break;case OB_Editor.TOOLBAR_SIMPLE:default:this.tmceParams.plugins="safari,style,table,advimage,advlink,iespell,inlinepopups,media,searchreplace,OB_ContextMenu,paste,fullscreen,visualchars,spellchecker,OB_Align,OB_Smileys";var A=1;if(this.params.urls){var B="";this.tmceParams["theme_advanced_buttons"+A]="";if(this.params.urls.OB_Pictures){this.tmceParams.theme_advanced_buttons1+=B+"OB_Pictures,|";this.tmceParams.plugins+=",OB_Pictures";B=","}if(this.params.urls.OB_Videos){this.tmceParams.theme_advanced_buttons1+=B+"OB_Videos,|";this.tmceParams.plugins+=",OB_Videos";B=","}if(this.params.urls.OB_Music){this.tmceParams.theme_advanced_buttons1+=B+"OB_Music,|";this.tmceParams.plugins+=",OB_Music";B=","}if(this.params.urls.OB_Links_add){this.tmceParams.theme_advanced_buttons1+=B+"OB_Links_Add,|,OB_Links_Rm";this.tmceParams.plugins+=",OB_Links";B=","}A++}this.tmceParams["theme_advanced_buttons"+A]="bold,italic,underline,|,forecolor,backcolor,|,OB_Align_Justify,OB_Align_Left,OB_Align_Center,OB_Align_Right,|,bullist,|,outdent,indent,|,undo,redo,|,hr,|,cut,copy,paste,pastetext,pasteword,|,spellchecker,|,search,OB_Smileys";A++;this.tmceParams["theme_advanced_buttons"+A]=",fontselect,fontsizeselect,styleselect";A++;this.tmceParams["theme_advanced_buttons"+A]="";this._setSpellchecker();break}},_setSpellchecker:function(){this.tmceParams.spellchecker_rpc_url="/_tiny_mce/plugins/spellchecker/rpc.php";this.tmceParams.spellchecker_languages=(this.params.lang=="fr"?"+":"")+"French=fr,"+(this.params.lang=="en"?"+":"")+"English=en,"+(this.params.lang=="de"?"+":"")+"German=de,"+(this.params.lang=="it"?"+":"")+"Italian=it,"+(this.params.lang=="es"?"+":"")+"Spanish=es"},putValueInElmt:function(){this.editor.save();return true},_get:function(){this.editor=tinymce.EditorManager.get(this.id)},switchToolbar:function(A){this.params.toolbar=A;this.editor.remove();this.init()},destroy:function(){try{tinyMCE.execCommand("mceRemoveControl",true,this.id)}catch(B){}var C=[];for(var A in OB_Editors){if(OB_Editors[A]!=this){C.push(OB_Editors[A])}}OB_Editors=C},setError:function(A){YAHOO.util.Dom.setStyle([YAHOO.util.Dom.getElementsByClassName("mceLayout","table",this.editor.getContainer())[0],YAHOO.util.Dom.getElementsByClassName("mceToolbar","td",this.editor.getContainer())[0],YAHOO.util.Dom.getElementsByClassName("mceIframeContainer","td",this.editor.getContainer())[0]],"border-color",A)}};OB_Editor.getById=function(B){for(var A=0;OB_Editors[A];A++){if(OB_Editors[A].id==B){return OB_Editors[A]}}return false};OB_Editor.TOOLBAR_SIMPLE=0;OB_Editor.TOOLBAR_ADVANCED=1;OB_Editor.TOOLBAR_TEXTELIBRE=2;OB_Editor.TOOLBAR_COMMENTS=3;OB_Editor.TOOLBAR_RESPONSE=5;OB_Editor.TOOLBAR_FORUM=4;OB_Editor.TOOLBAR_SA=6;OB_Editor.TOOLBAR_BLOGPOOL=7;var OB_CheckForms=new Array();var OB_CheckForm=function(A){this.element=getElmt(A);this.inputs=new Array();this.isOk=true;this.init()};OB_CheckForm.prototype={init:function(){var C=this.element.getElementsByTagName("*");for(var B=0;C[B];B++){if(C[B].nodeName=="INPUT"||C[B].nodeName=="TEXTAREA"){var A=new OB_CheckInput(C[B]);this.inputs.push(A)}}},checkForm:function(){if(getBrowser()=="kq"){return true}this.isOk=true;for(var A=0;this.inputs[A];A++){if(this.isOk){this.isOk=this.inputs[A].isOk()}else{this.inputs[A].isOk()}}return this.isOk},getInputByElmt:function(B){for(var A=0;this.inputs[A];A++){if(this.inputs[A].element==getElmt(B)){return this.inputs[A]}}return false},reset:function(){for(var A=0;this.inputs[A];A++){this.inputs[A].setOk()}}};var OB_CheckInputs=new Array();var OB_CheckInput=function(A){this.element=getElmt(A);this.value=null;this.notNull=true;this.passOk=true;this.mailOk=true;this.isValidURL=true;this.blogNameOk=true;this.dateOk=true;this.isNumeric=true;this.isEqualTo=true;this.isMoreThan=true;this.isLessThan=true;this.isChecked=true;this.minChars=true;OB_CheckInputs.push(this);this.init()};OB_CheckInput.prototype={init:function(){this.value=this.element.value;this.notNull=true;this.passOk=true;this.mailOk=true;this.isValidURL=true;this.blogNameOk=true;this.dateOk=true;this.isNumeric=true;this.isEqualTo=true;this.isMoreThan=true;this.isLessThan=true;this.isChecked=true;this.minChars=true},testNotNull:function(){if(this.value.length==0){this.notNull=false;return false}},testPass:function(){if(this.value.length<32&&this.value.length>3){var A=/[\\\^\$%_\* ]/;if(this.value.search(A)!=-1&&this.value.length>0){this.passOk=false}}else{this.passOk=false}},testMail:function(){var A=/^((([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+(\.([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+)*)@((((([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.))*([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.)[\w]{2,4}|(((([0-9]){1,3}\.){3}([0-9]){1,3}))|(\[((([0-9]){1,3}\.){3}([0-9]){1,3})\])))$/;if(this.value.search(A)==-1&&this.value.length>0){this.mailOk=false}},testURL:function(){var A=/^(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,4}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?$/;if(this.value.search(A)==-1&&this.value.length>0){this.isValidURL=false}},testBlogName:function(){if(this.value.length==0||(this.value.length>3&&this.value.length<64)){var A=/^[0-9a-z]+((\.|\-)[a-z0-9]+)*[a-z0-9]*$/;if(this.value.search(A)==-1&&this.value.length>0){this.blogNameOk=false}}else{this.blogNameOk=false}},testDate:function(C){var A=0;var B=null;switch(C){case 1:A=10;B=/^\d{2}\/\d{2}\/\d{4}$/;break}if(this.value.length==0||this.value.length==A){if(this.value.search(B)==-1&&this.value.length==A){this.dateOk=false}}else{this.dateOk=false}},testNumeric:function(){var A=/^(\+|\d)([ \-\.\,]?\d)+$/;if(this.value.search(A)==-1&&this.value.length>0){this.isNumeric=false}},testIsEqualTo:function(A){if(this.value!=getElmt(A).value&&this.value!=A){this.isEqualTo=false}},testIsMoreThan:function(A){if(this.value<parseInt(A)){this.isMoreThan=false}},testIsLessThan:function(A){if(this.value>parseInt(A)){this.isLessThan=false}},testIfIsChecked:function(){this.isChecked=this.element.checked},testNbrOfChars:function(A){if(this.value.length>0&&this.value.length<A){this.minChars=false}},isOk:function(){this.init();var C=this.element.getAttribute("class")?this.element.getAttribute("class"):this.element.getAttribute("className");if(C){var B=C.split(" ");for(var A=0;B[A];A++){switch(B[A]){case"notNull":this.testNotNull();break;case"checkPass":this.testPass();break;case"checkMail":this.testMail();break;case"checkURL":this.testURL();break;case"checkBlogName":this.testBlogName();break;case"checkDateDDMMYYYY":this.testDate(1);break;case"checkNumeric":this.testNumeric();break;case"checkIsChecked":this.testIfIsChecked();break}if(B[A].indexOf("isEqualTo_")!=-1){this.testIsEqualTo(B[A].substr("isEqualTo_".length))}if(B[A].indexOf("isMoreThan_")!=-1){this.testIsMoreThan(B[A].substr("isMoreThan_".length))}if(B[A].indexOf("isLessThan_")!=-1){this.testIsLessThan(B[A].substr("isLessThan_".length))}if(B[A].indexOf("minChars_")!=-1){this.testNbrOfChars(B[A].substr("minChars_".length))}}if(this.notNull&&this.passOk&&this.mailOk&&this.isValidURL&&this.blogNameOk&&this.dateOk&&this.isNumeric&&this.isEqualTo&&this.isMoreThan&&this.isLessThan&&this.isChecked&&this.minChars){this.setOk();return true}else{this.setNotOk();return false}}else{this.setOk();return true}},setNotOk:function(){},setOk:function(){}};OB_CheckInput.getObjectByElmt=function(B){for(var A=0;OB_CheckInputs[A];A++){if(OB_CheckInputs[A].element==getElmt(B)){return OB_CheckInputs[A]}}return false};function del_stat_tag(){var A=getElmt("stat_script");A.parentNode.removeChild(A)}function add_stat_tag(){var A=document.createElement("script");A.setAttribute("src","http://js.cybermonitor.com/overblog.js");A.setAttribute("type","text/javascript");A.setAttribute("id","stat_script");document.body.appendChild(A)}function nl2br(A){A=escape(A);re_nlchar="";if(A.indexOf("%0D%0A")>-1){re_nlchar=/%0D%0A/g}else{if(A.indexOf("%0A")>-1){re_nlchar=/%0A/g}else{if(A.indexOf("%0D")>-1){re_nlchar=/%0D/g}}}return unescape(A.replace(re_nlchar,"<br />"))}function br2nl(D){var B="<br />";var C="\n";var A=""+D;while(A.indexOf(B)>-1){var E=A.indexOf(B);A=""+(A.substring(0,E)+C+A.substring((E+B.length),A.length))}return A}function y2k(A){return(A<1000)?A+1900:A}function isDate(B,D,C){var A=new Date();C=((!C)?y2k(A.getYear()):C);D=((!D)?A.getMonth():D-1);if(!B){return false}var E=new Date(C,D,B);if((y2k(E.getYear())==C)&&(D==E.getMonth())&&(B==E.getDate())){return true}else{return false}}var globDials=new Array();var OB_Dialog=function(){if(!YAHOO){return false}this.width=400;this.height=400;this.button1={};this.button2={};this.title=null;this.content=null;this.onSuccess=null;this.onFailure=null;this.modal=true;this.closeB=true;this.keys=new Array();this.keys.esc=true;this.keys.enter=true;this.move=true;this.yuiDialog=null};OB_Dialog.prototype={getInstance:function(){globDials.push(this);this.createYuiDialog();return this.yuiDialog},createYuiDialog:function(){this.yuiDialog=new YAHOO.widget.Dialog("OB_Dialog"+globDials.length,{width:this.width,height:this.height,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},fixedcenter:false,modal:this.modal,draggable:this.move,constraintoviewport:true,close:this.closeB,underlay:this.underlay?this.underlay:"shadow"});this.yuiDialog.setHeader(this.title);this.yuiDialog.setBody(this.content);if(this.footer){this.yuiDialog.setFooter(this.footer)}if(this.button1.text){if(this.button2.text){var H=[this.button2,this.button1]}else{H=[this.button1]}this.yuiDialog.cfg.queueProperty("buttons",H)}var D=new Array();if(this.keys.esc){var F=new YAHOO.util.KeyListener(document,{keys:27},{fn:this.yuiDialog.destroy,scope:this.yuiDialog,correctScope:true});D.push(F)}if(this.keys.enter){var C=new YAHOO.util.KeyListener(document,{keys:13},{fn:function(){if(this.dial.yuiDialog._aButtons[1]){this.dial.yuiDialog._aButtons[1].fireEvent("click")}},scope:this,correctScope:true});D.push(C)}if(D.length>0){this.yuiDialog.cfg.queueProperty("keylisteners",D)}this.yuiDialog.formSubmitEvent=null;this.yuiDialog.callback.success=this.onSuccess;this.yuiDialog.callback.failure=this.onFailure;this.yuiDialog.callback.scope=this;this.yuiDialog.render(document.body);if(this.newclass){_YUD.addClass(getElmt(this.yuiDialog.id),this.newclass)}_YUD.setStyle(getElmt(this.yuiDialog.id).parentNode,"z-index",999999);if(this.modal){_YUD.setStyle(getElmt(this.yuiDialog.id+"_mask"),"z-index",999998)}this.yuiDialog.show();var G=_YUD.getRegion(this.yuiDialog.element);var E=new Array((G.bottom-G.top),(G.right-G.left));if(E[0]>_YUD.getViewportHeight()){this.yuiDialog.configHeight(null,[_YUD.getViewportHeight()+"px"],null)}window.scrollTo(0,window.scrollY);this.yuiDialog.center();var A=this.yuiDialog.element.getElementsByTagName("form");for(var B=0;A[B];B++){A[B].dial=this;A[B].onsubmit=function(){if(this.dial.yuiDialog._aButtons[1]){this.dial.yuiDialog._aButtons[1].fireEvent("click")}return false}}},setDims:function(B,A){this.width=B;this.height=A},setButton1:function(B,C,A){this.button1={text:B,handler:C,isDefault:true}},setButton2:function(B,C,A){this.button2={text:B,handler:C,isDefault:false}},setTitle:function(A){this.title=A},setFooter:function(A){this.footer=A},setContent:function(A){this.content=A}};OB_Dialog.getDialogByElmt=function(B){for(var A=0;globDials[A];A++){if(globDials[A].yuiDialog.element==getElmt(B)){return globDials[A]}}return false};OB_Confirm.prototype=new OB_Dialog();OB_Confirm.prototype.constructor=OB_Dialog;function OB_Confirm(C,B,A){this.dialog=new OB_Dialog();this.init(C,B,A?A:{})}OB_Confirm.prototype.init=function(C,B,A){content=document.createElement("div");content.innerHTML=B;document.body.appendChild(content);this.setDims(A.width?A.width:"600px",A.height?A.height:"auto");this.setButton1(A.label1?A.label1:getLocalizedString("Oui"),function(){if(A.handleYes){A.handleYes(this)}this.hide();setTimeout(function(D){if(D){D.destroy()}},500,this)},false);this.setButton2(A.label2?A.label2:getLocalizedString("Non"),function(){if(A.handleNo){A.handleNo(this)}this.cancel();setTimeout(function(D){if(D){D.destroy()}},500,this)},true);if(A.close==false){this.closeB=false}if(A.modal==false){this.modal=false}if(A.enterKey==false){this.keys.enter=false}if(A.escKey==false){this.keys.esc=false}if(A.move==false){this.move=false}this.setTitle(C);this.setContent(content);instance=this.getInstance();if(A.handleNo){this.yuiDialog.cancelEvent.subscribe(A.handleNo)}return instance};OB_FormDialog.prototype=new OB_Dialog();OB_FormDialog.prototype.constructor=OB_Dialog;function OB_FormDialog(C,A,B){this.dialog=new OB_Dialog();this.init(C,A,B?B:{})}OB_FormDialog.prototype.init=function(C,A,B){this.setDims(B.width?B.width:"600px",B.height?B.height:"auto");this.setButton1(B.label1?B.label1:getLocalizedString("Oui"),function(){if(B.handleYes){B.handleYes(this)}if(!this.clicked){this.submit();this.clicked=true}setTimeout(function(D){if(D){D.destroy()}},500,this)},B.def_button==1?true:false);if(!B.oneButton){this.setButton2(B.label2?B.label2:getLocalizedString("Non"),function(){if(B.handleNo){B.handleNo(this)}this.cancel();setTimeout(function(D){if(D){D.destroy()}},500,this)},B.def_button!=1?true:false)}if(B.close==false){this.closeB=false}if(B.modal==false){this.modal=false}if(B.enterKey==false){this.keys.enter=false}if(B.escKey==false){this.keys.esc=false}if(B.move==false){this.move=false}this.setTitle(C);this.setContent(A);this.onSuccess=B.onSuccess?B.onSuccess:null;this.onFailure=B.onFailure?B.onFailure:null;instance=this.getInstance();if(B.handleNo){this.yuiDialog.cancelEvent.subscribe(B.handleNo)}return instance};OB_Alert.prototype=new OB_Dialog();OB_Alert.prototype.constructor=OB_Dialog;function OB_Alert(C,B,A){this.dialog=new OB_Dialog();this.init(C,B,A?A:{})}OB_Alert.prototype.init=function(C,B,A){content=document.createElement("div");content.innerHTML=B;document.body.appendChild(content);this.setDims(A.width?A.width:"600px",A.height?(parseInt(A.height)+80)+"px":"auto");this.setButton1(A.label?A.label:getLocalizedString("Fermer"),function(){if(A.handleYes&&A.handleYes!="destroy"){A.handleYes(this)}this.cancel();setTimeout(function(D){if(D){D.destroy()}},500,this)},true);this.closeB=false;if(A.modal==false){this.modal=false}this.escKey=true;if(A.escKey==false){this.keys.esc=false}this.setTitle(C);this.setContent(content);instance=this.getInstance();if(A.handleYes&&A.handleYes=="destroy"){this.yuiDialog.cancelEvent.subscribe(instance.destroy)}else{if(A.handleYes){this.yuiDialog.cancelEvent.subscribe(A.handleYes)}}if(A.height){instance.body.style.height=A.height;instance.footer.style.paddingTop="10px"}return instance};OB_PostItDialog=function(C,B,A){this.superclass=OB_Dialog;this.init(C,B,A?A:{})};OB_PostItDialog.prototype=new OB_Dialog();OB_PostItDialog.prototype.init=function(C,B,A){content=document.createElement("div");content.innerHTML=B;document.body.appendChild(content);this.setDims("161px",A.height?A.height:"auto");this.modal=A.modal;this.underlay="none";this.newclass="OB_PostItDialog";this.setTitle(C);this.setContent(content);this.setFooter("&nbsp;");instance=this.getInstance();this.yuiDialog.configXY(null,[["10px","10px"]],null);if(A.handleNo){this.yuiDialog.cancelEvent.subscribe(A.handleNo)}_YUD.setStyle(getElmt(this.yuiDialog.id).parentNode,"z-index",1000000);return instance};OB_PostItDialog.prototype.toString=function(){return"OB_PostItDialog object"};var OB_TooltipDialog=OB_PostItDialog;var OB_PulseAlerts=new Array();var OB_PulseAlert=function(C,B,A){this.element=null;this.title=C?C:"";this.content=B?B:"";this.params=A?A:{};this.anim=null;this.id=this.params.id?this.params.id:"OB_PulseAlert";this.effect=null;OB_PulseAlerts.push(this);this.init()};OB_PulseAlert.EFFECT_FADEOUT=1;OB_PulseAlert.EFFECT_SLIDE=2;OB_PulseAlert.STYLE_ERROR=1;OB_PulseAlert.STYLE_INFO=2;OB_PulseAlert.STYLE_OK=3;OB_PulseAlert.prototype={init:function(){if(!getElmt(this.id)){this.element=document.createElement("p")}else{this.element=getElmt(this.id)}this.element.innerHTML="<strong>"+this.title+"</strong><br />"+this.content;this.element.id=this.id;document.body.appendChild(this.element);this.element.setAttribute("class","");this.element.setAttribute("className","");YAHOO.util.Dom.addClass(this.element,this.id);if(this.params.className){YAHOO.util.Dom.addClass(this.element,this.params.className)}if(this.params.style){var A="";switch(this.params.style){case OB_PulseAlert.STYLE_ERROR:A+=" ctn_z_errorbox borderSolid";break;case OB_PulseAlert.STYLE_OK:A+=" ctn_z_okbox borderSolid";break;case OB_PulseAlert.STYLE_INFO:default:A+=" ctn_z_infobox borderSolid";break}YAHOO.util.Dom.addClass(this.element,A)}this.element.style.position="absolute";this.element.style.overflow="hidden";this.element.style.opacity=100;this.element.style.MozOpacity=100;this.element.style.filters="alpha(opacity=100)";switch(this.params.effect){case OB_PulseAlert.EFFECT_SLIDE:this.effect={height:{to:0}};break;case OB_PulseAlert.EFFECT_FADEOUT:default:this.effect={opacity:{from:1,to:0}}}this.pulse()},pulse:function(){if(this.element){this.stopAll();this.element.style.top=(_YUD.getViewportHeight()+_YUD.getDocumentScrollTop()-142)+"px";this.element.style.right=0;this.anim=new YAHOO.util.ColorAnim(this.element.id,this.effect,this.params.delay?parseFloat(this.params.delay):3,YAHOO.util.Easing.easeInStrong);this.anim.onComplete.subscribe(function(){this.getEl().style.display="none"});this.anim.onStart.subscribe(function(){this.getEl().style.display="block"});this.anim.getEl().anim=this.anim;this.anim.getEl().onclick=function(){this.anim.stop(true)};this.anim.animate()}else{return false}},stopAll:function(){for(var A=0;OB_PulseAlerts[A];A++){if(OB_PulseAlerts[A].anim){OB_PulseAlerts[A].anim.stop()}}}};var OB_Sortables=new Array();var OB_Sortable=function(A){this.element=getElmt(A);this.items=new Array();this.cloneContainer=document.createElement("div");this.lastMovedItem=null;this.id=null;OB_Sortables.push(this);if(this.element){this.init()}};OB_Sortable.prototype={init:function(){YAHOO.util.Dom.addClass(this.element,"OB_Sortable_List");if(getBrowser()!="ie"){YAHOO.util.Dom.addClass(this.cloneContainer,"OB_Sortable_List")}this.cloneContainer.style.position="absolute";this.cloneContainer.style.top=0;this.cloneContainer.style.height="1px";this.element.parentNode.appendChild(this.cloneContainer);this.id=this.element.getAttribute("id")?this.element.getAttribute("id"):this+OB_Sortables.length;var A=this.element.getElementsByTagName("li");if(A.length>0){for(var C=0;A[C];C++){var B=new OB_SortableItem(A[C],this);this.items.push(B)}}},destroy:function(){if(configDial&&configDial.yuiDialog.element){configDial.yuiDialog.cancel()}setTimeout(function(){configDial=null},300)},serialize:function(){var B="";var E="";var A=this.element.getElementsByTagName("li");for(var C=0;A[C];C++){var D=OB_SortableItem.getObjectByElmt(A[C]);B+=E+D.id;E=","}return B},move:function(D,C,A){switch(A){case"up":this.element.insertBefore(D.element,C.element);break;case"down":var B=this.getNextLi(C.element);if(!B){this.element.appendChild(D.element)}else{this.element.insertBefore(D.element,B)}break}},getNextLi:function(C){var A=this.element.getElementsByTagName("li");for(var B=0;A[B];B++){if(A[B]==C){if(!A[B+1]){return false}else{return A[B+1]}}}return false},onChange:function(B){if(B){this.customOnChange=B}for(var A=0;this.items[A];A++){this.items[A].onChange(this.customOnChange)}},customOnChange:function(A){}};var configDial=null;var OB_SortableItems=new Array();var OB_SortableItem=function(B,A){this.element=getElmt(B);this.parent=A;this.YUIDrag=null;this.dragEl=this.element.cloneNode(true);this.id=null;OB_SortableItems.push(this);this.init()};OB_SortableItem.prototype={init:function(){this.dragEl.style.visibility="hidden";this.element.setAttribute("id",this.element.getAttribute("id")?this.element.getAttribute("id"):this+"["+this.parent.id+"]"+OB_SortableItems.length);this.id=this.element.getAttribute("id");var A=document.createElement("div");if(this.element.firstChild.nodeName=="A"){this.element.linkNode=this.element.firstChild;this.element.removeChild(this.element.linkNode);A.innerHTML=this.element.linkNode.innerHTML}else{A.appendChild(this.element.firstChild)}A.setAttribute("id","child"+this.id);this.element.label=A;YAHOO.util.Dom.addClass(A,"OB_SortableItem_Content");this.element.appendChild(A);this.dragEl.setAttribute("id","dragEl"+this.element.getAttribute("id"));this.parent.cloneContainer.appendChild(this.dragEl);this.YUIDrag=new YAHOO.util.DDProxy("child"+this.id,this.parent.id,{dragElId:this.dragEl.getAttribute("id")});this.YUIDrag.setXConstraint(0,0);this.YUIDrag.startDrag=this.startDrag;this.YUIDrag.onDragOver=this.onDragOver;this.YUIDrag.endDrag=this.endDrag;this.YUIDrag.parent=this;new YAHOO.util.DDTarget(this.id,this.parent.id)},startDrag:function(A,B){this.parent.element.style.visibility="hidden"},getDBId:function(){return this.id.substr(5)},onDragOver:function(E,F){var D=OB_SortableItem.getObjectByElmt(F);var A=YAHOO.util.Event.getXY(E);var C=YAHOO.util.Dom.getRegion(D.element);var B=parseInt(C.top+((C.bottom-C.top)/2));if(A[1]<B){this.parent.parent.move(this.parent,D,"up")}else{this.parent.parent.move(this.parent,D,"down")}},endDrag:function(A,B){this.parent.element.style.visibility="visible"},onChange:function(A){this.YUIDrag.endDrag=function(){this.parent.parent.lastMovedItem=this.parent;this.parent.element.style.visibility="visible";A()}},createLinkFieldset:function(){if(configDial&&configDial.yuiDialog.element){configDial.yuiDialog.cancel()}if(getElmt("libelleLink")){getElmt("libelleLink").parentNode.removeChild(getElmt("libelleLink"))}if(getElmt("urlLink")){getElmt("urlLink").parentNode.removeChild(getElmt("urlLink"))}var B=getLocalizedString("Editer un lien");var A='<form class="ob_form">								   <fieldset>								   <label for="libelleLink" style="width:150px; display: block; float: left;">Libellé : </label>								   <input type="text" id="libelleLink" value="'+this.parentNode.linkNode.innerHTML+'" style="width: 300px; border: 1px solid black;" />								   <br />								   <div style="clear:both;height: 5px;"></div>								   <label for="urlLink" style="width:150px; display: block; float: left;"><accronym title="Uniformed Resources Locator">URL</accronym> : </label>								   <input type="text" id="urlLink" value="'+this.parentNode.linkNode.getAttribute("href")+'" style="width: 300px; border: 1px solid black;" />								   </fieldset>								   </form>';configDial=new OB_Confirm(B,A,{label1:getLocalizedString("Valider"),label2:getLocalizedString("Annuler"),handleYes:function(){var C=OB_SortableItem.getObjectByElmt(configDial.link.parentNode);C.element.label.innerHTML=getElmt("libelleLink").value!=""?getElmt("libelleLink").value:getLocalizedString("Nouveau Lien");C.element.linkNode.innerHTML=getElmt("libelleLink").value!=""?getElmt("libelleLink").value:getLocalizedString("Nouveau Lien");C.element.linkNode.setAttribute("href",getElmt("urlLink").value);C.dragEl.innerHTML='<a href="'+getElmt("urlLink").value+'">'+getElmt("libelleLink").value!=""?getElmt("libelleLink").value:getLocalizedString("Nouveau Lien")+"</a>";C.updateLink(getElmt("libelleLink").value,getElmt("urlLink").value)},modal:true,close:false});_YUD.setStyle(configDial.yuiDialog.element,"z-index",99999999);configDial.link=this},updateLink:function(B,A){},removeLinkFieldset:function(C){C.parentNode.parentNode.removeChild(this.linkField);this.linkField=null;var A=true;for(var B=0;this.parent.items[B];B++){if(this.parent.items[B].linkField){A=false}}if(A){YAHOO.util.DragDropMgr.unlock()}},onSupprClick:function(A){if(A){this.customSupprFunction=A}if(this.element.supprButton){this.element.supprButton.onclick=function(){this.parent.customSupprFunction();this.parent.parent.element.removeChild(this.parent.element)}}},customSupprFunction:function(){},onConfClick:function(A){if(this.element.confButton){this.element.confButton.onclick=A}},toString:function(){return"OB_SortableItem"}};OB_SortableItem.getObjectByElmt=function(B){for(var A=0;OB_SortableItems[A];A++){if(OB_SortableItems[A].element==getElmt(B)){return OB_SortableItems[A]}}return false};OB_SortableLinks=function(A){this.superclass=OB_Sortable;this.superclass(A)};OB_SortableLinks.prototype=new OB_Sortable();OB_SortableLinks.prototype.init=function(){this.superclass.prototype.init.call(this);for(var B=0;this.items[B];B++){var C=this.items[B].element;C.supprButton=document.createElement("input");C.supprButton.setAttribute("type","button");YAHOO.util.Dom.addClass(C.supprButton,"OB_SortableLinks_SupprButton");if(C.linkNode){C.confButton=document.createElement("input");C.confButton.setAttribute("type","button");YAHOO.util.Dom.addClass(C.confButton,"OB_SortableLinks_ConfButton");C.confButton.value="O";C.insertBefore(C.confButton,C.firstChild)}C.supprButton.value="X";C.insertBefore(C.supprButton,C.firstChild);C.supprButton.parent=this.items[B];this.items[B].onConfClick(this.items[B].createLinkFieldset)}var A=document.createElement("div");_YUD.setStyle(A,"text-align","center");_YUD.setStyle(A,"padding","5px");var D=document.createElement("input");D.setAttribute("type","button");D.value=localizedString["Ajouter un lien"];YAHOO.util.Dom.addClass(D,"buttonAction");A.appendChild(D);this.element.parentNode.insertBefore(A,this.element);this.element.addLink=new YAHOO.widget.ActionButton(D);this.element.addLink.parent=this;this.element.addLink.on("click",function(){if(configDial&&configDial.yuiDialog.element){configDial.yuiDialog.cancel()}if(getElmt("libelleLink")){getElmt("libelleLink").parentNode.removeChild(getElmt("libelleLink"))}if(getElmt("urlLink")){getElmt("urlLink").parentNode.removeChild(getElmt("urlLink"))}var F=getLocalizedString("Ajouter un lien");var E='<form class="ob_form">			<fieldset>			<label for="libelleLink" style="width:150px; display: block; float: left;">'+getLocalizedString("libelle")+'</label>			<input type="text" id="libelleLink" value="'+getLocalizedString("Nouveau Lien")+'" style="width: 300px; border: 1px solid black;" />			<br />			<div style="clear:both;height: 5px;"></div>			<label for="urlLink" style="width:150px; display: block; float: left;"><accronym title="Uniformed Resources Locator">URL</accronym> : </label>			<input type="text" id="urlLink" value="http://" style="width: 300px; border: 1px solid black;" />			</fieldset>			</form>';configDial=new OB_Confirm(F,E,{label1:getLocalizedString("Valider"),label2:getLocalizedString("Annuler"),handleYes:function(){var G=configDial.link.parent;G.addNewLink(getElmt("libelleLink").value,getElmt("urlLink").value)},modal:true,close:false});_YUD.setStyle(configDial.yuiDialog.element,"z-index",99999999);configDial.link=this})};OB_SortableLinks.prototype.addNewLink=function(B,A){this.customAddNewLink(B,A);var D=document.createElement("li");D.linkNode=document.createElement("a");D.linkNode.setAttribute("href",A?A:"http://");D.linkNode.innerHTML=B?B:getLocalizedString("Nouveau Lien");D.appendChild(D.linkNode);this.element.appendChild(D);var C=new OB_SortableItem(D,this);this.items.push(C);if(C.element.linkNode){C.element.confButton=document.createElement("input");C.element.confButton.setAttribute("type","button");YAHOO.util.Dom.addClass(C.element.confButton,"OB_SortableLinks_ConfButton");C.element.confButton.value="O";C.element.insertBefore(C.element.confButton,C.element.firstChild)}C.element.supprButton=document.createElement("input");C.element.supprButton.setAttribute("type","button");YAHOO.util.Dom.addClass(C.element.supprButton,"OB_SortableLinks_SupprButton");C.element.supprButton.value="X";C.element.insertBefore(C.element.supprButton,C.element.firstChild);D.supprButton.parent=C;C.onConfClick(C.createLinkFieldset);this.onSupprClick();this.setUpdateLink();this.onChange()};OB_SortableLinks.prototype.setAddNewLink=function(A){this.customAddNewLink=A};OB_SortableLinks.prototype.customAddNewLink=function(){};OB_SortableLinks.prototype.onSupprClick=function(B){if(B){this.customSupprClick=B}for(var A=0;this.items[A];A++){this.items[A].onSupprClick(this.customSupprClick)}};OB_SortableLinks.prototype.customSupprClick=function(){};OB_SortableLinks.prototype.onConfClick=function(B){for(var A=0;this.items[A];A++){this.items[A].onConfClick(B)}};OB_SortableLinks.prototype.setUpdateLink=function(B){if(B){this.customUpdateLinkFunction=B}for(var A=0;this.items[A];A++){this.items[A].updateLink=this.customUpdateLinkFunction}};OB_SortableLinks.prototype.customUpdateLinkFunction=function(){};OB_SortableLinks.prototype.toString=function(){return"OB_SortableLinks object"};var OB_Tooltips=new Array();var OB_Tooltip=function(A,B){this.element=getElmt(A);this.panel=null;this.params=B?B:{};OB_Tooltips.push(this);this.init()};OB_Tooltip.prototype={init:function(){this.panel=this._insertInDOM();this.panel.bd.innerHTML=this.params.text?this.params.text:this.element.title?this.element.title:this.element.alt?this.element.alt:"";this.element.setAttribute("alt","");this.element.setAttribute("title","");this.hide();this.element.tooltip=this;this.element.onmousemove=function(A){this.tooltip.show(A)};this.element.onmouseout=function(){this.tooltip.hide()}},_insertInDOM:function(){var A=document.createElement("div");A.hd=document.createElement("div");A.hd.appendChild(document.createTextNode(""));A.bd=document.createElement("div");A.bd.appendChild(document.createTextNode(""));A.ft=document.createElement("div");A.ft.appendChild(document.createTextNode(""));A.appendChild(A.hd);A.appendChild(A.bd);A.appendChild(A.ft);A.hd.className="hd";A.bd.className="bd";A.ft.className="ft";A.className="yui-tt"+(this.params.className?" "+this.params.className:"");A.style.position="absolute";A.style.display="none";YAHOO.util.Event.onDOMReady(function(C){try{var B=YAHOO.util.Dom.getAncestorByTagName(this.element,"body")}catch(C){B=document.body}B.appendChild(A)},this,true);return A},hide:function(A){this.panel.style.display="none"},show:function(D){try{var A=_YUE.getEvent(D);this.panel.style.display="block";var E=_YUE.getXY(A);var C=_YUD.getRegion(this.panel);this.panel.style.top=(E[1]+20)+"px";this.panel.style.left=this.params.marginLeft?(E[0]-parseInt(this.params.marginLeft))+"px":(E[0]-(C.right-C.left)/2+2)+"px"}catch(B){}},destroy:function(){this.panel.parentNode.removeChild(this.panel);this.element=null}};OB_Tooltip.getByEl=function(B){for(var A=0;OB_Tooltips[A];A++){if(OB_Tooltips[A].element==getElmt(B)){return OB_Tooltips[A]}}return false};var OB_TagLists=new Array();var OB_TagList=function(A,C,B){this.element=getElmt(A);this.tags=null;this.liste=document.createElement("ul");this.params=B?B:{};this.dataSource=C?C:new Array();this.queryLength=0;OB_TagLists.push(this);this.id=OB_TagLists.length;if(this.element){this.init()}};OB_TagList.prototype={init:function(){if(!this.params.maxInputs){this.params.maxInputs=10}if(!this.params.width){this.params.width="auto"}else{this.params.width=parseInt(this.params.width)+"px"}if(this.params.queryLength){this.queryLength=this.params.queryLength}this.element.parentNode.insertBefore(this.liste,this.element);this.element.style.display="none";this.tags=this.element.value.split(",");for(var A=0;A<this.tags.length;A++){if(this.tags[A]!=""){this.addInput(this.tags[A])}}this.tryAddInput();_YUD.addClass(this.liste,"OB_TagList")},serialize:function(){var A=this.liste.getElementsByTagName("input");var D="";var C="";for(var B=0;A[B];B++){if(A[B].value!=""){C+=D+A[B].value;D=","}}this.element.value=C},addInput:function(C){var B=this.liste.getElementsByTagName("input");if(B.length+1>this.params.maxInputs){return false}if(!C){C=" "}var E=document.createElement("li");var A=document.createElement("div");A.style.position="absolute";A.setAttribute("id","OB_TagList"+this.id+"AutoCompletePanel"+B.length);_YUD.addClass(A,"OB_TagListAutoCompletePanel");var D=document.createElement("input");D.setAttribute("type","text");D.setAttribute("id","OB_TagList"+this.id+"Item"+B.length);D.setAttribute("value",trim(C));D.style.width=this.params.width;D.parent=this;_YUE.addListener(D,"keyup",function(){this.parent.serialize();this.parent.tryAddInput()},this);_YUE.addListener(D,"focus",function(){_YUD.addClass(this,"focus")},this);_YUE.addListener(D,"blur",function(){_YUD.removeClass(this,"focus")},this);E.appendChild(D);E.appendChild(A);this.liste.appendChild(E);setTimeout(function(){var F=_YUD.getRegion(D.getAttribute("id"));_YUD.setXY(A,[F.left,F.bottom])},1000);D.autoComplete=new YAHOO.widget.AutoComplete(D.getAttribute("id"),A.getAttribute("id"),new YAHOO.widget.DS_JSArray(this.dataSource));D.autoComplete.delimChar="";D.autoComplete.animHoriz=true;D.autoComplete.autoHighlight=false;D.autoComplete.highlightClassName="hightlight";D.autoComplete.queryDelay=0;D.autoComplete.typeAhead=true;D.autoComplete.minQueryLength=this.queryLength;if(B.length>1){B[B.length-2].parentNode.appendChild(document.createTextNode(", "))}},hasVoidInput:function(){var A=this.liste.getElementsByTagName("input");for(var B=0;A[B];B++){if(A[B].value==""){return true}}return false},tryAddInput:function(){if(!this.hasVoidInput()){this.addInput("")}}};var OB_SortLists=new Array();var OB_SortList=function(A,B){this.element=getElmt(A);this.yuiDDTarget=null;this.params=B?B:{};this.outInput=document.createElement("input");this.independant=false;OB_SortLists.push(this);this.id=OB_SortLists.length;if(this.element){this.init()}};OB_SortList.prototype={init:function(){if(!this.element.getAttribute("id")){this.element.setAttribute("id","OB_SortList"+this.id)}this.yuiDDTarget=new YAHOO.util.DDTarget(this.element);this.tempLi=document.createElement("li");this.tempLi.innerHTML="&nbsp;";_YUD.addClass(this.tempLi,"tempLi");this.outInput.setAttribute("type","hidden");this.outInput.setAttribute("name",this.params.name?this.params.name:"OB_SortList"+this.id);this.element.parentNode.insertBefore(this.outInput,this.element)},addTempItem:function(C,E){if(this.params.no_sort){return false}if(!E){return false}var D=null;if(E.after){var A=this.element.getElementsByTagName("li");for(var B=0;A[B];B++){if(A[B]==E.after.element&&B<A.length-1){D=A[B+1]}}}if(E.before){D=E.before.element}if(D){this.element.insertBefore(this.tempLi,D)}else{this.element.appendChild(this.tempLi)}},addItem:function(A){if(this.tempLi.parentNode==this.element){this.element.insertBefore(A.element,this.tempLi)}else{this.element.appendChild(A.element)}A.element.style.top="auto";A.element.style.left="auto"},removeTempLi:function(){if(this.tempLi.parentNode&&this.tempLi.parentNode==this.element){this.element.removeChild(this.tempLi)}},getEl:function(){return this.element},serialize:function(){var A=this.element.getElementsByTagName("li");var C="";var D="";for(var B=0;A[B];B++){if(OB_SortListItem.getObjByEl(A[B])){C+=D+A[B].id;D=","}}this.outInput.value=C;return this.outInput.value},destroy:function(){if(this.element&&this.element.parentNode){this.element.parentNode.removeChild(this.element)}if(this.tempLi&&this.tempLi.parentNode){this.tempLi.parentNode.removeChild(this.tempLi)}if(this.outInput&&this.outInput.parentNode){this.outInput.parentNode.removeChild(this.outInput)}}};OB_SortList.getObjById=function(B){for(var A=0;OB_SortLists[A];A++){if(OB_SortLists[A].getEl()&&OB_SortLists[A].getEl().getAttribute("id")==B){return OB_SortLists[A]}}return false};OB_SortList.getObjByEl=function(B){for(var A=0;OB_SortLists[A];A++){if(OB_SortLists[A].getEl()==B){return OB_SortLists[A]}}return false};OB_SortList.destroyAll=function(){for(var A=OB_SortLists.length-1;OB_SortLists[A];A--){OB_SortLists[A].destroy()}OB_SortLists=new Array()};OB_SortList.moveFromTo=function(D,C){D=OB_SortList.getObjByEl(D);C=OB_SortList.getObjByEl(C);if(!D||!C){return false}var A=D.getEl().getElementsByTagName("li");if(A.length==0){return false}while(A.length>0){var B=OB_SortListItem.getObjByEl(A[0]);if(B){C.addItem(B)}}D.serialize();C.serialize()};var OB_SortListItems=new Array();var OB_SortListItem=function(A,B){this.element=getElmt(A);this.YUIDD=null;OB_SortListItems.push(this);this.id=OB_SortListItems.length;if(this.element){this.init(B)}};OB_SortListItem.prototype={init:function(A){if(!this.element.getAttribute("id")){this.element.setAttribute("id","OB_SortListItem"+this.id)}this.YUIDD=new YAHOO.util.DD(this.element);this.YUIDD.parent=this;this.YUIDD.b4StartDrag=function(){_YUD.setStyle(this.getEl(),"z-index",999999);_YUD.setStyle(this.getEl(),"opacity",0.8);if(getBrowser()=="ie"){_YUD.setStyle(_YUD.getElementsByClassName("handle","div",this.getEl()),"margin-left","20px")}};this.YUIDD.b4EndDrag=function(){_YUD.setStyle(this.getEl(),"z-index",9999);_YUD.setStyle(this.getEl(),"opacity",1)};this.YUIDD.onDragOver=function(F,G){if(OB_SortList.getObjById(G)&&OB_SortList.getObjById(G)!=OB_SortList.getObjByEl(this.parent.element.parentNode)){_YUD.addClass(OB_SortList.getObjById(G).getEl().parentNode,"OB_SortList_hover")}if(OB_SortListItem.getObjById(G)){var D=OB_SortListItem.getObjById(G);var E=_YUD.getRegion(D.element);var C=_YUE.getXY(F)[1];var B=parseInt(E.top+(E.bottom-E.top)/2);if(C<B){D.getParentTarget().addTempItem(this,{before:D})}else{D.getParentTarget().addTempItem(this.parent,{after:D})}}};this.YUIDD.onDragOut=function(B,C){_YUD.removeClass(getElmt(C).parentNode,"OB_SortList_hover");if(OB_SortList.getObjById(C)){OB_SortList.getObjById(C).removeTempLi()}};this.YUIDD.onDragDrop=function(C,E){_YUD.removeClass(getElmt(E).parentNode,"OB_SortList_hover");var B=OB_SortList.getObjById(E);if(B){if(B.tempLi.parentNode==B.element||!B.independant){var D=this.parent.getParentTarget();B.addItem(this.parent);B.removeTempLi();D.serialize();B.serialize();this.parent.onDragDrop()}else{this.onInvalidDrop()}}};this.YUIDD.onInvalidDrop=function(){attributes={points:{to:[this.startPageX,this.startPageY]},opacity:{to:1}};var B=new YAHOO.util.Motion(this.dragElId,attributes,0.2,YAHOO.util.Easing.easeOut);B.animate()};if(A){this.handle=document.createElement("div");this.handle.className=A;this.element.appendChild(this.handle);this.YUIDD.setHandleElId(this.handle)}},getEl:function(){return this.element},getParentTarget:function(){return OB_SortList.getObjByEl(this.element.parentNode)},onDragDrop:function(){},destroy:function(){if(this.element&&this.element.parentNode){this.element.parentNode.removeChild(this.element)}}};OB_SortListItem.getObjById=function(B){for(var A=0;OB_SortListItems[A];A++){if(OB_SortListItems[A].getEl().getAttribute("id")==B){return OB_SortListItems[A]}}return false};OB_SortListItem.getObjByEl=function(B){for(var A=0;OB_SortListItems[A];A++){if(OB_SortListItems[A].getEl()==B){return OB_SortListItems[A]}}return false};OB_SortListItem.destroyAll=function(){for(var A=0;OB_SortListItems[A];A++){OB_SortListItems[A].destroy()}OB_SortListItems=new Array()};OB_NavTabs=new Array();OB_NavTab=function(A){this.id=A;this.element=getElmt(A);if(this.element){OB_NavTabs.push(this);this.init()}else{return null}};OB_NavTab.prototype={init:function(){this.value=this.element.innerHTML.substr(1,this.element.innerHTML.length-2)},setValue:function(A){this.value=A;this.element.innerHTML="("+A+")"},increment:function(A){if(!A){A=1}this.setValue(parseInt(this.value)+1);this.toggle()},decrement:function(A){if(!A){A=1}this.setValue(parseInt(this.value)-1);this.toggle()},toggle:function(){if(this.value>0){this.element.parentNode.style.display="block"}else{this.element.parentNode.style.display="none"}}};OB_NavTab.toggle=function(){for(var A=0;OB_NavTabs[A];A++){OB_NavTabs[A].toggle()}};var OB_LinkInputFor=function(A,D){var E=new Array();E.push(document.getElementsByTagName("input"));E.push(document.getElementsByTagName("select"));E.push(document.getElementsByTagName("textarea"));var F=new Array();for(var C=0;E[C];C++){for(var B=0;E[C][B];B++){F.push(E[C][B])}}for(C=0;F[C];C++){F[C].fors=_YUD.getElementsBy(function(G){return(G.getAttribute("for")==F[C].id)});F[C].onfocus=function(){for(B=0;this.fors[B];B++){A(this.fors[B])}};F[C].onblur=function(){for(B=0;this.fors[B];B++){D(this.fors[B])}}}};if(YAHOO&&YAHOO.widget&&YAHOO.widget.Button){YAHOO.widget.Button.prototype.deactivate=function(A){if(this.__yui_events.click.subscribers[1]){this._oldOnClick=this.__yui_events.click.subscribers[1].fn}this.unsubscribe("click");this.on("click",function(){return false});if(A){this.oldLabel=this.get("label");this.setAttributes({label:A})}this._deactivated=true};YAHOO.widget.Button.prototype.reactivate=function(A){if(!this._deactivated){return false}this.unsubscribe("click");if(this._oldOnClick){this.on("click",this._oldOnClick,this,this)}if(A){this.setAttributes({label:A})}else{if(this.oldLabel){this.setAttributes({label:this.oldLabel})}}this._deactivated=false};YAHOO.widget.ActionButton=function(B,A){YAHOO.widget.ActionButton.superclass.constructor.call(this,B,A);this.addClass("default")};YAHOO.lang.extend(YAHOO.widget.ActionButton,YAHOO.widget.Button);YAHOO.widget.SearchButton=function(B,A){YAHOO.widget.ActionButton.superclass.constructor.call(this,B,A);this.addClass("search")};YAHOO.lang.extend(YAHOO.widget.SearchButton,YAHOO.widget.Button);YAHOO.widget.Buttons={};YAHOO.widget._buttons=new Array();YAHOO.widget.Buttons.ACTION=1;YAHOO.widget.Buttons.SEARCH=2;YAHOO.widget.Buttons.createButtons=function(D,E){if(getBrowser()=="ie"){return false}try{buttons=_YUD.getElementsByClassName(D);for(var B=0;buttons[B];B++){if(!_YUD.hasClass(buttons[B],"noYui")){if(E&&E==YAHOO.widget.Buttons.ACTION){buttons[B].newButton=new YAHOO.widget.ActionButton(buttons[B])}else{if(E&&E==YAHOO.widget.Buttons.SEARCH){buttons[B].newButton=new YAHOO.widget.SearchButton(buttons[B])}else{buttons[B].newButton=new YAHOO.widget.Button(buttons[B])}}if(buttons[B].onclick){buttons[B].newButton.on("click",buttons[B].onclick,buttons[B],buttons[B])}if(buttons[B].style){for(var A=0;buttons[B].style[A];A++){if(buttons[B].style[A]){var C=buttons[B].style[A];if(C=="font-size"){C="fontSize"}buttons[B].newButton._button.style[C]=buttons[B].style[C]}}}buttons[B].newButton._button.style.width=buttons[B].style.width;YAHOO.widget._buttons.push(buttons[B].newButton)}}}catch(F){}};YAHOO.widget.Buttons.getById=function(B){for(var A=0;YAHOO.widget._buttons[A];A++){if(YAHOO.widget._buttons[A]._button.parentNode.parentNode.id==B){return YAHOO.widget._buttons[A]}}return false}}var OB_Checks=new Array();var OB_Check=function(A,B){this.element=getElmt(A);this.params=B?B:{};this.inputs=this.params.inputs?this.params.inputs:{};this.valid=false;this.init()};OB_Check.prototype={init:function(){for(name in this.inputs){var A=this.element[name];A.ob_check=this;A.params=this.inputs[name];A.onblur=function(){if(this.ob_check.params.events&&this.ob_check.params.events.onBlur){this.ob_check.params.events.onBlur(this)}if(this.params.fn){this.params.fn(this)}var C=false;for(test in this.params.tests){var B=this.ob_check.check(this,test,this.params.tests[test].arg);if(B===1){return }if(!B){C=this.params.tests[test].error}}if(!C){this.parentNode.parentNode.className="ok";this.parentNode.parentNode.getElementsByTagName("td")[2].getElementsByTagName("p")[0].innerHTML=this.params.ok}else{this.parentNode.parentNode.className="error";this.parentNode.parentNode.getElementsByTagName("td")[2].getElementsByTagName("p")[0].innerHTML=C}};A.onfocus=function(){if(this.ob_check.params.events&&this.ob_check.params.events.onFocus){this.ob_check.params.events.onFocus(this)}}}this.element.ob_check=this;this.element.onsubmit=function(){return this.ob_check.checkAll()}},check:function(B,D,A){var C=B.value;switch(D){case"email":return C.match(/^((([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+(\.([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+)*)@((((([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.))*([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.)[\w]{2,4}|(((([0-9]){1,3}\.){3}([0-9]){1,3}))|(\[((([0-9]){1,3}\.){3}([0-9]){1,3})\])))$/i);case"url":return C.match(/^(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,4}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?$/);case"password":return C.match(/^[a-zA-Z0-9]{4,}$/);case"sameas":return C==getElmt(A).value;case"notNull":return C!="";case"checked":return B.checked;case"custom":return A(B);case"maxLength":return C.length<A}return true},checkAll:function(){var B=true;for(name in this.inputs){var A=false;for(test in this.inputs[name].tests){if(!this.check(this.element[name],test,this.inputs[name].tests[test].arg)){A=this.inputs[name].tests[test].error}}if(A===null){return }if(!A){this.element[name].parentNode.parentNode.className="ok";this.element[name].parentNode.parentNode.getElementsByTagName("td")[2].getElementsByTagName("p")[0].innerHTML=this.inputs[name].ok}else{this.element[name].parentNode.parentNode.className="error";this.element[name].parentNode.parentNode.getElementsByTagName("td")[2].getElementsByTagName("p")[0].innerHTML=A;B=false}}return B}};var OB_Calendar=new Array();var OB_Calendar=function(B,A,C){this.element=getElmt(B);this.container=getElmt(A);this.renderer=C;this.cal=null;this.init()};OB_Calendar.prototype={init:function(){var A=document.createElement("span");A.style.position="absolute";A.setAttribute("href","#");A.setAttribute("id","trigger");A.setAttribute("style","cursor: pointer;");var B=document.createElement("img");B.setAttribute("src",IMGUrl+"p_calendrier.gif");B.setAttribute("alt","calendar");A.appendChild(this.container);A.appendChild(B);A.parent=this;this.element.parentNode.appendChild(A);this.cal=new YAHOO.widget.Calendar("yui_calendar"+this.element.id,this.container.id,{selected:this.element?this.element.value:0,SHOW_WEEKDAYS:true,close:true});this.cal.selectEvent.subscribe(function(D,C,E){date=E.getSelectedDates()[0];oldDate=new Date(getElmt("publicationDate").value);getElmt("publicationDate").value=((date.getDate()<10)?("0"+date.getDate()):date.getDate())+"/"+((date.getMonth()+1<10)?("0"+(date.getMonth()+1)):(date.getMonth()+1))+"/"+date.getFullYear()+" "+((oldDate.getHours()<10)?("0"+oldDate.getHours()):(oldDate.getHours()))+":"+((oldDate.getMinutes()<10)?("0"+oldDate.getMinutes()):(oldDate.getMinutes()));this.cal.hide()},this.cal);this.cal.cfg.setProperty("MONTHS_LONG",[getLocalizedString("Janvier"),getLocalizedString("Fevrier"),getLocalizedString("Mars"),getLocalizedString("Avril"),getLocalizedString("Mai"),getLocalizedString("Juin"),getLocalizedString("Juillet"),getLocalizedString("Aout"),getLocalizedString("Septembre"),getLocalizedString("Octobre"),getLocalizedString("Novembre"),getLocalizedString("Decembre")]);this.cal.cfg.setProperty("WEEKDAYS_SHORT",[getLocalizedString("Dim"),getLocalizedString("Lun"),getLocalizedString("Mar"),getLocalizedString("Mer"),getLocalizedString("Jeu"),getLocalizedString("Ven"),getLocalizedString("Sam")]);this.cal.cfg.setProperty("START_WEEKDAY",1);this.cal.render();this.cal.hide();A.onclick=function(){var C=this.parent.container;if(C.style.display=="none"){this.parent.cal.show()}else{this.parent.cal.hide()}return false}}};