﻿function ULSw7Q(){var a={};a.ULSTeamName="Microsoft SharePoint Foundation";a.ULSFileName="ows.js";return a}var IsMenuShown=false,ChevronContainer=null,itemTableDeferred=null,imageCell=null,onKeyPress=false,downArrowText=null,currentEditMenu=null,currentItemID=null,currentItemAppName=null,currentItemProgId=null,currentItemIcon=null,currentItemOpenControl=null,currentItemFileUrl=null,currentItemFSObjType=null,currentItemContentTypeId=null,currentItemCheckedOutUserId=null,currentItemCheckoutExpires=null,currentItemModerationStatus=null,currentItemUIString=null,currentItemCheckedoutToLocal=null,bIsCheckout=0,currentItemCanModify=null,currentItemPermMaskH=null,currentItemPermMaskL=null,currentItemEvtType=0,currentItemIsEventsExcp=null,currentItemIsEventsDeletedExcp=null,currentItemContentTypeId=null;String.prototype.trim=function(){a:;return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var L_Edit_Text="Modifier",L_SharepointSearch_Text="Rechercher sur ce site...",L_CreateWebPageDialogWidth_Text="400",L_CreateWebPageDialogHeight_Text="250",g_MaximumSelectedItemsAllowed=100,L_BulkSelection_TooManyItems="Vous ne pouvez pas sélectionner plus de 100 éléments à la fois.",g_ExpGroupWPState=new LRUCache,DocOpen={CLIENT:0,BROWSER:1};function FilterNoteField(b,d,e,j){a:;if(j!=13)return;event.returnValue=false;var a=window.location.href;pagedPart=/&Paged=TRUE&p_[^&]*&PageFirstRow=[^&]*/gi;a=a.replace(pagedPart,"");viewGuid=GetUrlKeyValue("View",true);if(viewGuid==""){a=StURLSetVar2(a,"View",b);viewGuid=b}if(b.toUpperCase()!=viewGuid.toUpperCase()){var g=escapeProperly(b);if(g.toUpperCase()!=viewGuid.toUpperCase()){var k=/\?[^?]*/i,f=a.indexOf("?");if(f!=-1)a=a.replace(k,"?View="+b);else a=a+"?View="+b}}var c=a.match("FilterField([0-9]+)="+d);if(!c){var f=a.indexOf("?");if(f!=-1)a=a+"&";else a=a+"?";i=0;do{i++;FilterArray=a.match("FilterField"+i+"=[^&]*&FilterValue"+i+"=[^&]*")}while(FilterArray);a=a+"FilterField"+i+"="+d+"&FilterValue"+i+"="+escapeProperly(e);a=a.replace("Filter=1&","")}else{filterNo=parseInt(c[1]);var h=a.match("&FilterValue"+filterNo+"=[^&]*");strTemp="&"+c[0]+h[0];strNewFilter="&FilterField"+c[1]+"="+d+"&FilterValue"+c[1]+"="+escapeProperly(e);a=a.replace(strTemp,strNewFilter);a=a.replace("Filter=1&","")}window.location.href=STSPageUrlValidation(a)}function _SelectField(b,k){a:;var a=window.location.href,g=window.location.hash,c=false,f=/\#.*/i;a=a.replace(f,"");viewGuid=GetUrlKeyValue("View",true);pageView=GetUrlKeyValue("PageView",true);var h=GetUrlKeyValue("ID",true),e=GetUrlKeyValue("ContentTypeId",true);if(b.toUpperCase()!=viewGuid.toUpperCase()){var i=escapeProperly(b);if(i.toUpperCase()!=viewGuid.toUpperCase()){var f=/\?[^?]*/i,j=a.indexOf("?");if(j!=-1)a=a.replace(f,"?View="+b);else a=a+"?View="+b;c=true}}if(!c&&GetUrlKeyValue("SelectedID")!=""){var d=/&SelectedID=[^&]*/gi;a=a.replace(d,"");d=/\?SelectedID=[^&]*&?/;a=a.replace(d,"?")}a=a+"&SelectedID=";a=a+k;if(c&&pageView!="")a=a+"&PageView="+pageView;if(h!="")a=a+"&ID="+h;if(e!="")a=a+"&ContentTypeId="+e;if(g!="")a=a+g;_SubmitFormPost(a);return false}function _FilterField(d,b,a,c){a:;return FilterFieldV3(d,b,a,c,false)}function FilterFieldV3(e,k,o,q,u){a:;var a=CanonicalizeUrlEncodingCase(window.location.href),l=new CUrl(a);a=l.query;var b=a.match("[&?]Paged=TRUE[^&]*");if(b){var c=/&p_[^&]*/gi;a=a.replace(c,"");c=/&PageFirstRow=[^&]*/gi;a=a.replace(c,"");c=/&PageLastRow=[^&]*/gi;a=a.replace(c,"");c=/&PagedPrev=TRUE[^&]*/i;a=a.replace(c,"");b=a.match("[?]Paged=TRUE[^&]*");if(b){var f=a.substr(b["index"]).indexOf("&");if(f!=-1)a=a.substr(0,b["index"]+1)+a.substr(f+b["index"]+1);else a=a.substr(0,b["index"])}else{c=/&Paged=TRUE[^&]*/i;a=a.replace(c,"")}}viewGuid=GetUrlKeyValue("View",true);if(viewGuid==""){a=StURLSetVar2(a,"View",e);viewGuid=e}if(e.toUpperCase()!=viewGuid.toUpperCase()){var t=escapeProperly(e);if(t.toUpperCase()!=viewGuid.toUpperCase()){var v=/\?[^?]*/i,f=a.indexOf("?");if(f!=-1)a=a.replace(v,"?View="+e);else a=a+"?View="+e}}b=a.match("FilterField([0-9]+)="+k+"&");if(!b)if(0==q){a=a.replace("Filter=1&","");a=a.replace("?Filter=1","")}else{var f=a.indexOf("?");if(f!=-1)a=a+"&";else a=a+"?";i=0;do{i++;FilterArray=a.match("FilterField"+i+"=[^&]*")}while(FilterArray);a=a+"FilterField"+i+"="+k+"&FilterValue"+i+"="+escapeProperly(o);a=a.replace("Filter=1&","")}else{filterNo=parseInt(b[1]);var h=a.match("FilterValue"+filterNo+"=[^&]*"),r=a.match("&FilterOp"+filterNo+"=[^&]*"),n=a.match("&FilterLookupId"+filterNo+"=[^&]*"),p=a.match("&FilterData"+filterNo+"=[^&]*"),d="&"+b[0]+h[0];if(0==q){if(a.indexOf(d)==-1)d=b[0]+h[0]+"&";a=a.replace(d,"");if(r)a=a.replace(r[0],"");if(n)a=a.replace(n[0],"");if(p)a=a.replace(p[0],"");j=filterNo+1;FilterArray=a.match("FilterField"+j+"=[^&]*");for(i=filterNo;FilterArray;i++){strNew="FilterField"+i;strOld="FilterField"+j;a=a.replace(strOld,strNew);strNew="FilterValue"+i;strOld="FilterValue"+j;a=a.replace(strOld,strNew);strNew="FilterOp"+i;strOld="FilterOp"+j;a=a.replace(strOld,strNew);strNew="FilterLookupId"+i;strOld="FilterLookupId"+j;a=a.replace(strOld,strNew);strNew="FilterData"+i;strOld="FilterData"+j;a=a.replace(strOld,strNew);j++;FilterArray=a.match("FilterField"+j+"=[^&]*")}a=a.replace("Filter=1&","");a=a.replace("?Filter=1","");a=a.replace("&Filter=1","")}else{var g;if(a.indexOf(d)==-1){d="?"+b[0]+h[0];g="?"}else g="&";var s=g+"FilterField"+b[1]+"="+k+"&FilterValue"+b[1]+"="+escapeProperly(o);a=a.replace(d,s);a=a.replace("Filter=1&","");a=a.replace("&Filter=1","")}}b=a.match("FilterField([0-9]+)=");if(!b)a=a+"&FilterClear=1";else a=a.replace("&FilterClear=1","");l.query=a;a=l.ToString();if(u){var m=a.indexOf("?");m=a.substr(m+1).indexOf("?");if(m>=0)debugger;return a}else _SubmitFormPost(a)}function CanonicalizeUrlEncodingCase(c){a:;for(var b="",a=0;a<c.length;a++){var d=c.charAt(a);if(d=="%"&&a+2<c.length){b+=d;a++;b+=c.charAt(a).toString().toUpperCase();a++;b+=c.charAt(a).toString().toUpperCase()}else b+=d}return b}function _SetControlValue(b,c){a:;var a=document.getElementById(b);if(a!=null)a.value=c}var bValidSearchTerm=false;function SetSearchView(){a:;if(typeof bValidSearchTerm!="undefined")bValidSearchTerm=true}function GroupCollapse(){a:;return typeof _groupCollapse!="undefined"&&_groupCollapse}function HandleFilter(c,b){a:;if(FV4UI()){var a;try{a=typeof inplview.HandleFilterReal}catch(g){a="undefined"}if(a!="undefined")inplview.HandleFilterReal(c,b);else{var f="inplview.HandleFilterReal",d=f.split(".");if(d.length>1){var e=function(){a:;inplview.HandleFilterReal(c,b)};EnsureScript(d[0],a,e)}}return}_SubmitFormPost(b)}function _SubmitFormPost(a,d,c){a:;if(typeof MSOWebPartPageFormName!="undefined"){var b=document.forms[MSOWebPartPageFormName];if(null!=b)if(d!=undefined&&d==true||!b.onsubmit||b.onsubmit()!=false){typeof WebForm_OnSubmit=="function"&&WebForm_OnSubmit();if(window.location.search.match("[?&]IsDlg=1"))a+=a.indexOf("?")==-1?"?IsDlg=1":"&IsDlg=1";if(FV4UI())try{currentTabId=SP.Ribbon.PageManager.get_instance().get_ribbon().get_selectedTabId();if(currentTabId){a=StURLSetVar2(a,"InitialTabId",escapeProperly(currentTabId));a=StURLSetVar2(a,"VisibilityContext","WSSTabPersistence")}}catch(e){}if(c!=undefined&&c==true){a=DemoteIntoFormBody(b,a,"owsfileref");a=DemoteIntoFormBody(b,a,"NextUsing")}b.action=STSPageUrlValidation(a);b.method="POST";if(isPortalTemplatePage(a))b.target="_top";!bValidSearchTerm&&_ClearSearchTerm("");b.submit()}}}function DemoteIntoFormBody(e,c,b){a:;var d=GetUrlKeyValue(b,false,c);if(d.length>0){var a=document.createElement("INPUT");if(a!=null){a.setAttribute("type","hidden");a.setAttribute("id",b);a.setAttribute("name",b);a.setAttribute("value",d);e.appendChild(a);return RemoveUrlKeyValue(b,c)}}return c}function RemoveUrlKeyValue(c,a){a:;var b=new RegExp(c+"=[^&]*&");a=a.replace(b,"");b=new RegExp(c+"=[^&]*");a=a.replace(b,"");return a}function _RefreshPageTo(c,b,a){a:;return _SubmitFormPost(b,a)}var g_varSkipRefreshOnFocus=0;function RefreshOnFocus(){a:;(typeof g_varSkipRefreshOnFocus=="undefined"||!g_varSkipRefreshOnFocus)&&_RefreshPage(1)}function RefreshOnFocusForOneRow(){a:;RefreshOnFocus()}function DisableRefreshOnFocus(){a:;g_varSkipRefreshOnFocus=1}function SetWindowRefreshOnFocus(){a:;window.onbeforeunload=DisableRefreshOnFocus;window.onfocus=RefreshOnFocus}function RemoveParametersFromUrl(a){a:;var b=a.indexOf("?");if(b==-1)return a;else return a.substr(0,b)}function _GoToPageRelative(a){a:;if(a.substr(0,4)!="http"&&a.substr(0,1)!="/"){var b=RemoveParametersFromUrl(window.location.href),c=b.lastIndexOf("/");if(c>0)a=b.substring(0,c+1)+a}GoToPage(a)}function _EnterFolder(c){a:;var b=RemoveParametersFromUrl(window.location.href),a=RemoveParametersFromUrl(c),d=a!=null&&a.length>0&&a.charAt(0)=="/"&&a.length<b.length&&b.indexOf(a)==b.length-a.length;if(!d&&a.toLowerCase()!=b.toLowerCase())STSNavigate(c);else _SubmitFormPost(c)}function _HandleFolder(q,c,r,h,d,g,l,j,p,b,a,k,m,i,f,o){a:;var n=b&&b!="",e=a&&a!="";if(n&&e)return DispEx(q,c,h,d,g,l,j,p,b,a,k,m,i,f,o);else{c&&CancelEvent(c);_EnterFolder(r);return false}}function UseDialogsForFormsPages(c){a:;if(!FV4UI())return false;var b=null,a=GetUrlKeyValue("LISTID",false,c.toUpperCase());if(a=="")a=GetUrlKeyValue("LIST",false,c.toUpperCase());if(a!=""&&g_ctxDict!=null)for(var e in g_ctxDict){var d=g_ctxDict[e];if(d.listName.toUpperCase()==a.toUpperCase()){b=d;break}}if(b==null||!b.NavigateForFormsPages)return true;return false}function _EditItemWithCheckoutAlert(c,a,b,d,g,h,f,e){a:;if(CheckoutAlertBeforeNavigate(a,b,d,g,h,f,e))if(b&&UseDialogsForFormsPages(a))NewOrEditV4Core(c,a,true);else _EditItem2(c,a)}function _STSNavigateWithCheckoutAlert(a,g,b,e,f,d,c){a:;CheckoutAlertBeforeNavigate(a,g,b,e,f,d,c)&&STSNavigate(a)}function ShowInPopUI(b,a,c){a:;var d=function(){a:;if(a==null&&b.fromRibbon&&b.currentCtx)a=b.currentCtx;if(typeof a!="undefined"&&a!=null&&a.clvp!=null){var d=a.clvp;GetFocusInfo(b,d);d.ShowPopup(c)}else STSNavigate(c)};EnsureScript("inplview",typeof inplview,d)}function TakeOfflineToClientReal(d,c,h,b,a,g,f){a:;try{if(TakeOfflineDisabled(d,c,b,a))return;g_OfflineClient!=null&&g_OfflineClient.TakeOffline(d,c,h,b,a,g,f)}catch(e){alert(e.message)}}function CheckoutAlertBeforeNavigate(g,f,d,c,e,a,b){a:;if(typeof a=="undefined"||a==null||a=="")a=currentItemCheckedOutUserId;if((typeof b=="undefined"||b==null||b=="")&&typeof ctx!="undefined")b=ctx.CurrentUserId;if(d=="1"){alert(L_CannotEditPropertyForLocalCopy_Text);return false}if(a!=null&&a!=""&&b!=null&&a!=b){alert(L_CannotEditPropertyCheckout_Text);return false}if(f=="1")if(confirm(L_ConfirmCheckout_Text)){if(c.charAt(0)=="/"||c.substr(0,3).toLowerCase()=="%2f")c=document.location.protocol+"//"+document.location.host+c;return CheckoutviaXmlhttp(e,c)}else return false;return true}function CheckoutviaXmlhttp(c,b){a:;var a,e;a=new XMLHttpRequest;if(a==null)return false;a.open("POST",c+"/_vti_bin/lists.asmx",false);a.setRequestHeader("Content-Type","text/xml; charset=utf-8");a.setRequestHeader("SOAPAction","http://schemas.microsoft.com/sharepoint/soap/CheckOutFile");var d='<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><CheckOutFile xmlns="http://schemas.microsoft.com/sharepoint/soap/"><pageUrl>'+b+"</pageUrl></CheckOutFile></soap:Body></soap:Envelope>";a.send(d);if(a.status==200&&a.responseText.indexOf("true")!=0)return true;else return false}var g_ExtensionNotSupportCheckoutToLocal=["ascx","asp","aspx","htm","html","master","odc","exe","bat","com","cmd","onetoc2"],g_ExtensionDefaultForRead=["jpg","jpeg","bmp","png","gif","onetoc2","one","odc"];function FSupportCheckoutToLocal(a){a:;var c=true;if(a==null||a=="")return false;a=a.toLowerCase();for(var b=0,b=0;b<g_ExtensionNotSupportCheckoutToLocal.length;b++)if(a==g_ExtensionNotSupportCheckoutToLocal[b])return false;return true}function FDefaultOpenForReadOnly(a){a:;var c=false;if(a==null||a=="")return true;a=a.toLowerCase();for(var b=0,b=0;b<g_ExtensionDefaultForRead.length;b++)if(a==g_ExtensionDefaultForRead[b])return true;return false}function CheckoutDocument(g,a,e){a:;var d=null,b=true,c=false;if(a.charAt(0)=="/"||a.substr(0,3).toLowerCase()=="%2f")a=document.location.protocol+"//"+document.location.host+a;var f=SzExtension(unescapeProperly(a));if(FSupportCheckoutToLocal(f)&&e=="SharePoint.OpenDocuments.3")d=StsOpenEnsureEx2(e);if(d!=null)try{b=d.CheckoutDocumentPrompt(unescapeProperly(a),false,"");b&&RefreshOnFocus();c=b;if(c||!(IsSupportedMacBrowser()||IsSupportedFirefoxOnWin()))return b}catch(i){}if(!c){var h="FileName="+escapeProperly(unescapeProperly(a))+"&Checkout=true";NavigateToCheckinAspx(g,h)}return true}function NewOrEditV4Core(a,b,c){a:;if(a!=null){var d=function(){a:;var b=CLVPFromEventReal(a);GetFocusInfo(a,b)};EnsureScript("inplview",typeof InitAllClvps,d)}if(c)_OpenPopUpPage(b,RefreshOnDialogClose);else _OpenPopUpPage(b,RefreshPage);return false}function _NewItem2(b,a){a:;if(UseDialogsForFormsPages(a))return NewOrEditV4Core(b,a);else _NewItem(a)}function _NewItem(a){a:;GoToPage(a)}function _EditItem2(b,a){a:;if(UseDialogsForFormsPages(a))return NewOrEditV4Core(b,a);_EditItem(a)}function _EditItem(a){a:;GoToPage(a)}function _CorrectUrlForRefreshPageSubmitForm(){a:;var a=window.location.hash;if(a.indexOf("ServerFilter=")==1){a=a.replace(/-/g,"&").replace(/&&/g,"-");var d=GetUrlKeyValue("RootFolder",true,a),c=GetUrlKeyValue("RootFolder",true);if(""==d&&""!=c)a+="&RootFolder="+c;var b=new CUrl(window.location.href);b.hash="";b.query="?"+a.substr("ServerFilter=".length+1);return b.ToString()}else return window.location.href}function _RefreshPage(a){a:;if(a==1)_SubmitFormPost(_CorrectUrlForRefreshPageSubmitForm());else{var b=function(){a:;SetFocusBack(a)};EnsureScript("inplview",typeof InitAllClvps,b)}}function RefreshOnDialogClose(){a:;_RefreshPage(SP.UI.DialogResult.OK)}function OpenPopUpPageWithTitle(f,b,e,c,d){a:;var g=function(){a:;var a={url:f,args:null,title:d,dialogReturnValueCallback:b,width:e,height:c},g=SP.UI.ModalDialog.showModalDialog(a)},a;try{a=typeof SP.UI.ModalDialog.showModalDialog}catch(h){a="undefined"}EnsureScript("SP.UI.Dialog.js",a,g)}function _OpenPopUpPage(d,a,c,b){a:;OpenPopUpPageWithTitle(d,a,c,b,null)}function _RemoveQueryStringsAndHash(a){a:;if(a){var b=a.indexOf("#");if(b>=0)a=a.substr(0,b);b=a.indexOf("?");if(b>=0)a=a.substr(0,b)}return a}function _OpenCreateWebPageDialog(a){a:;if(!a&&typeof _spPageContextInfo!="undefined"&&_spPageContextInfo.webServerRelativeUrl){a=_spPageContextInfo.webServerRelativeUrl;if(a.charAt(a.length-1)!="/")a=a+"/";a=a+"_layouts/createwebpage.aspx"}var b=window.location.href;b=_RemoveQueryStringsAndHash(b);a=StURLSetVar2(a,"Url",escapeProperly(b));if(FV4UI()){var d=parseInt(L_CreateWebPageDialogWidth_Text),c=parseInt(L_CreateWebPageDialogHeight_Text);if(isNaN(d))d=400;if(isNaN(c))c=250;_OpenPopUpPage(a,null,d,c)}else GoToPage(a)}function PreventDefaultNavigation(){a:;var a=window.event;if(a)if(!a.preventDefault)a.returnValue=false;else a.preventDefault()}function _EditLink2(a,b){a:;var c=function(){a:;var d=GetGotoLinkUrl(a);if(d==null)return;var c=window["ctx"+b];if(c!=null&&c.clvp!=null){var e=c.clvp;if(FV4UI()&&!c.NavigateForFormsPages){PreventDefaultNavigation();e.ShowPopup(d);return false}}GoToLink(a)};EnsureScript("inplview",typeof inplview,c)}function EditLink(a,b){a:;if(FV4UI())EditLink2(a,b);else GotoLink(a)}function _GoBack(a){a:;window.location.href=unescapeProperly(GetSource(a))}function _ReplyItem(a,b,d,c){a:;if(b.length>=504){var L_ReplyLimitMsg_Text="Impossible de répondre à cette thread. La limite de réponse est atteinte.";alert(L_ReplyLimitMsg_Text)}else{a+="?Threading="+b;a+="&Guid="+d;a+="&Subject="+c;GoToPage(a)}}function GoBacktoCurrentIssue(a,b){a:;a+="?ID="+b;GoToPage(a)}function _ExportToDatabase(d,e,f,c){a:;if(g_expDatabase==null){var a=GetCookie("databaseBtnText");if(a!=null&&a!="0")try{g_expDatabase=new ActiveXObject("SharePoint.ExportDatabase")}catch(b){return null}else if(a==null)GetDataBaseInstalled();else return null}if(g_expDatabase!=null){var L_NoWSSClient_Text="Pour exporter une liste, vous devez disposer d'une application compatible avec Microsoft SharePoint Foundation et Microsoft Internet Explorer version 7.0 ou ultérieure.",L_ExportDBFail_Text="Échec de l’exportation vers la base de données. Pour exporter une liste, vous devez disposer d'une application compatible avec Microsoft SharePoint Foundation.";if(browseris.ie5up&&browseris.win32)try{g_expDatabase.SiteUrl=makeAbsUrl(d);g_expDatabase.ListID=e;g_expDatabase.ViewID=f;g_expDatabase.DoExport(c)}catch(b){alert(L_ExportDBFail_Text);return}else alert(L_NoWSSClient_Text)}}function _ExportList(a){a:;g_ssImporterObj==null&&EnsureSSImporter();if(g_ssImporterObj==null)(g_fSSImporter||GetCookie("EnsureSSImporter")==null)&&EnsureSSImporter(true);var L_ExportListSpreadsheet_Text="Pour exporter une liste, vous devez disposer d'une application compatible avec Microsoft SharePoint Foundation.";if(IsSupportedMacBrowser()){if(g_fSSImporter&&g_ssImporterObj.IqyExportEnabled){var b=g_ssImporterObj.IqyExport(makeAbsUrl(a));if(!b)window.location.href=STSPageUrlValidation(makeAbsUrl(a))}else if(confirm(L_ExportListSpreadsheet_Text))window.location.href=STSPageUrlValidation(makeAbsUrl(a))}else if(g_fSSImporter&&g_ssImporterObj.IqyImportEnabled()||confirm(L_ExportListSpreadsheet_Text))window.location.href=STSPageUrlValidation(makeAbsUrl(a))}function ExportDiagram(m,f,l,g,i,h){a:;if(g_objDiagramLaunch==null){var a=GetCookie("digInstalled");if(a!=null&&a!="0")try{g_objDiagramLaunch=new ActiveXObject("DiagramLaunch.DiagramLauncher")}catch(b){return null}else if(a==null)GetDiagramLaunchInstalled();else return null}try{var d="",j=m,e=h,c=f,k=l;g_objDiagramLaunch.CreateDiagram(d,j,e,c,g,i,k)}catch(b){var L_DiagramLaunchFail_Text="Impossible de créer le diagramme.";alert(L_DiagramLaunchFail_Text)}}function OpenTasks(m,f,l,g,i,h){a:;if(g_objProjectTaskLaunch==null){var a=GetCookie("projInstalled");if(a!=null&&a!="0")try{g_objProjectTaskLaunch=new ActiveXObject("TaskLaunch.TaskLauncher")}catch(b){return null}else if(a==null)GetProjectTaskLaunchInstalled();else return null}if(g_objProjectTaskLaunch!=null)try{var d="",j=m,e=h,c=f,k=l;g_objProjectTaskLaunch.OpenTasks(d,j,e,c,g,i,k)}catch(b){var L_OpenTasksFail_Text="Impossible d\\’ouvrir les tâches.";alert(L_OpenTasksFail_Text)}}var ListCtrlObj,fListControl=false,fListErrorShown=false,L_EditInGrid_Text="Impossible d’afficher la liste en mode Feuille de données pour les raisons suivantes : \n\n- Un composant de feuille de données compatible avec Microsoft SharePoint Foundation n’est pas installé.\n- Votre navigateur Web ne prend pas en charge les contrôles ActiveX. \n- Un composant n’est pas configuré correctement pour la prise en charge 32 bits ou 64 bits.";function CatchListCreateError(){a:;alert(L_EditInGrid_Text);fListErrorShown=true;return false}function EnsureListControl(){a:;if(!fListControl){fListErrorShown=false;if(browseris.ie5up&&browseris.win32){var b='try{    ListCtrlObj=new ActiveXObject("ListNet.ListNet");    if (ListCtrlObj)        fListControl=true;} catch (e){    fListControl=false;};',a=new Function(b);a()}else{window.onerror=CatchListCreateError;ListCtrlObj=new ActiveXObject("ListNet.ListNet");if(ListCtrlObj)fListControl=true}}ListCtrlObj=null;return fListControl}var L_NoQuestion_Text="L'enquête ne contient pas de questions.",L_NoVoteAllowed_Text="Vous n'êtes pas autorisé à répondre de nouveau à cette enquête.";function IsVoteOK(a){a:;if(1==a)alert(L_NoQuestion_Text);else if(2==a)alert(L_NoVoteAllowed_Text);else return true}function hasHighChar(b){a:;for(var a=0,a=0;a<b.length;a++)if(b.charCodeAt(a)>127)return true;return false}function _ClearSearchTerm(a){a:;if(typeof MSOWebPartPageFormName!="undefined"){var c=document.forms[MSOWebPartPageFormName];if(null!=c)if(a!=null){var b=c["SearchString"+a];if(b!=null)b.value=""}}bValidSearchTerm=true}function _SubmitSearchRedirect(a){a:;var b=document.forms["frmSiteSearch"];if(b==null)if(typeof MSOWebPartPageFormName!="undefined")b=document.forms[MSOWebPartPageFormName];if(b!=null){var c=b.elements["SearchString"].value.trim();if(c===L_SharepointSearch_Text||c==="")return false;a=a+"?k="+escapeProperly(c);var e=b.elements["SearchScope"];if(e!=null){var d=e.value;if(d)a=a+"&u="+escapeProperly(d)}window.location.href=a}return false}function ShowGridUrlInHTML(a){a:;if(a.indexOf("?")>0)a=a+"&";else a=a+"?";a=a+"ShowInGrid=HTML";return a}function SearchOnBodyLoad(){a:;var a=document.getElementById("idSearchString");if(a!=null&&(a.value.trim()===L_SharepointSearch_Text||a.value.trim()===""))a.className="ms-sharepointsearchtext"}function SearchOnBlur(){a:;var a=document.getElementById("idSearchString");if(a!=null&&a.value.trim()===""){a.value=L_SharepointSearch_Text;a.className="ms-sharepointsearchtext"}}function SearchOnFocus(){a:;var a=document.getElementById("idSearchString");if(a!=null&&a.value.trim()===L_SharepointSearch_Text){a.value="";a.className="ms-searchtext"}}function SubmitSearch(){a:;_SubmitSearchForView("")}function _SubmitSearchForView(e){a:;var a=document.forms[0],c="SearchString"+e,d=a.elements[c].value;if(""==d){var L_Enter_Text="Entrez un ou plusieurs mots à rechercher.";alert(L_Enter_Text);a.elements[c].focus()}else{var b;b=RemovePagingArgs(a.action);if(typeof bGridViewPresent!="undefined"&&bGridViewPresent)b=ShowGridUrlInHTML(b);a.action=b;a.submit()}}function IsKeyDownSubmit(a){a:;if(a!=null){var c,b;if(browseris.ie){c=a.keyCode;b=a.altKey||a.ctrlKey}else{c=a.which;b=a.modifers&(a.ALT_MASK|a.CONTROL_MASK)}if(c==13&&!b)return true}return false}function SearchViewKeyDown(a){a:;IsKeyDownSubmit(event)&&_SubmitSearchForView(a)}function SearchKeyDown(b,a){a:;if(IsKeyDownSubmit(b)){_SubmitSearchRedirect(a);return false}return true}function SearchKeyDownGoSearch(a){a:;if(IsKeyDownSubmit(a)){GoSearch();return false}return true}function _AlertAndSetFocus(b,a){a:;a.focus();a.select();window.alert(b)}function _AlertAndSetFocusForDropdown(b,a){a:;a.focus();window.alert(b)}function setElementValue(c,b){a:;var a=document.getElementsByName(c).item(0);if(a==null)return false;a.value=b;return true}function GetMultipleSelectedText(b){a:;if(b){var a;a="";for(var c=0;c<b.options.length;c++)if(b.options[c].selected)a+=","+b.options[c].text;if(a.length>0)a=a.substring(1);return a}else return ""}function GetCBSelectedValues(c){a:;if(c==null)return;var a={};a.strList="";a.fAllChecked=true;for(var d=0;d<c.elements.length;d++){var b=c.elements[d];if(b.type=="checkbox"&&!b.disabled)if(b.checked){if(a.strList!="")a.strList+=",";a.strList+=b.value}else a.fAllChecked=false}return a}var fNewDoc=false,fNewDoc2=false,fNewDoc3=false,L_EditDocumentProgIDError_Text="La fonction « Modifier un document » nécessite un navigateur Web et une application compatibles avec Microsoft SharePoint Foundation.",L_EditDocumentRuntimeError_Text="Impossible d'ouvrir le document pour le modifier. Aucune application compatible avec Microsoft SharePoint Foundation n'a été détectée pour modifier le document.",L_SPDesignerDownloadWindow_Text="Microsoft SharePoint Designer",SPDesignerDownloadUrl="http://r.office.microsoft.com/r/rlidBrowserToSPD",SPDesignerProgID="SharePoint.WebPartPage.Document";function editDocumentWithProgID(a,b){a:;if(fNewDoc){if(a.charAt(0)=="/"||a.substr(0,3).toLowerCase()=="%2f")a=document.location.protocol+"//"+document.location.host+a;if(!fNewDoc2&&!fNewDoc3)!EditDocumentButton.EditDocument(a,b)&&alert(L_EditDocumentRuntimeError_Text);else!EditDocumentButton.EditDocument2(window,a,b)&&alert(L_EditDocumentRuntimeError_Text)}else alert(L_EditDocumentProgIDError_Text)}function GetSPDDownLoadUrl(){a:;var a=navigator.userLanguage;if(!a)a=navigator.browserLanguage;return SPDesignerDownloadUrl+"?clid="+a}function EditInSPD(a,d){a:;var b=GetSPDDownLoadUrl();if(a.charAt(0)=="/")a=document.location.protocol+"//"+document.location.host+a;var c=StsOpenEnsureEx2("SharePoint.OpenDocuments.3");if(c!=null){if(!c.EditDocument3(window,a,false,SPDesignerProgID))OpenPopUpPageWithTitle(b,null,null,null,L_SPDesignerDownloadWindow_Text);else if(d)window.onfocus=RefreshOnNextFocus}else OpenPopUpPageWithTitle(b,null,null,null,L_SPDesignerDownloadWindow_Text)}function editDocumentWithProgID2(e,b,h,g,f,c){a:;var a=editDocumentWithProgIDNoUI(e,b,h,g,f,c);if(a==1){if(b==SPDesignerProgID){var d=GetSPDDownLoadUrl();OpenPopUpPageWithTitle(d,null,null,null,L_SPDesignerDownloadWindow_Text)}else alert(L_EditDocumentRuntimeError_Text);window.onfocus=RefreshOnNextFocus}else a==2&&alert(L_EditDocumentProgIDError_Text)}function editDocumentWithProgIDNoUI(a,c,d,h,k,i){a:;var b,l,g=false;d=d.replace(/(?:\.\d+)$/,"");if(a.charAt(0)=="/"||a.substr(0,3).toLowerCase()=="%2f")a=document.location.protocol+"//"+document.location.host+a;var j=SzExtension(unescapeProperly(a));if(FSupportCheckoutToLocal(j))try{b=StsOpenEnsureEx2(d+".3");if(b!=null){if(h=="1"){if(!b.CheckoutDocumentPrompt(a,true,c))return 1}else{if(i=="1")g=true;if(!b.EditDocument3(window,a,g,c))return 1}var f=false;f=b.PromptedOnLastOpen();if(f)window.onfocus=RefreshOnNextFocus;else SetWindowRefreshOnFocus();return}}catch(e){}if(h=="1")if(confirm(L_ConfirmCheckout_Text))NavigateToCheckinAspx(k,"FileName="+escapeProperly(unescapeProperly(a))+"&Checkout=true");else return;b=StsOpenEnsureEx2(d);if(b!=null){try{if(!b.EditDocument2(window,a,c))return 1;window.onfocus=RefreshOnNextFocus;return}catch(e){}try{window.onfocus=null;if(SzExtension(a)=="ppt"&&c=="")c="PowerPoint.Slide";if(!b.EditDocument(a,c))return 1;SetWindowRefreshOnFocus();return}catch(e){return 2}}return 1}function RefreshOnNextFocus(){a:;SetWindowRefreshOnFocus()}function createNewDocumentWithProgID2Ex(f,b,a,d,c,e){a:;createNewDocumentWithProgID2(b,a,d,c,e)}function createNewDocumentWithProgID2(b,a,e,d,c){a:;!createNewDocumentWithProgIDCore(b,a,e,c,false)&&createNewDocumentWithProgIDCore(b,a,d,c,true)}function createNewDocumentWithProgIDEx(e,b,a,c,d){a:;createNewDocumentWithProgID(b,a,c,d)}function createNewDocumentWithProgID(b,a,c,d){a:;createNewDocumentWithProgIDCore(b,a,c,d,true)}function createNewDocumentWithProgIDCore(d,c,e,h,g){a:;var a,L_NewDocumentRuntimeError_Text,L_NewDocumentError_Text,b=false;if(h)var L_NewDocumentRuntimeError_Text=L_NewFormLibTb1_Text,L_NewDocumentError_Text=L_NewFormLibTb2_Text;else var L_NewDocumentRuntimeError_Text=L_NewDocLibTb1_Text,L_NewDocumentError_Text=L_NewDocLibTb2_Text;try{a=StsOpenEnsureEx2(e+".2");!a.CreateNewDocument2(window,d,c)&&alert(L_NewDocumentRuntimeError_Text);b=a.PromptedOnLastOpen();if(b)window.onfocus=RefreshOnNextFocus;else SetWindowRefreshOnFocus();return true}catch(f){}try{a=StsOpenEnsureEx2(e+".1");window.onfocus=null;!a.CreateNewDocument(d,c)&&alert(L_NewDocumentRuntimeError_Text);SetWindowRefreshOnFocus();return true}catch(f){g&&alert(L_NewDocumentError_Text)}}function createNewDocumentWithRedirect2(h,d,b,e,f,c,g,a){a:;createNewDocumentWithRedirect(d,b,e,f,c,g,a)}function createNewDocumentWithRedirect(e,a,b,f,d,g,c){a:;if(g)if(IsClientAppInstalled(b))createNewInClient(e,a,b,f);else createNewInBrowser(d,a,c);else if(IsClientAppInstalled(b)&&c!=1)createNewInClient(e,a,b,f);else createNewInBrowser(d,a,c)}function createNewInClient(c,b,d,e){a:;var a=d.replace(/(?:\.\d+)$/,"");createNewDocumentWithProgID(c,b,a,e)}function createNewInBrowser(a,c,b){a:;a=a+"&SaveLocation="+makeAbsUrl(escapeProperly(c));a=AddSourceToUrl(a);a=a+"&DefaultItemOpen="+b;STSNavigate(a)}function LRUCache(){a:;this.state=[];this.ageStack=[];this.count=0}function LRUCache_Add(a,b){a:;if(!a)return;oldAge=a.state[b];if(oldAge!=null)a.ageStack[oldAge]=null;else a.count++;age=a.ageStack.length;a.state[b]=age;a.ageStack.push(b)}function LRUCache_Remove(a,b){a:;if(!a)return;age=a.state[b];if(age!=null){a.ageStack[age]=null;a.state[b]=null;a.count--}}function _AddGroupToCookie(c){a:;var a=ExpGroupFetchWebPartID(c);if(a==null)return;LRUCache_Add(g_ExpGroupWPState,a);if(g_ExpGroupTable[a]==null)g_ExpGroupTable[a]=new LRUCache;var b=ExpGroupFetchGroupString(c);if(b==null)return;LRUCache_Add(g_ExpGroupTable[a],b);ExpGroupRenderCookie()}function _RemoveGroupFromCookie(d){a:;var a=ExpGroupFetchWebPartID(d);if(a==null)return;if(g_ExpGroupTable[a]==null)return;LRUCache_Add(g_ExpGroupWPState,a);var c=ExpGroupFetchGroupString(d);if(c==null)return;var b;for(b in g_ExpGroupTable[a].state)g_ExpGroupTable[a].state[b]!=null&&b.substring(0,c.length)==c&&LRUCache_Remove(g_ExpGroupTable[a],b);ExpGroupRenderCookie()}function ExpGroupRenderCookie(){a:;if(!g_ExpGroupWPState)return;for(var c=ExpGroupWPListName+"=",a=0,d=g_ExpGroupWPState.ageStack.length-1;d>=0;d--)if(g_ExpGroupWPState.ageStack[d]!=null){var b=g_ExpGroupWPState.ageStack[d];if(a==ExpGroupMaxWP){DeleteCookie(ExpGroupCookiePrefix+b);break}else if(g_ExpGroupTable[b]==null){a++;if(a>1)c+=escape(ExpGroupCookieDelimiter);c+=escape(b)}else if(g_ExpGroupTable[b].count==0)DeleteCookie(ExpGroupCookiePrefix+b);else if(a<ExpGroupMaxWP){a++;ExpGroupRenderCookieForWebPart(b);if(a>1)c+=escape(ExpGroupCookieDelimiter);c+=escape(b)}}if(a==0)DeleteCookie(ExpGroupWPListName);else document.cookie=c}function ExpGroupRenderCookieForWebPart(a){a:;if(!g_ExpGroupTable[a].ageStack)return;for(var d=ExpGroupCookiePrefix+a+"=",e=true,c=g_ExpGroupTable[a].ageStack.length-1;c>=0;c--)if(g_ExpGroupTable[a].ageStack[c]!=null){var f=g_ExpGroupTable[a].ageStack[c],b="";if(!e)b+=escape(ExpGroupCookieDelimiter);b+=escape(f);if(d.length+b.length<=ExpGroupMaxCookieLength){d+=b;e=false}}document.cookie=d+";"}function ExpDataViewGroupOnPageLoad(){a:;ExpGroupOnPageLoad("PageLoad")}function ExpGroupOnPageLoad(a){a:;flag=document.getElementById("GroupByColFlag");if(flag!=null){g_ExpGroupNeedsState=true;ExpGroupParseCookie(a)}}function ExpGroupParseCookie(e){a:;var c=GetCookie(ExpGroupWPListName);if(c==null)return;g_ExpGroupParseStage=true;for(var d=c.split(ExpGroupCookieDelimiter),b=d.length-1;b>=0;b--){var a=d[b];LRUCache_Add(g_ExpGroupWPState,a);if(g_ExpGroupTable[a]==null)document.getElementById("GroupByCol"+a)!=null&&ExpGroupParseCookieForWebPart(a,e)}g_ExpGroupParseStage=false;g_ExpGroupQueue.length>0&&ExpGroupFetchData(g_ExpGroupQueue.shift(),e)}function ExpGroupParseCookieForWebPart(d,l){a:;var k=GetCookie(ExpGroupCookiePrefix+d);if(k==null)return;var m=k.split(ExpGroupCookieDelimiter),a;g_ExpGroupTable[d]=new LRUCache;for(a=m.length-1;a>=0;a--){var h=m[a];LRUCache_Add(g_ExpGroupTable[d],h)}var c=[],n=document.getElementById("GroupByCol"+d).parentNode;tbodyTags=n.getElementsByTagName("TBODY");for(a=0;a<tbodyTags.length;a++){var h=tbodyTags[a].getAttribute("groupString");if(h!=null){var i=tbodyTags[a].id;if(i==null)continue;var b=i.substring(4,i.length);if(g_ExpGroupTable[d].state[h]!=null&&c[b]==null){ExpCollGroup(b,"img_"+b,l);c[b]=true;tbody=document.getElementById("tbod"+b+"_");if(tbody!=null){isLoaded=tbody.getAttribute("isLoaded");isLoaded=="false"&&g_ExpGroupQueue.push(b)}}}}var e;for(e in c){var j=e.indexOf("_");if(j!=e.length-1&&j!=-1){var f=e.substring(0,j+1);if(c[f]==null){var g=ExpGroupFetchGroupString(f);if(g!=null){LRUCache_Add(g_ExpGroupWPState,g);ExpCollGroup(f,"img_"+f,l);c[g]=true}}}}}function _ExpGroupBy(e){a:;if(browseris.w3c&&!browseris.ie)document.all=document.getElementsByTagName("*");docElts=document.all;numElts=docElts.length;images=e.getElementsByTagName("IMG");img=images[0];srcPath=img.src;index=srcPath.lastIndexOf("/");imgName=srcPath.slice(index+1);var b="auto";if(imgName=="plus.gif"){b="";img.src="/_layouts/images/minus.gif"}else{b="none";img.src="/_layouts/images/plus.gif"}oldName=img.name;img.name=img.alt;img.alt=oldName;spanNode=img;while(spanNode!=null){spanNode=spanNode.parentNode;if(spanNode!=null&&spanNode.id!=null&&spanNode.id.length>5&&spanNode.id.substr(0,5)=="group")break}parentNode=spanNode;while(parentNode!=null){parentNode=parentNode.parentNode;if(parentNode!=null&&parentNode.tagName=="TABLE")break}lastNode=null;if(parentNode!=null){lastNode=parentNode.lastChild;if(lastNode!=null&&lastNode.tagName=="TBODY")lastNode=lastNode.lastChild;if(lastNode!=null&&lastNode.tagName=="TR"&&lastNode.lastChild!=null)lastNode=lastNode.lastChild}for(var c=0;c<numElts;c++){var a=docElts.item(c);if(a==spanNode)break}ID=spanNode.id.slice(5);displayStyle=b;for(var d=c+1;d<numElts;d++){var a=docElts.item(d);if(a.id.length>5&&a.id.substr(0,5)=="group"){curID=a.id.slice(5);if(curID<=ID)return}parentNode=a;while(parentNode!=null){parentNode=parentNode.parentNode;if(parentNode==spanNode)break}if(parentNode==spanNode)continue;if(a.id!=null&&a.id.substring(0,5)=="group")b=displayStyle;if(a.id!=null&&a.id.substring(0,8)=="footer"+ID)b=displayStyle;if(displayStyle!="none"&&a!=img&&a.tagName=="IMG"&&a.src!=null)if(a.src.slice(a.src.length-25)=="/_layouts/images/plus.gif")b="none";else if(a.src.slice(a.src.length-26)=="/_layouts/images/minus.gif")b="";if(a.tagName==spanNode.tagName&&a.id!="footer")a.style.display=b;if(a.tagName=="TABLE"&&lastNode==null||a==lastNode)break}}function SzExtension(a){a:;var c=new String(a),b=/^.*\.([^\.]*)$/;return c.replace(b,"$1").toLowerCase()}function SzServer(a){a:;var c=new String(a),b=/^([^:]*):\/\/([^\/]*).*$/;return c.replace(b,"$1://$2")}var v_stsOpenDoc=null,v_strStsOpenDoc=null;function NavigateParentOrSelf(b,a){a:;if(b.target=="_top")window.frameElement.navigateParent(a);else STSNavigate(a)}function StsOpenEnsureEx(a){a:;if(v_stsOpenDoc==null||v_strStsOpenDoc!=a)if(window.ActiveXObject)try{v_stsOpenDoc=new ActiveXObject(a);v_strStsOpenDoc=a}catch(b){v_stsOpenDoc=null;v_strStsOpenDoc=null}return v_stsOpenDoc}function _DispDocItem(b,a){a:;return _DispDocItemEx(b,"FALSE","FALSE","FALSE",a)}function _DispDocItemExWithServerRedirect(f,c,j,g,i,e,k,a){a:;var d=a!=null&&a!="",h=IsClientAppInstalled(e)&&HasRights(16,0);if(d){a=a.substring(1);d=a!=""}if(d)if(k==1||!h){var b=a;b=AddSourceToUrl(b);b=b+"&DefaultItemOpen="+DocOpen.BROWSER;if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(b);else if(c.shiftKey||c.ctrlKey)return true;else NavigateParentOrSelf(f,b);c.cancelBubble=true;c.returnValue=false;return false}return DispDocItemExWithEvent(f,c,j,g,i,e)}var L_OpenDocumentLocalError_Text="Ce document a été modifié hors connexion, mais aucune application n'est configurée pour l'ouvrir à partir de SharePoint. Le document ne peut être ouvert que pour être lu.";function _DispDocItemEx(e,c,a,b,d){a:;return DispDocItemExWithEvent(e,null,c,a,b,d)}function DispDocItemExWithEvent(g,e,p,m,o,a){a:;itemTable=FindSTSMenuTable(g,"CTXName");if((!browseris.ie||!browseris.win32)&&!IsSupportedMacBrowser()&&!IsSupportedFirefoxOnWin()){if(browseris.ie)event.cancelBubble=false;var k=g.href;if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(k);else STSNavigate(k);return false}var d,c,h,b=true,s=itemTable!=null?GetAttributeFromItemTable(itemTable,"Ext","FileType"):"",j="",r=document.getElementById("FileDialogViewTable");if(r!=null){if(browseris.ie){event.cancelBubble=false;event.returnValue=false}return true}c=itemTable!=null?GetAttributeFromItemTable(itemTable,"Url","ServerUrl"):"";if(c==null||c=="")c=g.href;else c=SzServer(g.href)+c;h=SzExtension(c);if(currentItemProgId==null&&itemTable!=null)currentItemProgId=GetAttributeFromItemTable(itemTable,"Type","HTMLType");if(currentItemProgId!=null)j=currentItemProgId;if(FDefaultOpenForReadOnly(h)){if(a.indexOf("SharePoint.OpenDocuments")>=0)a="SharePoint.OpenDocuments.3"}else if(!FSupportCheckoutToLocal(h))a="";if(currentItemCheckedOutUserId==null&&itemTable!=null)currentItemCheckedOutUserId=itemTable.COUId;if(currentItemCheckedoutToLocal==null&&itemTable!=null)currentItemCheckedoutToLocal=GetAttributeFromItemTable(itemTable,"COut","IsCheckedoutToLocal ");if(currentItemCheckedOutUserId!=null&&currentItemCheckedOutUserId!=""&&currentItemCheckedOutUserId==ctx.CurrentUserId&&(a==""||a.indexOf("SharePoint.OpenDocuments")>=0)&&FSupportCheckoutToLocal(h)||a=="SharePoint.OpenDocuments")a="SharePoint.OpenDocuments.3";var i=2;if(a!=""&&HasRights(16,0)){if(a.indexOf(".3")>=0)i=3;d=StsOpenEnsureEx2(a);if(d==null&&i==3){a=a.replace(".3",".2");d=StsOpenEnsureEx2(a);i=2}}if(d!=null)if(i==2||itemTable==null&&currentItemCheckedOutUserId==null||ctx.isVersions==1&&(itemTable==null||itemTable.isMostCur=="0")){try{if(currentItemCheckedOutUserId!=null&&currentItemCheckedOutUserId!=""&&(currentItemCheckedOutUserId==ctx.CurrentUserId||ctx.CurrentUserId==null))if(currentItemCheckedoutToLocal=="1"){alert(L_OpenDocumentLocalError_Text);b=false}else b=d.EditDocument2(window,c,j);else b=d.ViewDocument2(window,c,j)}catch(l){b=false}if(b)window.onfocus=RefreshOnNextFocus}else{var f=0;if(currentItemCheckedOutUserId!="")if(currentItemCheckedOutUserId!=ctx.CurrentUserId&&ctx.CurrentUserId!=null)f=1;else if(currentItemCheckedoutToLocal==null||currentItemCheckedoutToLocal!="1")f=2;else f=4;else if(!HasRights(0,4)||FDefaultOpenForReadOnly(h))f=1;else if(ctx.isForceCheckout==true)f=3;try{b=d.ViewDocument3(window,c,f,j)}catch(l){b=false}if(b){var n=d.PromptedOnLastOpen();if(n)window.onfocus=RefreshOnNextFocus;else SetWindowRefreshOnFocus()}}else currentItemCheckedoutToLocal=="1"&&alert(L_OpenDocumentLocalError_Text);if(d==null||!b){if(p=="TRUE"&&m=="TRUE"&&o=="TRUE"){if(itemTable==null)return b;if(browseris.ie){event.cancelBubble=true;event.returnValue=false}else if(IsSupportedMacBrowser()||IsSupportedFirefoxOnWin()){e.preventDefault&&e.preventDefault();e.stopPropagation&&e.stopPropagation()}var q=new Function("return "+itemTable.getAttribute("CTXName")+".HttpRoot;"),k=q()+"/_layouts/htmltrverify.aspx?doc="+escapeProperly(c);if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(k);else GoToPage(k)}else if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(g.href);else STSNavigate(g.href);return false}if(browseris.ie){event.cancelBubble=true;event.returnValue=false}else if(IsSupportedMacBrowser()||IsSupportedFirefoxOnWin()){if(d!=null&&b){e.preventDefault&&e.preventDefault();e.stopPropagation&&e.stopPropagation()}return true}return b}function DispDocItemEx2(d,a,i,f,h,l,k,c,e){a:;var n=false,m=e!=null&&e!="",g=IsClientAppInstalled(c)&&HasRights(16,0);if(m)if(k==1||!g){var b=e;b=AddSourceToUrl(b);b=b+"&DefaultItemOpen="+DocOpen.BROWSER;if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(b);else if(a.shiftKey||a.ctrlKey)return true;else NavigateParentOrSelf(d,b);a.cancelBubble=true;a.returnValue=false;return false}else if(g)if(c==""||c.indexOf("SharePoint.OpenDocuments")>=0)return DispDocItemExWithEvent(d,a,i,f,h,l);else{if(!ViewDoc(d.href,c)){var j=editDocumentWithProgIDNoUI(d.href,currentItemProgId,c,false,ctx.HttpRoot,"0");if(j==1||j==2){var b=AddSourceToUrl(e);if(window.location.search.match("[?&]IsDlg=1"))window.frameElement.navigateParent(b);else NavigateParentOrSelf(d,b)}}a.cancelBubble=true;a.returnValue=false;return false}return DispDocItemExWithEvent(d,a,i,f,h,c)}function DispDocItemExWithOutContext(o,n,e,a,d,i,g,m,k,b,h,j,f,c,l){a:;DispEx(o,n,e,a,d,i,g,m,k,b,h,j,f,c,l)}function AddSourceToUrl(a){a:;var b=GetSource(),c=a.length+b.length;if(c>1950)return a;else{var d=a.indexOf("?")>=0?"&":"?";return a+d+"Source="+b}}function _VerifyFolderHref(f,e,j,h,g,i,d,a){a:;var c=d!=null&&d!=""&&a!=null&&a!="";if(c){a=a.substring(1);c=a!=""}if(c){var b=a;b=AddSourceToUrl(b);b=b+"&DefaultItemOpen="+DocOpen.BROWSER;f.href=STSPageUrlValidation(b);e.cancelBubble=true;e.returnValue=true;DetachEvent("mousedown",VerifyFolderHref,f)}return false}function _VerifyHref(e,d,g,h,a){a:;var c=a!=null&&a!="",f=IsClientAppInstalled(h)&&HasRights(16,0);if(c){a=a.substring(1);c=a!=""}if(c){if(g==1||!f){var b=a;b=AddSourceToUrl(b);b=b+"&DefaultItemOpen="+DocOpen.BROWSER;e.href=STSPageUrlValidation(b);d.cancelBubble=true;d.returnValue=true}DetachEvent("mousedown",VerifyHref,e)}return false}function _DispEx(p,a,h,e,g,k,c,o,m,b,j,l,i,f,d){a:;if(a.shiftKey||a.ctrlKey)return true;var n=document.getElementById("FileDialogViewTable");if(n!=null){a.cancelBubble=false;a.returnValue=false;return true}if(typeof ctx=="undefined"||ctx==null)ctx=new ContextInfo;ctx.CurrentUserId=l;if(i=="1")ctx.isForceCheckout=true;else ctx.isForceCheckout=false;currentItemCheckedOutUserId=j;currentItemCheckedoutToLocal=f;currentItemProgId=m;if(d!=null&&d!=""){SetCurrentPermMaskFromString(d,null);if(c=="0"&&!HasRights(0,32))c="1"}a.cancelBubble=true;if(b!=null&&b!="")b=b.substring(1);return DispDocItemEx2(p,a,h,e,g,k,c,o,b)}function IsClientAppInstalled(a){a:;var b=null;if(a!="")b=StsOpenEnsureEx2(a);return b!=null}function ViewDoc(d,c){a:;var b=StsOpenEnsureEx2(c),a=false;if(b!=null)try{a=b.ViewDocument2(window,d)}catch(e){a=false}return a}function _PortalPinToMyPage(a,c,b){a:;a.action=c+"_vti_bin/portalapi.aspx?Cmd=PinToMyPage";a.ReturnUrl.value=window.location.href;a.ListViewUrl.value=MakeMtgInstanceUrl(a.ListViewUrl.value,b);a.submit()}function _PortalPinToMyPage(a,g,e,f,b,d,h,c){a:;a.action=g+"_vti_bin/portalapi.aspx?Cmd=PinToMyPage";SetFieldValue(a,"ReturnUrl",window.location.href);SetFieldValue(a,"ListViewUrl",MakeMtgInstanceUrl(d,e));SetFieldValue(a,"ListTitle",f);SetFieldValue(a,"ListDescription",b);SetFieldValue(a,"BaseType",h);SetFieldValue(a,"ServerTemplate",c);a.submit()}function SetFieldValue(c,b,d){a:;var a=c[b];if(a==null){a=document.createElement("INPUT");a.setAttribute("type","hidden");a.setAttribute("name",b);c.appendChild(a)}a.value=d}function _MoveToViewDate(b,a,c){a:;if(FV4UI()&&typeof _fV4Calendar!="undefined"&&_fV4Calendar){var d=function(){a:;var d;if(c)d=SP.UI.ApplicationPages.CalendarInstanceRepository.lookupInstance(c);else d=SP.UI.ApplicationPages.CalendarInstanceRepository.firstInstance();if(d)if(a!=null)d.moveToViewType(a);else d.moveToDate(b)};AjaxCalendarCall(d)}else MoveToViewDatePostBack(b,a)}function MoveToViewDatePostBack(c,b){a:;var a=window.location.href;if(c!=null)a=StURLSetVar2(a,"CalendarDate",escapeProperly(c));if(b!=null)a=StURLSetVar2(a,"CalendarPeriod",b);_SubmitFormPost(a,true)}function AjaxCalendarCall(b){a:;var a;try{a=typeof SP.UI.ApplicationPages.CalendarInstanceRepository}catch(c){a="undefined"}EnsureScript("SP.js",a,b)}function _MoveToDate(a,b){a:;_MoveToViewDate(a,null,b)}function MoveToToday(){a:;_MoveToViewDate("",null)}function MoveView(a){a:;_MoveToViewDate(null,a)}function _ClickDay(a){a:;_MoveToDate(a)}function GetIframe(){a:;return null}function _GetMonthView(c){a:;var b=window.location.href,a=document.getElementById("ExpandedWeeksId");if(a!=null)a.value=c;else return;_SubmitFormPost(b,true)}function NewItemDT(a,c,b){a:;if(a==null)return;if(b!=null)a=StURLSetVar2(a,"CalendarTime",b);if(c!=null)a=StURLSetVar2(a,"CalendarDate",c);_NewItem(a,false)}function ClickTime(b,a){a:;NewItemDT(b,null,a)}function NewItemDay(b,a){a:;NewItemDT(b,a,null)}function ScrollToAnchorInInnerScrollPane(k,h,j){a:;try{var l=document.getElementById(k),b=document.getElementById(l[h].value);if(typeof b=="undefined"||b==null)throw"";var d=b.parentNode.previousSibling;if(typeof d!="undefined"&&d!=null){var e=d.previousSibling;if(typeof e!="undefined"&&e!=null)b=e;else b=d}else throw""}catch(n){for(var f=null,i=document.anchors.length,g=0;g<i;g++){f=document.anchors[g];var m=f.href;if(m.search(j)!=-1){b=f;break}}}if(typeof b!="undefined"&&b!=null){var c=b.parentNode;while(c!=null&&c.tagName!="TABLE")c=c.parentNode;if(typeof c!="undefined"&&c!=null){var a=c.parentNode;while(a!=null&&(a.tagName!="DIV"||a.style.overflow!="auto"))a=a.parentNode;if(typeof a!="undefined"&&a!=null){var o=b.offsetLeft;a.scrollLeft=o;a.scrollTop=c.offsetTop-a.clientHeight+c.offsetHeight}}}}function FilterChoice(e,d,D,u){a:;var a,h=0,g=false,l="",w=e.id,v=e.name,j="",s="",C=d.choices,c=C.split("|"),z=AbsLeft(d),n=AbsTop(d)+d.offsetHeight,r=document.getElementById("s4-workspace");if(r)n-=AbsTop(r);var B=d.optHid,x=c.length-1,m=-1,q=false,p="";if(e!=null&&e.selectedIndex>=0){g=true;p=e.options[e.selectedIndex].innerText}for(a=0;a<c.length;a=a+2){var b=c[a];while(a<x-1&&c[a+1].length==0){b=b+"|";a++;if(a<x-1)b=b+c[a+1];a++}var k=c[a+1],i=b.toLocaleLowerCase(),A=D.toLocaleLowerCase();if(u.length!=0)g=true;if(i.indexOf(A)==0){var o=u.toLocaleLowerCase();if(o.length!=0&&i.indexOf(o)==0&&j.length==0)g=false;if(i.length>20)q=true;if(!g||i==p){l+='<option selected value="'+k+'">'+STSHtmlEncode(b)+"</option>";g=true;j=b;s=k;m=a}else l+='<option value="'+k+'">'+STSHtmlEncode(b)+"</option>";h++}}var t=' ondblclick="HandleOptDblClick()" onkeydown="HandleOptKeyDown()"',f="";if(q)f='<select tabIndex="-1" ctrl="'+d.id+'" name="'+v+'" id="'+w+'"'+t;else f='<select class="ms-lookuptypeindropdown" tabIndex="-1" ctrl="'+d.id+'" name="'+v+'" id="'+w+'"'+t;if(h==0)f+=' style="display:none;position:absolute;z-index:2;left:'+z+"px;top:"+n+'px" onfocusout="OptLoseFocus(this)"></select>';else f+=' style="position:absolute;z-index:2;left:'+z+"px;top:"+n+'px" size="'+(h<=8?h:8)+'"'+(h==1?'multiple="true"':"")+' onfocusout="OptLoseFocus(this)">'+l+"</select>";e.outerHTML=f;var y=document.getElementById(B);if(m!=0||c[1]!="0")y.value=s;else y.value="0";if(m!=0||c[1]!="0")return j;else return ""}function _OptLoseFocus(a){a:;var b=document.getElementById(a.ctrl);a.selectedIndex>=0&&_SetCtrlFromOpt(b,a);a.style.display="none"}function SetCtrlMatch(b,a){a:;var c=document.getElementById(b.optHid);c.value=a.options[a.selectedIndex].value;if(c.value!=0)b.match=a.options[a.selectedIndex].innerText;else b.match=""}function _SetCtrlFromOpt(b,a){a:;var c=document.getElementById(b.optHid);c.value=a.options[a.selectedIndex].value;if(a.options[a.selectedIndex].value==0){b.value=a.options[a.selectedIndex].innerText;b.match=""}else{b.value=a.options[a.selectedIndex].innerText;b.match=b.value}}function HandleOptDblClick(){a:;var a=event.srcElement,b=document.getElementById(a.ctrl);_SetCtrlFromOpt(b,a);SetCtrlMatch(b,a);a.style.display="none"}function HandleOptKeyDown(){a:;var a=event.srcElement,b=document.getElementById(a.ctrl),c=event.keyCode;switch(c){case 13:case 9:_SetCtrlFromOpt(b,a);event.returnValue=false;a.style.display="none";return}return}function CommitInlineEditChange(tr,cancel){a:;if(tr.cells.length>0){c=tr.cells[0];if(c.width=="1%")eval(cancel==true?c.firstChild.lastChild.href:c.firstChild.firstChild.href);else if(tr.cells.length>1){c=tr.cells[1];if(c.width="1%")eval(cancel==true?c.firstChild.lastChild.href:c.firstChild.firstChild.href)}}}function InlineEditNextTR(tr,nextTr,element,down){a:;if(nextTr!=null){_inlineEditString=tr.getAttribute("automode")+"#";var index=null;while(element!=null&&element.nodeType==1&&element.getAttribute("automode")==null){var siblingCount=0,sibling=element.previousSibling;while(sibling!=null){siblingCount++;sibling=sibling.previousSibling}if(index==null)index=siblingCount;else index=siblingCount+","+index;element=element.parentNode}_inlineEditString+=index;var tab=nextTr;while(tab!=null&&tab.tagName!="TABLE")tab=tab.parentNode;if(tab!=null&&nextTr!=null&&nextTr.getAttribute("iid")!=null){var inlineEditString=tab.getAttribute("inlineedit");if(inlineEditString!=null){inlineEditString=inlineEditString.replace("{@ID}","{"+IdFromRow(nextTr)+"}");inlineEditString=inlineEditString.replace("__cancel;","__commit;dvt_inlineedit={"+_inlineEditString+"};");eval(inlineEditString)}}else if(down==true&&nextTr!=null)if(nextTr.cells.length>0){var inlineEditString=null;c=nextTr.cells[0];if(c.width=="1%")inlineEditString=c.firstChild.href;else if(nextTr.cells.length>1){c=nextTr.cells[1];if(c.width="1%")inlineEditString=c.firstChild.href}if(inlineEditString!=null){inlineEditString=inlineEditString.replace("__cancel;","__commit;dvt_inlineedit={"+_inlineEditString+"};");eval(inlineEditString)}}}}function HandleInlineEditKeyDown(c){a:;var b=event.srcElement;if(b.tagName!="INPUT")return;var e=event.keyCode,a=c.parentNode;switch(e){case 27:CommitInlineEditChange(a,true);break;case 38:var d=a.previousSibling;InlineEditNextTR(a,d,b);break;case 13:case 40:var d=a.nextSibling;InlineEditNextTR(a,d,b,true)}if(window.event)window.event.cancelBubble=true;else c!=null&&c.stopPropagation()}function EnsureSelectElement(c,b){a:;var a=document.getElementById(b);if(a==null){a=document.createElement("SELECT");c.parentNode.appendChild(a);a.outerHTML='<select id="'+b+'" ctrl="'+c.id+'" class="ms-lookuptypeindropdown" name="'+b+'" style="display:none" onfocusout="OptLoseFocus(this)"></select>';FilterChoice(a,c,c.value,"")}return document.getElementById(b)}function HandleKey(){a:;var g=event.keyCode,b=event.srcElement,c=b.value,a=EnsureSelectElement(b,b.opt),d=false,f,e;switch(g){case 8:if(c.length>0)c=c.substr(0,c.length-1);d=true;break;case 16:case 17:case 18:return;case 9:case 16:case 17:case 18:return;case 13:f=b.value.toLocaleLowerCase();e=b.match.toLocaleLowerCase();if(e.indexOf(f)!=0)b.match=FilterChoice(a,b,b.value,"");if(a.style.display!="none"){b.value=b.match;a.style.display="none";event.returnValue=false}return;case 27:a.style.display="none";event.returnValue=false;return;case 38:if(a.style.display!="none"){if(a.selectedIndex>0)a.selectedIndex=a.selectedIndex-1;else a.selectedIndex=a.options.length-1;SetCtrlMatch(b,a);event.returnValue=false}return;case 40:if(a.style.display!="none"&&a.selectedIndex<a.options.length-1){a.selectedIndex=a.selectedIndex+1;SetCtrlMatch(b,a);event.returnValue=false;return}d=true}if(d);b.match=FilterChoice(a,b,c,"")}function ShowDropdown(b){a:;var a=document.getElementById(b),d=a.value,c=EnsureSelectElement(a,a.opt);a.match=FilterChoice(c,a,"",a.value);a.focus()}function HandleChar(){a:;var a=event.srcElement,b=a.value,d=document.getElementById(a.opt),c=event.keyCode;if(c==13)return;b=b+String.fromCharCode(c).toLocaleLowerCase();a.match=FilterChoice(d,a,b,"")}function HandleLoseFocus(){a:;var b=event.srcElement,a=document.getElementById(b.opt);a!=null&&a.style.display!="none"&&document.activeElement!=a&&_OptLoseFocus(a)}function HandleChange(){a:;var a=event.srcElement,c=a.value,b=document.getElementById(a.opt);a.match=FilterChoice(b,a,c,"")}function IsSafeHref(a){a:;return a.match(new RegExp("^http://","i"))||a.match(new RegExp("^https://","i"))||a.match(new RegExp("^ftp://","i"))||a.match(new RegExp("^file://","i"))||a.match(new RegExp("^mailto:","i"))||a.match(new RegExp("^news:","i"))||a.match(new RegExp("^pnm://","i"))||a.match(new RegExp("^mms://","i"))||a.match(new RegExp("^/","i"))||a.match(new RegExp("^#","i"))||a.match(new RegExp("^\\\\\\\\","i"))}var L_UnknownProtocolUrlError_Text="Les liens hypertexte doivent commencer par http://, https://, mailto:, news:, ftp://, file://, /, # ou \\\\. Modifiez l’adresse et réessayez.",L_UrlTooLongError_Text="L'URL de l'emplacement ne doit pas dépasser 256 caractères, hors paramètres de requête. Les paramètres de requête débutent au point d'interrogation (?).";function IsSafeHrefAlert(a,b){a:;if(a.match("^[^?]{257}")){alert(L_UrlTooLongError_Text);return false}else if(IsSafeHref(a))return true;else if(a.match("^[a-zA-Z]*:")){alert(L_UnknownProtocolUrlError_Text);return false}else if(true==b)return true;else{alert(L_UnknownProtocolUrlError_Text);return false}}function Discuss(a){a:;var L_IE5upRequired_Text="La fonctionnalité de discussion requiert une application compatible avec Microsoft SharePoint Foundation et Microsoft Internet Explorer version 7.0 ou ultérieure.";if(browseris.ie5up&&browseris.win32)window.parent.location.href=a;else alert(L_IE5upRequired_Text)}var g_AdditionalNavigateHierarchyQString="";function GetAdditionalNavigateHierarchyQString(){a:;return g_AdditionalNavigateHierarchyQString}function SetAdditionalNavigateHierarchyQString(a){a:;g_AdditionalNavigateHierarchyQString=a}function ProcessDefaultNavigateHierarchy(g,e,d,b,c,j,i,h,f){a:;if(typeof _spCustomNavigateHierarchy=="function")_spCustomNavigateHierarchy(g,e,d,b,c,j);else if(c==false)top.location=b;else{var a=document.createElement("INPUT");a.type="hidden";a.name="_spTreeNodeClicked";a.value=d;i.appendChild(a);var k="?RootFolder="+escapeProperly(b)+h+"&"+g_AdditionalNavigateHierarchyQString;_SubmitFormPost(f+k);return false}}function ParseMultiColumnValue(b,d){a:;var f=[];if(d==null)d=";#";var o=d.charCodeAt(0),n=d.charCodeAt(1);if(b==null||b.length==0)return f;var h=d.charAt(0),m=h+h,k=new RegExp(m,"g"),j=d.charAt(0),c=0;if(b.substr(0,2)==d)c=2;var a=c,g=false,i=b.length;while(a<i){var l=b.indexOf(h,a);if(l>=0){a=l;a++;if(b.charCodeAt(a)==n){if(a-1>c){var e=b.substr(c,a-c-1);if(g)e=e.replace(k,j);f.push(e);g=false}else f.push("");a++;c=a;continue}else if(b.charCodeAt(a)==o){a++;g=true;continue}else throw"ArgumentException"}else a=i}if(a>c){var e=b.substr(c,a-c);if(g)e=e.replace(k,j);f.push(e)}return f}function ConvertMultiColumnValueToString(f,b,c){a:;if(b==null)b=";#";if(c==null)c=true;for(var h=b.charAt(0),i=h+h,j=new RegExp(b.charAt(0),"g"),g=false,d="",e=0;e<f.length;e++){var a=f[e];if(a!=null&&a.length>0)a=a.replace(j,i);if(a!=null&&a.length>0)g=true;if(c||e!=0)d+=b;d+=a}if(g){if(c)d+=b;return d}else return ""}var httpFolderTarget=null,httpFolderSource=null,httpFolderDiv=null;function NavigateHttpFolderCore(){a:;if(httpFolderDiv==null){httpFolderDiv=document.createElement("DIV");document.body.appendChild(httpFolderDiv);httpFolderDiv.onreadystatechange=NavigateHttpFolderCore;httpFolderDiv.addBehavior("#default#httpFolder")}if(httpFolderDiv.readyState=="complete"){httpFolderDiv.onreadystatechange=null;try{var a=document.frames.item(httpFolderTarget);if(a!=null)a.document.body.innerText=L_WebFoldersRequired_Text}catch(c){}var b=false;try{var d="";d=httpFolderDiv.navigateFrame(httpFolderSource,httpFolderTarget);if(d=="OK")b=true}catch(c){}if(!b&&0==httpFolderSource.search("http://[a-zA-Z0-9-.]+(:80)?/")){var e=httpFolderSource.replace(/http:\/\/([a-zA-Z0-9\-\.]+)(:80)?[\/]/,"//$1/").replace(/[\/]/g,"\\");try{var a=document.frames.item(httpFolderTarget);if(a!=null){a.onload=null;a.document.location.href=e;b=true}}catch(c){}}!b&&alert(L_WebFoldersError_Text)}}function NavigateHttpFolder(a,b){a:;if("/"==a.charAt(0))a=document.location.protocol+"//"+document.location.host+a;httpFolderSource=a;httpFolderTarget=b;NavigateHttpFolderCore()}function NavigateHttpFolderIfSupported(b,a){a:;if(a=="_blank")if(SupportsNavigateHttpFolder())NavigateHttpFolder(b,a);else alert(L_WebFoldersError_Text);else alert(L_NoExplorerView_Text)}function AutoIndexForRelationshipsConfirmation(){a:;var L_Lookup_AutoIndexForRelationships_Confirm_Text="Pour activer les comportements de relation sur cette colonne, celle-ci doit être indexée. Voulez-vous indexer cette colonne ?",a=L_Lookup_AutoIndexForRelationships_Confirm_Text;return confirm(a)}function SetHomePage2(d){a:;if(!window.confirm(SP.Res.confirmWelcomePage))return;var e=new SP.ClientContext,c=e.get_web().get_rootFolder(),a="";if(d.length>0){var a=(new CUrl(document.URL)).path,b=a.indexOf("//");a=a.substr(b+2);b=a.indexOf("/");a=a.substr(b);a=unescapeProperly(a);a=a.substr(d.length);if(a.indexOf("/")==0)a=a.substr(1);var b=a.indexOf("?");if(b>0)a=a.substr(0,b)}c.set_welcomePage(a);c.update();var f=STSHtmlEncode(SP.Res.sending),g=addNotification(f,true);e.executeQueryAsync(function(){a:;removeNotification(g);addNotification(STSHtmlEncode(SP.Res.pageIsSiteHomePage),false)})}function SetHomePage(b){a:;var a=function(){a:;SetHomePage2(b)};if(typeof SP!="undefined")EnsureScript("SP.js",typeof SP.ClientContext,a);else EnsureScript("SP.js",typeof SP,a)}function SendEmail(b){a:;var a;try{a=typeof SP.Ribbon.EMailLink.openMailerWithUrl}catch(f){a="undefined"}if(a!="undefined")SP.Ribbon.EMailLink.openMailerWithUrl(b);else{var e="SP.Ribbon.EMailLink.openMailerWithUrl",c=e.split(".");if(c.length>1){var d=function(){a:;SP.Ribbon.EMailLink.openMailerWithUrl(b)};EnsureScript(c[0],a,d)}}}function TryCopyStringToClipboard(b){a:;if(window.clipboardData&&clipboardData.setData)clipboardData.setData("Text",b);else{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");var c=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);if(!c)return false;c.data=b;var a=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!a)return false;a.addDataFlavor("text/unicode");a.setTransferData("text/unicode",c,b.length*2);var d=Components.interfaces.nsIClipboard,e=Components.classes["@mozilla.org/widget/clipboard;1"].getService(d);if(!e)return false;e.setData(a,null,d.kGlobalClipboard)}return true}function CopyStringToClipboard(c){a:;var a=false;try{a=TryCopyStringToClipboard(c)}catch(b){a=false}!a&&alert(SP.Res.clipboardNoAccess)}function CopyPageAddressToClipboard(){a:;CopyStringToClipboard(window.location.href)}function showViewSelector(b,a,d){a:;if(b==null)b=window.event;CancelEvent(b);a=EnsureValidPositioningElement(b,a);a=AdjustViewSelectorParentInTitleArea(a);var e=function(){a:;SP.Application.UI.ViewSelectorMenuBuilder.showMenu(a,d)},c;try{c=typeof SP.Application.UI.ViewSelectorMenuBuilder.showMenu}catch(f){c="undefined"}EnsureScript("SP.js",c,e)}function EnsureValidPositioningElement(d,c){a:;if(c!=null)return c;var b=GetEventSrcElement(d),a=b;while(a!=null&&a.tagName!="BODY"){if(a.tagName=="TD"&&(a.className=="ms-viewselector"||a.className=="ms-viewselectorhover"))return a;a=a.parentNode}return b}function AdjustViewSelectorParentInTitleArea(a){a:;if(a&&a.className=="ms-ltviewselectormenuheader"&&a.childNodes)for(var d=a.childNodes,c=0;c<d.length;c++){var b=d[c];if(b&&b.id&&b.id.indexOf("ListTitleViewSelectorMenu")>=0)return b}return a}function EnsureCheckoutAndChangeLayoutModeToEdit(f,e,d){a:;var a,c=function(){a:;var a;try{a=typeof browserScript.MSOLayout_ChangeLayoutMode}catch(f){a="undefined"}if(a!="undefined")browserScript.MSOLayout_ChangeLayoutMode(d);else{var e="browserScript.MSOLayout_ChangeLayoutMode",b=e.split(".");if(b.length>1){var c=function(){a:;browserScript.MSOLayout_ChangeLayoutMode(d)};EnsureScript(b[0],a,c)}}},g=function(){a:;var g=a.get_item("CheckoutUser");if(!g){if(confirm(L_ConfirmCheckout_Text)){var b=new SP.ClientContext,d=b.get_web().get_lists().getById(new SP.Guid(f));a=d.getItemById(e);a.get_file().checkOut();b.executeQueryAsync(c)}}else c()},h=function(){a:;var b=new SP.ClientContext,c=b.get_web().get_lists().getById(new SP.Guid(f));a=c.getItemById(e);b.load(a,"CheckoutUser");b.executeQueryAsync(g)},b;try{b=typeof SP.ClientContext}catch(i){b="undefined"}EnsureScript("SP.js",b,h)}function _ChangeLayoutMode(b,c){a:;var a;try{a=typeof browserScript.MSOLayout_ChangeLayoutMode}catch(g){a="undefined"}if(a!="undefined")browserScript.MSOLayout_ChangeLayoutMode(b,c);else{var f="browserScript.MSOLayout_ChangeLayoutMode",d=f.split(".");if(d.length>1){var e=function(){a:;browserScript.MSOLayout_ChangeLayoutMode(b,c)};EnsureScript(d[0],a,e)}}}function OpenWebPartMenuFromLink(b,a,c,d){a:;while(a!=null&&a.parentNode!=null&&a.tagName!="TD")a=a.parentNode;OpenWebPartMenu(b,a,c,d)}function OpenWebPartMenu(b,c,d,e,f){a:;var a;try{a=typeof browserScript.MSOWebPartPage_OpenMenu}catch(j){a="undefined"}if(a!="undefined")browserScript.MSOWebPartPage_OpenMenu(b,c,d,e,f);else{var i="browserScript.MSOWebPartPage_OpenMenu",g=i.split(".");if(g.length>1){var h=function(){a:;browserScript.MSOWebPartPage_OpenMenu(b,c,d,e,f)};EnsureScript(g[0],a,h)}}return true}function UpdateWebPartMenuFocus(a,d,c){a:;if(a)a.className=d;var b=null;if(a&&a.childNodes){b=a.childNodes[0];if(b&&b.tagName=="SPAN")b.className=c}}function _WebPartMenuKeyboardClick(e,b,c,d){a:;var a;try{a=typeof browserScript.MSOMenu_KeyboardClick}catch(i){a="undefined"}if(a!="undefined")browserScript.MSOMenu_KeyboardClick(e,b,c,d);else{var h="browserScript.MSOMenu_KeyboardClick",f=h.split(".");if(f.length>1){var g=function(){a:;browserScript.MSOMenu_KeyboardClick(e,b,c,d)};EnsureScript(f[0],a,g)}}}function _ShowToolPane2Wrapper(b,c,d){a:;var a;try{a=typeof browserScript.MSOTlPn_ShowToolPane2Wrapper}catch(h){a="undefined"}if(a!="undefined")browserScript.MSOTlPn_ShowToolPane2Wrapper(b,c,d);else{var g="browserScript.MSOTlPn_ShowToolPane2Wrapper",e=g.split(".");if(e.length>1){var f=function(){a:;browserScript.MSOTlPn_ShowToolPane2Wrapper(b,c,d)};EnsureScript(e[0],a,f)}}}function ChangeWebPartPageView(b){a:;var a;try{a=typeof browserScript.MSOLayout_ToggleView}catch(f){a="undefined"}if(a!="undefined")browserScript.MSOLayout_ToggleView(b);else{var e="browserScript.MSOLayout_ToggleView",c=e.split(".");if(c.length>1){var d=function(){a:;browserScript.MSOLayout_ToggleView(b)};EnsureScript(c[0],a,d)}}}function _SetupFixedWidthWebParts(){a:;var a;try{a=typeof browserScript.MSOWebPartPage_SetupFixedWidthWebParts}catch(e){a="undefined"}if(a!="undefined")browserScript.MSOWebPartPage_SetupFixedWidthWebParts();else{var d="browserScript.MSOWebPartPage_SetupFixedWidthWebParts",b=d.split(".");if(b.length>1){var c=function(){a:;browserScript.MSOWebPartPage_SetupFixedWidthWebParts()};EnsureScript(b[0],a,c)}}}function EnsureSelectionHandlerOnFocusDeferred(d,c,b){a:;var a=c;while(a.tagName!="TABLE")a=a.parentNode;EnsureSelectionHandlerDeferred(d,a,b)}function ChangeWikiPageMode(b){a:;var a;try{a=typeof ribbon.ChangeWikiPageMode}catch(f){a="undefined"}if(a!="undefined")ribbon.ChangeWikiPageMode(b);else{var e="ribbon.ChangeWikiPageMode",c=e.split(".");if(c.length>1){var d=function(){a:;ribbon.ChangeWikiPageMode(b)};EnsureScript(c[0],a,d)}}}function EnsureSelectionHandlerDeferred(m,d,i){a:;var b=window["ctx"+i];if(!FV4UI()||!b){d.onmouseover=null;return}ctxInitItemState(b);for(var j=d.rows,g=0;g<j.length;g++){var a=j[g];if(HasCssClass(a,"ms-viewheadertr")){var f=a.cells[0];if(f){var e=f.getElementsByTagName("INPUT")[0];if(e!=null){b.SelectAllCbx=e;b.TableCbxFocusHandler=e.onfocus;e.onfocus=null;e.className="s4-selectAllCbx"}}}var k=a.getAttribute("iid");if(k!=null){var h=false;if(ItemIsCurrentlySelected(b,k)){h=true;b.CurrentSelectedItems++}if(ItemIsCurrentlyVisible(a)){b.TotalListItems++;b.LastSelectableRowIdx=g}if(a.cells.length>0){f=a.cells[0];var c=f.getElementsByTagName("INPUT")[0];if(c){if(!h)c.checked=false;if(!c._setup){c._setup=true;var l=TooltipOfRow(a);if(l!=null)c.title=l;c.onblur=HideItemCbx;c.onfocus=DisplayItemCbx;c.onclick=ToggleItemRowSelection;f.onclick=ToggleItemRowSelection}if(a.getAttribute("automode")==null)a.onclick=SingleItemSelect}UpdateAutoMode(a);AddSpaceToEmptyTDs(a);AddBorderToLastCell(a)}}}b.TableMouseoverHandler=d.onmouseover;d.onmouseover=null;if(d.getAttribute("handleDeleteInit")==null){d.setAttribute("handleDeleteInit","true");$addHandler(d,"keydown",function(a){a:;HandleItemDelete(a,i)})}}function ItemIsSelectable(a){a:;if(!a||!ItemHasiid(a)||!ItemIsCurrentlyVisible(a))return false;return true}function ItemIsCurrentlyVisible(a){a:;if(!a||!a.parentNode)return false;if(GetCurrentEltStyle(a.parentNode,"display")=="none"||GetCurrentEltStyle(a,"display")=="none")return false;return true}function ItemIsCurrentlySelected(b,c){a:;if(!b||!c)return false;var a=GetSelectedItemsDict(b);if(a==null||a[c]==null)return false;return true}function ItemHasiid(a){a:;if(!a||a.getAttribute("iid")==null)return false;return true}function HandleItemDelete(g,d){a:;if(g.keyCode==Sys.UI.Key.del){var b=window["ctx"+d],a;try{a=typeof inplview.DeleteSelectedItems}catch(h){a="undefined"}if(a!="undefined")inplview.DeleteSelectedItems(b);else{var f="inplview.DeleteSelectedItems",c=f.split(".");if(c.length>1){var e=function(){a:;inplview.DeleteSelectedItems(b)};EnsureScript(c[0],a,e)}}return false}}function GetItemRow2(b){a:;var a=b;while(a!=null&&a.nodeType==1&&a.tagName!="BODY"&&a.getAttribute("iid")==null){if(typeof a.parentNode=="undefined"||a.parentNode==null||typeof a.parentNode.tagName=="undefined"){a=null;break}a=a.parentNode}if(a!=null&&a.nodeType==1&&a.tagName=="TR")return a;return null}function GetItemRow(a){a:;if(a==null)a=window.event;var b=GetEventSrcElement(a);return GetItemRow2(b)}function TooltipOfRow(d){a:;for(var c=d.cells,a=0,a=0;a<c.length;a++){var e=c[a];if(HasCssClass(e,"ms-vb-title"))return e.innerText}var b=d.getAttribute("iid");if(b!=null){var f=b.split(",");if(f.length>2)return ""+f[1]}return null}function AlertCheckOut(){a:;alert(L_MustCheckout_Text)}function UpdateAutoModeImage(a){a:;if(a==null)a=window.event;if(a!=null){var b=a.srcElement!=null?a.srcElement:a.currentTarget;if(b&&b.tagName=="A")if(a.type=="blur")RemoveCssClassFromElement(b,"ms-inlineEditLink");else a.type=="focus"&&AddCssClassToElement(b,"ms-inlineEditLink")}}function AddAutoModeTag(f,e,g){a:;var a=document.createElement("A");a.onblur=UpdateAutoModeImage;a.onfocus=UpdateAutoModeImage;var c=e;while(c.tagName!="TABLE")c=c.parentNode;if(f.getAttribute("requiresCheckout")!=null)a.onclick=AlertCheckOut;else{var d=c.getAttribute("inlineedit");if(d!=null)a.href=d.replace("{@ID}","{"+IdFromRow(e)+"}")}var b=document.createElement("IMG");b.className="s4-itm-inlineedit";b.src=g;b.border=0;b.alt=L_Edit_Text;a.appendChild(b);f.appendChild(a)}function GetItemRowCbx(a){a:;var b=null;if(a!=null&&a.cells&&a.cells.length>0){var c=a.cells[0];b=c.getElementsByTagName("INPUT")[0]}return b}function UpdateAutoMode(b){a:;if(b!=null){var c=CtxFromRow(b);if(!c||!c.InlineEdit)return;if(b.cells&&b.cells.length>0){var a=b.cells[0];if(a.innerHTML==""&&a.width=="1%"){if(a.getAttribute("requiresCheckout")==null)a.onclick=ClickToEdit;AddAutoModeTag(a,b,"/_layouts/images/edititem.gif")}else if(b.cells.length>1){a=b.cells[1];if(a.innerHTML==""&&a.width=="1%"){if(a.getAttribute("requiresCheckout")==null)a.onclick=ClickToEdit;AddAutoModeTag(a,b,"/_layouts/images/edititem.gif")}}}}}function ClickToEdit(a){a:;var d=GetItemRow(a);if(d!=null&&d.cells.length>1){c=d.cells[1];var e=c.firstChild;if(e!=null){var b=e.firstChild;if(b!=null&&b.tagName=="IMG")b.src="/_layouts/images/spinnyrefresh.gif"}}if(window.event)window.event.cancelBubble=true;else a!=null&&a.stopPropagation()}function HideItemCbx(b){a:;if(b==null)b=window.event;var c=GetItemRow(b),a=GetItemRowCbx(c);if(a&&a.tagName=="INPUT"){a.style.top="";a.style.position="";a.onmouseout=null}}function DisplayItemCbx(b){a:;if(b==null)b=window.event;var c=GetItemRow(b),a=GetItemRowCbx(c);if(a&&a.tagName=="INPUT"){a.style.top="0px";a.style.position="relative";a.onmouseout=HideItemCbx}}function Log(b){a:;var a=document.createElement("DIV");a.innerHTML=b;document.body.appendChild(a)}function _ToggleAllItems(a,b,c){a:;if(a==null)a=window.event;MenuHtc_hide();ToggleAllItems2(b,c,b.checked);if(window.event)window.event.cancelBubble=true;else a.stopPropagation();return false}function ToggleAllItems2(b,f,g){a:;var a=window["ctx"+f];if(!a){b.checked=false;return}var c=b;while(c.tagName!="TABLE")c=c.parentNode;var e=c.rows,d=CountTotalItems(a);if(d==0){b.checked=false;return}if(g){if(d>g_MaximumSelectedItemsAllowed){b.checked=false;alert(L_BulkSelection_TooManyItems);return}SelectAllItems(a,e)}else DeselectAllItems(a,e,true)}function SelectAllItems(a,b){a:;if(!a||!b)return;for(var e=a.LastSelectableRowIdx,c=1;c<e;c++){var d=b[c],f=d.getAttribute("iid");if(f!=null)ItemIsCurrentlyVisible(d)&&ToggleItemRowSelection2(a,d,true,false)}ToggleItemRowSelection2(a,b[e],true,true)}function DeselectAllItems(a,d,f){a:;if(!a||!d)return;for(var g=a.LastSelectableRowIdx,c=1;c<=g;c++){var e=d[c],b=e.getAttribute("iid");if(b!=null){var h=b.split(",");SelectListItem(a,b,h,e,false)}}f&&RefreshCommandUI()}function DeselectCollapsedGroup(e,b){a:;if(!b)return;var c=b.rows,a=GetLastSelectableRowIdx(b,ItemHasiid);if(c&&a!=-1){for(var d=0;d<a;d++){var f=c[d];ItemHasiid(f)&&ToggleItemRowSelection2(e,f,false,false)}ToggleItemRowSelection2(e,c[a],false,true)}}function HandleSingleGroupByRow(a,b,d){a:;if(!a||!b)return;var c=b.getAttribute("iid");if(c==null)return;if(!d){a.TotalListItems--;ItemIsCurrentlySelected(a,c)&&ToggleItemRowSelection2(a,b,false,true)}else a.TotalListItems++}function RefreshCommandUI(){a:;if(IsFullNameDefined("SP.Ribbon.PageManager")){var a=SP.Ribbon.PageManager.get_instance();a&&a.get_commandDispatcher().executeCommand(Commands.CommandIds.ApplicationStateChanged,null)}}function _CommandUIExecuteCommand(b){a:;if(IsFullNameDefined("SP.Ribbon.PageManager")){var a=SP.Ribbon.PageManager.get_instance();a&&a.get_commandDispatcher().executeCommand(b,null)}}function OnItemSelectionChanged(e,a,c){a:;var b=e;if(FV4UI()){var d=function(){a:;var d=[];if(typeof _ribbon!="undefined"&&_ribbon)if(c)b.clvp.EnsureEcbInfo(RefreshCommandUI,d,a);else b.clvp.EnsureEcbInfo(null,null,a)};EnsureScript("inplview",typeof InitAllClvps,d)}}function IdFromRow(c){a:;var b=c.getAttribute("iid"),a=b.split(",");return a[1]}function CtxFromRow(d){a:;var c=d.getAttribute("iid"),b=c.split(","),a=b[0];return window["ctx"+a]}function GroupNameFromRow(d){a:;var b=d.parentNode,a=b.id;if(a==null||a==""){siblingNode=b.previousSibling;if(siblingNode!=null&&siblingNode.childNodes.length==0&&siblingNode.tagName==b.tagName)a=siblingNode.id}if(a==null||a=="")return null;var c=a.substr(4,a.length-6);return c==""?null:c}function GroupStringFromGroupName(a){a:;if(a==null||a=="")return null;var c=document.getElementById("titl"+a+"_");if(c==null)return null;var b=c.getAttribute("groupString");return b==""?null:b}function SingleItemSelect(a){a:;if(a==null)a=window.event;var g=GetEventSrcElement(a);if(g!=null&&ElementContainsLink(g))return;if(clearECBMenu(g)){CancelEvent(a);return false}var d=GetItemRow(a),c=d;while(c.tagName!="TABLE")c=c.parentNode;var h=c.rows,b=CtxFromRow(d),i=d.getAttribute("iid"),k=i.split(","),e=false;if(!ItemIsCurrentlySelected(b,i)){e=true;if(CountSelectedItems(b)>0)for(var f=0;f<h.length;f++){var j=h[f];ItemIsSelectable(j)&&ToggleItemRowSelection2(b,j,false,false)}}ToggleItemRowSelection2(b,d,e,true);UpdateSelectAllCbx(b,e);CancelEvent(a);return true}function ElementContainsLink(a){a:;while(a!=null&&a.tagName!="TD"){if(a.tagName=="A")return true;a=a.parentNode}return false}function clearECBMenu(b){a:;if(g_menuHtc_lastMenu==null)return false;if(b!=null){var a=b;while(a!=null&&a.tagName!="TD")a=a.parentNode;var c=GetItemRow2(a);MenuHtc_hide();tdHasEcbMenu(a)&&OnChildItem(a)}return true}function tdHasEcbMenu(d){a:;for(var b=0;b<d.childNodes.length;b++){var a=d.childNodes[b];if(a.nodeType==1&&a.tagName=="DIV"){var c=a.getAttribute("CTXName");if(c!=null&&c!="")return true}}return false}function ToggleItemRowSelection(a){a:;if(a==null)a=window.event;MenuHtc_hide();var c=GetItemRow(a),b=CtxFromRow(c),f=c.getAttribute("iid"),d=!ItemIsCurrentlySelected(b,f);if(d&&CountSelectedItems(b)==g_MaximumSelectedItemsAllowed){var e=GetItemRowCbx(c);e.checked=false;alert(L_BulkSelection_TooManyItems);CancelEvent(a);return true}ToggleItemRowSelection2(b,c,d,true);UpdateSelectAllCbx(b,d);if(window.event)window.event.cancelBubble=true;else a.stopPropagation();return true}function ToggleItemRowSelection2(b,a,f,e){a:;var d=a.getAttribute("iid"),c=d.split(",");if(c[1]=="")return;SelectListItem(b,d,c,a,f);OnItemSelectionChanged(b,GroupNameFromRow(a),e);return true}function UpdateSelectAllCbx(a,c){a:;if(!a||!a.SelectAllCbx)return;a.SelectAllCbx.checked=false;if(c){var d=CountTotalItems(a),b=CountSelectedItems(a);if(b==d&&b>0)a.SelectAllCbx.checked=true}}function SelectListItem(a,b,e,c,d){a:;var f=GetItemRowCbx(c);f.checked=d;if(typeof a.dictSel=="undefined")a.dictSel=[];if(d){AddCssClassToElement(c,"s4-itm-selected");if(a.dictSel[b]==null){a.CurrentSelectedItems++;a.dictSel[b]={id:e[1],fsObjType:e[2]}}}else{RemoveCssClassFromElement(c,"s4-itm-selected");if(a.dictSel[b]!=null){delete a.dictSel[b];a.CurrentSelectedItems--}}}function CountTotalItems(a){a:;if(a.TotalListItems==null)a.TotalListItems=0;return a.TotalListItems}function CountSelectedItems(a){a:;if(a.CurrentSelectedItems==null)a.CurrentSelectedItems=0;return a.CurrentSelectedItems}function GetCtxRgiidFromIid(c){a:;if(c==null)return null;var b=c.split(",");if(b.length!=3)return null;if(b[1]=="")return null;var d=b[0],a=window["ctx"+d];if(a==null)return null;if(typeof a.dictSel=="undefined")a.dictSel=[];if(a.CurrentSelectedItems==null)a.CurrentSelectedItems=0;return {ctx:a,rgiid:b}}function SelectListItemNative(b,e){a:;var c=GetCtxRgiidFromIid(b);if(c==null)return false;var a=c.ctx,d=c.rgiid;if(e){if(a.CurrentSelectedItems==g_MaximumSelectedItemsAllowed)return false;if(a.dictSel[b]==null){a.CurrentSelectedItems++;a.dictSel[b]={id:d[1],fsObjType:d[2]}}}else if(a.dictSel[b]!=null){delete a.dictSel[b];a.CurrentSelectedItems--}OnItemSelectionChanged(a,null,true);return true}function DeselectAllListItemsNative(c){a:;var b=GetCtxRgiidFromIid(c);if(b==null)return false;var a=b.ctx;a.dictSel=[];a.CurrentSelectedItems=0;OnItemSelectionChanged(a,null,true);return true}function GetSelectedItemsNative(){a:;var a=GetCurrentCtx();if(a==null||typeof a.dictSel=="undefined")return [];var d=0,b=[];for(var c in a.dictSel){b[d]={id:a.dictSel[c].id,fsObjType:a.dictSel[c].fsObjType};d++}return b}function GetSelectedListNative(){a:;var a=GetCurrentCtx();if(a==null)return null;return a.listName}function GetCurrentCtx(){a:;var c=document.getElementById("_wpSelected");if(c==null)return null;var a=c.getAttribute("value");if(a==null||a=="")return null;a=a.substr(12);c=document.getElementById(a);if(c==null)return null;var b;if(window._spWebPartComponents&&_spWebPartComponents[a]&&_spWebPartComponents[a].storageId)b=_spWebPartComponents[a].storageId;else b=c.getAttribute("WebPartID");if(b==null)return null;b=b.toUpperCase();var d=g_ViewIdToViewCounterMap["{"+b+"}"];if(d==null)return null;var e=window["ctx"+d];return e}function GetLastSelectableRowIdx(c,d){a:;if(!c||!d)return;for(var b=c.rows,a=b.length-1;a>=0;a--){var e=b[a];if(d(e))return a}return -1}function UpdateCtxLastSelectableRow(a,c){a:;if(!a||!c)return;a.LastSelectableRowIdx=0;var b=GetLastSelectableRowIdx(c,ItemIsSelectable);if(b!=-1)a.LastSelectableRowIdx=b}function DeselectAllWPItems(){a:;var a=GetCurrentCtx();if(!a||!a.clvp||!a.clvp.tab)return;var c=a.clvp.tab,b=getSelectAllCbxFromTable(c);if(!b)return;b.checked=false;CountSelectedItems(a)>0&&DeselectAllItems(a,c.rows,false)}function callOpenBreadcrumbMenu(a,g,j,i,c,d,e,f,n,o,h,k){a:;if(!a)var a=window.event;a.cancelBubble=true;a.stopPropagation&&a.stopPropagation();var l=function(){a:;SP.UI.PopoutMenu.createPopoutMenuInstanceAndLaunch(g,j,i,c,d,e,f,n,o,h,k)},b;try{b=typeof SP.UI.PopoutMenu.createPopoutMenuInstanceAndLaunch}catch(m){b="undefined"}EnsureScript("SP.js",b,l)}function HasCssClass(d,f,e){a:;var c=d.className;if(c==null)return false;for(var a=c.split(" "),b=0;b<a.length;b++)if(a[b]==f){if(e){a.splice(b,1);d.className=a.join(" ")}return true}return false}function AddSpaceToEmptyTDs(b){a:;if(browseris.ie7down&&b!=null){if(b.getAttribute("addEmptySpace")==null)b.setAttribute("addEmptySpace","true");else return;for(i=0;i<b.childNodes.length;i++){var a=b.childNodes[i];if(a.nodeType==1&&a.tagName=="TD"&&a.width!="1%")if(a.innerHTML=="")a.innerHTML="&#8203;";else if(a.innerText==""){while(a&&a.nodeType==1&&a.innerHTML!="")a=a.firstChild;if(a&&a.nodeType==1&&a.innerHTML==""&&(a.tagName=="SPAN"||a.tagName=="DIV"||a.tagName=="NOBR"))a.innerHTML="&#8203;"}}}}function AddBorderToLastCell(c){a:;if(c.getAttribute("setEdgeBorder")!=null)return;var a=c.cells;if(a&&a.length>0){if(browseris.ie7down)a[0].className+="";var b=a[a.length-1];if(b)if(b.className!="")b.className+=" ms-vb-lastCell";else b.className="ms-vb-lastCell"}c.setAttribute("setEdgeBorder","true")}function AddCssClassToElement(a,b){a:;var c=a.className;if(c!=null){if(!HasCssClass(a,b))a.className=a.className+" "+b}else a.className=b}function RemoveCssClassFromElement(b,a){a:;HasCssClass(b,a,true)}function AddGallery_TypeOf(c){a:;if(c!=null){var b=typeof c;if(b=="object")if(b.constructor!=null){var a=c.constructor.toString(),d=a.indexOf(" "),e=a.indexOf("("),f=a.substr(d+1,e-d-1);return f}return b}return null}function IsLanguageSupportedInSilverlight(a){a:;if(a==1025||a==1037||a==1054||a==1081)return false;return true}function IsSilverlightInstalled(b){a:;if(b==undefined)b=null;var a=false,m=null;try{var i=null,j=false;if(window.ActiveXObject)try{i=new ActiveXObject("AgControl.AgControl");if(b===null)a=true;else if(i.IsVersionSupported(b))a=true;i=null}catch(l){j=true}else j=true;if(j){var k=navigator.plugins["Silverlight Plug-In"];if(k)if(b===null)a=true;else{var h=k.description;if(h==="1.0.30226.2")h="2.0.30226.2";var c=h.split(".");while(c.length>3)c.pop();while(c.length<4)c.push(0);var e=b.split(".");while(e.length>4)e.pop();var d,g,f=0;do{d=parseInt(e[f]);g=parseInt(c[f]);f++}while(f<e.length&&d===g);if(d<=g&&!isNaN(d))a=true}}}catch(l){a=false}return a}function IsAddGalleryProviderEnabled(c,b){a:;var a;try{if(window.XMLHttpRequest)a=new XMLHttpRequest;else a=new ActiveXObject("Microsoft.XMLHTTP");a.open("HEAD",c+b+".deny.xml",false);a.send();if(a.status==200)return false;else return true}catch(d){return true}}function DownloadSolutionHandler(){a:;LaunchCreateHandler("Provider:AddGallery.OfficeOnlineProvider")&&STSNavigate("http://r.office.microsoft.com/r/rlidSPTemplates")}function SilverlightBasedCreateHandler(a){a:;var k=new Date,f,b,c,i,h;if(typeof _spPageContextInfo!="undefined"){if(_spPageContextInfo.siteServerRelativeUrl){b=_spPageContextInfo.siteServerRelativeUrl;if(b.charAt(b.length-1)!="/")b=b+"/"}else return true;if(_spPageContextInfo.webServerRelativeUrl){c=_spPageContextInfo.webServerRelativeUrl;if(c.charAt(c.length-1)!="/")c=c+"/";f=c+"_layouts/AddGallery.aspx"}else return true;if(_spPageContextInfo.webLanguage)i=_spPageContextInfo.webLanguage;else return true;if(_spPageContextInfo.currentLanguage)h=_spPageContextInfo.currentLanguage;else return true}else return true;if(FV4UI()&&IsSilverlightInstalled("3.0.40624.0")&&IsLanguageSupportedInSilverlight(i)&&IsLanguageSupportedInSilverlight(h)){if(a==null)a="All";if(AddGallery_TypeOf(a)!="string")return true;a=a.toLowerCase();if(a=="page"||a=="publishingpage")return true;var d=[];d=a.split(":");if(d.length==2&&d[0]=="provider")if(!IsAddGalleryProviderEnabled(b+"_layouts/AddGalleryProviders/",d[1]))return true;var g=function(a,b){a:;if(FV4UI()){if(a)if(b)window.location=b;else window.location.reload()}else if(a)window.location=a;else window.location.reload()},j=function(){a:;var i={scope:a,currentWeb:c,currentSiteCollection:b,clickDateTime:k},e=a=="page"?660:1012,d=a=="page"?360:600;if(FV4UI())var j={width:e,height:d,resizable:true,status:false,menubar:false,help:false,url:f,dialogReturnValueCallback:g,args:i},l=SP.UI.ModalDialog.showModalDialog(j);else{var h;if(window.showModalDialog)h="dialogWidth:"+e+"px;dialogHeight:"+d+"px;resizable:yes;status:no;menubar:no;help:no";else h="width="+e+",height="+d+",resizable=yes,status=no,menubar=no,help=no";var m=commonShowModalDialog(f,h,g,i)}},e;try{e=typeof SP.UI.ModalDialog.showModalDialog}catch(l){e="undefined"}EnsureScript("SP.UI.Dialog.js",e,j);return false}return true}function LaunchCreateHandler(a){a:;if(typeof __CreateHandler!="undefined"&&__CreateHandler!=null){var b=__CreateHandler(a);return b}else try{return SilverlightBasedCreateHandler(a)}catch(c){return true}}if(FV4UI()){var isdlg=window.location.search.match("[?&]IsDlg=1");if(_spBodyOnLoadFunctionNames!=null&&typeof _spBodyOnLoadFunctionNames!="undefined"){!isdlg&&_spBodyOnLoadFunctionNames.push("FixRibbonAndWorkspaceDimensions");_spBodyOnLoadFunctionNames.push("SearchOnBodyLoad")}!isdlg&&AddEvtHandler(window,"onresize",FixRibbonAndWorkspaceDimensionsForResize)}function QstringStruct(g){a:;this.nonFilterParams={};this.filterParams={};for(var e=g.split("&"),d=0;d<e.length;d++){var a=e[d].split("=");if(a.length==2)if(a[0].search("^Filter")!=-1){var c=a[0].match("[0-9]*$"),b;if(typeof this.filterParams[c]!="undefined")b=this.filterParams[c];else{b={};this.filterParams[c]=b}var f=a[0].match("^Filter[^0-9]*");b[f]=a[1]}else this.nonFilterParams[a[0]]=a[1]}}QstringStruct.prototype.toString=QstringStructToString;function QstringStructToString(){a:;for(var c=[],e=1,d=0;d<this.filterParams.length;d++){var f=this.filterParams[d];for(var b in f){var a=[];a.push(b);a.push(e);a.push("=");a.push(f[b]);c.push(a.join(""))}e++}for(var b in this.nonFilterParams){var a=[];a.push(b);a.push("=");a.push(this.nonFilterParams[b]);c.push(a.join(""))}return "?"+c.join("&")}function ReconcileQstringFilters(i,j){a:;var c=[];c.push(new QstringStruct(i));c.push(new QstringStruct(j));for(var f=[],a=0;a<c.length;a++)for(var e in c[a].nonFilterParams)if(a==0||typeof c[0].nonFilterParams[e]=="undefined"&&a==1){var b=[];b.push(e);b.push("=");b.push(c[a].nonFilterParams[e]);f.push(b.join(""))}for(var h=1,g={},a=0;a<c.length;a++)for(var k in c[a].filterParams){var d=c[a].filterParams[k];if(typeof g[d.FilterField]=="undefined"){for(var e in d){var b=[];b.push(e);b.push(h);b.push("=");b.push(d[e]);f.push(b.join(""))}h++;g[d.FilterField]=d}}return f.join("&")}function PageActionClick(){a:;EnsureScript("ribbon",TypeofFullName("SP.Ribbon.PageStateActionButton"),function(){a:;SP.Ribbon.PageStateActionButton.sendCommand()})}function ShowWebPartAdder(a){a:;LoadWPAdderOnDemand();ExecuteOrDelayUntilEventNotified(function(){a:;var b=window.WPAdder;if(b!=null){b._showCategoryColumn(true);b._setZone(a);b.show()}},"_spEventWebPartAdderReady")}var UTF8_1ST_OF_2=192,UTF8_1ST_OF_3=224,UTF8_1ST_OF_4=240,UTF8_TRAIL=128,HIGH_SURROGATE_BITS=55296,LOW_SURROGATE_BITS=56320,SURROGATE_6_BIT=64512,SURROGATE_ID_BITS=63488,SURROGATE_OFFSET=65536;function escapeProperlyCoreCore(f,g,h,i){a:;var c="",b="",d=0,k=" \"%<>'&";if(typeof f=="undefined")return "";for(d=0;d<f.length;d++){var a=f.charCodeAt(d),e=f.charAt(d);if(g&&(e=="#"||e=="?")){c+=f.substr(d);break}if(h&&e=="&"){c+=e;continue}if(a<=127){if(i)c+=e;else if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||g&&(a>=32&&a<=95)&&k.indexOf(e)<0)c+=e;else if(a<=15)c+="%0"+a.toString(16).toUpperCase();else if(a<=127)c+="%"+a.toString(16).toUpperCase()}else if(a<=2047){b=UTF8_1ST_OF_2|a>>6;c+="%"+b.toString(16).toUpperCase();b=UTF8_TRAIL|a&63;c+="%"+b.toString(16).toUpperCase()}else if((a&SURROGATE_6_BIT)!=HIGH_SURROGATE_BITS){b=UTF8_1ST_OF_3|a>>12;c+="%"+b.toString(16).toUpperCase();b=UTF8_TRAIL|(a&4032)>>6;c+="%"+b.toString(16).toUpperCase();b=UTF8_TRAIL|a&63;c+="%"+b.toString(16).toUpperCase()}else if(d<f.length-1){var a=(a&1023)<<10;d++;var j=f.charCodeAt(d);a|=j&1023;a+=SURROGATE_OFFSET;b=UTF8_1ST_OF_4|a>>18;c+="%"+b.toString(16).toUpperCase();b=UTF8_TRAIL|(a&258048)>>12;c+="%"+b.toString(16).toUpperCase();b=UTF8_TRAIL|(a&4032)>>6;c+="%"+b.toString(16).toUpperCase();b=UTF8_TRAIL|a&63;c+="%"+b.toString(16).toUpperCase()}}return c}function escapeProperly(a){a:;return escapeProperlyCoreCore(a,false,false,false)}function escapeProperlyCore(b,a){a:;return escapeProperlyCoreCore(b,a,false,false)}function escapeUrlForCallback(a){a:;var c=a.indexOf("#"),b=a.indexOf("?");if(c>0&&(b==-1||c<b)){var d=a.substr(0,c);if(b>0)d+=a.substr(b);a=d}return escapeProperlyCoreCore(a,true,false,true)}function PageUrlValidation(a){a:;if(a.substr(0,4)=="http"||a.substr(0,1)=="/"||a.indexOf(":")==-1)return a;else{var L_InvalidPageUrl_Text="URL de page non valide : ";alert(L_InvalidPageUrl_Text);return ""}}function SelectRibbonTab(b,c){a:;var a=null;try{a=SP.Ribbon.PageManager.get_instance().get_ribbon()}catch(d){}if(!a)typeof _ribbonStartInit=="function"&&_ribbonStartInit(b,false,null);else(c||a.get_selectedTabId()=="Ribbon.Read")&&a.selectTabById(b)}function FV4UI(){a:;return typeof _fV4UI!="undefined"&&_fV4UI}var itemTable=null,currentCtx=null,g_OfflineClient=null;function TakeOfflineDisabled(d,b,c,a){a:;try{if(g_OfflineClient==null)if(document.cookie.indexOf("OfflineClientInstalled")==-1){if(IsSupportedMacBrowser())g_OfflineClient=CreateMacPlugin();else g_OfflineClient=new ActiveXObject("SharePoint.OfflineClient");document.cookie="OfflineClientInstalled=1"}else if(GetCookie("OfflineClientInstalled")=="1")if(IsSupportedMacBrowser())g_OfflineClient=CreateMacPlugin();else g_OfflineClient=new ActiveXObject("SharePoint.OfflineClient");if(g_OfflineClient!=null&&g_OfflineClient.IsOfflineAllowed(d,b,c,a))return false;else return true}catch(e){document.cookie="OfflineClientInstalled=0";g_OfflineClient=null}return true}function GoToHistoryLink(b,d){a:;if(b.href==null)return;var c=b.href,f=b.href.indexOf("?")>=0?"&":"?",e=f+"VersionNo="+d,a=GetSource();if(a!=null&&a!="")a="&Source="+a;var c=b.href+e+a;if(isPortalTemplatePage(c))window.top.location=STSPageUrlValidation(c);else window.location=STSPageUrlValidation(c)}function GetGotoLinkUrl(b){a:;if(b.href==null)return null;var d=b.href.indexOf("?")>=0?"&":"?",a=GetSource();if(a!=null&&a!="")a=d+"Source="+a;var c=b.href+a;return c}function GoToLink(b){a:;var a=GetGotoLinkUrl(b);if(a==null)return;if(isPortalTemplatePage(a))window.top.location=STSPageUrlValidation(a);else window.location=STSPageUrlValidation(a)}function GoToLinkOrDialogNewWindow(a){a:;if(a.href==null)return;if(window.location.search.match("[?&]IsDlg=1"))window.open(a.href);else GoToLink(a)}function GoToDiscussion(b){a:;var c=b.indexOf("?")>=0?"&":"?",a=GetSource();if(a!=null&&a!="")b+=c+"TopicsView="+a;STSNavigate(b)}function GetCurrentEltStyle(b,c){a:;if(b.currentStyle)return b.currentStyle[c];else if(window&&window.getComputedStyle){var a=window.getComputedStyle(b,null);if(a&&a.getPropertyValue)return a.getPropertyValue(c)}else return null}function EEDecodeSpecialChars(b){a:;var a=b.replace(/&quot;/g,'"');a=a.replace(/&gt;/g,">");a=a.replace(/&lt;/g,"<");a=a.replace(/&#39;/g,"'");a=a.replace(/&amp;/g,"&");return a}function MsFloorTime(d,b,c){a:;var a=d.getTime();if(c)a=a-1;a=b*Math.floor(a/b);return a}function Calendar(d,b,c,g){a:;if(!c)c=new DateOptions;this.dopt=c;var i=1;if(d==null||b==null){var a=StURLGetVar("CalendarDate");if(a!=""){d=a.substr(0,4)-0;var h=a.indexOf("-",5);if(h==-1)b=a.substr(5)-1;else{b=a.substr(5,h-5)-1;i=a.substr(h+1)}}if(a==""||isNaN(c.DateYMD(d,b,1))){var f=this.dopt.Today();d=f.getUTCFullYear();b=f.getUTCMonth();i=f.getUTCDate()}}var e=StURLGetVar("CalendarPeriod");if(e=="week"){this.period="week";this.iperiod=1}else if(e=="day"){this.period="vday";this.iperiod=2}else if(e=="vday"){this.period="vday";this.iperiod=2}else if(e=="month"){this.period="month";this.iperiod=0}else{this.period=c.CalendarPeriod;if(this.period=="week")this.iperiod=1;else if(this.period=="day")this.iperiod=2;else if(this.period=="vday")this.iperiod=2;else this.iperiod=0}this.SetDate(d,b,i);if(this.iperiod==0){this.cchanMin=4;this.cchanMax=4}else if(this.iperiod==1){this.cchanMin=20;this.cchanMax=20}else{this.cchanMin=3;this.cchanMax=100}this.ievtMax=0;this.rgEvt=[];this.fUseDHTML=browseris.ie&&browseris.verIEFull>4&&browseris.win32||browseris.nav6up;this.fDatePicker=false;this.dateDP=null;if(!g)g="cal";this.stObject=g}Calendar.msMinute=1e3*60;Calendar.msHour=Calendar.msMinute*60;Calendar.msDay=Calendar.msHour*24;Calendar.msWeek=Calendar.msDay*7;var L_rgDOW0_Text="Dim",L_rgDOW1_Text="Lun",L_rgDOW2_Text="Mar",L_rgDOW3_Text="Mer",L_rgDOW4_Text="Jeu",L_rgDOW5_Text="Ven",L_rgDOW6_Text="Sam";Calendar.rgDOW=[L_rgDOW0_Text,L_rgDOW1_Text,L_rgDOW2_Text,L_rgDOW3_Text,L_rgDOW4_Text,L_rgDOW5_Text,L_rgDOW6_Text];var L_rgDOWLong0_Text="Dimanche",L_rgDOWLong1_Text="Lundi",L_rgDOWLong2_Text="Mardi",L_rgDOWLong3_Text="Mercredi",L_rgDOWLong4_Text="Jeudi",L_rgDOWLong5_Text="Vendredi",L_rgDOWLong6_Text="Samedi";Calendar.rgDOWLong=[L_rgDOWLong0_Text,L_rgDOWLong1_Text,L_rgDOWLong2_Text,L_rgDOWLong3_Text,L_rgDOWLong4_Text,L_rgDOWLong5_Text,L_rgDOWLong6_Text];var L_rgDOWDP0_Text="Di",L_rgDOWDP1_Text="Lu",L_rgDOWDP2_Text="Ma",L_rgDOWDP3_Text="Me",L_rgDOWDP4_Text="Je",L_rgDOWDP5_Text="Ve",L_rgDOWDP6_Text="Sa";Calendar.rgDOWDP=[L_rgDOWDP0_Text,L_rgDOWDP1_Text,L_rgDOWDP2_Text,L_rgDOWDP3_Text,L_rgDOWDP4_Text,L_rgDOWDP5_Text,L_rgDOWDP6_Text];var L_rgMonths0_Text="Janvier",L_rgMonths1_Text="Février",L_rgMonths2_Text="Mars",L_rgMonths3_Text="Avril",L_rgMonths4_Text="Mai",L_rgMonths5_Text="Juin",L_rgMonths6_Text="Juillet",L_rgMonths7_Text="Août",L_rgMonths8_Text="Septembre",L_rgMonths9_Text="Octobre",L_rgMonths10_Text="Novembre",L_rgMonths11_Text="Décembre";Calendar.rgMonths=[L_rgMonths0_Text,L_rgMonths1_Text,L_rgMonths2_Text,L_rgMonths3_Text,L_rgMonths4_Text,L_rgMonths5_Text,L_rgMonths6_Text,L_rgMonths7_Text,L_rgMonths8_Text,L_rgMonths9_Text,L_rgMonths10_Text,L_rgMonths11_Text];var L_MYDATE_Text="^1 ^2",L_YMDATE_Text="^1 ^2",L_MDYDATE_Text="^1 ^2, ^3",L_DMYDATE_Text="^1 ^2, ^3",L_YMDDATE_Text="^1, ^2 ^3",L_MDYDATESameYear_Text="^1 ^2",L_DMYDATESameYear_Text="^1 ^2",L_YMDDATESameYear_Text="^1, ^2 ^3",L_DATE1DATE2_Text="^1 - ^2",L_MDY_DOW_DATE_Text="^4 ^1 ^2, ^3",L_DMY_DOW_DATE_Text="^4 ^1 ^2, ^3",L_YMD_DOW_DATE_Text="^4 ^1, ^2 ^3";Calendar.prototype.StMonthYear=CalStMonthYear;function CalStMonthYear(){a:;var a="";if(this.iperiod!=0)a+='<span style="cursor:pointer;" onmouseover="HighlightText(this, \'red\');" onmouseout="HighlightText(this, \'\');"'+StClickEvent(this.stObject+".MoveMonth(0)")+">";var b="",c="",d="";switch(this.dopt.stDateOrder){case "MDY":case "DMY":c=Calendar.rgMonths[this.mon];d=this.yr;b=L_MYDATE_Text;break;case "YMD":c=this.yr;d=Calendar.rgMonths[this.mon];b=L_YMDATE_Text}a+=StBuildParam(b,c,d);if(this.iperiod!=0)a+="</span>";return a}Calendar.prototype.StDaySpanMonthYear=CalDaySpanMonthYear;function CalDaySpanMonthYear(){a:;var i="",k="",l="",a="",b="",c="",d="",e="",f="",g="",h="";if(this.iperiod!=0)i+='<span style="cursor:pointer;" onmouseover="HighlightText(this, \'red\');" onmouseout="HighlightText(this, \'\');"'+StClickEvent(this.stObject+".MoveMonth(0)")+">";var j=this.dateStart.getUTCFullYear()!=this.dateEnd.getUTCFullYear();switch(this.dopt.stDateOrder){case "MDY":c=Calendar.rgMonths[this.dateStart.getUTCMonth()];d=this.dateStart.getUTCDate();e=this.dateStart.getUTCFullYear();if(j)a=L_MDYDATE_Text;else a=L_MDYDATESameYear_Text;f=Calendar.rgMonths[this.dateEnd.getUTCMonth()];g=this.dateEnd.getUTCDate();h=this.dateEnd.getUTCFullYear();b=L_MDYDATE_Text;break;case "DMY":c=this.dateStart.getUTCDate();d=Calendar.rgMonths[this.dateStart.getUTCMonth()];e=this.dateStart.getUTCFullYear();if(j)a=L_DMYDATE_Text;else a=L_DMYDATESameYear_Text;f=this.dateEnd.getUTCDate();g=Calendar.rgMonths[this.dateEnd.getUTCMonth()];h=this.dateEnd.getUTCFullYear();b=L_DMYDATE_Text;break;case "YMD":c=this.dateStart.getUTCFullYear();d=Calendar.rgMonths[this.dateStart.getUTCMonth()];e=this.dateStart.getUTCDate();if(j)a=L_YMDDATE_Text;else a=L_YMDDATESameYear_Text;f=this.dateEnd.getUTCFullYear();g=Calendar.rgMonths[this.dateEnd.getUTCMonth()];h=this.dateEnd.getUTCDate();b=L_YMDDATE_Text}k=StBuildParam(a,c,d,e);l=StBuildParam(b,f,g,h);i+=StBuildParam(L_DATE1DATE2_Text,k,l);if(this.iperiod!=0)i+="</span>";return i}Calendar.prototype.StDayMonthYear=CalStDayMonthYear;function CalStDayMonthYear(){a:;var e="";e+='<span style="cursor:pointer;" onmouseover="HighlightText(this, \'red\');" onmouseout="HighlightText(this, \'\');"'+StClickEvent(this.stObject+".MoveMonth(0)")+">";var a="",b="",c="",d="",f=Calendar.rgDOWLong[this.dow];switch(this.dopt.stDateOrder){case "MDY":b=Calendar.rgMonths[this.mon];c=this.day;d=this.yr;a=L_MDY_DOW_DATE_Text;break;case "DMY":b=this.day;c=Calendar.rgMonths[this.mon];d=this.yr;a=L_DMY_DOW_DATE_Text;break;case "YMD":b=this.yr;c=Calendar.rgMonths[this.mon];d=this.day;a=L_YMD_DOW_DATE_Text}e+=StBuildParam(a,b,c,d,f);e+="</span>";return e}function alertDate(b,a){a:;alert(b+": yr="+a.getUTCFullYear()+" mon="+(a.getUTCMonth()+1)+" day="+a.getUTCDate())}Calendar.prototype.SetDate=CalSetDate;function CalSetDate(d,c,e){a:;var a=new Date(Date.UTC(d,c,e));this.dateStart=new Date(a.getTime());this.dateEnd=new Date(a.getTime());this.givenDate=new Date(a.getTime());if(this.iperiod==0){this.dateStart.setUTCDate(1);this.dateEnd.setTime(Date.UTC(d,c+1,0))}var b=0;if(this.iperiod!=2){this.dateStart.setUTCDate(this.dateStart.getUTCDate()-(this.dateStart.getUTCDay()-this.dopt.dow+7)%7);b=this.IrwFromDate(this.dateEnd);this.dateEnd.setUTCDate(this.dateEnd.getUTCDate()+b*7-1)}this.irwMax=b+1;if(this.iperiod==1){this.dateEnd.setTime(this.dateStart.getTime()+6*Calendar.msDay);a=new Date(this.dateStart.getTime()+3*Calendar.msDay)}else if(this.iperiod==2)this.dateTodayEnd=new Date(this.dateStart.getTime()+Calendar.msDay-1);this.day=a.getUTCDate();this.mon=a.getUTCMonth();this.yr=a.getUTCFullYear();this.dow=a.getUTCDay()}Calendar.prototype.DayStyle=CalDayStyle;function CalDayStyle(b,d,f,e){a:;var a,c=this.dopt.Today();if(b.getTime()==c.getTime())if(d)a=" style=\"border-color:'#FFD275'; border-bottom-style:solid; border-left-style:solid; border-right-style:solid; border-bottom-width:2pt; border-left-width:2pt; border-right-width:2pt\" ";else if(f)a=" style=\"border-color:'#FFD275'; border-top-style:solid; border-left-style:solid; border-right-style:solid; border-top-width:2pt; border-left-width:2pt; border-right-width:2pt\" ";else a=" style=\"border-color:'#FFD275'; border-left-style:solid; border-right-style:solid; border-left-width:2pt; border-right-width:2pt\" ";else if(!e&&b.getUTCMonth()!=this.mon)a=' BGCOLOR="#e6e6e6"';else a="";return a}Calendar.prototype.AddFullEvent=CalAddFullEvent;function CalAddFullEvent(e,g,i,l,k,h,j){a:;var a,b;if(e=="")return;a=DateOptions.ParseISODate(e);if(g=="")b=new Date(a.getTime());else b=DateOptions.ParseISODate(g);if(b<a)b=new Date(a.getTime());var c=new Date(a.getTime()),d=new Date(b.getTime());if(this.iperiod==2){if(a>this.dateTodayEnd||b<this.dateStart)return;if(c<this.dateStart)c=this.dateStart;var f=Calendar.msHour/3;if(b.getTime()<a.getTime()+f)d=new Date(a.getTime()+f)}h+="&Source="+escapeProperly(window.location.href);var m=new CalEvent(c,d,a,b,i,l,k,h,j);this.AddEvent(m)}Calendar.prototype.AddEvent=CalAddEvent;function CalAddEvent(a){a:;this.rgEvt[this.ievtMax++]=a}Calendar.prototype.AssignChannels=CalAssignChannels;function CalAssignChannels(){a:;var a;this.mpSpan={};this.mpIchan={};this.mpEvents={};var j=false,c,d;if(this.iperiod==2){j=true;c=this.dateStart;d=this.dateTodayEnd;this.mpNoTimeEvents=[];this.mpAllDayEvents=[];var h=this.dopt.WorkDayStartHour-this.dopt.DailyStartHourDelta,i=this.dopt.WorkDayEndHour+this.dopt.DailyEndHourDelta;if(h<0)h=0;if(i>24)i=24;this.minQuarterStart=4*h;this.maxQuarterEnd=4*i-1;for(a=0;a<this.rgEvt.length;a++){evt=this.rgEvt[a];if(evt.actualDateStart>d||evt.actualDateEnd-1<c||evt.actualDateStart<=c&&evt.actualDateEnd>=d)continue;irwMin=this.IrwFromDate(evt.dateStart);if(irwMin<0)irwMin=0;irwMax=this.IrwFromDate(evt.dateEnd);if(irwMax>this.irwMax)irwMax=this.irwMax;if(irwMin<this.irwMax&&irwMax>=0)for(irw=irwMin;irw<=irwMax;irw++){var g=new Date;this.SetDateFromGrid(g,irw,0);if(g<c||g>=d)continue;var k=g.getTime()/(Calendar.msHour/4),b=MsFloorTime(evt.dateStart,Calendar.msHour/4,0)/(Calendar.msHour/4)-k,f=MsFloorTime(evt.dateEnd,Calendar.msHour/4,1)/(Calendar.msHour/4)-k+1;if(f<b)f=b;if(b<this.minQuarterStart)this.minQuarterStart=b;if(f>this.maxQuarterEnd)this.maxQuarterEnd=f;if(b>0&&95-b<2)this.FVdayOverflow=true}}this.minQuarterStart=Math.floor(this.minQuarterStart/4)*4;if(this.minQuarterStart<0)this.minQuarterStart=0;if(this.maxQuarterEnd>95)this.maxQuarterEnd=95;else this.maxQuarterEnd=4*(Math.floor(this.maxQuarterEnd/4)+1)-1}this.iperiod<=1&&this.rgEvt.sort(CalEvtSort);var e=this.dateStart;e.setUTCHours(0,0,0,0);e=e.getTime();for(a=0;a<this.rgEvt.length;a++){evt=this.rgEvt[a];if(j){if(evt.actualDateStart.getTime()==e&&evt.actualDateEnd.getTime()==e){this.mpNoTimeEvents[this.mpNoTimeEvents.length]=evt;continue}if(evt.actualDateStart<=c&&evt.actualDateEnd>=d){this.mpAllDayEvents[this.mpAllDayEvents.length]=evt;continue}}irwMin=this.IrwFromDate(evt.dateStart);if(irwMin<0)irwMin=0;irwMax=this.IrwFromDate(evt.dateEnd);if(irwMax>this.irwMax)irwMax=this.irwMax;if(irwMin<this.irwMax&&irwMax>=0)for(irw=irwMin;irw<=irwMax;irw++)this.PlaceEventInRow(evt,irw)}}function CalEvtSort(a,b){a:;if(a.multiDay^b.multiDay)if(a.multiDay)return -1;else return 1;else if(a.multiDay){var c=a.dateEnd-a.dateStart,d=b.dateEnd-b.dateStart;if(d<c)return -1;else if(d>c)return 1;else return 0}else if(a.dateStart<b.dateStart)return -1;else if(a.dateStart>b.dateStart)return 1;else return 0}Calendar.prototype.PlaceEventInRow=CalPlaceEventInRow;function CalPlaceEventInRow(c,f){a:;var l,j=new Date;this.SetDateFromGrid(j,f,0);if(this.iperiod==2){if(f!=0)return;var k=j.getTime()/(Calendar.msHour/4),d=MsFloorTime(c.dateStart,Calendar.msHour/4,0)/(Calendar.msHour/4)-k,e=MsFloorTime(c.dateEnd,Calendar.msHour/4,1)/(Calendar.msHour/4)-k;if(e<d)e=d;var h,g;if(this.iperiod==2){h=this.minQuarterStart;g=this.maxQuarterEnd}else{h=4*this.dopt.WorkDayStartHour;g=4*this.dopt.WorkDayEndHour-1}if(e>=h&&d<=g){if(this.FVdayOverflow)g=99;d=Math.max(d,h);e=Math.min(e,g);ichan=this.IchanNext(f,d,e);new Span(this,f,d,e,ichan,c)}}else{var i,a,b;i=j.getTime()/Calendar.msDay;a=MsFloorTime(c.dateStart,Calendar.msDay,0)/Calendar.msDay-i;b=MsFloorTime(c.dateEnd,Calendar.msDay,1)/Calendar.msDay-i;if(b<a||c.actualDateEnd.getTime()-c.actualDateStart.getTime()<Calendar.msDay)b=a;if(b>=0&&a<=6){a=Math.max(a,0);b=Math.min(b,6);ichan=this.IchanNext(f,a,b);new Span(this,f,a,b,ichan,c)}}}function Span(a,e,c,h,g,d){a:;this.evt=d;this.cbucket=h-c+1;if(a.iperiod==2){d.ichan=g;d.ihour=c;var f=a.maxQuarterEnd;if(f==95)f=99;d.rowspan=Math.min(this.cbucket,1+f-c)}a.mpSpan[e+"."+c+"."+g]=this;for(bucket=c;bucket<=h;bucket++){a.mpIchan[e+"."+bucket]=g+1;var b=a.mpEvents[e+"."+bucket];if(b==null){b=[];a.mpEvents[e+"."+bucket]=b}b[b.length]=d}}Calendar.prototype.IchanNext=CalIchanNext;function CalIchanNext(c,d,e){a:;for(var b=0,a=d;a<=e;a++)if(this.mpIchan[c+"."+a]!=null)b=Math.max(b,this.mpIchan[c+"."+a]);return b}Calendar.prototype.IrwFromDate=CalIrwFromDate;function CalIrwFromDate(b){a:;var a;a=Math.floor((b.getTime()-this.dateStart.getTime())/Calendar.msWeek);return a}Calendar.prototype.BuildUI=CalBuildUI;function CalBuildUI(){a:;var a=this.StBuild();document.write(a)}Calendar.prototype.StBuild=CalStBuild;function CalStBuild(){a:;this.AssignChannels();if(this.fDatePicker)return this.StBuildPicker();if(!this.fUseDHTML)return this.StDownlevelBuild();return this.StBuildDHTML()}Calendar.prototype.StBuildDHTML=CalStBuildDHTML;function CalStBuildDHTML(){a:;var a,f,h=new Date,l,e,d,g,b,t,n,C,D;t=C=4*this.dopt.WorkDayStartHour;n=4*this.dopt.WorkDayEndHour;D=n-1;if(this.iperiod==2){t=this.minQuarterStart;n=this.maxQuarterEnd+1;if(n==96&&this.FVdayOverflow)n=100}var A='<th style="cursor:pointer;" onmouseover="HighlightText(this, \'red\');" onmouseout="HighlightText(this, \'\');" ';if(this.iperiod==2){g=this.IchanNext(0,t,n);var y=this.mpNoTimeEvents.length,x=this.mpAllDayEvents.length;g=Math.max(g,this.cchanMin);if(this.cchanMax>0)g=Math.min(g,this.cchanMax);a="<table width='100%' class='ms-cal' cellpadding='0' cellspacing='0'>";a+="<tr>"+A+StClickEvent(this.stObject+".MoveDate(-1)")+' class="ms-calhead" style="cursor:pointer;" width="8%">&lt;</th><th width="84%" class="ms-calhead" nowrap>'+this.StDayMonthYear()+"</th>"+A+StClickEvent(this.stObject+".MoveDate(1)")+' class="ms-calhead" style="cursor:pointer;" width="8%">&gt;</th></tr>';if(y>0){a+="</table><table width='100%' class='ms-cal' cellpadding='0' cellspacing='0'>\r";a+="<tr height='0'><td width='"+(this.dopt.AllDayWidth+8)+"pt' /><td/></tr>\r";a+="<tr><td class='ms-CalAllDay' rowspan='"+(y+1)+"'></td><td width='1%' /></tr>";for(i=0;i<y;i++){p=this.mpNoTimeEvents[i];a+="<tr><td class='ms-Vapptsingle' style='border-top:1px solid black; border-left:1px solid black; border-bottom:1px solid black; border-right:1px solid black;' ";a+=" title="+StAttrQuote(p.StTip(this.dopt))+"><nobr>"+StRenderVDayEvt(p,this.dopt,2)+"</nobr></td></tr>\r"}}if(x>0){a+="</table><table width='100%' class='ms-cal' cellpadding='0' cellspacing='0'>\r";a+="<tr height='0'><td width='"+(this.dopt.AllDayWidth+8)+"pt' /><td/></tr>\r";a+="<tr><td class='ms-CalAllDay' rowspan='"+(x+1)+"'>"+this.dopt.L_AllDay_Text+"</td><td width='1%'/></tr>";for(i=0;i<x;i++){p=this.mpAllDayEvents[i];a+="<tr><td class='ms-Vapptsingle' style='border-top:1px solid black; border-left:1px solid black; border-bottom:1px solid black; border-right:1px solid black;' ";a+=" title="+StAttrQuote(p.StTip(this.dopt))+"><nobr>"+StRenderVDayEvt(p,this.dopt,2)+"</nobr></td></tr>\r"}}a+="</table><table width='100%' style='table-layout:fixed' class='ms-vcal' cellpadding='0' cellspacing='0'>\r";a+="<tr height='0'><td width='"+this.dopt.AllDayWidth+"pt' /><td width='8pt' />\r";for(d=1;d<g;d++)a+="<td/>\r";a+="</tr>\r";var w={},m=new Array(n);for(b=t;b<n;b++){m[b]=0;for(d=0;d<g;d++)w[b+"."+d]=0}for(i=0;i<this.rgEvt.length;i++){var p=this.rgEvt[i],b=p.ihour,d=p.ichan,o=p.rowspan,k=d+1;for(c=0;c<o;c++)if(m[b+c]>k)k=m[b+c];for(c=0;c<o;c++){m[b+c]=k;w[b+c+"."+d]=1}}for(i=0;i<this.rgEvt.length;i++){var E=0,c=0;b=this.rgEvt[i].ihour;k=m[b];o=this.rgEvt[i].rowspan;var s=0,B=false;for(c=1;c<o;c++){s=m[b+c];B|=s!=k;if(s>k)k=s}if(!B)continue;for(c=0;c<o;c++)m[b+c]=k}for(i=this.rgEvt.length-1;i>=0;i--){var E=0,c=0;b=this.rgEvt[i].ihour;k=m[b];o=this.rgEvt[i].rowspan;var s=0,B=false;for(c=1;c<o;c++){s=m[b+c];B|=s!=k;if(s>k)k=s}if(!B)continue;for(c=0;c<o;c++)m[b+c]=k}for(b=t;b<n;b++){a+="<tr>\r";if(b%4==0){var r=b/4;if(r==24)r="&nbsp;";else if(this.dopt.f12Hour){r=(b/4+11)%12+1;if(this.dopt.TimeMarkPosn==0)r+=" "+(b/4<12?this.dopt.stAM:this.dopt.stPM);else r=(b/4<12?this.dopt.stAM:this.dopt.stPM)+" "+r}var j="";if(b<C||b>D)j=' BGCOLOR="#e6e6e6" ';if(b!=t||x>0||y>0){a+="<td class='ms-CalHour' rowspan='2'"+j+"><nobr>"+r+"</nobr></td>";a+="<td class='ms-calHour'"+j+">&nbsp;</td>\r"}else{a+="<td class='ms-firstCalHour' rowspan='2'"+j+"><nobr>"+r+"</nobr></td>";a+="<td class='ms-firstCalHour'"+j+">&nbsp;</td>\r"}}else if(b%2==0){a+="<td class='ms-CalHalfHour'"+j+">&nbsp;</td>\r";a+="<td class='ms-calHalfHour'"+j+">&nbsp;</td>\r"}else if(b%4==1)a+="<td class='ms-CalQuarterHour'"+j+">&nbsp;</td>\r";else if(b%4==3){a+="<td class='ms-CalQuarterHour'"+j+">&nbsp;</td>\r";a+="<td class='ms-calQuarterHour'"+j+">&nbsp;</td>\r"}for(d=0;d<g;d++){f=this.mpSpan[0+"."+b+"."+d];if(f!=null){var u="ms-Vappt",o=f.evt.rowspan,v=Math.floor(g/m[b]);if(v>g/this.cchanMin)v=Math.floor(g/this.cchanMin);var z=v-1;if(z>0)for(c=0;c<o;c++){z=v-1;for(jchan=g-1;jchan>d&&z>0;jchan--)if(w[b+c+"."+jchan]==0){w[b+c+"."+jchan]=1;z--}}a+="<td class="+u+" style='border-top:1px solid black; border-left:1px solid black; border-bottom:2px solid black; border-right:2px solid black;' rowspan="+f.evt.rowspan;if(v>1)a+=" colspan="+v;a+=" title="+StAttrQuote(f.evt.StTip(this.dopt))+"><nobr>"+StRenderVDayEvt(f.evt,this.dopt,f.evt.rowspan)+"</nobr></td>\r"}else if(w[b+"."+d]==0)if(b%4==0)if(b!=t||x>0||y>0)a+="<td class='ms-calHour'"+j+">&nbsp;</td>\r";else a+="<td class='ms-firstCalHour'"+j+">&nbsp;</td>\r";else if(b%2==0)a+="<td class='ms-calHalfHour'"+j+">&nbsp;</td>\r";else a+="<td class='ms-calQuarterHour'"+j+">&nbsp;</td>\r"}a+="</tr>\r"}a+="<tr>\r";for(d=-2;d<g;d++)a+="<td class='ms-CalHour'>&nbsp;</td>\r";a+="</tr>\r"}else{var q=this.iperiod==1;a="<table width='100%' class='ms-cal' cellpadding='0' cellspacing='0'>";a+="<tr>"+A+StClickEvent(this.stObject+".MoveDate(-1)")+' class="ms-calhead" style="cursor:pointer;">&lt;</td><td class="ms-calhead" colspan="5">';if(this.iperiod==0)a+=this.StMonthYear();else a+=this.StDaySpanMonthYear();a+="</td>"+A+StClickEvent(this.stObject+".MoveDate(1)")+' class="ms-calhead" style="cursor:pointer;">&gt;</td></tr>';a+="<tr>\r";for(e=0;e<7;e++)a+="<td class='ms-calDOW'>"+Calendar.rgDOW[(e+this.dopt.dow)%7]+"</td>\r";a+="</tr>";for(l=0;l<this.irwMax;l++){g=Math.max(this.IchanNext(l,0,6),this.cchanMin);if(this.cchanMax>0)g=Math.min(g,this.cchanMax);a+="<tr>\r";for(e=0;e<7;e++){this.SetDateFromGrid(h,l,e);a+='<td class="ms-calTop"'+this.DayStyle(h,false,true,q)+'>&nbsp;<span style="cursor:pointer;" onmouseover="HighlightText(this, \'red\');" onmouseout="HighlightText(this, \'\');"'+StClickEvent(this.stObject+".MoveToDay("+h.getUTCFullYear()+","+(h.getUTCMonth()+1)+","+h.getUTCDate()+")")+">"+h.getUTCDate()+"</span>&nbsp;</td>\r"}a+="</tr>\r";for(d=0;d<g;d++){if(this.iperiod==1){a+="<tr>\r";for(e=0;e<7;e++){this.SetDateFromGrid(h,l,e);if(d==g-1&&this.SpanCheck(l,e,d,g))a+="<td class='ms-apptsingle' "+this.DayStyle(h,false,false,q)+">&nbsp;</td>";else{f=this.mpSpan[l+"."+e+"."+d];if(f!=null&&!f.evt.multiDay&&0!=f.evt.actualDateStart.getTime()%Calendar.msDay&&0!=f.evt.actualDateEnd.getTime()%Calendar.msDay){var u="ms-apptsingle"+this.DayStyle(h,false,false,q);a+="<td class="+u+" colspan="+f.cbucket+" title="+StAttrQuote(f.evt.StTip(this.dopt))+"><nobr>";a+=StEvtTime(f.evt,this.dopt,true);a+="&nbsp;</nobr></td>\r";e+=f.cbucket-1}else a+="<td class='ms-calMid'"+this.DayStyle(h,false,false,q)+">&nbsp;</td>\r"}}a+="</tr>\r"}a+="<tr>\r";for(e=0;e<7;e++){this.SetDateFromGrid(h,l,e);if(d==g-1&&this.SpanCheck(l,e,d,g))a+="<td class='ms-apptsingle' "+this.DayStyle(h,false,false,q)+'><span style="cursor:pointer;" onmouseover="HighlightText(this, \'red\');" onmouseout="HighlightText(this, \'\');"'+StClickEvent(this.stObject+".MoveToDay("+h.getUTCFullYear()+","+(h.getUTCMonth()+1)+","+h.getUTCDate()+")")+">"+this.dopt.L_More_Text+"</span></td>\r";else{f=this.mpSpan[l+"."+e+"."+d];if(f!=null){var u="ms-appt";if(!f.evt.multiDay)u="ms-apptsingle"+this.DayStyle(h,false,false,q);a+="<td class="+u+" colspan="+f.cbucket+" title="+StAttrQuote(f.evt.StTip(this.dopt))+"><nobr>"+StURL(f.evt.stURL,f.evt.stTitle)+"</nobr></td>\r";e+=f.cbucket-1}else a+="<td class='ms-calMid'"+this.DayStyle(h,false,false,q)+">&nbsp;</td>\r"}}a+="</tr>\r";a+="<tr>\r";if(d==g-1)u="ms-CalBot";else u="ms-CalSpacer";for(e=0;e<7;e++){this.SetDateFromGrid(h,l,e);a+="<td class="+u+this.DayStyle(h,d==g-1,false,q)+">&nbsp;</td>\r"}a+="</tr>\r"}}}a+="</table>";return a}Calendar.prototype.SpanCheck=CalSpanCheck;function CalSpanCheck(e,a,g,f){a:;var d,b,c;if(this.IchanNext(e,a,a)>f)return true;d=this.mpSpan[e+"."+a+"."+g];if(d!=null){c=d.cbucket+a;if(c>7)c=7;for(b=a+1;b<c;b++)if(this.IchanNext(e,b,b)>f)return true}return false}function StRenderVDayEvt(a,f,e){a:;var b="";b+="<table height='12px' border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse; padding-right:6px' ><tr>";if(a.rgIcons&&a.rgIcons.length){var c,d=true;for(c in a.rgIcons)if(a.rgIcons[c]&&a.rgIcons[c].indexOf("blank.gif")<0){d=false;break}if(!d){b+="<td valign='top' nowrap>";for(c in a.rgIcons)if(a.rgIcons[c]&&a.rgIcons[c].length)b+=a.rgIcons[c];b+="</td>"}}b+="<td nowrap>"+StURL(a.stURL,a.stTitle)+"</td></tr></table>";if(e>2)b+="<nobr>"+StEvtTime(a,f,false)+"</nobr>";if(e>3&&a.stLocation!=null)b+="<br><nobr>"+STSHtmlEncode(a.stLocation)+"</nobr>";return b}function StEvtTime(a,c,d){a:;var b="";if(d)b+=c.StTime(a.actualDateStart);else b+=c.StBareTime(a.actualDateStart);if(a.actualDateStart.getTime()!=a.actualDateEnd.getTime()&&(MsFloorTime(a.actualDateStart,Calendar.msDay,0)==MsFloorTime(a.actualDateEnd,Calendar.msDay,0)||a.actualDateEnd.getTime()-a.actualDateStart.getTime()<Calendar.msDay)){b+=" - ";if(d)b+=c.StTime(a.actualDateEnd);else b+=c.StBareTime(a.actualDateEnd)}return b}function StClickEvent(a){a:;return 'onclick="'+a+'" ondblclick="'+a+'"'}var L_TodaysDate_Text="La date d\\'aujourd\\'hui est ^1";Calendar.prototype.StBuildPicker=CalStBuildPicker;function CalStBuildPicker(){a:;var a,c=new Date,d=this.dopt.Today(),f,b,o,e,L_LittleRedDiamond_TXT="&loz;";a='<table ONSELECTSTART="return false;" class="ms-datepicker" cellpadding="2" cellspacing="0" border="1">\r';var i="<td style=\"cursor:pointer;\" onmouseover=\"Highlight(this, 'yellow', 'black');\" onmouseout=\"Highlight(this, '', '');\" ";a+="<tr>"+i+StClickEvent(this.stObject+".MoveMonth(-1)")+' class="ms-dpnextprev">&lt;</td><td class="ms-dphead" colspan="5">'+this.StMonthYear()+"</td>"+i+StClickEvent(this.stObject+".MoveMonth(1)")+' class="ms-dpnextprev">&gt;</td></tr>';a+="<tr>\r";for(b=0;b<7;b++)a+='<td class="ms-dpdow" height="20" width="14%">&nbsp;'+Calendar.rgDOWDP[(b+this.dopt.dow)%7]+"&nbsp;</td>\r";a+="</tr>\r";for(f=0;f<this.irwMax;f++){a+="<tr>\r";for(b=0;b<7;b++){this.SetDateFromGrid(c,f,b);var h=this.mpEvents[f+"."+b],g=h!=null,n=c.getUTCFullYear(),m=c.getUTCMonth(),l=c.getUTCDate();a+=i+StClickEvent(this.stObject+".ClickDay("+n+","+m+","+l+")");if(g){var j="";for(e=0;e<h.length;e++){j+=h[e].StTip(this.dopt);if(e<h.length-1)j+="\r"}a+=" title="+StAttrQuote(j)}a+=' width="14%"'+this.DPDayStyle(c,g)+">&nbsp;"+(g?"<b>":"")+c.getUTCDate()+(g?"</b>":"")+(c.getTime()==d.getTime()?"<font color='red'>"+L_LittleRedDiamond_TXT+"</font>":"&nbsp;");a+="</td>\r"}a+="</tr>\r"}var k="<a href='javascript:"+this.stObject+".SetDate("+d.getUTCFullYear()+","+d.getUTCMonth()+","+d.getUTCDate()+");'>"+this.dopt.StDate(d)+"</a>";a+="<tr><td class='ms-DPFoot' colspan='7'><font color='red'>&loz;</font>"+StBuildParam(L_TodaysDate_Text,k)+"</td></tr>";a+="</table>";return a}Calendar.prototype.MoveDate=CalMoveDate;function CalMoveDate(a){a:;if(this.iperiod==2)this.MoveVDay(a);else if(this.iperiod==1)this.MoveWeek(a);else this.MoveMonth(a)}Calendar.prototype.MoveMonth=CalMoveMonth;function CalMoveMonth(c){a:;var a,b=this.givenDate.getUTCFullYear()*12+this.givenDate.getUTCMonth()+c,d=Math.floor(b/12);b=b%12;if(c!=0)a=StURLSetVar("CalendarDate",d+"-"+St2Digits(b+1)+"-1");else a=StURLSetVar("CalendarDate",d+"-"+St2Digits(b+1)+"-"+this.givenDate.getUTCDate());a=StURLSetVar2(a,"CalendarPeriod","month");this.Post(a)}Calendar.prototype.MoveWeek=CalMoveWeek;function CalMoveWeek(c){a:;var a,b=this.givenDate;b.setUTCDate(this.givenDate.getUTCDate()+7*c);a=StURLSetVar("CalendarDate",b.getUTCFullYear()+"-"+St2Digits(b.getUTCMonth()+1)+"-"+b.getUTCDate());a=StURLSetVar2(a,"CalendarPeriod","week");this.Post(a)}Calendar.prototype.MoveDay=CalMoveDay;Calendar.prototype.MoveVDay=CalMoveDay;function CalMoveDay(c){a:;var a,b=this.givenDate;b.setUTCDate(this.givenDate.getUTCDate()+c);a=StURLSetVar("CalendarDate",b.getUTCFullYear()+"-"+St2Digits(b.getUTCMonth()+1)+"-"+b.getUTCDate());a=StURLSetVar2(a,"CalendarPeriod","day");this.Post(a)}Calendar.prototype.MoveToDay=CalMoveToDay;function CalMoveToDay(d,c,b){a:;var a;a=StURLSetVar("CalendarDate",d+"-"+St2Digits(c)+"-"+b);a=StURLSetVar2(a,"CalendarPeriod","day");this.Post(a)}Calendar.prototype.MoveToToday=CalMoveToToday;function CalMoveToToday(){a:;var a=this.dopt.Today(),b=StURLSetVar("CalendarDate",a.getUTCFullYear()+"-"+St2Digits(a.getUTCMonth()+1)+"-"+a.getUTCDate());this.Post(b)}Calendar.prototype.Post=CalDoPost;function CalDoPost(a){a:;if(this.stViewID&&this.stViewID.length)a=StURLSetVar2(a,"View",this.stViewID);SubmitFormPost(a)}function EditSeries(c){a:;var b="";if(c)b=StSearchVar(c,"ID");else b=StURLGetVar("ID");if(b.length){var d=b.indexOf(".0.");if(d>0){var a="";if(c){a=window.location.href;var e=a.indexOf("?");if(e>0)c+=a.substring(e,a.length);a=StURLSetVar2(c,"ID",b.substr(0,d))}else a=StURLSetVar("ID",b.substr(0,d));window.location.href=a}}}function EditSeriesID(b,c){a:;if(b.length){var a="";if(c){a=window.location.href;var d=a.indexOf("?");if(d>0)c+=a.substring(d,a.length);a=StURLSetVar2(c,"ID",b)}else a=StURLSetVar("ID",b);window.location.href=a}}function StURLSetVar(b,a){a:;return StURLSetVar2(window.location.href,b,a)}function StViewURLSetVar(a,c,b){a:;stUrl=window.location.href;p1=stUrl.lastIndexOf("/");if(p1>0)stUrl=stUrl.substring(0,p1+1)+a;return StURLSetVar2(stUrl,c,b)}function StURLSetVar2(a,c,f){a:;var b=c+"="+f,e=a.indexOf("?");if(e!=-1){var d=a.indexOf("?"+c+"=",e);if(d==-1){d=a.indexOf("&"+c+"=",e);if(d!=-1)b="&"+b}else b="?"+b;if(d!=-1){var g=new RegExp("[&?]"+c+"=[^&]*","");a=a.replace(g,b)}else a=a+"&"+b}else a=a+"?"+b;return a}function StURLGetVar(b){a:;var a=document.location.href;return StSearchVar(a,b)}function StSearchVar(b,d){a:;var f=new RegExp("[?&]"+d+"=","g"),a=b.search(f);if(a==-1)return "";a+=d.length+2;var c=b.indexOf("&",a+1);if(c==-1)c=b.length;var e=b.substring(a,c);return e}function HighlightText(a,b){a:;if(b!=""){a.colorTextSav=a.style.color;a.style.color=b}else a.style.color=a.colorTextSav}function Highlight(a,b,c){a:;if(b!=""){a.colorBackSav=a.style.backgroundColor;a.colorTextSav=a.style.color;a.style.backgroundColor=b;a.style.color=c}else{a.style.backgroundColor=a.colorBackSav;a.style.color=a.colorTextSav}}Calendar.prototype.DPDayStyle=CalDPDayStyle;function CalDPDayStyle(b,c){a:;var a="";if(b.getTime()==this.dateDP.getTime())a+=" class=ms-dpselectedday";else if(b.getUTCMonth()!=this.mon)a+=" class=ms-dpnonmonth";else a+=" class=ms-dpday";if(c)a+=' style:"font-weight: bold;"';return a}Calendar.prototype.StDownlevelBuild=CalStDownlevelBuild;function CalStDownlevelBuild(){a:;var a,f=new Date,d,b,g,c;a='<table cellpadding="2" cellspacing="0" width="100%" border="1">\r';a+='<tr><td class="ms-calhead"><a class="ms-calhead" target="_self" href="javascript:'+this.stObject+'.MoveDate(-1);"><b>&lt;</b></a></td><td class="ms-calhead" colspan="5">'+this.StMonthYear()+'</td><td class="ms-calhead"><a class="ms-calhead" target="_self" href="javascript:'+this.stObject+'.MoveDate(1);"><b>&gt;</b></a></td></tr>';a+="<tr>\r";for(b=0;b<7;b++)a+='<td class="ms-calDOWDown" height="20" width="14%">&nbsp;'+Calendar.rgDOW[(b+this.dopt.dow)%7]+"&nbsp;</td>\r";a+="</tr>\r";for(d=0;d<this.irwMax;d++){a+="<tr>\r";for(b=0;b<7;b++){this.SetDateFromGrid(f,d,b);a+='<td class="ms-calDown" height="80" width="14%"'+this.DayStyle(f)+">&nbsp;"+f.getUTCDate()+"&nbsp;<br>\r";var e=this.mpEvents[d+"."+b];if(e!=null)for(c=0;c<e.length;c++)a+=StURL(e[c].stURL,e[c].stTitle)+"<br>\r";a+="</td>"}a+="</tr>\r"}a+="</table>";return a}Calendar.prototype.SetDateFromGrid=CalSetDateFromGrid;function CalSetDateFromGrid(a,c,b){a:;a.setTime(this.dateStart.getTime()+c*Calendar.msWeek+b*Calendar.msDay)}var L_NoTitle_Text="(Sans titre)";function CalEvent(a,b,c,d,h,l,e,m,j){a:;this.dateStart=a;this.dateEnd=b;this.actualDateStart=c;this.actualDateEnd=d;this.stLocation=h;this.stDesc=l;this.stTitle=e;if(e.length==0)this.stTitle=L_NoTitle_Text;this.stURL=m;this.rgIcons=j;var n,o,i=MsFloorTime(a,Calendar.msDay,0),k=MsFloorTime(b,Calendar.msDay,1);if(i<k&&d.getTime()-c.getTime()>=Calendar.msDay)this.multiDay=true;else this.multiDay=false;var f=MsFloorTime(a,Calendar.msHour/4,0),g=MsFloorTime(b,Calendar.msHour/4,1);if(f<g)this.multiQuarter=true}CalEvent.prototype.FOverlap=EvtFOverlap;function EvtFOverlap(a){a:;return a.dateStart<=this.dateEnd&&a.dateEnd>=this.dateStart}var L_Tip_Text="^1 : ^2";CalEvent.prototype.StTip=EvtStTip;function EvtStTip(c){a:;var a,b=StEvtTime(this,c,true);if(DateOptions.FHasTime(this.actualDateStart)||DateOptions.FHasTime(this.actualDateEnd))a=StBuildParam(L_Tip_Text,b,this.stTitle);else a=this.stTitle;if(!FBlankString(this.stLocation))a+="\r"+this.stLocation;if(!FBlankString(this.stDesc))a+="\r"+this.stDesc;return a}cGCMinimumWidth=400;cGCMinimumHeight=200;cGCMaxGCResizeCount=10;var glGCObjectHeight=0,glGCObjectWidth=0;glGCResizeCounter=0;function GCComputeSizing(e){a:;if(TestGCObject(e)){var g=document.documentElement.currentStyle.direction=="rtl",d=document.compatMode=="BackCompat"?document.documentElement.scrollWidth:document.documentElement.clientWidth,f=document.compatMode=="BackCompat"?document.documentElement.scrollHeight:document.documentElement.clientHeight,b=0,c=0;if(g){b=-180;c=120}else{b=32;c=-2}var a=e.parentElement;while(a!=document.body){b+=a.offsetLeft;c+=a.offsetTop;a=a.offsetParent;if(a==null)break;if(g)if(a.offsetLeft>0)break}b+=e.parentElement.offsetLeft;c+=e.parentElement.offsetTop;glGCObjectHeight=f-c;if(glGCObjectHeight>f)glGCObjectHeight=f;if(glGCObjectHeight<cGCMinimumHeight)glGCObjectHeight=cGCMinimumHeight;if(g)glGCObjectWidth=d+b;else glGCObjectWidth=d-b;if(glGCObjectWidth>d)glGCObjectWidth=d;if(glGCObjectWidth<cGCMinimumWidth)glGCObjectWidth=cGCMinimumWidth}}function GCResizeGridControl(a){a:;if(TestGCObject(a)){var c=glGCObjectHeight,b=glGCObjectWidth;GCComputeSizing(a);if(c!=glGCObjectHeight)a.height=glGCObjectHeight;if(b!=glGCObjectWidth)a.width=glGCObjectWidth}}function GCWindowResize(a){a:;if(TestGCObject(a)){glGCResizeCounter=0;GCResizeGridControl(a)}}function GCOnResizeGridControl(a){a:;if(TestGCObject(a))if(glGCResizeCounter<cGCMaxGCResizeCount){glGCResizeCounter++;GCResizeGridControl(a)}}function _GCActivateAndFocus(a){a:;if(TestGCObject(a)){a.SetActive;a.Focus}}function _GCNavigateToNonGridPage(){a:;var a=window.location.href;gridPart=a.match("ShowInGrid=");if(gridPart){gridSet=/ShowInGrid=\w*/;a=a.replace(gridSet,"")}var b=a.indexOf("?");if(b!=-1){var c=a.indexOf("?",b+1);if(c!=-1)a=a.slice(0,c);a=a+"&"}else a=a+"?";a=a+"ShowInGrid=False";document.location.replace(STSPageUrlValidation(a))}function GCAddNewColumn(a,b){a:;if(TestGCObject(a)){var h=window.location.href,e=a.Name,g=a.SelectedColumnUniqueName,i=a.RightToLeft,f=a.ViewGUID,c="FldNew.aspx",d=a.ServerTemplate;if(d=="102")c="QstNew.aspx";b=b+"/_layouts/"+c+"?List="+e+"&View="+f+"&Source="+h+"&RelativeToField="+g+"&LTR="+i;window.location=b}}function GCEditDeleteColumn(a,b){a:;if(TestGCObject(a)){var g=window.location.href,f=a.SelectedColumnUniqueName,e=a.Name,c="FldEdit.aspx",d=a.ServerTemplate;if(d=="102")c="QstEdit.aspx";b=b+"/_layouts/"+c+"?List="+e+"&Field="+f+"&Source="+g;window.location=b}}var objGCGlobal=null;function GCShowTaskPane(){a:;if(objGCGlobal!=null){objGCGlobal.DisplayTaskPane=true;objGCGlobal=null}}function GCShowHideTaskPane(a){a:;if(TestGCObject(a)){var b=a.DisplayTaskPane;a.DisplayTaskPane=!b;if(!b){objGCGlobal=a;window.setTimeout("GCShowTaskPane()",5)}}}function GCShowHideTotalsRow(a){a:;if(TestGCObject(a)){var b=a.DisplaySheetTotals;a.DisplaySheetTotals=!b}}function GCGridNewRow(a){a:;TestGCObject(a)&&a.SelectNewRow()}function GCRefresh(a){a:;TestGCObject(a)&&a.Refresh()}function GCNewFolder(a){a:;TestGCObject(a)&&a.NewFolder()}var L_Edit_Text="Modifier",L_ViewItem_Text="Afficher l'élément",L_EditItem_Text="Modifier l'élément",L_EditSeriesItem_Text="Modifier la série",L_DeleteItem_Text="Supprimer l'élément",L_DeleteDocItem_Text="Supprimer",L_ViewProperties_Text="Afficher les propriétés",L_EditProperties_Text="Modifier les propriétés",L_ViewResponse_Text="Afficher la réponse",L_EditResponse_Text="Modifier la réponse",L_DeleteResponse_Text="Supprimer la réponse",L_Subscribe_Text="M'avertir",L_CustomizeNewButton_Text="Modifier l'ordre des nouveaux boutons",L_Review_Text="Envoyer pour révision",L_EditIn_Text="Modifier dans ^1",L_EditInApplication_Text="Modifier le document",L_Checkin_Text="Archiver",L_Checkout_Text="Extraire",L_DiscardCheckou_Text="Annuler l'extraction",L_CreateDWS_Text="Créer un espace de travail de document",L_PublishBack_Text="Publier à l'emplacement source",L_Versions_Text="Historique des versions",L_WorkOffline_Text="Outlook",L_Reply_Text="Répondre",L_ExportContact_Text="Exporter le contact",L_ExportEvent_Text="Exporter l'événement",L_Reschedule_Text="Options de replanification",L_Move_Text="Déplacer",L_Keep_Text="Conserver",L_Delete_Text="Supprimer",L_Open_Text="Ouvrir",L_SiteSettings_Text="Modifier les paramètres du site",L_ManageUsers_Text="Gérer les utilisateurs",L_DeleteSite_Text="Supprimer le site",L_SiteStorage_Text="Gérer l'espace de stockage du site",L_MngPerms_Text="Gérer les autorisations",L_Settings_Text="Paramètres",L_Remove_Text="Supprimer de cette liste",L_ModerateItem_Text="Approuver/Rejeter",L_PublishItem_Text="Publier une version principale",L_CancelPublish_Text="Annuler l'approbation",L_UnPublishItem_Text="Retirer la publication de cette version",L_DownloadOriginal_Text="Télécharger l'image",L_EditVersion_Text="Modifier",L_EditInOIS_Text="Modifier l'image",L_Workflows_Text="Flux de travail",L_OpenMenu_Text="Menu Ouvrir",L_Send_Text="Envoyer vers",L_ExistingCopies_Text="Copies existantes",L_OtherLocation_Text="Autre emplacement",L_GoToSourceItem_Text="Atteindre l'élément source",L_NotifyThisIsCopy_Text="Cet élément a été copié à partir d'un autre emplacement et est susceptible d'en recevoir des mises à jour. Assurez-vous que la source arrête d'envoyer des mises à jour, sinon cet élément risque d'être recréé.\n\n",L_SendToEmail_Text="Envoyer un lien par messagerie",L_DownloadACopy_Text="Télécharger une copie",L_DocTran_Text="Convertir le document",L_AddToMyLinks_Text="Ajouter à mes liens",L_AddToCategory_Text="Envoyer à la zone de portail",L_VS_DownArrow_Text="Sélectionner un affichage",L_ModifyView="Modifier cet affichage",L_CreateView="Créer un affichage",L_SubmitFileCopyWarning_Text="Êtes-vous sûr de vouloir copier ce document vers ^1 ?",L_SubmitFileMoveWarning_Text="Êtes-vous sûr de vouloir déplacer ce document vers ^1 ?",L_SubmitFileLinkWarning_Text="Êtes-vous sûr de vouloir déplacer ce document vers ^1 ? Un lien vers le document de destination sera créé.",SubmitFileConfirmation=[];SubmitFileConfirmation["Copy"]=L_SubmitFileCopyWarning_Text;SubmitFileConfirmation["Move"]=L_SubmitFileMoveWarning_Text;SubmitFileConfirmation["Link"]=L_SubmitFileLinkWarning_Text;var L_ServerBusyError="Le serveur est occupé. Veuillez réessayer ultérieurement.",L_ItemGone="Cet élément n’est plus disponible. Il a peut-être été supprimé par un autre utilisateur. Cliquez sur OK pour actualiser la page.",L_ActivateSolution_Text="Activer",L_DeactivateSolution_Text="Désactiver",L_UpgradeSolution_Text="Mettre à niveau",L_Notification_Delete="Suppression...",L_Notification_CheckIn="Archivage...",L_Notification_CheckOut="Extraction...",L_Notification_DiscardCheckOut="Ignorer l’archivage...";function CUIInfo(a,c,b){a:;a.CUICommand=c;a.CUIEnabledCommands=b}function resetExecutionState(){a:;IsMenuShown=false;itemTable=null;imageCell=null;onKeyPress=false;currentCtx=null;currentEditMenu=null;currentItemID=null;downArrowText=null;resetItemGlobals()}function resetItemGlobals(){a:;currentItemAppName=null;currentItemProgId=null;currentItemIcon=null;currentItemOpenControl=null;currentItemModerationStatus=null;currentItemUIString=null;currentItemCheckedoutToLocal=null;currentItemCanModify=null;currentItemFileUrl=null;currentItemFSObjType=null;currentItemContentTypeId=null;currentItemCheckedOutUserId=null;currentItemCheckoutExpires=null;currentItemPermMaskH=null;currentItemPermMaskL=null;currentItemIsEventsExcp=null;currentItemIsEventsDeletedExcp=null}function IsMenuEnabled(){a:;return browseris.ie55up||browseris.nav6up||browseris.safari125up}function GetSelectedElement(a,c,b){a:;while(a!=null&&a.tagName!=c&&(b==null||a.tagName!=b))a=a.parentNode;return a}function setupMenuContext(a){a:;currentCtx=a}function setupMenuContextName(strCtx){a:;try{eval("var ctx="+strCtx+";")}catch(e){eval("var ctx=g_ctxDict['"+strCtx+"'];")}setupMenuContext(ctx)}function FindSTSMenuTable(a,c){a:;var b=a.getAttribute(c);while(a!=null&&(b==null||b=="")){a=GetSelectedElement(a.parentNode,"TABLE","DIV");if(a!=null)b=a.getAttribute(c)}return a}function OnLinkDeferCall(a){a:;if(!IsMenuEnabled())return false;a.onfocusout=OutItem;a.onkeydown=PopMenu;var b=FindSTSMenuTable(a,"CTXName");if(b==null)return false;OnItem(b);return false}function StartDeferItem(a){a:;if(a!=itemTable){itemTableDeferred=a;var c=a.tagName=="TABLE";if(c){a.onmouseout=EndDeferItem;a.onclick=DeferredOnItem;a.oncontextmenu=DeferredOnItem}else{var b=a.parentNode;b.onmouseout=EndDeferItem;b.oncontextmenu=DeferredOnItem}}}function IsAjaxMenu(d){a:;var a=d.getAttribute("eventtype");if(a!=null&&(a==5||a==3||a==4))return false;var c=d.className;if(c!=null&&c.length>0){var b=c.split(" ");if(b!=null&&b.length>1&&b[b.length-1]=="itx")return true}return false}function DeferredOnItem(b){a:;var a=itemTableDeferred;if(a!=null){MenuHtc_hide();OnItem(a);if(IsAjaxMenu(a))CreateAjaxMenu(b);else CreateMenu(b);return false}}function EndDeferItem(){a:;var a=itemTableDeferred;if(a!=null){itemTableDeferred=null;var c=a.tagName=="TABLE";if(c){a.onmouseout=null;a.onclick=null;a.oncontextmenu=null}else{var b=a.parentNode;b.onmouseout=null;b.onclick=null;b.oncontextmenu=null}}}function GetLastChildElement(b){a:;for(var a=b.childNodes.length-1;a>=0;a--)if(b.childNodes[a].nodeType==1)return b.childNodes[a];return null}function CreateCtxImg(c,h){a:;var a=FindCtxImg(c);if(a!=null&&a.shown==true)return a;if(a==null){a=document.createElement("DIV");a.className="s4-ctx";var b=[];b.push("<span> </span>");b.push("<a onfocus='");if(c.tagName=="TD")b.push("OnChildItem(this.parentNode.parentNode); return false;'");else if(c.tagName=="TH")b.push("OnChildColumn(this.parentNode.parentNode); return false;'");else b.push("return false;'");b.push("href='javascript:;' onclick='PopMenuFromChevron(event); return false;' title='");b.push(L_OpenMenu_Text+"'></a>");b.push("<span> </span>");a.innerHTML=b.join("");delete b;c.appendChild(a)}if(typeof a.shown=="undefined"){for(var g=a.getElementsByTagName("SPAN"),i=g.length,e=0;e<i;e++)if(browseris.ie&&browseris.iever==6)g[e].style.lineHeight="1px";var f=a.getElementsByTagName("A")[0];f.onfocusout=h;var d=document.createElement("img");d.style.visibility="hidden";d.src="/_layouts/images/ecbarw.png";d.alt=L_OpenMenu_Text;f.appendChild(d)}ShowCtxImg(a,true,c);return a}function FindCtxImg(f){a:;for(var d=null,c=f.childNodes,e=c.length,b=0;b<e;b++){var a=c[b];if(a.nodeType==1&&a.className.indexOf("s4-ctx")!=-1){d=a;break}}return d}function RemoveCtxImg(b){a:;var a=FindCtxImg(b);a!=null&&ShowCtxImg(a,false,b)}function ShowCtxImg(a,e,d){a:;var c=null,b=null;if(a!=null)c=a.getElementsByTagName("A")[0];if(c!=null)b=c.getElementsByTagName("IMG")[0];if(b!=null)if(e==true){a.className+=" s4-ctx-show";PositionCtxImg(a,d,b);b.style.visibility="visible";a.shown=true;ChevronContainer=d}else{b.style.visibility="hidden";a.className="s4-ctx";a.shown=false;ChevronContainer=null}}function GetPosition(b){a:;if(b==null)return null;var c=0,d=0,h=0,g=0,j=null,f=null;f=b.offsetParent;var e=b,a=b;while(a.parentNode!=null){a=a.parentNode;if(a.offsetParent!=null){var i=true;if(a.scrollTop&&a.scrollTop>0)d-=a.scrollTop;if(a.scrollLeft&&a.scrollLeft>0)c-=a.scrollLeft}if(a==f){c+=b.offsetLeft;if(a.clientLeft&&a.nodeName!="TABLE")c+=a.clientLeft;d+=b.offsetTop;if(a.clientTop&&a.nodeName!="TABLE")d+=a.clientTop;b=a;if(b.offsetParent==null){if(b.offsetLeft)c+=b.offsetLeft;if(b.offsetTop)d+=b.offsetTop}f=b.offsetParent}}if(e.offsetWidth)h=e.offsetWidth;if(e.offsetHeight)g=e.offsetHeight;return {left:c,top:d,width:h,height:g}}function PositionCtxImg(c,b,h){a:;var i=GetPosition(b),g=GetPosition(c.offsetParent),e=i.top-g.top,d=i.left-g.left;e=e+b.clientTop;var a=c.style;a.top=e+"px";if(!IsElementRtl(b))d=d+b.offsetWidth-c.offsetWidth;a.left=d+"px";var f=b.clientHeight;if(browseris.ie&&document.compatMode=="BackCompat"&h!=null)f-=h.offsetHeight;a.height=f+"px";a.lineHeight=c.style.height;a.margin="0px"}function IsInCtxImg(a){a:;while(a!=null&&a.tagName!="TD"&&a.tagName!="BODY"&&a.className.indexOf("s4-ctx")==-1)a=a.parentNode;if(a!=null&&a.className.indexOf("s4-ctx")!=-1)return a;return null}function OnItemDeferCall(g){a:;if(!IsMenuEnabled())return false;if(IsMenuOn()){StartDeferItem(g);return false}if(itemTable==g)return;itemTable!=null&&OutItem();itemTable=g;currentItemID=GetAttributeFromItemTable(itemTable,"ItemId","Id");var b=itemTable.tagName=="TABLE",j=new Function("setupMenuContextName('"+itemTable.getAttribute("CTXName")+"');");j();var i=currentCtx,h=IsAjaxMenu(itemTable);if(b){if(browseris.nav6up)itemTable.className="ms-selectedtitlealternative";else itemTable.className="ms-selectedtitle";if(h)itemTable.className=itemTable.className+" itx"}var a=itemTable.parentNode;while(a.tagName!="TD"&&a.tagName!="BODY")a=a.parentNode;var f=null;if(!b)f=CreateCtxImg(a,OutItem);if(browseris.ie5up&&!browseris.ie55up){itemTable.onclick=EditMenuDefaultForOnclick;itemTable.oncontextmenu=EditMenuDefaultForOnclick}else{var c=h?CreateAjaxMenu:CreateMenu;if(b){itemTable.onclick=c;itemTable.oncontextmenu=c}else{if(f!=null)f.onclick=c;a.oncontextmenu=c}}if(b)itemTable.onmouseout=OutItem;else a.onmouseout=OutItem;if(b){var e;e=GetFirstChildElement(GetFirstChildElement(itemTable));if(e!=null)imageCell=GetLastChildElement(e);if(i.listTemplate==200){if(itemTable.getAttribute("menuType")=="Orphaned")downArrowText=L_Reschedule_Text}else downArrowText=L_Edit_Text;var d=GetFirstChildElement(imageCell);d.src=i.imagesPath+"menudark.gif";d.alt=downArrowText;d.style.visibility="visible";imageCell.className="ms-menuimagecell"}return false}function OutItem(b){a:;if(!IsMenuOn()&&itemTable!=null){var d=itemTable.tagName=="TABLE";if(d){if(IsAjaxMenu(itemTable))itemTable.className="ms-unselectedtitle itx";else itemTable.className="ms-unselectedtitle";itemTable.onclick=null;itemTable.oncontextmenu=null;itemTable.onmouseout=null}else{var a=itemTable.parentNode,c=null;if(b==null)b=window.event;if(b!=null){c=b.toElement!=null?b.toElement:b.relatedTarget;if(a!=null&&c!=null&&IsContained(c,a))return true}if(a!=null){a.onclick=null;a.oncontextmenu=null;a.onmouseout=null;RemoveCtxImg(a)}}if(d&&imageCell!=null){GetFirstChildElement(imageCell).style.visibility="hidden";imageCell.className=""}resetExecutionState()}}function IsContained(a,d){a:;if(a==d)return true;for(var c=d.getElementsByTagName(a.tagName),b=0;b<c.length;b++)if(a==c[b])return true;return false}function IsMenuOn(){a:;if(!IsMenuShown)return false;var a=false;a=MenuHtc_isOpen(currentEditMenu);if(!a)IsMenuShown=false;return a}function PopMenuFromChevron(b){a:;if(b==null)b=window.event;var e=b.srcElement?b.srcElement:b.target,a=e.parentNode;while(a.tagName!="TD"&&a.tagName!="TH"&&a.tagName!="BODY")a=a.parentNode;if(a.tagName=="TD"){var d=a.getElementsByTagName("DIV")[0];d!=null&&OnItemDeferCall(d)}else if(a.tagName=="TH"){var c=a.getElementsByTagName("DIV")[0];c!=null&&OnMouseOverFilterDeferCall(c)}return false}function PopMenu(a){a:;if(!IsMenuEnabled())return true;if(a==null)a=window.event;var b;if(a==null)return true;if(browseris.nav6up)b=a.which;else b=a.keyCode;if(!IsMenuOn()&&(a.shiftKey&&b==13||a.altKey&&b==40)){onKeyPress=true;var d=a.srcElement?a.srcElement:a.target,c=FindSTSMenuTable(d,"CTXName");if(c==null)return false;OnItemDeferCall(c);if(IsAjaxMenu(c))CreateAjaxMenu(a);else CreateMenu(a);onKeyPress=false;return false}else return true}function CreateMenuEx(f,a,e){a:;if(a==null)return;IsMenuShown=true;document.body.onclick="";var c;c=BuildMenu(f);currentEditMenu=c;a.onmouseout=null;var b=a.tagName=="DIV"?a.parentNode:a,d=FindCtxImg(b);d!=null&&d.shown==false&&ShowCtxImg(d,true,b);OMenu(c,b,null,null,-1);if(itemTable!=null&&itemTable.tagName!="DIV")itemTable=GetSelectedElement(a,"TABLE","DIV");if(b.tagName=="TD")b.onclick=SingleItemSelect;c._onDestroy=OutItem;if(e!=null)e.cancelBubble=true;return false}function BuildMenuWithInit(a){a:;resetItemGlobals();setDocType();currentItemID=GetAttributeFromItemTable(itemTable,"ItemId","Id");currentItemCheckedOutUserId=itemTable.COUId;currentItemCheckedoutToLocal=GetAttributeFromItemTable(itemTable,"COut","IsCheckedoutToLocal ");currentItemModerationStatus=GetAttributeFromItemTable(itemTable,"MS","MStatus");return BuildMenu(a)}function BuildMenu(a){a:;var b=CMenu(currentItemID+"_menu");if(!b)return;else if(a.isVersions)AddVersionMenuItems(b,a);else if(a.listTemplate==121)AddSolutionsCatalogMenuItems(b,a);else if(a.listBaseType==1)AddDocLibMenuItems(b,a);else if(a.listTemplate==200)AddMeetingMenuItems(b,a);else AddListMenuItems(b,a);InsertFeatureMenuItems(b,a);return b}function CreateAjaxMenu(a){a:;if(!IsContextSet())return;if(a==null)a=window.event;var c=a.srcElement?a.srcElement:a.target;if(itemTable==null||itemTable.tagName=="TABLE"&&imageCell==null||onKeyPress==false&&!IsInCtxImg(c)&&(c.tagName=="A"||c.parentNode.tagName=="A"))return;var b=itemTable,d=b.parentNode;if(d!=null&&d.getAttribute("creatingAjax")==1)return;b.parentNode.setAttribute("creatingAjax","1");var e=currentCtx,f=function(c,a){a:;b.parentNode.replaceChild(a,b);a.onclick=b.onclick;a.onmousehover=OnItem;OnItemDeferCall(a);CreateMenuEx(c,a,null);a.parentNode.removeAttribute("creatingAjax")};FetchEcbInfo(e,itemTable.id,itemTable.tagName,f);a.cancelBubble=true;return false}var nidEcbMenu=null;function FetchEcbInfo(b,f,h,g){a:;var a=[],d=escapeUrlForCallback(b.HttpRoot);a.push(d);d[d.length-1]!="/"&&a.push("/");a.push("_layouts/inplview.aspx?Cmd=Ctx&List=");a.push(b.listName);b.HasRelatedCascadeLists==1&&b.CascadeDeleteWarningMessage==null&&a.push("&CascDelWarnMessage=1");if(b.view!=null){a.push("&View=");a.push(b.view)}a.push("&ViewCount=");a.push(b.ctxId);if(typeof b.isXslView!="undefined"&&b.isXslView){a.push("&IsXslView=TRUE");a.push("&Field=");if(itemTable!=null)a.push(GetAttributeFromItemTable(itemTable,"Field","Field"));else a.push("LinkFilename")}a.push("&ID=");a.push(f);var e=GetUrlKeyValue("RootFolder",true,document.URL);if(e.length>0){a.push("&RootFolder=");a.push(e)}a.push("&ListViewPageUrl=");var j=new CUrl(document.URL);d=j.path;a.push(d);if(typeof b.overrideScope!="undefined"){a.push("&OverrideScope=");a.push(escapeProperlyCore(b.overrideScope))}var i=a.join("");if(nidEcbMenu==null)nidEcbMenu=addNotification(L_Loading_Text,true);var c;if(window.XMLHttpRequest)c=new XMLHttpRequest;else c=new ActiveXObject("Microsoft.XMLHTTP");c.open("GET",i,true);c.onreadystatechange=function(){a:;if(c.readyState!=4)return;if(c.status==601){if(nidEcbMenu!=null){removeNotification(nidEcbMenu);nidEcbMenu=null}alert(c.responseText)}else if(c.status==503){if(nidEcbMenu!=null){removeNotification(nidEcbMenu);nidEcbMenu=null}alert(L_ServerBusyError)}else{var a=c.responseText,j=document.createElement("DIV");j.style.visibility="hidden";if(b.HasRelatedCascadeLists==1&&b.CascadeDeleteWarningMessage==null){var l="<CascadeDeleteWarningMessage>",m="</CascadeDeleteWarningMessage>";if(a.startsWith(l)){var k=a.indexOf(m);if(k!==-1){b.CascadeDeleteWarningMessage=a.substring(l.length,k);a=a.substring(k+m.length)}}}j.innerHTML=a;for(var i=j.getElementsByTagName(h),d,e=0;e<i.length;e++){d=i[e];if(d.id==f)break}if(e==i.length)d=null;if(d!=null){g(b,d);if(nidEcbMenu!=null){removeNotification(nidEcbMenu);nidEcbMenu=null}}else{if(nidEcbMenu!=null){removeNotification(nidEcbMenu);nidEcbMenu=null}alert(L_ItemGone);RefreshPage(1)}}};c.send(null)}function CreateMenu(a){a:;if(!IsContextSet())return;var c=currentCtx;if(a==null)a=window.event;var b=a.srcElement?a.srcElement:a.target;if(itemTable==null||itemTable.tagName=="TABLE"&&imageCell==null||onKeyPress==false&&!IsInCtxImg(b)&&(b.tagName=="A"||b.parentNode.tagName=="A"))return;return CreateMenuEx(c,itemTable,a)}function AddSendSubMenu(w,a){a:;strDisplayText=L_Send_Text;var v=GetAttributeFromItemTable(itemTable,"Url","ServerUrl"),d,j,e;if(currentItemFileUrl!=null){j=unescapeProperly(currentItemFileUrl);d=escapeProperly(j);e=SzExtension(j);if(e!=null&&e!="")e=e.toLowerCase()}var h=itemTable.getAttribute("SRed"),p=itemTable.getAttribute("DefaultIO");if(p=="0"&&!HasRights(0,32))p="1";var m=currentItemProgId!="SharePoint.WebPartPage.Document"&&(h==null||h==""||HasRights(0,32))&&e!="aspx",n=HasRights(16,0),l=currentItemFSObjType!=1&&a.listBaseType==1&&(h==null||h==""||HasRights(0,32));if(!m&&!n&&!l)return;var c=CASubM(w,strDisplayText,"","",400);CUIInfo(c,"SendTo",["SendTo","PopulateSendToMenu"]);c.IsSubMenu=true;c.id="ID_Send";var b;if(m){if(typeof a.SendToLocationName!="undefined"&&a.SendToLocationName!=null&&a.SendToLocationName!=""&&typeof a.SendToLocationUrl!="undefined"&&a.SendToLocationUrl!=null&&a.SendToLocationUrl!=""){strAction="STSNavigate('"+a.HttpRoot+"/_layouts/copy.aspx?SourceUrl="+d+"&FldUrl="+escapeProperly(a.SendToLocationUrl);strAction=AddSourceToUrl(strAction)+"')";b=CAMOpt(c,a.SendToLocationName,strAction,"");CUIInfo(b,"SendToRecommendedLocation",["SendToRecommendedLocation"])}if(typeof itemTable.getAttribute("HCD")!="undefined"&&itemTable.getAttribute("HCD")=="1"){strDisplayText=L_ExistingCopies_Text;strAction="STSNavigate('"+a.HttpRoot+"/_layouts/updatecopies.aspx?SourceUrl="+d;strAction=AddSourceToUrl(strAction)+"')";strImagePath=a.imagesPath+"existingLocations.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath);b.id="ID_ExistingCopies";CUIInfo(b,"SendToExistingCopies",["SendToExistingCopies"])}strDisplayText=L_OtherLocation_Text;strAction="NavigateToSendToOtherLocationV4(event, '"+a.HttpRoot+"/_layouts/copy.aspx?SourceUrl="+d;strAction=AddSourceToUrl(strAction)+"')";strImagePath=a.imagesPath+"sendOtherLoc.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath);b.id="ID_OtherLocation";CUIInfo(b,"SendToOtherLocation",["SendToOtherLocation"]);if(a.OfficialFileNames!=null&&a.OfficialFileNames!=""){var k=a.OfficialFileNames.split("__HOSTSEPARATOR__");if(k!=null)for(var i=0;i<k.length;i++){var u=k[i],f=u.split(",");strDisplayText=f[0];var t=0,s="Copy";if(f.length==3){strDisplayText=f[0].replace(/%2c/g,",").replace(/%25/g,"%");t=f[1];s=f[2]}strAction='if(confirm("'+StBuildParam(SubmitFileConfirmation[s],STSScriptEncode(strDisplayText))+"\")!=0) SubmitFormPost('"+a.HttpRoot+"/_layouts/SendToOfficialFile.aspx?ID="+escapeProperly(strDisplayText)+"&Index="+t+"&SourceUrl="+d;strAction=AddSourceToUrl(strAction)+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath);var o="SendToOfficialFile"+i;CUIInfo(b,o,[o])}}CAMSep(c)}if(n){strDisplayText=L_SendToEmail_Text;var v=GetAttributeFromItemTable(itemTable,"Url","ServerUrl"),g=a.HttpRoot.substr(0);if(g[g.length-1]!="/")g+="/";var q=-1,r="";q=g.substring(8).indexOf("/")+8;r=g.substr(0,q)+escapeProperlyCore(unescapeProperly(v),true);strAction="javascript:SendEmail('"+r+"')";strImagePath=a.imagesPath+"gmailnew.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath);CUIInfo(b,"EmailLink",["EmailLink"]);b.id="ID_SendToEmail"}if(l){a.listTemplate!=109&&a.listTemplate!=119&&AddWorkspaceMenuItem(c,a);if(a.listTemplate!=119){strAction="STSNavigate('"+a.HttpRoot+"/_layouts/download.aspx?SourceUrl="+d+"&FldUrl="+escapeProperly(a.SendToLocationUrl);strAction=AddSourceToUrl(strAction)+"')";b=CAMOpt(c,L_DownloadACopy_Text,strAction,"");CUIInfo(b,"DownloadCopy",["DownloadCopy"]);b.id="ID_DownloadACopy"}}}function AddDocTransformSubMenu(l,h){a:;if(typeof rgDocTransformers=="undefined"||rgDocTransformers==null)return;var b=null,c=GetAttributeFromItemTable(itemTable,"Url","ServerUrl"),d;if(currentItemFileUrl!=null)d=escapeProperly(unescapeProperly(currentItemFileUrl));var g=c.lastIndexOf(".");if(g>0)for(var j=c.substring(g+1,c.length).toLowerCase(),e=false,a=0;a<rgDocTransformers.length;a++)if(rgDocTransformers[a].ConvertFrom==j){var f=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId"),k=new RegExp("/|"+f+"|/");if(f&&!k.test(rgDocTransformers[a].ExcludedContentTypes)){if(!e){b=CASubM(l,L_DocTran_Text,h.imagesPath+"ConvertDocument.gif",L_DocTran_Text,500);b.IsSubMenu=true;b.Id="ID_ConvertDocument";e=true}strAction="STSNavigate('"+h.HttpRoot+"/_layouts/"+escapeProperlyCore(rgDocTransformers[a].TransformUIPage,true)+"?FileName="+d+"&TID="+rgDocTransformers[a].Id;strAction=AddSourceToUrl(strAction)+"')";var i;i=CAMOpt(b,rgDocTransformers[a].Name,strAction,"");i.Id="ID_Transform"+rgDocTransformers[a].Id}}}function AddMeetingMenuItems(d,b){a:;if(itemTable.getAttribute("menuType")=="Orphaned"){var a,c=GetAttributeFromItemTable(itemTable,"ItemId","Id");strDisplayText=L_Move_Text;strAction="GoToMtgMove('"+b.listUrlDir+"',"+c+",'"+itemTable.getAttribute("DateTime")+"','"+itemTable.getAttribute("DateTimeISO")+"')";strImagePath="";a=CAMOpt(d,strDisplayText,strAction,strImagePath);a.id="ID_Move";strDisplayText=L_Keep_Text;strAction="MtgKeep('"+b.HttpPath+"','"+b.listName+"',"+c+")";strImagePath="";a=CAMOpt(d,strDisplayText,strAction,strImagePath);a.id="ID_Keep";strDisplayText=L_Delete_Text;strAction="MtgDelete('"+b.HttpPath+"','"+b.listName+"',"+c+")";strImagePath=b.imagesPath+"delitem.gif";a=CAMOpt(d,strDisplayText,strAction,strImagePath);a.id="ID_Delete"}}function AddListMenuItems(c,a){a:;if(typeof Custom_AddListMenuItems!="undefined")if(Custom_AddListMenuItems(c,a))return;if(currentItemFileUrl==null)currentItemFileUrl=GetAttributeFromItemTable(itemTable,"Url","ServerUrl");var d;if(currentItemFileUrl!=null)d=escapeProperly(unescapeProperly(currentItemFileUrl));var g=currentItemID;if(currentItemIsEventsExcp==null){currentItemIsEventsExcp=false;currentItemIsEventsDeletedExcp=false;currentItemEvtType=itemTable.getAttribute("EventType");if(currentItemEvtType!=null&&(currentItemEvtType==2||currentItemEvtType==3||currentItemEvtType==4)){currentItemIsEventsExcp=true;if(currentItemEvtType==3)currentItemIsEventsDeletedExcp=true;if(currentItemID.indexOf(".")!=-1)g=currentItemID.split(".")[0]}}var b;if(a.listBaseType==3&&a.listTemplate==108){strDisplayText=L_Reply_Text;if(itemTable.getAttribute("Ordering").length>=504){var L_ReplyLimitMsg_Text="Impossible de répondre à cette thread. La limite de réponse est atteinte.";strAction="alert('"+L_ReplyLimitMsg_Text+"')"}else{strAction="STSNavigate('"+a.newFormUrl+"&Threading="+escapeProperly(itemTable.getAttribute("Ordering"))+"&Guid="+escapeProperly(itemTable.getAttribute("ThreadID"))+"&Subject="+escapeProperly(itemTable.getAttribute("Subject"));strAction=AddSourceToUrl(strAction)+"')"}strImagePath=a.imagesPath+"reply.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,100);b.id="ID_Reply"}AddSharedNamespaceMenuItems(c,a);var f=itemTable.getAttribute("CId");if(f!=null&&f.indexOf("0x0106")==0&&HasRights(16,0)){strDisplayText=L_ExportContact_Text;strAction="STSNavigate('"+a.HttpPath+"&Cmd=Display&CacheControl=1&List="+a.listName+"&ID="+currentItemID+"&Using="+escapeProperly(a.listUrlDir)+"/vcard.vcf')";strImagePath=a.imagesPath+"exptitem.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,350);CUIInfo(b,"ExportContact",["ExportContact"]);b.id="ID_ExportContact"}CAMSep(c);a.verEnabled==1&&AddVersionsMenuItem(c,a,d);if(a.isModerated==true&&HasRights(0,16)&&HasRights(0,4)&&HasRights(0,135168)&&a.listBaseType!=4&&currentItemID.indexOf(".0.")<0){strDisplayText=L_ModerateItem_Text;strAction="NavigateToApproveRejectAspx(event, '"+a.HttpRoot+"/_layouts/approve.aspx?List="+a.listName+"&ID="+g;strAction=AddSourceToUrl(strAction)+"')";strImagePath=a.imagesPath+"apprj.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,850);CUIInfo(b,"Moderate",["Moderate"]);b.id="ID_ModerateItem"}CAMSep(c);AddWorkflowsMenuItem(c,a);var e=typeof _spPageContextInfo!="undefined"&&_spPageContextInfo!=null&&_spPageContextInfo.alertsEnabled;if(currentItemID.indexOf(".0.")<0&&HasRights(128,0)&&!a.ExternalDataList&&e){strDisplayText=L_Subscribe_Text;strAction="NavigateToSubNewAspxV4(event, '"+a.HttpRoot+"', 'List="+a.listName+"&ID="+currentItemID+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1100);b.id="ID_Subscribe";CUIInfo(b,"Subscribe",["Subscribe"])}(e||a.WorkflowsAssociated&&HasRights(0,4))&&CAMSep(c);AddManagePermsMenuItem(c,a,a.listName,currentItemID);if(currentItemID.indexOf(".0.")<0&&HasRights(0,8)&&!currentItemIsEventsExcp){if(a.listBaseType==4)strDisplayText=L_DeleteResponse_Text;else strDisplayText=L_DeleteItem_Text;strAction="DeleteListItem()";strImagePath=a.imagesPath+"delitem.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1180);CUIInfo(b,"Delete",["Delete"]);b.id="ID_DeleteItem";CUIInfo(b,"Delete",["Delete"])}var h=currentItemProgId!=null&&currentItemProgId!="";if(currentItemFSObjType==1&&!h&&a.ContentTypesEnabled&&a.listTemplate!=108){strDisplayText=L_CustomizeNewButton_Text;strAction="STSNavigate('"+a.HttpRoot+"/_layouts/ChangeContentTypeOrder.aspx?List="+a.listName+"&RootFolder="+d;strAction=AddSourceToUrl(strAction)+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1170);CUIInfo(b,"ChangeNewButton",["ChangeNewButton"]);b.id="ID_CustomizeNewButton"}}function ReplaceUrlTokens(c,d){a:;if(c==null||c==undefined||c==""){c="";return c}if(currentItemID!=null)c=c.replace(/{ItemId}/g,currentItemID);var a=null,b=null,f=c.indexOf("?");if(-1!=f&&f+2<c.length){a=c.substr(f+1);b=c.substr(0,f+1)}else b=c;if(currentItemFileUrl!=null){if(null!=a){var e=escapeProperly(unescapeProperly(currentItemFileUrl));a=a.replace(/{ItemUrl}/g,e)}b=b.replace(/{ItemUrl}/g,currentItemFileUrl)}if(d.HttpRoot!=null){if(null!=a){var e=escapeProperly(unescapeProperly(d.HttpRoot));a=a.replace(/{SiteUrl}/g,e)}b=b.replace(/{SiteUrl}/g,d.HttpRoot)}if(d.listName!=null){if(null!=a){var e=escapeProperly(d.listName);a=a.replace(/{ListId}/g,e)}b=b.replace(/{ListId}/g,d.listName)}if(d.listUrlDir!=null){if(null!=a){var e=escapeProperly(unescapeProperly(d.listUrlDir));a=a.replace(/{ListUrlDir}/g,e)}b=b.replace(/{ListUrlDir}/g,d.listUrlDir)}var g=GetSource();b=b.replace(/{Source}/g,g);if(a!=null)if(b.length+a.length+g.length>1950)a=a.replace(/{Source}/g,"");else a=a.replace(/{Source}/g,g);if(null==a)return b;else return b+a}var SYSTEM_ACCOUNT_ID=1073741823;function InsertFeatureMenuItems(r,c){a:;CAMSep(r);var f=GetAttributeFromItemTable(itemTable,"Ext","FileType"),i=GetAttributeFromItemTable(itemTable,"Type","HTMLType"),e=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId"),j=null,g=null,o="ECBItems";if(c!=null){j=c.listTemplate;if(null!=c.listName&&0<c.listName.length){g=c.listName.toLowerCase();o=o+"_"+g}}if(f)f=f.toLowerCase();if(i)i=i.toLowerCase();if(e)e=e.toLowerCase();var x,k=document.getElementById(o);if(k!=null)for(var l=0;l<k.childNodes.length;l++){var a=k.childNodes[l],p=parseInt(GetInnerText(a.childNodes[3])),q=parseInt(GetInnerText(a.childNodes[4])),h=GetInnerText(a.childNodes[5]),b=GetInnerText(a.childNodes[6]),d=false;if(b){b=b.toLowerCase();if(h=="FileType")d=f==b.toLowerCase();else if(h=="ProgId")d=i==b.toLowerCase();else if(h=="ContentType")d=e&&e.indexOf(b.toLowerCase())==0;else if(h=="List")if(null!=j&&j==b)d=true;else if(null!=g&&g==b)d=true}if(d&&HasRights(p,q)&&!IsTrimmedBySystem(p,q)){var w=a.childNodes[0],s=a.childNodes[1],u=a.childNodes[2],y=parseInt(GetInnerText(a.childNodes[7])),t=GetInnerText(w),n=ReplaceUrlTokens(GetInnerText(u),c),m;if(n.substr(0,11)=="javascript:")m=n;else m="STSNavigate('"+STSScriptEncode(n)+"')";var v=ReplaceUrlTokens(GetInnerText(s),c);x=CIMOpt(r,t,m,v,null,y)}}}function GetRootFolder2(c){a:;var b=GetUrlKeyValue("RootFolder",false);if(c.clvp!=null&&c.clvp.rootFolder!=null)b=c.clvp.rootFolder;if(b==""||bValidSearchTerm){var a;if(itemTable)a=GetAttributeFromItemTable(itemTable,"DRef","FileDirRef");if(a!=null&&a!="")if(a.substring(0,1)=="/")b=a;else b="/"+a;else b=c.listUrlDir}return b}function GetRootFolder(b){a:;var a=GetRootFolder2(b);return "&RootFolder="+escapeProperly(a)}function HasRights(a,b){a:;if(currentItemPermMaskH==null){if(itemTable==null)return true;var c=GetAttributeFromItemTable(itemTable,"Perm","PermMask");if(c==null)return true;var d=itemTable.getAttribute("Author");SetCurrentPermMaskFromString(c,d)}if(!currentItemCanModify&&(EqualRights(a,b,0,4)||EqualRights(a,b,0,8)||EqualRights(a,b,1073741824,0)))return false;return (b&currentItemPermMaskL)==b&&(a&currentItemPermMaskH)==a}function EqualRights(a,c,b,d){a:;return a==b&&c==d}function CheckIfHasRights(a,b,c,d){a:;return (b&d)==b&&(a&c)==a}function IsTrimmedBySystem(b,c){a:;var a=false;if(CheckIfHasRights(0,4,b,c)&&itemTable!=null){if(currentItemCheckedOutUserId==null)currentItemCheckedOutUserId=itemTable.getAttribute("COUId");a=currentItemCheckedOutUserId==SYSTEM_ACCOUNT_ID&&ctx.CurrentUserId!=SYSTEM_ACCOUNT_ID}return a}function SetCurrentPermMaskFromString(b,c){a:;var a=b.length;if(a<=10){currentItemPermMaskH=0;currentItemPermMaskL=parseInt(b)}else{currentItemPermMaskH=parseInt(b.substring(2,a-8),16);currentItemPermMaskL=parseInt(b.substring(a-8,a),16)}currentItemCanModify=c==null||HasRights(0,2048)||ctx.CurrentUserId==c||ctx.CurrentUserId==null||ctx.WriteSecurity==1}function AddSharedNamespaceMenuItems(f,a){a:;var g=GetRootFolder(a);setupMenuContext(a);if(currentItemFileUrl==null)currentItemFileUrl=GetAttributeFromItemTable(itemTable,"Url","ServerUrl");if(currentItemFSObjType==null)currentItemFSObjType=GetAttributeFromItemTable(itemTable,"OType","FSObjType");if(currentItemContentTypeId==null)currentItemContentTypeId=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId");if(currentItemModerationStatus==null)currentItemModerationStatus=GetAttributeFromItemTable(itemTable,"MS","MStatus");if(currentItemCheckedOutUserId==null)currentItemCheckedOutUserId=itemTable.getAttribute("COUId");if(currentItemCheckedoutToLocal==null)currentItemCheckedoutToLocal=GetAttributeFromItemTable(itemTable,"COut","IsCheckedoutToLocal ");if(currentItemCheckedoutToLocal!=1)currentItemCheckedoutToLocal=0;var i=currentItemCheckedOutUserId==SYSTEM_ACCOUNT_ID&&a.CurrentUserId!=SYSTEM_ACCOUNT_ID;bIsCheckout=0;if(a.isForceCheckout==true&&currentItemCheckedOutUserId==""&&currentItemFSObjType!=1)bIsCheckout=1;var h;if(currentItemFileUrl!=null)h=escapeProperly(unescapeProperly(currentItemFileUrl));var b;if(a.listBaseType==1)strDisplayText=L_ViewProperties_Text;else if(a.listBaseType==4)strDisplayText=L_ViewResponse_Text;else strDisplayText=L_ViewItem_Text;var d="";if(currentItemContentTypeId!=null&&currentItemContentTypeId!="")d="&ContentTypeID="+currentItemContentTypeId;var c="&";if(a.displayFormUrl.indexOf("?")==-1)c="?";var e=a.displayFormUrl+c+"ID="+currentItemID+d;e=AddSourceToUrl(e)+g;if(301==a.listTemplate)strAction="EditItem('"+e+"')";else strAction="EditItem2(event, '"+e+"')";strImagePath="";b=CAMOpt(f,strDisplayText,strAction,strImagePath,null,200);CUIInfo(b,"ViewProperties",["ViewProperties"]);if(a.listBaseType==1)b.id="ID_ViewProperties";else b.id="ID_ViewItem";if(HasRights(0,4)&&!i&&!currentItemIsEventsDeletedExcp){if(a.listBaseType==1)strDisplayText=L_EditProperties_Text;else if(a.listBaseType==4)strDisplayText=L_EditResponse_Text;else strDisplayText=L_EditItem_Text;c="&";if(a.editFormUrl.indexOf("?")==-1)c="?";if(a.listBaseType==1){strAction="EditItemWithCheckoutAlert(event, '"+a.editFormUrl+c+"ID="+currentItemID+d;strAction=AddSourceToUrl(strAction)+g+"',"+bIsCheckout+",'"+currentItemCheckedoutToLocal+"','"+STSScriptEncode(currentItemFileUrl)+"','"+a.HttpRoot+"')"}else if(FV4UI())strAction="EditItem2(event, '"+a.editFormUrl+c+"ID="+currentItemID+d+"')";else{strAction="EditItem('"+a.editFormUrl+c+"ID="+currentItemID+d;strAction=AddSourceToUrl(strAction)+"')"}strImagePath=a.imagesPath+"edititem.gif";b=CAMOpt(f,strDisplayText,strAction,strImagePath,null,220);if(a.listBaseType==1){b.id="ID_EditProperties";CUIInfo(b,"EditProperties",["EditProperties"])}else{b.id="ID_EditItem";CUIInfo(b,"EditProperties",["EditProperties"])}if(a.listTemplate==106&&currentItemID.indexOf(".0.")>0){var k=currentItemID.indexOf(".0."),j=currentItemID.substr(0,k);strDisplayText=L_EditSeriesItem_Text;strAction="EditItem2(event, '"+a.editFormUrl+c+"ID="+j+d;strAction=AddSourceToUrl(strAction)+"')";strImagePath=a.imagesPath+"recurrence.gif";b=CAMOpt(f,strDisplayText,strAction,strImagePath,null,230);CUIInfo(b,"EditSeriesItem",["EditSeriesItem"]);b.id="ID_EditSeriesItem"}}}function AddSolutionsCatalogMenuItems(a,h){a:;if(HasRights(0,4))if(currentItemFSObjType!=1){var b=true,c=GetAttributeFromItemTable(itemTable,"Url",null);if(c.length>4){var i=c.substr(c.length-4).toLowerCase();if(i==".wsp"){var d=GetAttributeFromItemTable(itemTable,"SolutionHash",null),g=GetAttributeFromItemTable(itemTable,"Hash",null),f=GetAttributeFromItemTable(itemTable,"SolutionItemID",null),e=GetAttributeFromItemTable(itemTable,"Status",null),j=GetAttributeFromItemTable(itemTable,"id",null);if(d!="")if(e=="")AddSolutionMenuActivate(a);else if(d==g){if(j==f)if(e=="1"){b=false;AddSolutionMenuDeactivate(a)}else AddSolutionMenuActivate(a)}else AddSolutionMenuUpgrade(a);else b=false}}b&&AddSolutionMenuDelete(a,h)}}function AddSolutionMenuHelper(i,d,f,e,g,b,c){a:;var a,h="if(event){event.currentItemID="+currentItemID+';}RunSolutionOperation(event, "'+f+'")';a=CAMOpt(i,d,h,e,null,g);CUIInfo(a,b,[b]);a.id=c}function AddSolutionMenuActivate(a){a:;window.SPUserCanManageSolutions==true&&AddSolutionMenuHelper(a,L_ActivateSolution_Text,"ACT","",1210,"ActivateSolution","ID_ActivateSolution")}function AddSolutionMenuDeactivate(a){a:;window.SPUserCanManageSolutions==true&&AddSolutionMenuHelper(a,L_DeactivateSolution_Text,"DEA","",1220,"DeactivateSolution","ID_DeactivateSolution")}function AddSolutionMenuUpgrade(a){a:;window.SPUserCanManageSolutions==true&&AddSolutionMenuHelper(a,L_UpgradeSolution_Text,"UPG","",1230,"UpgradeSolution","ID_UpgradeSolution")}function AddSolutionMenuDelete(e,b){a:;var a,c;currentItemFileUrl=GetAttributeFromItemTable(itemTable,"Url","ServerUrl");if(currentItemFileUrl!=null)c=escapeProperly(unescapeProperly(currentItemFileUrl));strDisplayText=L_DeleteDocItem_Text;var d="false";if(typeof itemTable.getAttribute("CSrc")!="undefined"&&itemTable.getAttribute("CSrc")!=null&&itemTable.getAttribute("CSrc")!="")d="true";strAction="DeleteDocLibItem('"+b.HttpPath+"&Cmd=Delete&List="+b.listName+"&ID="+currentItemID+"&owsfileref="+c+"&NextUsing="+GetSource()+"',"+d+")";strImagePath=b.imagesPath+"delitem.gif";a=CAMOpt(e,strDisplayText,strAction,strImagePath,null,310);a.id="ID_DeleteDocItem";CUIInfo(a,"Delete",["Delete"])}function RunSolutionOperation(b,g){a:;if(!b&&!IsContextSet())return;var d=currentCtx?currentCtx:b.currentCtx,e=currentItemID?currentItemID:b.currentItemID,f=d.listUrlDir,i=GetSource(),a=f+"/Forms/Activate.aspx?Op="+g+"&ID="+e+"&Source="+i;if(d.listBaseType==1)a=a+GetRootFolder(d);var h=function(){a:;var a=window.location.href,b=a.indexOf("#");if(b==-1)window.location.href=a;else window.location.href=a.substring(0,b)},j=function(){a:;var b={url:a,args:null,width:650,height:450,dialogReturnValueCallback:h},c=SP.UI.ModalDialog.showModalDialog(b)},c;try{c=typeof SP.UI.ModalDialog.showModalDialog}catch(k){c="undefined"}EnsureScript("SP.UI.Dialog.js",c,j)}function AddDocLibMenuItems(c,a){a:;if(typeof Custom_AddDocLibMenuItems!="undefined")if(Custom_AddDocLibMenuItems(c,a))return;var i=GetRootFolder(a),b;AddSharedNamespaceMenuItems(c,a);CAMSep(c);var d;if(currentItemFileUrl!=null)d=escapeProperly(unescapeProperly(currentItemFileUrl));var e=itemTable.getAttribute("SRed"),f=currentItemCheckedOutUserId==SYSTEM_ACCOUNT_ID&&a.CurrentUserId!=SYSTEM_ACCOUNT_ID;if(HasRights(0,4)&&HasRights(16,0)&&!f&&(e==null||e==""||HasRights(0,32)))if(a.isWebEditorPreview==0&&a.listBaseType==1)if(a.listTemplate==109&&itemTable.getAttribute("IsImage")=="1"){if(currentItemFSObjType!=1){strDisplayText=L_EditInOIS_Text;strAction="EditSingleImage('"+currentItemID+"')";strImagePath=a.imagesPath+"oisweb.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,260);b.id="ID_EditInOIS";CUIInfo(b,"EditDocument",["EditDocument"])}}else if(a.listTemplate!=119){setDocType();if(currentItemAppName!=""&&currentItemOpenControl!=""){strDisplayText="";if(currentItemAppName!=" ")strDisplayText=StBuildParam(L_EditIn_Text,currentItemAppName);else{var h=StsOpenEnsureEx2(currentItemOpenControl+".3");if(h!=null)strDisplayText=L_EditInApplication_Text}if(strDisplayText!=""){strAction="editDocumentWithProgID2('"+currentItemFileUrl+"', '"+currentItemProgId+"', '"+currentItemOpenControl+"', '"+bIsCheckout+"', '"+a.HttpRoot+"', '"+currentItemCheckedoutToLocal+"')";strImagePath=a.imagesPath+currentItemIcon;b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,260);b.id="ID_EditIn_"+currentItemAppName;CUIInfo(b,"EditDocument",["EditDocument"])}}}CAMSep(c);if(HasRights(0,4))if(currentItemFSObjType!=1)a.listBaseType==1&&AddCheckinCheckoutMenuItem(c,a,d);(a.verEnabled==1||a.isModerated)&&currentItemFSObjType!=1&&AddVersionsMenuItem(c,a,d);if(HasRights(0,4))if(a.isModerated==true&&HasRights(0,16)&&((currentItemModerationStatus==2||!a.EnableMinorVersions)&&currentItemCheckedOutUserId==""||currentItemFSObjType==1)){strDisplayText=L_ModerateItem_Text;strAction="NavigateToApproveRejectAspx(event, '"+a.HttpRoot+"/_layouts/approve.aspx?List="+a.listName+"&ID="+currentItemID;strAction=AddSourceToUrl(strAction)+GetRootFolder(a)+"')";strImagePath=a.imagesPath+"apprj.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,850);CUIInfo(b,"Moderate",["Moderate"]);b.id="ID_ModerateItem"}CAMSep(c);AddWorkflowsMenuItem(c,a);if(currentItemFSObjType!=1){if(a.PortalUrl!=null){strDisplayText=L_AddToMyLinks_Text;strAction="Portal_Tasks('PinToMyPage')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1e3);CUIInfo(b,"AddToMyLinks",["AddToMyLinks"]);b.id="ID_AddToMyLinks"}}else a.listBaseType==1&&HasRights(16,0)&&AddWorkOfflineMenuItem(c,a,currentItemFileUrl);if(HasRights(128,0)&&typeof _spPageContextInfo!="undefined"&&_spPageContextInfo!=null&&_spPageContextInfo.alertsEnabled){strDisplayText=L_Subscribe_Text;strAction="NavigateToSubNewAspxV4(event, '"+a.HttpRoot+"', 'List="+a.listName+"&ID="+currentItemID+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1100);CUIInfo(b,"Subscribe",["Subscribe"]);b.id="ID_Subscribe"}if(currentItemFSObjType!=1){AddSendSubMenu(c,a);AddGotoSourceItemMenuItem(c,a,itemTable,currentItemFSObjType);AddDocTransformSubMenu(c,a)}if(currentItemFSObjType!=1&&a.listTemplate==109&&typeof DownloadOriginalImage=="function"){strAction="DownloadOriginalImage("+currentItemID+")";strImagePath=a.imagesPath+"download.gif";strDisplayText=L_DownloadOriginal_Text;b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,550);CUIInfo(b,"DownloadOriginalImage",["DownloadOriginalImage"]);b.id="ID_DownloadOriginal"}CAMSep(c);AddManagePermsMenuItem(c,a,a.listName,currentItemID);if(HasRights(0,8)&&!f){strDisplayText=L_DeleteDocItem_Text;var g="false";if(typeof itemTable.getAttribute("CSrc")!="undefined"&&itemTable.getAttribute("CSrc")!=null&&itemTable.getAttribute("CSrc")!="")g="true";strAction="DeleteDocLibItem('"+a.HttpPath+"&Cmd=Delete&List="+a.listName+"&ID="+currentItemID+"&owsfileref="+d+"&NextUsing="+GetSource()+"',"+g+")";strImagePath=a.imagesPath+"delitem.gif";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1190);b.id="ID_DeleteDocItem";CUIInfo(b,"Delete",["Delete"])}if(currentItemFSObjType==1&&a.ContentTypesEnabled&&a.listTemplate!=108){strDisplayText=L_CustomizeNewButton_Text;strAction="STSNavigate('"+a.HttpRoot+"/_layouts/ChangeContentTypeOrder.aspx?List="+a.listName+"&RootFolder="+d;strAction=AddSourceToUrl(strAction)+"')";strImagePath="";b=CAMOpt(c,strDisplayText,strAction,strImagePath,null,1170);CUIInfo(b,"ChangeNewButton",["ChangeNewButton"]);b.id="ID_CustomizeNewButton"}}function AddManagePermsMenuItem(e,a,c,d){a:;if(!HasRights(1073741824,0)||currentItemIsEventsExcp||a.ExternalDataList||currentItemEvtType==5)return;strDisplayText=L_MngPerms_Text;strAction="NavigateToManagePermsPage('"+a.HttpRoot+"', '"+c+"','"+d+"')";strImagePath=a.imagesPath+"permissions16.png";var b=CAMOpt(e,strDisplayText,strAction,strImagePath,null,1160);b.id="ID_MngPerms";CUIInfo(b,"ManagePermissions",["ManagePermissions"])}function AddGotoSourceItemMenuItem(e,d,a,c){a:;if(c!=1&&typeof a.getAttribute("CSrc")!="undefined"&&a.getAttribute("CSrc")!=null&&a.getAttribute("CSrc")!=""){strDisplayText=L_GoToSourceItem_Text;strAction="NavigateToSourceItem(event, '"+STSScriptEncode(a.getAttribute("CSrc"))+"')";strImagePath=d.imagesPath+"goToOriginal.gif";var b=CAMOpt(e,strDisplayText,strAction,strImagePath,null,440);b.id="ID_GoToSourceItem";CUIInfo(b,"GotoSourceItem",["GotoSourceItem"])}}function CheckoutSingleItemFromECB(b,c){a:;var a;try{a=typeof inplview.CheckOutSingleItem}catch(g){a="undefined"}if(a!="undefined")inplview.CheckOutSingleItem(b,c);else{var f="inplview.CheckOutSingleItem",d=f.split(".");if(d.length>1){var e=function(){a:;inplview.CheckOutSingleItem(b,c)};EnsureScript(d[0],a,e)}}}function AddCheckinCheckoutMenuItem(d,a,c){a:;var b;if(!HasRights(0,4))return;if(currentItemCheckedOutUserId==SYSTEM_ACCOUNT_ID&&a.CurrentUserId!=SYSTEM_ACCOUNT_ID)return;if(currentItemCheckedOutUserId==null)currentItemCheckedOutUserId=itemTable.getAttribute("COUId");if(currentItemCheckedOutUserId!=""){if(currentItemCheckedOutUserId==a.CurrentUserId||a.CurrentUserId==null||HasRights(0,256)){strDisplayText=L_Checkin_Text;if(!FV4UI()||a.listTemplate==109)strAction="NavigateToCheckinAspx('"+a.HttpRoot+"', 'List="+a.listName+"&FileName="+c+"')";else strAction="CheckInSingleItemFromECB_Stub(event, currentCtx, itemTable)";strImagePath=a.imagesPath+"checkin.gif";b=CAMOpt(d,strDisplayText,strAction,strImagePath,null,300);b.id="ID_Checkin";CUIInfo(b,"CheckIn",["CheckIn"]);strDisplayText=L_DiscardCheckou_Text;strAction="UnDoCheckOutwithNotification('"+a.HttpRoot+"', '"+c+"')";strImagePath=a.imagesPath+"unchkout.gif";b=CAMOpt(d,strDisplayText,strAction,strImagePath,null,310);b.id="ID_DiscardCheckou";CUIInfo(b,"DiscardCheckOut",["DiscardCheckOut"])}}else if(typeof g_disableCheckoutInEditMode=="undefined"||!g_disableCheckoutInEditMode){strDisplayText=L_Checkout_Text;currentItemOpenControl==""&&setDocType();var h="";if(a.listTemplate!=109)h=currentItemOpenControl+".3";var g=itemTable.getAttribute("SRed");if(g==null||g==""||HasRights(0,32)){if(!FV4UI()||a.listTemplate==109)strAction="CheckoutDocument('"+a.HttpRoot+"', '"+c+"', '"+h+"')";else strAction="CheckoutSingleItemFromECB(currentCtx, itemTable)";strImagePath=a.imagesPath+"checkout.gif";b=CAMOpt(d,strDisplayText,strAction,strImagePath,null,300);b.id="ID_Checkout";CUIInfo(b,"CheckOut",["CheckOut"])}if(currentItemModerationStatus==null)currentItemModerationStatus=GetAttributeFromItemTable(itemTable,"MS","MStatus");if(a.EnableMinorVersions){if(currentItemUIString==null)currentItemUIString=GetAttributeFromItemTable(itemTable,"UIS","UIString");var i=currentItemUIString%512;if((currentItemModerationStatus==1||currentItemModerationStatus==3)&&a.isModerated||!a.isModerated&&i!=0){strDisplayText=L_PublishItem_Text;strAction="PublishMajorVersion(event, '"+a.HttpRoot+"', 'List="+a.listName+"&FileName="+c+"&Publish=true')";strImagePath=a.imagesPath+"pubmajor.gif";b=CAMOpt(d,strDisplayText,strAction,strImagePath,null,320);CUIInfo(b,"Publish",["Publish"]);b.id="ID_PublishItem"}else{var f,e=false;if(!a.isModerated||currentItemModerationStatus==0){strDisplayText=L_UnPublishItem_Text;f="ID_UnPublishItem";strImagePath=a.imagesPath+"unpub.gif"}else{strDisplayText=L_CancelPublish_Text;f="ID_CancelPublish";strImagePath=a.imagesPath+"unapprv.gif";e=true}strAction="UnPublish('"+a.HttpRoot+"', 'FileName="+c+"&UnPublish=true',"+e+")";b=CAMOpt(d,strDisplayText,strAction,strImagePath,null,330);if(e)CUIInfo(b,"CancelApproval",["CancelApproval"]);else CUIInfo(b,"Unpublish",["Unpublish"]);b.id=f}}}}function AddWorkflowsMenuItem(h,a){a:;if(a.WorkflowsAssociated&&HasRights(0,4)){var f=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId");if(f==null||f.substr(0,8)!="0x010801"){var g=a.imagesPath+"workflows.gif",c,d=(""+currentItemID).indexOf(".0.");if(d>0)c=currentItemID.substr(0,d);else c=currentItemID;var b="STSNavigate('"+a.HttpRoot+"/_layouts/Workflow.aspx?ID="+c+"&List="+a.listName;b=AddSourceToUrl(b)+"')";var e=CAMOpt(h,L_Workflows_Text,b,g,null,900);CUIInfo(e,"ViewWorkflows",["ViewWorkflows"]);e.id="ID_Workflows"}}}function AddWorkspaceMenuItem(d,b){a:;var a,c=GetAttributeFromItemTable(itemTable,"SUrl","SourceUrl");if(c!=null&&c!=""&&c!="%20"){if(HasRights(0,135168)){strAction="STSNavigate('"+b.HttpRoot+"/_layouts/publishback.aspx?list="+b.listName+"&item="+currentItemID+GetRootFolder(b)+"')";a=CAMOpt(d,L_PublishBack_Text,strAction,"",null,1140);CUIInfo(a,"PublishBack",["PublishBack"]);a.id="ID_PublishBack"}}else if(HasRights(0,8388608)&&HasRights(0,135168)&&HasRights(0,67108864)){strAction="STSNavigate('"+b.HttpRoot+"/_layouts/createws.aspx?list="+b.listName+"&item="+currentItemID+GetRootFolder(b)+"')";a=CAMOpt(d,L_CreateDWS_Text,strAction,"",null,1140);CUIInfo(a,"CreateDocumentWorkspace",["CreateDocumentWorkspace"]);a.id="ID_CreateDWS"}}function AddVersionsMenuItem(f,a,e){a:;if(currentItemID!=null){var d=currentItemID.toString();if(d.indexOf(".0.")>=0)return}var b=currentItemID;if(currentItemIsEventsExcp)if(currentItemID.indexOf(".")!=-1)b=currentItemID.split(".")[0];if(!HasRights(0,64))return;strDisplayText=L_Versions_Text;strAction="NavigateToVersionsAspxV4(event, '"+a.HttpRoot+"', 'list="+a.listName+"&ID="+b+"&FileName="+e+"')";strImagePath=a.imagesPath+"versions.gif";var c=CAMOpt(f,strDisplayText,strAction,strImagePath,null,800);CUIInfo(c,"ViewVersions",["ViewVersions"]);c.id="ID_Versions"}function AddWorkOfflineMenuItem(e,a,d){a:;var b=GetStssyncData("documents",L_WorkOffline_Text,a.imagesPath+"tbsprsht.gif",a.imagesPath);if(b){strDisplayText=b.BtnText;strImagePath=b.BtnImagePath;if(strDisplayText){var c="";if(a.SiteTitle!=null)c=STSScriptEncode(a.SiteTitle);strAction="javascript:ExportHailStorm('documents','"+a.HttpRoot+"','"+STSScriptEncode(a.listName)+"','"+STSScriptEncode(c)+"','"+STSScriptEncode(a.ListTitle)+"','"+STSScriptEncode(a.listUrlDir)+"','','"+STSScriptEncode(unescapeProperly(a.listUrlDir))+"'";strAction+=",'"+STSScriptEncode(unescapeProperly(d))+"','"+currentItemID+"')";menuOption=CAMOpt(e,strDisplayText,strAction,strImagePath);CUIInfo(menuOption,"ConnectFolderToClient",["ConnectFolderToClient"]);menuOption.id="ID_WorkOffline"}}}function AddVersionMenuItems(b,a){a:;typeof AddVersionMenuItemsCore=="function"&&AddVersionMenuItemsCore(b,a)}function NavigateToApproveRejectAspx(b,a){a:;if(FV4UI())ShowInPopUI(b,currentCtx,a);else STSNavigate(a)}function PublishMajorVersion(d,b,c){a:;var a=b+"/_layouts/Checkin.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else SubmitFormPost(a)}function _NavigateToSubNewAspx(b,c){a:;var a=b+"/_layouts/SubNew.aspx?"+c;a=AddSourceToUrl(a);STSNavigate(a)}function NavigateToSubNewAspxV4(d,b,c){a:;var a=b+"/_layouts/SubNew.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else STSNavigate(a)}function NavigateToVersionsAspx(b,c){a:;var a=b+"/_layouts/Versions.aspx?"+c;a=AddSourceToUrl(a);STSNavigate(a)}function NavigateToVersionsAspxV4(d,b,c){a:;var a=b+"/_layouts/Versions.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else STSNavigate(a)}function NavigateToSendToOtherLocationV4(b,a){a:;if(FV4UI())ShowInPopUI(b,currentCtx,a);else STSNavigate(a)}var L_UndoCheckoutWarning_Text="Si vous annulez l'extraction, vous perdez toutes les modifications apportées au document. Êtes-vous sûr de vouloir annuler l'extraction ?",L_UnPublishWarning_Text=" Êtes-vous sûr de vouloir annuler la publication de cette version du document ?",L_CancleApproval_TEXT=" Êtes-vous sûr de vouloir annuler l'approbation de ce document ?";function UnDoCheckOutwithNotification(a,c){a:;var b=UnDoCheckOut(a,c);if(b){var d=L_Notification_DiscardCheckOut;addNotification(d,true)}}function UnDoCheckOut(f,c){a:;try{var b=null,e=SzExtension(unescapeProperly(c));if(FSupportCheckoutToLocal(e))b=StsOpenEnsureEx2("SharePoint.OpenDocuments.3");if(b!=null){var a=unescapeProperly(c);if(a.charAt(0)=="/")a=document.location.protocol+"//"+document.location.host+a;var d=b.DiscardLocalCheckout(a);if(d){SetWindowRefreshOnFocus();return d}if(IsSupportedMacBrowser()||IsSupportedFirefoxOnWin()){if(!confirm(L_UndoCheckoutWarning_Text))return false}else return d}else if(!confirm(L_UndoCheckoutWarning_Text))return false}catch(g){}NavigateToCheckinAspx(f,"FileName="+c+"&DiscardCheckout=true");return true}function UnPublish(c,d,b){a:;var a=L_UnPublishWarning_Text;if(b)a=L_CancleApproval_TEXT;if(!confirm(a))return;NavigateToCheckinAspx(c,d)}function NavigateToCheckinAspx(b,c){a:;var a=b+"/_layouts/Checkin.aspx?"+c;a=AddSourceToUrl(a);SubmitFormPost(a)}function CheckInSingleItemFromECB_Stub(c,b,d){a:;var a;try{a=typeof inplview.CheckInSingleItemFromECB}catch(h){a="undefined"}if(a!="undefined")inplview.CheckInSingleItemFromECB(c,b,d);else{var g="inplview.CheckInSingleItemFromECB",e=g.split(".");if(e.length>1){var f=function(){a:;inplview.CheckInSingleItemFromECB(c,b,d)};EnsureScript(e[0],a,f)}}}function _NavigateToManagePermsPage(a,c,b){a:;NavigateToManagePermsPageEx(a,c,b,false)}function NavigateToManagePermsPageEx(c,b,d,f){a:;var e=",LISTITEM",a=c+"/_layouts/User.aspx?obj="+b+","+d+e+"&List="+b;a=AddSourceToUrl(a);if(f)window.frameElement.navigateParent(a);else STSNavigate(a)}function NavigateToSourceItem(e,a){a:;var d=a.match(/[^\/]*\/\/[^\/]*/g),c=d[0];a=escapeProperly(a);var b=c+"/_layouts/copyutil.aspx?GoToDispForm=1&Use=url&ItemUrl="+a;b=AddSourceToUrl(b);STSNavigate(b)}function setDocType(){a:;var a=GetAttributeFromItemTable(itemTable,"Icon","DocIcon");a=a?a.split("|"):[];currentItemIcon=a[0];currentItemAppName=a[1];currentItemOpenControl=a[2];currentItemProgId=GetAttributeFromItemTable(itemTable,"Type","HTMLType")}function DeleteListItem(){a:;if(!IsContextSet())return;var b=currentCtx,e=currentItemID,g=currentItemFSObjType,c=L_STSRecycleConfirm_Text;if(!b.RecycleBinEnabled||b.ExternalDataList)c=L_STSDelConfirm_Text;if(b.HasRelatedCascadeLists&&b.CascadeDeleteWarningMessage!=null)c=b.CascadeDeleteWarningMessage+c;if(confirm(c)){var h=L_Notification_Delete,f=addNotification(h,true),a=b.clvp;if(b.ExternalDataList&&a!=null){a.DeleteItemCore(e,g,false);a.pendingItems=[];a.cctx.executeQueryAsync(function(){a:;if(typeof a.rgehs!="undefined"){if(a.rgehs.length==1&&a.rgehs[0].get_serverErrorCode()==SP.ClientErrorCodes.redirect){GoToPage(a.rgehs[0].get_serverErrorValue());return}removeNotification(f);a.ShowErrorDialog(RefreshOnDialogClose)}else RefreshPage(SP.UI.DialogResult.OK)},function(){a:;removeNotification(f);typeof a.rgehs!="undefined"&&a.ShowErrorDialog()})}else{var d=b.HttpPath+"&Cmd=Delete&List="+b.listName+"&ID="+e+"&NextUsing="+GetSource();if(null!=currentItemContentTypeId)d+="&ContentTypeId="+currentItemContentTypeId;SubmitFormPost(d)}}}function DeleteDocLibItem(d,e){a:;if(!IsContextSet())return;var b=currentCtx,h=currentItemID,g=currentItemFSObjType,a,c=false;if(currentItemFSObjType==1){if(currentItemContentTypeId!=null){d+="&ContentTypeId="+currentItemContentTypeId;if(currentItemContentTypeId.substr(0,8).toLowerCase()=="0x0120d5")c=true}if(c)a=b.RecycleBinEnabled?L_STSRecycleConfirm2_Text:L_STSDelConfirm2_Text;else a=b.RecycleBinEnabled?L_STSRecycleConfirm1_Text:L_STSDelConfirm1_Text}else a=b.RecycleBinEnabled?L_STSRecycleConfirm_Text:L_STSDelConfirm_Text;if(b.HasRelatedCascadeLists&&b.CascadeDeleteWarningMessage!=null)a=b.CascadeDeleteWarningMessage+a;if(e&&currentItemFSObjType!=1)a=L_NotifyThisIsCopy_Text+a;if(confirm(a)){var f=L_Notification_Delete;addNotification(f,true);SubmitFormPost(d,false,true)}}function EditMenuDefaultForOnclick(){a:;if(!IsContextSet())return;var a=currentCtx;if(a.isVersions)STSNavigate(itemTable.getAttribute("verUrl"));else if(a.listTemplate==200){var b=currentItemID;MtgNavigate(b)}else EditListItem()}function EditListItem(){a:;if(event.srcElement.tagName=="A"||event.srcElement.parentNode.tagName=="A")return;if(!IsContextSet())return;var b=currentCtx,c="&";if(b.editFormUrl.indexOf("?")==-1)c="?";var a=b.editFormUrl+c+"ID="+currentItemID;a=AddSourceToUrl(a);if(b.listBaseType==1)a=a+GetRootFolder(b);STSNavigate2(event,a)}function _DoNavigateToTemplateGallery(a,b){a:;document.cookie="MSOffice_AWS_DefSaveLoc="+a;STSNavigate(b)}function Portal_Tasks(j){a:;if(!IsContextSet())return;var b=currentCtx,g=unescapeProperly(currentItemFileUrl),c=0,d=0;c=g.lastIndexOf("/");d=g.lastIndexOf(".");if(c<0||d<0||c>d)return;var i=g.substr(c+1,d-c-1),f="";c=b.HttpRoot.indexOf("://");if(c>0){d=b.HttpRoot.indexOf("/",c+3);if(d>0)f=b.HttpRoot.substring(0,d);else f=b.HttpRoot}var e="";if(currentItemFileUrl.charAt(0)=="/"||currentItemFileUrl.substr(0,3).toLowerCase()=="%2f")e=f+currentItemFileUrl;else e=currentItemFileUrl;var a="";if(false==setElementValue("ListViewURL",e))a=a+"&ListViewURL="+escapeProperly(e);if(false==setElementValue("ListTitle",i))a=a+"&ListTitle="+escapeProperly(i);if(false==setElementValue("ListDescription",""))a=a+"&ListDescription=";if(false==setElementValue("ReturnUrl",window.location.href))a=a+"&ReturnUrl="+escapeProperly(window.location.href);if(b.PortalUrl.substr(0,4)!="http")b.PortalUrl=f+b.PortalUrl;var h=b.PortalUrl+"_vti_bin/portalapi.aspx?cmd="+j;h=h+"&IconUrl="+b.imagesPath+currentItemIcon+a;SubmitFormPost(h)}function IsContextSet(){a:;if(currentCtx==null)return false;else if(currentCtx.isExplictLogin)return true;else if(currentCtx.HttpPath==null||currentItemID==null)return false;return true}function ChangeContentType(d){a:;var b=document.getElementById(d),a=window.location.href,e=a.indexOf("?");if(a.indexOf("?")<=0)a=a+"?ContentTypeId="+b.value;else if(a.indexOf("&ContentTypeId=")<=0)a=a+"&ContentTypeId="+b.value;else{var c=/&ContentTypeId=[^&]*/i;a=a.replace(c,"&ContentTypeId="+b.value)}STSNavigate(a)}var IMNControlObj=null,bIMNControlInited=false,IMNDictionaryObj=null,bIMNSorted=false,bIMNOnloadAttached=false,IMNOrigScrollFunc=null,bIMNInScrollFunc=false,IMNSortableObj=null,IMNHeaderObj=null,IMNNameDictionaryObj=null,IMNShowOfflineObj=null;function GetCurrentEvent(a){a:;if(!IsSupportedMacBrowser())return window.event;if(a)return a;return window.event}function GetEventTarget(a){a:;if(!IsSupportedMacBrowser())return a.srcElement;if(a.srcElement)return a.srcElement;return a.target}function EnsureIMNControl(){a:;if(!bIMNControlInited){if(typeof g_presenceEnabled!="undefined"&&g_presenceEnabled)if(IsSupportedMacBrowser())IMNControlObj=CreateMacPlugin();else if(browseris.ie5up)if(window.ActiveXObject)try{IMNControlObj=new ActiveXObject("Name.NameCtrl.1");if(IMNControlObj)if(IsSupportedMacBrowser())IMNControlObj.OnStatusChange="IMNOnStatusChange";else IMNControlObj.OnStatusChange=IMNOnStatusChange}catch(a){IMNControlObj=null}bIMNControlInited=true}return IMNControlObj}function IMNImageInfo(){a:;this.img=null;this.alt=""}var L_IMNOnline_Text="Disponible",L_IMNOffline_Text="Hors connexion",L_IMNAway_Text="Absent(e)",L_IMNBusy_Text="Occupé(e)",L_IMNDoNotDisturb_Text="Ne pas déranger",L_IMNIdle_Text="Peut être absent",L_IMNBlocked_Text="Bloqué",L_IMNOnline_OOF_Text="Disponible (Absent(e) du bureau)",L_IMNOffline_OOF_Text="Hors connexion (Absent(e) du bureau)",L_IMNAway_OOF_Text="Sorti(e) (Absent(e) du bureau)",L_IMNBusy_OOF_Text="Occupé(e) (Absent(e) du bureau)",L_IMNDoNotDisturb_OOF_Text="Ne pas déranger (Absent(e) du bureau)",L_IMNIdle_OOF_Text="Peut être absent (Absent(e) du bureau)";function IMNGetStatusImage(e,d){a:;var b="blank.gif",a="";switch(e){case 0:b="imnon.png";a=L_IMNOnline_Text;break;case 11:b="imnonoof.png";a=L_IMNOnline_OOF_Text;break;case 1:if(d){b="imnoff.png";a=L_IMNOffline_Text}else{b="blank.gif";a=""}break;case 12:if(d){b="imnoffoof.png";a=L_IMNOffline_OOF_Text}else{b="blank.gif";a=""}break;case 2:b="imnaway.png";a=L_IMNAway_Text;break;case 13:b="imnawayoof.png";a=L_IMNAway_OOF_Text;break;case 3:b="imnbusy.png";a=L_IMNBusy_Text;break;case 14:b="imnbusyoof.png";a=L_IMNBusy_OOF_Text;break;case 4:b="imnaway.png";a=L_IMNAway_Text;break;case 5:b="imnbusy.png";a=L_IMNBusy_Text;break;case 6:b="imnaway.png";a=L_IMNAway_Text;break;case 7:b="imnbusy.png";a=L_IMNBusy_Text;break;case 8:b="imnaway.png";a=L_IMNAway_Text;break;case 9:b="imndnd.png";a=L_IMNDoNotDisturb_Text;break;case 15:b="imndndoof.png";a=L_IMNDoNotDisturb_OOF_Text;break;case 10:b="imnbusy.png";a=L_IMNBusy_Text;break;case 16:b="imnidle.png";a=L_IMNIdle_Text;break;case 17:b="imnidleoof.png";a=L_IMNIdle_OOF_Text;break;case 18:b="imnblocked.png";a=L_IMNBlocked_Text;break;case 19:b="imnidlebusy.png";a=L_IMNBusy_Text;break;case 20:b="imnidlebusyoof.png";a=L_IMNBusy_OOF_Text}var c=new IMNImageInfo;c.img=b;c.alt=a;return c}function IMNGetHeaderImage(){a:;var a=new IMNImageInfo;a.img="imnhdr.gif";a.alt="";return a}function IMNIsOnlineState(a){a:;if(a==1)return false;return true}function IMNSortList(e,c,d){a:;var a=null,b=null;if(IMNSortableObj&&IMNSortableObj[e]){b=document.getElementById(e);while(b&&!(b.tagName=="TR"&&typeof b.Sortable!="undefined"))b=b.parentNode;a=b;while(a&&a.tagName!="TABLE")a=a.parentNode;if(a!=null&&b!=null){if(a.rows[1].style.display=="none")for(i=1;i<4;i++)a.rows[i].style.display="block";if(!IMNIsOnlineState(c)&&IMNIsOnlineState(d)){a.rows[2].style.display="none";i=3;while(a.rows[i].id!="Offline"&&a.rows[i].innerText<b.innerText)i++;a.moveRow(b.rowIndex,i);if(a.rows[a.rows.length-3].id=="Offline")a.rows[a.rows.length-2].style.display="block"}else if(IMNIsOnlineState(c)&&!IMNIsOnlineState(d)){if(b.rowIndex==3&&a.rows[b.rowIndex+1].id=="Offline")a.rows[2].style.display="block";if(a.rows[a.rows.length-3].id=="Offline")a.rows[a.rows.length-2].style.display="none";i=a.rows.length-2;while(a.rows[i-1].id!="Offline"&&a.rows[i].innerText>b.innerText)i--;a.moveRow(b.rowIndex,i)}}}}function IMNOnStatusChange(d,b,a){a:;if(IMNDictionaryObj){var c=IMNGetStatusImage(b,IMNSortableObj[a]||IMNShowOfflineObj[a]);if(IMNDictionaryObj[a]!=b){bIMNSorted&&IMNSortList(a,IMNDictionaryObj[a],b);IMNUpdateImage(a,c);IMNDictionaryObj[a]=b}}}function IMNUpdateImage(j,d){a:;var a=document.images[j];if(a){var e=d.img,i=d.alt,c=a.src;if(typeof a.src=="undefined")c=a.item(0).src;var g=c.lastIndexOf("/"),b=c.slice(0,g+1);b+=e;if(c==b&&e!="blank.gif")return;if(a.altbase)a.alt=a.altbase;else a.alt=i;var f=browseris.ie&&browseris.ie55up&&browseris.verIEFull<7,h=b.toLowerCase().indexOf(".png")>0;if(f)if(h){a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+b+"),sizingMethod=scale,enabled=true);";a.src="/_layouts/images/blank.gif"}else{a.style.filter="";a.src=b}else a.src=b}}function IMNHandleAccelerator(b){a:;if(IMNControlObj){var a=GetCurrentEvent(b);a.altKey&&a.shiftKey&&a.keyCode==121&&IMNControlObj.DoAccelerator()}}function IMNImageOnClick(a){a:;if(IMNControlObj){IMNShowOOUIKyb(a);IMNControlObj.DoAccelerator()}}function IMNGetOOUILocation(i){a:;var e={},a=i,d=i,g=0,h=0,n=0,o=document.dir=="rtl";while(a&&a.tagName!="SPAN"&&a.tagName!="TABLE"){if(a.tagName=="TD"&&a.className.indexOf("ms-vb")>=0)break;a=a.parentNode}if(a){var b=a.tagName=="TABLE"?a.rows(0).cells(0).firstChild:a.firstChild;while(b!=null){if(b.tagName=="IMG"&&b.id){d=b;break}if(b.tagName=="A"&&b.childNodes.length>0&&b.firstChild.tagName=="IMG"&&b.firstChild.id){d=b.firstChild;break}b=b.nextSibling}}i=d;h=d.getBoundingClientRect().top-5;g=d.getBoundingClientRect().left-5;try{var c=window;while(c&&c!=c.parent){var j=c.frameElement,f=j?j.getBoundingClientRect():null,l=f?f.top:0,k=f?f.left:0;h+=l;g+=k;c=c.parent}}catch(m){}e.objSpan=a;e.objOOUI=d;e.oouiX=g;e.oouiY=h;return e}function IMNShowOOUIMouse(a){a:;IMNShowOOUI(a,0)}function IMNShowOOUIKyb(a){a:;IMNShowOOUI(a,1)}function IMNShowOOUI(i,h){a:;if(browseris.ie5up||IsSupportedMacBrowser()){var g=GetCurrentEvent(i),c=GetEventTarget(g),b=c,d=c,e=0,f=0;if(EnsureIMNControl()&&IMNNameDictionaryObj){var a=IMNGetOOUILocation(c);b=a.objSpan;d=a.objOOUI;e=a.oouiX;f=a.oouiY;var j=IMNNameDictionaryObj[d.id];if(b)b.onkeydown=IMNHandleAccelerator;IMNControlObj.ShowOOUI(j,h,e,f)}}}function IMNHideOOUI(){a:;if(IMNControlObj){IMNControlObj.HideOOUI();return false}return true}function IMNScroll(){a:;if(!bIMNInScrollFunc){bIMNInScrollFunc=true;IMNHideOOUI()}bIMNInScrollFunc=false;if(IMNOrigScrollFunc==IMNScroll)return true;return IMNOrigScrollFunc?IMNOrigScrollFunc():true}var imnCount=0,imnElems,imnElemsCount=0,imnMarkerBatchSize=4,imnMarkerBatchDelay=40;function ProcessImn(){a:;imnCount=0;imnElems=document.getElementsByName("imnmark");imnElemsCount=imnElems.length;if(EnsureIMNControl()&&IMNControlObj.PresenceEnabled)ProcessImnMarkers();else RemoveImnAnchors()}function RemoveImnAnchors(){a:;for(var d=0;d<imnElemsCount;d++){var c=imnElems[d],a=c.parentNode,e=a.nextSibling,b=a.parentNode;if(a!=null&&a.tagName=="A"&&a.childNodes.length==1&&b!=null){if(e!=null)b.insertBefore(c,e);else b.appendChild(c);b.removeChild(a)}}}function ProcessImnMarkers(){a:;for(var a=0;a<imnMarkerBatchSize;++a){if(imnCount==imnElemsCount)return;if(IsSupportedMacBrowser())IMNRC(imnElems[imnCount].getAttribute("sip"),imnElems[imnCount]);else IMNRC(imnElems[imnCount].sip,imnElems[imnCount]);imnCount++}setTimeout("ProcessImnMarkers()",imnMarkerBatchDelay)}function IMNRC(e,g){a:;if(e==null||e=="")return;if(typeof g_presenceEnabled=="undefined"||!g_presenceEnabled)return;if(browseris.ie5up||IsSupportedMacBrowser()){var b=g?g:window.event.srcElement,c=b,a=b.id;if(!IMNDictionaryObj){IMNDictionaryObj={};IMNNameDictionaryObj={};IMNSortableObj={};IMNShowOfflineObj={};if(!IMNOrigScrollFunc){IMNOrigScrollFunc=window.onscroll;window.onscroll=IMNScroll}}if(IMNDictionaryObj){if(!IMNNameDictionaryObj[a])IMNNameDictionaryObj[a]=e;if(typeof IMNDictionaryObj[a]=="undefined")IMNDictionaryObj[a]=1;if(!IMNSortableObj[a]&&typeof b.Sortable!="undefined"){IMNSortableObj[a]=b.Sortable;if(!bIMNOnloadAttached){EnsureIMNControl()&&IMNControlObj.PresenceEnabled&&AttachEvent("load",IMNSortTable,window);bIMNOnloadAttached=true}}if(!IMNShowOfflineObj[a]&&typeof b.ShowOfflinePawn!="undefined")IMNShowOfflineObj[a]=b.ShowOfflinePawn;if(EnsureIMNControl()&&IMNControlObj.PresenceEnabled){var d=1,h;d=IMNControlObj.GetStatus(e,a);if(IMNIsOnlineState(d)||IMNSortableObj[a]||IMNShowOfflineObj[a]){h=IMNGetStatusImage(d,IMNSortableObj[a]||IMNShowOfflineObj[a]);IMNUpdateImage(a,h);IMNDictionaryObj[a]=d}}}var f=IMNGetOOUILocation(b);SetImnOnClickHandler(f.objOOUI);c=f.objSpan;if(c){c.onmouseover=IMNShowOOUIMouse;c.onfocusin=IMNShowOOUIKyb;c.onmouseout=IMNHideOOUI;c.onfocusout=IMNHideOOUI}}}function SetImnOnClickHandler(c){a:;var b=c.parentNode;if(b.tagName=="A"){if(typeof b.onclick=="undefined")b.onclick=IMNImageOnClickHandler}else{var a=document.createElement("a");a.onclick=IMNImageOnClickHandler;a.className="ms-imnlink";a.href="javascript:;";b.insertBefore(a,c);a.appendChild(c)}}function IMNImageOnClickHandler(a){a:;IMNImageOnClick(a);return false}function IMNSortTable(){a:;var a;for(a in IMNDictionaryObj)IMNSortList(a,1,IMNDictionaryObj[a]);bIMNSorted=true}function IMNRegisterHeader(d){a:;if(browseris.ie5up||IsSupportedMacBrowser()){var c=GetCurrentEvent(d),e=GetEventTarget(c);if(!IMNHeaderObj)IMNHeaderObj={};if(IMNHeaderObj){var a=e.id;IMNHeaderObj[a]=a;var b;b=IMNGetHeaderImage();IMNUpdateImage(a,b)}}}function _TopHelpButtonClick(a){a:;if(typeof navBarHelpOverrideKey!="undefined")return HelpWindowKey(navBarHelpOverrideKey);if(a!=null)HelpWindowKey(a);else HelpWindowKey("HelpHome")}function HelpWindowHelper(d){a:;var c;if(typeof d=="undefined")c="?Lcid="+L_Language_Text;else c="?Lcid="+L_Language_Text+d;var b;if(typeof ctx=="undefined"||ctx==null)if(typeof currentCtx!="undefined"&&currentCtx!=null)ctx=currentCtx;else if(typeof ctxFilter!="undefined"&&ctxFilter!=null)ctx=ctxFilter;if(typeof ctx!="undefined"&&ctx!=null&&typeof ctx.HttpRoot!="undefined"&&ctx.HttpRoot!=null){var a=ctx.HttpRoot;if(a.charAt(a.length-1)!="/")a=a+"/";b=a+"_layouts/help.aspx"}if(b==null&&typeof _spPageContextInfo!="undefined"&&_spPageContextInfo!=null&&typeof _spPageContextInfo.webServerRelativeUrl!="undefined"&&_spPageContextInfo.webServerRelativeUrl!=null){var a=_spPageContextInfo.webServerRelativeUrl;if(a.charAt(a.length-1)!="/")a=a+"/";b=a+"_layouts/help.aspx"}if(b==null){b="/_layouts/help.aspx";c=c+"&Source="+escapeProperly(window.location.href)}var e=window.open(b+c,"STSHELP","height=500,location=no,menubar=no,resizable=yes,scrollbars=no,status=yes,toolbar=no,width=475");e.focus()}function _HelpWindowKey(a){a:;if(a!=null)HelpWindowHelper("&Key="+a+"&ShowNav=true");else HelpWindowHelper("&Key=HelpHome&ShowNav=true")}function _HelpWindowUrl(a){a:;HelpWindowHelper("&Url="+a)}function _HelpWindow(){a:;HelpWindowKey("HelpHome")}var L_EmptySlideShow_Text="Aucune image n'a été trouvée dans la bibliothèque. Ajouter les images et réessayez.",L_NotOurView_Text="Impossible de terminer cette opération dans l'affichage actuel. Sélectionnez un autre affichage et réessayez.";function EditSelectedImages(){a:;if(!IsImgLibJssLoaded()){alert(L_NotOurView_Text);return}_EditSelectedImages()}function DeleteImages(){a:;if(!IsImgLibJssLoaded()){alert(L_NotOurView_Text);return}_DeleteImages()}function SendImages(){a:;if(!IsImgLibJssLoaded()){alert(L_NotOurView_Text);return}_SendImages()}function DownloadImages(){a:;if(!IsImgLibJssLoaded()){alert(L_NotOurView_Text);return}_DownloadImages()}function MtgToggleTimeZone(){a:;var b=document.getElementById("TimeZoneSection"),a=document.getElementById("TimeZoneLink"),L_ShowTZ_Text="Afficher le fuseau horaire",L_HideTZ_Text="Masquer le fuseau horaire";if(b.style.display=="none"){b.style.display="";a.innerHTML="&lt;&lt;";a.title=L_HideTZ_Text;SetCookie("MtgTimeZone","1","")}else{b.style.display="none";a.innerHTML="&gt;&gt;";a.title=L_ShowTZ_Text;SetCookie("MtgTimeZone","0","")}}function GetPageUrl(a){a:;return unescapeProperly(a?g_webUrl:g_pageUrl)}function MtgNavigate(a){a:;if(a==g_instanceId)return;var b=!g_fPageGlobal;window.location.href=GetPageUrl(b)+"?InstanceID="+a+"&"+g_thispagedata}function GoToMtgMove(d,c,b,a){a:;window.location.href=d+"/movetodt.aspx?FromInstanceID="+c+"&FromInstanceDate="+escapeProperly(b)+"&FromInstanceDateISO="+escapeProperly(a)+"&Source="+escapeProperly(window.location.href)}function MtgKeep(b,c,a){a:;var L_MtgKeepConfirm_Text="Les informations relatives à la date de réunion ne correspondent pas aux informations de votre programme de calendrier et de planification. Si vous décidez de conserver cette date de réunion, elle continuera à figurer dans la liste des réunions dans l'espace de travail.";confirm(L_MtgKeepConfirm_Text)&&SubmitFormPost(b+"&Cmd=MtgKeep&List="+escapeProperly(c)+"&EditInstanceID="+a+"&NextUsing="+escapeProperly(window.location.href))}function MtgDelete(c,d,a){a:;var L_MtgDeleteConfirm_Text="Cette date de réunion et les données associées vont être supprimées de l'espace de travail.";if(confirm(L_MtgDeleteConfirm_Text)){var b=a==g_instanceId;SubmitFormPost(c+"&Cmd=MtgMove&List="+escapeProperly(d)+"&FromInstanceID="+a+"&ToInstanceID=-3&NextUsing="+escapeProperly(b?GetPageUrl(true):window.location.href))}}function SetCookie(b,a,c){a:;document.cookie=b+"="+a+";path="+c}function SetAsLastTabVisited(){a:;typeof g_pageUrl!="undefined"&&typeof g_webUrl!="undefined"&&SetCookie("MtgLastTabVisited",escapeProperly(unescapeProperly(g_pageUrl)),escapeProperlyCore(unescapeProperly(g_webUrl),true))}function MtgRedirect(){a:;var a=GetCookie("MtgLastTabVisited");if(a==null)if(typeof g_webUrl!="undefined")a=g_webUrl;else a="../../";else a=escapeProperlyCore(a,true);window.location.href=a}function MakeMtgInstanceUrl(a,c){a:;if(c!="undefined"&&c!=""){var b=a.indexOf("?");if(b==-1||a.indexOf("InstanceID=",b)==-1)a=a+(b==-1?"?":"&")+"InstanceID="+c}return a}var g_dlgWndTop=null;function _dlgWndTop(){a:;if(g_dlgWndTop)return g_dlgWndTop;try{var a=window.parent.g_DialogWindowTop;if(a)g_dlgWndTop=window.parent}catch(b){}finally{if(!g_dlgWndTop){window.self.g_DialogWindowTop=true;g_dlgWndTop=window.self}}return g_dlgWndTop}function commonShowModalDialog(n,b,c,m){a:;if(document.getElementById("__spPickerHasReturnValue")!=null)document.getElementById("__spPickerHasReturnValue").value="";if(document.getElementById("__spPickerReturnValueHolder")!=null)document.getElementById("__spPickerReturnValueHolder").value="";commonModalDialogReturnValue.clear();var h;if(window.showModalDialog&&!browseris.safari125up){h=window.showModalDialog(n,m,b);c&&invokeModalDialogCallback(c,h)}else{var l=500,k=550,p="yes";if(!b)b="width="+l+",height="+k;else{function r(){a:;return []}function d(a,b,c){a:;a.push(b);a[b]=c}function q(b){a:;for(var c=[],a=0;a<b.length;a++)c.push(b[a]);return c}var a=r(),j,f;if(b.search(/^(\s*\w+\s*:\s*.+?\s*)(;\s*\s*\w+\s*:\s*.+?\s*)*(;\s*)?$/)!=-1){j=/^\s*(\w+)\s*:\s*(.+?)\s*$/;f=b.split(/\s*;\s*/)}else{j=/^\s*(\w+)\s*=\s*(.+?)\s*$/;f=b.split(/\s*,\s*/)}for(var s in f){var g=j.exec(f[s]);g&&g.length==3&&d(a,g[1].toLowerCase(),g[2])}!a["width"]&&d(a,"width",a["dialogwidth"]||l);!a["height"]&&d(a,"height",a["dialogheight"]||k);!a["scrollbars"]&&d(a,"scrollbars",a["scroll"]||p);b="";var i=q(a);for(var o in i){if(b)b+=",";b+=i[o]+"="+a[i[o]]}}var e=window.open(n,"_blank",b+",modal=yes,dialog=yes");e.dialogArguments=m;window.onfocus=function(){a:;var a=document.getElementById("__spPickerHasReturnValue")!=null&&document.getElementById("__spPickerHasReturnValue").value=="1"||commonModalDialogReturnValue.isSet();if(e&&!e.closed&&!a)e.focus();else{window.onfocus=null;c&&invokeModalDialogCallback(c,h)}};if(!browseris.ie)if(window.frameElement!=null)window.fndlgClose=c}return h}function invokeModalDialogCallback(b,a){a:;if(typeof a!="undefined"&&a!=null)b(a);else if(commonModalDialogReturnValue.isSet()){a=commonModalDialogReturnValue.get();b(a);commonModalDialogReturnValue.clear()}else if(document.getElementById("__spPickerHasReturnValue")!=null&&document.getElementById("__spPickerHasReturnValue").value=="1"&&document.getElementById("__spPickerReturnValueHolder")!=null){a=document.getElementById("__spPickerReturnValueHolder").value;b(a)}return a}function setModalDialogReturnValue(a,b){a:;if(a.opener!=null&&typeof b=="string"&&a.opener.document.getElementById("__spPickerHasReturnValue")!=null&&a.opener.document.getElementById("__spPickerReturnValueHolder")!=null){a.opener.document.getElementById("__spPickerHasReturnValue").value="1";a.opener.document.getElementById("__spPickerReturnValueHolder").value=b}else setModalDialogObjectReturnValue(a,b);if(browseris.safari125up)a.opener!=null&&a.opener.fndlgClose!=null&&a.opener.fndlgClose(b)}function setModalDialogObjectReturnValue(a,b){a:;if(a.showModalDialog&&!browseris.safari125up)a.returnValue=b;else a.opener!=null&&a.opener.commonModalDialogReturnValue.set(b)}function CommonGlobalDialogReturnValue(){a:;var a=false,b=null;this.set=function(a){a:;if(typeof a!="undefined"){this.retVal=a;this.hasRetval=true}};this.isSet=function(){a:;return this.hasRetval};this.get=function(){a:;if(this.hasRetval)return this.retVal};this.clear=function(){a:;this.hasRetval=false;this.retVal=null}}var commonModalDialogReturnValue=new CommonGlobalDialogReturnValue;function commonModalDialogOpen(e,a,c,d){a:;var f=function(){a:;a.url=e;a.dialogReturnValueCallback=c;a.args=d;var b=SP.UI.ModalDialog.showModalDialog(a);b.get_frameElement().commonModalDialogClose=commonModalDialogClose},b;try{b=typeof SP.UI.ModalDialog.showModalDialog}catch(g){b="undefined"}EnsureScript("SP.UI.Dialog.js",b,f)}function commonModalDialogClose(b,c){a:;var a=_dlgWndTop().g_childDialog;if(a){a.set_returnValue(c);a.close(b)}}function commonModalDialogGetArguments(){a:;var a=_dlgWndTop().g_childDialog;if(a&&typeof a.get_args!="undefined")return a.get_args();return null}function ShowPopupDialog(a){a:;ShowPopupDialogWithCallback(a,PopupDialogCallback)}function ShowPopupDialogWithCallback(b,c){a:;var d=function(){a:;if(FV4UI()){var a={};a.url=b;a.dialogReturnValueCallback=c;var d=SP.UI.ModalDialog.showModalDialog(a);d.get_frameElement().commonModalDialogClose=commonModalDialogClose}else STSNavigate(b)},a;try{a=typeof SP.UI.ModalDialog.showModalDialog}catch(e){a="undefined"}EnsureScript("SP.UI.Dialog.js",a,d)}function PopupDialogCallback(a){a:;a==1&&STSNavigate(_dlgWndTop().location.href)}var filterTable=null,bIsFilterMenuShown=false,bIsFilterDataLoaded=false,filterImageCell=null,currentFilterMenu=null,loadingFilterMenu=null,ctxFilter=null,bIsFilterKeyPress=false,filterStr=null,strFieldName="",bMenuLoadInProgress=false,strFilteredValue=null,fnOnFilterMouseOut=null,L_NotSortable_Text="Impossible de trier ce type de colonne",L_NotFilterable_Text="Impossible de filtrer ce type de colonne",L_AOnTop_Text="Par ordre alphabétique",L_ZOnTop_Text="Par ordre alphabétique inverse",L_SmallestOnTop_Text="Par ordre croissant",L_LargestOnTop_Text="Par ordre décroissant",L_OldestOnTop_Text="Par ordre chronologique croissant",L_NewestOnTop_Text="Par ordre chronologique décroissant",L_AttachmentsOnTop_Text="Pièces jointes en premier",L_BlanksOnTop_Text="Vides en premier",L_Ascending_Text="Croissant",L_Descending_Text="Décroissant",L_DontFilterBy_Text="Effacer le filtre de ^1",L_Loading_Text="Chargement....",L_FilterMode_Text="Afficher les choix de filtres",L_OpenMenu_Text="Menu Ouvrir",L_FilterThrottled_Text="Impossible d’afficher la valeur du filtre, car le champ n’est pas filtrable ou le nombre d’éléments renvoyés dépasse le seuil d’affichages de liste appliqué par l’utilisateur.";function resetFilterMenuState(){a:;if(bMenuLoadInProgress)return;bIsFilterMenuShown=false;bIsFilterDataLoaded=false;filterTable=null;filterImageCell=null;currentFilterMenu=null;loadingFilterMenu=null;ctxFilter=null;bIsFilterKeyPress=false;fnOnFilterMouseOut!=null&&fnOnFilterMouseOut();fnOnFilterMouseOut=null}function setupFilterMenuContext(a){a:;ctxFilter=a}function IsFilterMenuOn(){a:;if(!bIsFilterMenuShown)return false;var a=false;a=MenuHtc_isOpen(currentFilterMenu)||MenuHtc_isOpen(loadingFilterMenu);if(!a)bIsFilterMenuShown=false;return a}function IsFilterMenuEnabled(){a:;return true}function OnMouseOverFilterDeferCall(a){a:;if(!IsFilterMenuEnabled())return false;if(IsFilterMenuOn()||bMenuLoadInProgress)return false;if(window.location.href.search("[?&]Filter=1")!=-1)return false;if(a.FilterDisable=="TRUE")return false;if(IsFieldNotFilterable(a)&&IsFieldNotSortable(a))return false;if(filterTable==a)return;filterTable!=null&&OnMouseOutFilter();filterTable=a;var e=filterTable.tagName=="TABLE",f=new Function("setupFilterMenuContext(ctx"+filterTable.getAttribute("CtxNum")+");");f();if(e){filterTable.className="ms-selectedtitle";filterTable.onclick=CreateFilterMenu;filterTable.oncontextmenu=CreateFilterMenu;filterTable.onmouseout=OnMouseOutFilter}else{var b=filterTable.parentNode;b.onclick=CreateFilterMenu;b.oncontextmenu=CreateFilterMenu;b.onmouseout=OnMouseOutFilter;CreateCtxImg(b,OnMouseOutFilter)}if(e){var d=filterTable.childNodes[0].childNodes[0];filterImageCell=d.childNodes[d.childNodes.length-1];var c=filterImageCell.childNodes[0];c.src=ctxFilter.imagesPath+"menudark.gif";c.alt=L_OpenMenu_Text;c.style.visibility="visible";if(IsElementRtl(filterTable)){filterImageCell.style.right=null;filterImageCell.style.left="1px"}else{filterImageCell.style.left=null;filterImageCell.style.right="1px"}filterImageCell.className="ms-menuimagecell"}return true}function OnMouseOutFilter(b){a:;if(!IsFilterMenuOn()&&filterTable!=null&&!bMenuLoadInProgress){var c=filterTable.tagName=="TABLE",a=filterTable.parentNode;if(c||a==null){filterTable.className="ms-unselectedtitle";filterTable.onclick="";filterTable.oncontextmenu="";filterTable.onmouseout=""}else{if(b==null)b=window.event;if(b!=null){var d=b.toElement!=null?b.toElement:b.relatedTarget;if(a!=null&&d!=null&&IsContained(d,a))return}a.onclick="";a.oncontextmenu="";a.onmouseout="";RemoveCtxImg(a)}if(c&&filterImageCell!=null&&filterImageCell.childNodes.length>0){filterImageCell.childNodes[0].style.visibility="hidden";filterImageCell.className=""}resetFilterMenuState()}}function _OnFocusFilter(a){a:;if(window.location.href.search("[?&]Filter=1")!=-1)return false;if(!IsFilterMenuEnabled())return false;a.onfocusout=OnMouseOutFilter;a.onkeydown=PopFilterMenu;var b=a.getAttribute("FilterString");if(b!=null)filterStr=b;var c=FindSTSMenuTable(a,"CTXNum");if(c==null)return false;OnMouseOverFilter(c);return false}function PopFilterMenu(a){a:;if(!IsFilterMenuEnabled())return true;if(a==null)a=window.event;var b;if(browseris.nav6up)b=a.which;else b=a.keyCode;if(!IsFilterMenuOn()&&(a.shiftKey&&b==13||a.altKey&&b==40)){var d=a.srcElement?a.srcElement:a.target,c=FindSTSMenuTable(d,"CTXNum");if(c==null)return false;OnMouseOverFilterDeferCall(c);CreateFilterMenu(a);return false}else return true}function CreateFilterMenu(b){a:;if(filterTable==null||filterTable.tagName=="TABLE"&&filterImageCell==null)return true;var c=filterTable.tagName=="DIV"?filterTable.parentNode:filterTable,a=FindCtxImg(c);a!=null&&a.shown==false&&ShowCtxImg(a,true,c);if(b==null)b=window.event;bIsFilterMenuShown=true;window.document.body.onclick="";currentFilterMenu=CMenu("filter_menu");loadingFilterMenu=CMenu("filter_menu_loading");currentFilterMenu.setAttribute("CompactMode","true");addSortMenuItems(currentFilterMenu,loadingFilterMenu);if(filterStr==null)addFilterMenuItems(currentFilterMenu,loadingFilterMenu);else addAdHocFilterMenuItems(currentFilterMenu,loadingFilterMenu);b.cancelBubble=true;return false}function GetUrlWithNoSortParameters(e){a:;var a=window.location.href,h=new CUrl(a);h.hash="";a=h.ToString();var b,f=0,d,g;do{d=e.indexOf("=",f);if(d==-1)return a;b=e.substring(f,d);if(b!="");a=RemoveQueryParameterFromUrl(a,b);if(typeof b=="string"&&b.length>"FilterField".length&&b.substring(0,"FilterField".length)=="FilterField"){var c=b.substring("FilterField".length);a=RemoveQueryParameterFromUrl(a,"FilterValue"+c);a=RemoveQueryParameterFromUrl(a,"FilterLookupId"+c);a=RemoveQueryParameterFromUrl(a,"FilterOp"+c);a=RemoveQueryParameterFromUrl(a,"FilterData"+c)}g=e.indexOf("&",d+1);if(g==-1)return a;f=g+1}while(b!="");return a}function IsFieldNotSortable(a){a:;if(a.getAttribute("Sortable")=="FALSE"||a.getAttribute("SortDisable")=="TRUE"||a.getAttribute("FieldType")=="MultiChoice")return true;return false}function addSortMenuItems(b,a){a:;if(IsFieldNotSortable(filterTable)){CAMOptFilter(b,a,L_NotSortable_Text,"","",false,"fmi_ns");CAMSep(b);CAMSep(a);return}var c="",e="",d="",f="/_layouts/"+L_Language_Text+"/images/SORTAZLang.gif",g="/_layouts/"+L_Language_Text+"/images/SORTZALang.gif";if(filterStr==null){var i=filterTable.getAttribute("SortFields"),l=new CUrl(i);if(l.query.length>0)i=l.query.substr(1);var q=i.indexOf("&SortDir");if(q==-1){CAMOptFilter(b,a,L_NotSortable_Text,"","",false,"fmi_ns");CAMSep(b);CAMSep(a);return}var p=i.indexOf("&",q+1),s=GetUrlWithNoSortParameters(i);s=RemovePagingArgs(s);l=new CUrl(s);var h=l.query;if(h.length>1)h+="&";else if(h.length==0)h+="?";var w=h;if(p<0)p=i.length;h+=i.substr(0,q)+"&SortDir=Asc"+i.substr(p);l.query=h;c="HandleFilter(event, '"+STSScriptEncode(l.ToString())+"');";h=w;h+=i.substr(0,q)+"&SortDir=Desc"+i.substr(p);l.query=h;e="HandleFilter(event, '"+STSScriptEncode(l.ToString())+"');";if(c.indexOf("?")>=0)if(c.substr(c.indexOf("?")+1).indexOf("?")>=0)debugger;var d=filterTable.getAttribute("FieldType");strFieldName=filterTable.getAttribute("Name")}else{var r=" ",k=filterStr.lastIndexOf(r);d=filterStr.substring(k+1);if(d.substring(0,2)=="x:")d=d.substring(2);var n=filterStr.substring(0,k);k=n.lastIndexOf(r);strFieldName=n.substring(k+1);if(strFieldName.substring(0,1)=="@")strFieldName=strFieldName.substring(1);n=filterStr.substring(0,k);k=n.lastIndexOf(r);if(k>0)strFieldName=n.substring(0,k);var v=filterTable.tagName=="TABLE",j=null;if(v){var u=filterTable.childNodes[0].childNodes[0],j=u.childNodes[0].childNodes[0];if(j.tagName=="TABLE")j=j.childNodes[0].childNodes[0].childNodes[1].childNodes[0]}else j=filterTable.firstChild;if(j.tagName=="DIV")j=j.childNodes[0];var m=j.href;m=m.replace(/%20/g," ");if(m.indexOf("'ascending'")>0){c=m;e=m.replace("'ascending'","'descending'")}else{e=m;c=m.replace("'descending'","'ascending'")}}d=d.toLowerCase();if(d=="dateTime"){CAMOptFilter(b,a,L_OldestOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_NewestOnTop_Text,e,g,true,"fmi_desc")}else if(d=="integer"||d=="number"||d=="currency"){CAMOptFilter(b,a,L_SmallestOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_LargestOnTop_Text,e,g,true,"fmi_desc")}else if(d=="text"||d=="user"||d=="string"){CAMOptFilter(b,a,L_AOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_ZOnTop_Text,e,g,true,"fmi_desc")}else if(d=="calculated"){var o=filterTable.getAttribute("ResultType");if(o=="Number"||o=="Currency"){CAMOptFilter(b,a,L_SmallestOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_LargestOnTop_Text,e,g,true,"fmi_desc")}else if(o=="dateTime"){CAMOptFilter(b,a,L_OldestOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_NewestOnTop_Text,e,g,true,"fmi_desc")}else if(o=="boolean"){CAMOptFilter(b,a,L_Ascending_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_Descending_Text,e,g,true,"fmi_desc")}else{CAMOptFilter(b,a,L_AOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_ZOnTop_Text,e,g,true,"fmi_desc")}}else if(d=="attachments"){CAMOptFilter(b,a,L_BlanksOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_AttachmentsOnTop_Text,e,g,true,"fmi_desc")}else if(d=="lookup"){var t=filterTable.getAttribute("Name");if(t=="Last_x0020_Modified"||t=="Created_x0020_Date"){CAMOptFilter(b,a,L_OldestOnTop_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_NewestOnTop_Text,e,g,true,"fmi_desc")}else{CAMOptFilter(b,a,L_Ascending_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_Descending_Text,e,g,true,"fmi_desc")}}else{CAMOptFilter(b,a,L_Ascending_Text,c,f,true,"fmi_asc");CAMOptFilter(b,a,L_Descending_Text,e,g,true,"fmi_desc")}CAMSep(b);CAMSep(a)}function CAMOptFilter(h,g,d,f,c,b,e){a:;var a;a=CAMOpt(h,d,f,c);a.id=e;!b&&a.setAttribute("enabled","false");a=CAMOpt(g,d,f,c);a.id=e+"_p";!b&&a.setAttribute("enabled","false")}function ShowFilterLoadingMenu(){a:;!bIsFilterDataLoaded&&filterTable!=null&&FilterOMenu(loadingFilterMenu,filterTable)}function getFilterQueryParam(){a:;var d=document.getElementById("FilterIframe"+filterTable.getAttribute("CtxNum"));if(d==null)return;var e=d.getAttribute("FilterLink"),f=escapeProperly(filterTable.getAttribute("Name")),b="",c=0,a;do{c++;a=e.match("FilterField"+c+"=[^&]*&FilterValue"+c+"=[^&]*");if(a!=null)b=b+"&"+a}while(a);return b}function IsFieldNotFilterable(a){a:;if(a.getAttribute("Filterable")=="FALSE"||a.getAttribute("FilterDisable")=="TRUE"||a.getAttribute("FieldType ")=="Note"||a.getAttribute("FieldType ")=="URL")return true;return false}function addFilteringDisabledMenuItem(b){a:;var a=filterTable.getAttribute("FilterDisableMessage");if(a==null||a.length==0)a=L_NotFilterable_Text;var c=CAMOpt(b,a,"");c.setAttribute("enabled","false");FilterOMenu(b,filterTable);b._onDestroy=OnMouseOutFilter}function addFilterMenuItems(m,j){a:;if(IsFieldNotFilterable(filterTable)){addFilteringDisabledMenuItem(m);return}var d=document.getElementById("FilterIframe"+filterTable.getAttribute("CtxNum"));if(d==null)return;var c=d.getAttribute("FilterLink");if(!c||c=="")c=CanonicalizeUrlEncodingCase(window.location.href);var g=escapeProperly(filterTable.getAttribute("Name"));strFilteredValue=null;var a="",e=0,b,f;do{e++;b=c.match("FilterField"+e+"=[^&#]*");f=c.match("&FilterValue"+e+"=[^&#]*");if(b!=null&&f!=null){if(strFilteredValue==null)strFilteredValue=getFilterValueFromUrl(b.toString()+f.toString(),g);a=a+"&"+b+f;var p=c.match("&FilterOp"+e+"=[^&#]*");if(p!=null)a=a+p;var h=c.match("&FilterLookupId"+e+"=[^&#]*");if(h!=null)a=a+h;var l=c.match("&FilterData"+e+"=[^&#]*");if(l!=null)a=a+l;if(h!=null&&l==null&&strFilteredValue!=null){addFilteringDisabledMenuItem(m);return}}}while(b);var o=strFilteredValue!=null;strDisplayText=StBuildParam(L_DontFilterBy_Text,filterTable.getAttribute("DisplayName"));var q="javascript:HandleFilter(event, '"+STSScriptEncode(FilterFieldV3(ctxFilter.view,g,"",0,true))+"')",k;if(o)k=ctxFilter.imagesPath+"FILTEROFF.gif";else k=ctxFilter.imagesPath+"FILTEROFFDISABLED.gif";CAMOptFilter(m,j,strDisplayText,q,k,o,"fmi_clr");var r=CAMOpt(j,L_Loading_Text,"");r.setAttribute("enabled","false");setTimeout("ShowFilterLoadingMenu()",500);j._onDestroy=OnMouseOutFilter;b=c.match("MembershipGroupId=[^&]*");if(b!=null)a=a+"&"+b;b=c.match("InstanceID=[^&]*");if(b!=null)a=a+"&"+b;if(a!=null&&a.length>0){if(ctxFilter.overrideFilterQstring!=null&&ctxFilter.overrideFilterQstring.length>0)a="&"+ReconcileQstringFilters(a.substring(1),ctxFilter.overrideFilterQstring)}else if(ctxFilter.overrideFilterQstring!=null&&ctxFilter.overrideFilterQstring.length>0)a="&"+ctxFilter.overrideFilterQstring;var i="";if(ctxFilter!=null&&ctxFilter.clvp!=null&&ctxFilter.clvp.rootFolder!=null&&ctxFilter.clvp.rootFolder.length>0)i="&RootFolder="+escapeProperlyCore(ctxFilter.clvp.rootFolder,true);else{b=c.match("RootFolder=[^&]*");if(b!=null)i="&"+b}var n="";b=a.match("OverrideScope=[^&]*");if(ctxFilter!=null&&typeof ctxFilter.overrideScope!="undefined"&&b==null)n="&OverrideScope="+escapeProperlyCore(ctxFilter.overrideScope);if(browseris.safari){d.src="/_layouts/blank.htm";d.style.offsetLeft="-550px";d.style.offsetTop="-550px";d.style.display="block"}d.src=ctxFilter.HttpRoot+"/_layouts/filter.aspx?ListId="+ctxFilter.listName+i+n+"&FieldInternalName="+g+"&ViewId="+ctxFilter.view+"&FilterOnly=1&Filter=1"+a;bMenuLoadInProgress=true}function getFilterValueFromUrl(b,f){a:;var a,c,e;a=b.indexOf("=");if(a==-1)return;c=b.indexOf("&");if(c==-1)return;if(c<a)return;b=CanonicalizeUrlEncodingCase(b);e=b.substring(a+1,c);if(e==f){var d;a=b.indexOf("=",c+1);if(a==-1)return;d=b.substr(a+1);d=unescapeProperly(d);return d}return null}function _OnIframeLoad(){a:;bMenuLoadInProgress=false;if(filterTable!=null&&filterTable.getAttribute("Name")!=null){var c=null;c=document.getElementById("FilterIframe"+filterTable.getAttribute("CtxNum"));if(c!=null){var a=null,e=filterTable.getAttribute("Name");if(c.contentDocument)a=c.contentDocument;else if(c.contentWindow&&c.contentWindow.document)a=c.contentWindow.document;else if(c.document)a=c.document;if(a!=null){var g=a.getElementById("diidFilterCustomTable");if(g!=null&&(a.parentWindow&&a.parentWindow.CustomPopulateFilterMenu!=null||a.defaultView&&a.defaultView.CustomPopulateFilterMenu!=null))if(a.parentWindow)a.parentWindow.CustomPopulateFilterMenu(currentFilterMenu,g,"FilterIframe"+filterTable.getAttribute("CtxNum"),ctxFilter.view,e);else a.defaultView.CustomPopulateFilterMenu(currentFilterMenu,g,"FilterIframe"+filterTable.getAttribute("CtxNum"),ctxFilter.view,e);else{var h=a.getElementById("diidFilter"+e);e=escapeProperly(e);if(h!=null){var i=h.childNodes.length;if(i>500)addFilterOptionMenuItem();else for(var d=h.childNodes,b=1;b<i;b++){var f;if(d[b].innerText)f=d[b].innerText;else if(d[b].textContent)f=d[b].textContent;else f=d[b].innerHTML;var j="javascript:HandleFilter(event, '"+STSScriptEncode(FilterFieldV3(ctxFilter.view,e,d[b].value,b,true))+"')",k=CAMOpt(currentFilterMenu,f,j);strFilteredValue!=null&&strFilteredValue==d[b].value&&k.setAttribute("checked","true")}}else{alert(L_FilterThrottled_Text);return}}bIsFilterDataLoaded=true;if(loadingFilterMenu!=null)loadingFilterMenu._onDestroy=null;if(currentFilterMenu!=null){currentFilterMenu._onDestroy=OnMouseOutFilter;FilterOMenu(currentFilterMenu,filterTable)}}}}}function addFilterOptionMenuItem(){a:;var a=window.location.href;a=StURLSetVar2(a,"Filter","1");a=StURLSetVar2(a,"View",ctxFilter.view);a="javascript:SubmitFormPost('"+a+"')";CAMOpt(currentFilterMenu,L_FilterMode_Text,a)}function OnMouseOverAdHocFilterDeferCall(f,e){a:;filterStr=e;if(IsFilterMenuOn())return false;filterTable!=null&&OnMouseOutFilter();filterTable=f;var d=filterTable.tagName=="TABLE";if(d){filterTable.className="ms-selectedtitle";filterTable.onclick=CreateFilterMenu;filterTable.oncontextmenu=CreateFilterMenu;filterTable.onmouseout=OnMouseOutFilter}else{var a=filterTable.parentNode;a.onclick=CreateFilterMenu;a.oncontextmenu=CreateFilterMenu;a.onmouseout=OnMouseOutFilter;CreateCtxImg(a,OnMouseOutFilter)}if(d){var c=filterTable.childNodes[0].childNodes[0];filterImageCell=c.childNodes[c.childNodes.length-1];var b=filterImageCell.childNodes[0];b.src="/_layouts/images/menudark.gif";b.alt=L_OpenMenu_Text;b.style.visibility="visible";if(IsElementRtl(filterTable)){filterImageCell.style.right=null;filterImageCell.style.left="1px"}else{filterImageCell.style.left=null;filterImageCell.style.right="1px"}filterImageCell.className="ms-menuimagecell"}return true}function addAdHocFilterMenuItems(b,a){a:;if(IsFieldNotFilterable(filterTable)){addFilteringDisabledMenuItem(b);return}var c=CAMOpt(a,L_Loading_Text,"");c.setAttribute("enabled","false");FilterOMenu(a,filterTable);a._onDestroy=OnMouseOutFilter;DoCallBack("__filter={"+filterStr+"}");filterStr=null}function UpdateFilterCallback(b){a:;var i="</OPTION>",a=-1;a=b.indexOf(i,a+1);var c=b.lastIndexOf(">",a),l=StBuildParam(L_DontFilterBy_Text,strFieldName),h,e="";if(c<a-1){var d=b.lastIndexOf('"',a);if(d>0){var g=b.lastIndexOf('"',d-1);if(g>0)e=b.substring(g+1,d)}}if(c==a-1)h="/_layouts/images/FILTEROFFDISABLED.gif";else h="/_layouts/images/FILTEROFF.gif";if(a>0){var j=CAMOpt(currentFilterMenu,l,e,h);j.setAttribute("enabled",c==a-1?"false":"true");var d=a,m='<OPTION href="';a=b.indexOf(i,a+8);while(a>0){c=b.indexOf(m,d+8);c=b.indexOf('"',c+20);if(c>0&&c<a){var k=b.indexOf(">",c),f=b.substring(k+1,a),e="";d=b.lastIndexOf('"',c);if(d>0){var g=b.lastIndexOf('"',d-1);if(g>0){e=b.substring(g+1,d);e=e.replace(/&amp;/g,"&")}}if(f.length>40)f=f.substring(0,40)+"...";if(f.length>0){var j=CAMOpt(currentFilterMenu,f,e);k>c+1&&j.setAttribute("checked","true")}}d=a;a=b.indexOf(i,a+8)}}else{var j=CAMOpt(currentFilterMenu,L_NotFilterable_Text,"");j.setAttribute("enabled","false");FilterOMenu(currentFilterMenu,filterTable);return}loadingFilterMenu._onDestroy=null;FilterOMenu(currentFilterMenu,filterTable);currentFilterMenu._onDestroy=OnMouseOutFilter}function FilterOMenu(c,a){a:;if(a==null)return;var b=a.tagName=="DIV"?a.parentNode:a;OMenu(c,b,null,null,-1)}function _OnClickFilter(d,b){a:;if(FV4UI()){if(browseris.ie){b.cancelBubble=true;b.returnValue=false}else b.stopPropagation();var c;try{c=typeof inplview.OnClickFilterV4}catch(b){c="undefined"}if(c!="undefined")inplview.OnClickFilterV4(d);else{var i="inplview.OnClickFilterV4",g=i.split(".");if(g.length>1){var h=function(){a:;inplview.OnClickFilterV4(d)};EnsureScript(g[0],c,h)}}return false}var e=FindSTSMenuTable(d,"CTXNum");if(e!=null&&e.getAttribute("SortFields")!=null){var f=e.getAttribute("SortFields"),a=GetUrlWithNoSortParameters(f);a=RemovePagingArgs(a);if(a.indexOf("?")<0)a+="?";else a+="&";SubmitFormPost(a+f)}if(!bIsFileDialogView)b.cancelBubble=true;return false}var _spBodyOnLoadFunctionNames,_spBodyOnLoadCalled=false;if(_spBodyOnLoadFunctionNames==null){_spBodyOnLoadFunctionNames=[];_spBodyOnLoadFunctionNames.push("_spBodyOnLoad");_spBodyOnLoadFunctionNames.push("_spRestoreScrollForDiv_rscr")}var _spOriginalFormAction,_spEscapedFormAction,_spFormOnSubmitCalled=false,_spBodyOnPageShowRegistered=false;function _spBodyOnPageShow(){a:;_spFormOnSubmitCalled=false}function _spResetFormOnSubmitCalledFlag(){a:;_spFormOnSubmitCalled=false}function _ribbonReadyForInit(){a:;return _spBodyOnLoadCalled}var _spBodyOnLoadCalled=false;function _spBodyOnLoadWrapper(){a:;_spBodyOnLoadCalled=true;if(!_spBodyOnPageShowRegistered&&typeof browseris!="undefined"&&!browseris.ie&&typeof window.addEventListener=="function"){window.addEventListener("pageshow",_spBodyOnPageShow,false);_spBodyOnPageShowRegistered=true}if(typeof Sys!="undefined"&&typeof Sys.WebForms!="undefined"&&typeof Sys.WebForms.PageRequestManager!="undefined"){var a=Sys.WebForms.PageRequestManager.getInstance();if(!_spPageLoadedRegistered&&a!=null){a.add_pageLoaded(_spPageLoaded);_spPageLoadedRegistered=true}}!_spPageLoadedRegistered&&_spPageLoaded();_spFormOnSubmitCalled=false;typeof Sys!="undefined"&&typeof Sys.Net!="undefined"&&typeof Sys.Net.WebRequestManager!="undefined"&&Sys.Net.WebRequestManager.add_invokingRequest(_spResetFormOnSubmitCalledFlag);typeof NotifyBodyLoadedAndExecuteWaitingJobs!="undefined"&&NotifyBodyLoadedAndExecuteWaitingJobs();ExecuteOrDelayUntilScriptLoaded(ProcessDefaultOnLoad,"core.js");if(typeof g_prefetch=="undefined"||g_prefetch==1){var b=_spGetQueryParam("prefetch");b!=0&&_spPreFetch()}}function _spPreFetch(){a:;window.setTimeout(function(){a:;if(_v_dictSod){var a=_v_dictSod["core.js"];typeof a!="undefined"&&a&&LoadSod(a);if(typeof ribbon=="undefined"){var b=_v_dictSod["ribbon"];typeof b!="undefined"&&b&&LoadSod(b)}}},0);typeof _ribbon!="undefined"&&_ribbon&&window.setTimeout(function(){a:;if(document.images&&IsFullNameDefined("_spPageContextInfo.currentLanguage")){imgRibbon32x32=new Image;imgRibbon32x32.src="/_layouts/"+_spPageContextInfo.currentLanguage+"/images/formatmap32x32.png";imgRibbon16x16=new Image;imgRibbon16x16.src="/_layouts/"+_spPageContextInfo.currentLanguage+"/images/formatmap16x16.png"}},0)}function _spGetQueryParam(f){a:;var b=window.location.search.substring(1);if(b&&b.length>2)for(var c=b.split("&"),e=c.length,a=0;a<e;a++){var d=c[a].split("=");if(d[0].toLowerCase()==f)return d[1]}}var _spSuppressFormOnSubmitWrapper=false;function _spFormOnSubmitWrapper(){a:;if(_spSuppressFormOnSubmitWrapper)return true;if(_spFormOnSubmitCalled)return false;if(typeof _spFormOnSubmit=="function"){var b=_spFormOnSubmit(),a=false;if(typeof b==typeof a&&b==a)return false}_spFormOnSubmitCalled=true;return true}var _inlineEditString=null,_spPageLoadedRegistered=false;function _spPageLoaded(){a:;_spOriginalFormAction=null;EscapeFormAction();RefreshInplViewState();RefreshHeroButtonState();InlineEditSetDefaultFocus()}function InlineEditSetDefaultFocus(){a:;if(_inlineEditString!=null){var c=_inlineEditString.indexOf("#");if(c<=0)return;for(var i=_inlineEditString.substring(0,c),d=document.getElementsByTagName("TR"),b=0;b<d.length;b++)if(d[b].getAttribute("automode")==i){for(var h=_inlineEditString.substring(c+1),f=h.split(","),a=d[b],e=0;e<f.length;e++){if(a==null)break;a=a.firstChild;for(var g=0;g<f[e];g++){if(a==null)break;a=a.nextSibling}}a!=null&&focusControl(a);break}_inlineEditString=null}}function focusControl(b){a:;if(Sys.Browser.agent===Sys.Browser.InternetExplorer){var a=b;if(a&&typeof a.contentEditable!=="undefined"){oldContentEditableSetting=a.contentEditable;a.contentEditable=false}else a=null;try{b.focus()}catch(c){}if(a)a.contentEditable=oldContentEditableSetting}else b.focus()}function EscapeFormAction(){a:;if(document.forms.length>0&&!_spOriginalFormAction){_spOriginalFormAction=document.forms[0].action;var a=window.location.href,b=a.indexOf("://");if(b>=0){var c=a.substring(b+3);b=c.indexOf("/");if(b>=0)a=c.substring(b);if(a.length>2&&a.charAt(0)=="/"&&a.charAt(1)=="/")a=a.substring(1)}_spEscapedFormAction=escapeUrlForCallback(a);document.forms[0].action=_spEscapedFormAction;document.forms[0]._initialAction=document.forms[0].action}}function RefreshHeroButtonState(){a:;if(typeof _spWebPartComponents!="undefined")for(var d in _spWebPartComponents)if(d.length>7){var b=d.substr(7),a=window["heroButtonWebPart"+b];if(typeof a!="undefined"&&a!=null&&a==true){var c=document.getElementById("Hero-"+b);if(c!=null)c.style.display=""}}}function RefreshInplViewState(){a:;if(typeof ctx!="undefined"&&ctx.clvp!=null&&(ctx.clvp.tab==null||ctx.clvp.tab!=null&&(ctx.clvp.tab.parentNode==null||ctx.clvp.tab.parentNode.innerHTML==null))){FixDroppedOrPastedClvps(null);if(ctx.dictSel!=null){ctx.dictSel=[];ctx.CurrentSelectedItems=0}}}function RestoreToOriginalFormAction(){a:;if(_spOriginalFormAction!=null){if(_spEscapedFormAction==document.forms[0].action){document.forms[0].action=_spOriginalFormAction;document.forms[0]._initialAction=document.forms[0].action}_spOriginalFormAction=null;_spEscapedFormAction=null}}function DefaultFocus(){a:;if(typeof _spUseDefaultFocus!="undefined"){var a=document.getElementsByName("_spFocusHere"),c=null;if(a==null||a.length<=0)c=document.getElementById("_spFocusHere");else if(a!=null&&a.length>0)c=a[0];if(c!=null){var b=c.getElementsByTagName("a");if(b!=null&&b.length>0)for(var d=0;d<b.length;d++)if(b[d].style.visibility!="hidden"){try{b[d].focus()}catch(e){}break}}}}function ProcessDefaultOnLoad(){a:;ProcessPNGImages();UpdateAccessibilityUI();window.setTimeout("ProcessImn()",10);ProcessOnLoadFunctions(_spBodyOnLoadFunctionNames);typeof _spUseDefaultFocus!="undefined"&&DefaultFocus()}function ProcessOnLoadFunctions(onLoadFunctionNames){a:;for(var i=0;i<onLoadFunctionNames.length;i++){var expr="if(typeof("+onLoadFunctionNames[i]+")=='function'){"+onLoadFunctionNames[i]+"();}";eval(expr)}onLoadFunctionNames=[]}function CoreInvoke(a){a:;var b=Array.prototype.slice.call(arguments,1),c=function(){a:;window[a].apply(null,b)};if(TypeofFullName(a)=="function")return window[a].apply(null,b);else{EnsureScript("core.js","undefined",c);return false}}typeof Sys!="undefined"&&Sys&&Sys.Application&&Sys.Application.notifyScriptLoaded();typeof NotifyScriptLoadedAndExecuteWaitingJobs=="function"&&NotifyScriptLoadedAndExecuteWaitingJobs("ows.js")
