_coveoDefineJQuery = function() { var $ = _coveoJQuery;
Type.registerNamespace('Coveo.CES.Web.Search.SharePoint.SharePointScopes');Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldTypeEnum=function(){};Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldTypeEnum.prototype = {integer:0,longInt:1,doubleNum:2,smallString:3,date:4,largeString:5}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldTypeEnum.registerEnum('Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldTypeEnum',false);Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleTypeEnum=function(){};Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleTypeEnum.prototype = {freeText:0,webAddress:1,field:2}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleTypeEnum.registerEnum('Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleTypeEnum',false);Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleActionEnum=function(){};Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleActionEnum.prototype = {require:0,include:1,exclude:2}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleActionEnum.registerEnum('Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleActionEnum',false);Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeData=function(p_RawData){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeData.initializeBase(this,[p_RawData]);}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeData.prototype={$1_0:null,get_id:function(){return this.m_RawData.getStringValue('ID','');},set_id:function(value){this.m_RawData.setStringValue('ID',value);return value;},get_name:function(){return this.m_RawData.getStringValue('Name','');},set_name:function(value){this.m_RawData.setStringValue('Name',value);return value;},get_description:function(){return this.m_RawData.getStringValue('Description','');},set_description:function(value){this.m_RawData.setStringValue('Description',value);return value;},get_rules:function(){if(this.$1_0==null){this.$1_0=new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleCollectionData(this.m_RawData.getChild('Rules',true));}return this.$1_0;},get_lastModifiedDateUtc:function(){return this.m_RawData.getStringValue('LastModifiedDateUtc','');},set_lastModifiedDateUtc:function(value){this.m_RawData.setStringValue('LastModifiedDateUtc',value);return value;}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDictionaryData=function(p_RawData){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDictionaryData.initializeBase(this,[p_RawData,true]);}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDictionaryData.prototype={createInstance:function(p_RawData){return new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeData(p_RawData);},get_item:function(p_Key){return Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDictionaryData.callBaseMethod(this, 'getObject',[p_Key]);},set_item:function(p_Key,value){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDictionaryData.callBaseMethod(this, 'setObject',[p_Key,value]);return value;}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDefinitionsData=function(p_RawData){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDefinitionsData.initializeBase(this,[p_RawData]);}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDefinitionsData.prototype={$1_0:null,$1_1:null,$1_2:null,get_scopes:function(){if(this.$1_0==null){this.$1_0=new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDictionaryData(this.m_RawData.getChild('Scopes',true));}return this.$1_0;},get_defaultScopeConfig:function(){if(this.$1_1==null){this.$1_1=new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigData(this.m_RawData.getChild('DefaultScopeConfig',true));}return this.$1_1;},set_defaultScopeConfig:function(value){this.$1_1=null;this.m_RawData.setChild('DefaultScopeConfig',value.getRawData());return value;},get_siteScopeConfigs:function(){if(this.$1_2==null){this.$1_2=new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigDictionaryData(this.m_RawData.getChild('SiteScopeConfigs',true));}return this.$1_2;}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldData=function(p_RawData){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldData.initializeBase(this,[p_RawData]);}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldData.prototype={get_name:function(){return this.m_RawData.getStringValue('Name','');},set_name:function(value){this.m_RawData.setStringValue('Name',value);return value;},get_type:function(){return this.m_RawData.getIntValue('Type',0);},set_type:function(value){this.m_RawData.setIntValue('Type',value);return value;}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldDictionaryData=function(p_RawData){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldDictionaryData.initializeBase(this,[p_RawData,true]);}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldDictionaryData.prototype={createInstance:function(p_RawData){return new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldData(p_RawData);},get_item:function(p_Key){return Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldDictionaryData.callBaseMethod(this, 'getObject',[p_Key]);},set_item:function(p_Key,value){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldDictionaryData.callBaseMethod(this, 'setObject',[p_Key,value]);return value;}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleData=function(p_RawData){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleData.initializeBase(this,[p_RawData]);}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleData.prototype={get_ruleType:function(){return this.m_RawData.getIntValue('RuleType',0);},set_ruleType:function(value){this.m_RawData.setIntValue('RuleType',value);return value;},get_fieldName:function(){return this.m_RawData.getStringValue('FieldName','');},set_fieldName:function(value){this.m_RawData.setStringValue('FieldName',value);return value;},get_content:function(){return this.m_RawData.getStringValue('Content','');},set_content:function(value){this.m_RawData.setStringValue('Content',value);return value;},get_ruleAction:function(){return this.m_RawData.getIntValue('RuleAction',0);},set_ruleAction:function(value){this.m_RawData.setIntValue('RuleAction',value);return value;},get_siteID_:function(){return this.m_RawData.getStringValue('SiteID_','');},set_siteID_:function(value){this.m_RawData.setStringValue('SiteID_',value);return value;}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleCollectionData=function(p_RawData){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleCollectionData.initializeBase(this,[p_RawData]);}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleCollectionData.prototype={add:function(p_Object){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleCollectionData.callBaseMethod(this, 'add',[p_Object]);},insert:function(p_Index,p_Object){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleCollectionData.callBaseMethod(this, 'insert',[p_Index,p_Object]);},createInstance:function(p_RawData){return new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleData(p_RawData);},get_item:function(p_Index){return Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleCollectionData.callBaseMethod(this, 'getObjectAt',[p_Index]);},set_item:function(p_Index,value){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleCollectionData.callBaseMethod(this, 'setObjectAt',[p_Index,value]);return value;}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigData=function(p_RawData){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigData.initializeBase(this,[p_RawData]);}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigData.prototype={$1_0:null,get_showScopeSelectorDropDown:function(){return this.m_RawData.getBoolValue('ShowScopeSelectorDropDown',true);},set_showScopeSelectorDropDown:function(value){this.m_RawData.setBoolValue('ShowScopeSelectorDropDown',value);return value;},get_showScopeSelectorFacet:function(){return this.m_RawData.getBoolValue('ShowScopeSelectorFacet',true);},set_showScopeSelectorFacet:function(value){this.m_RawData.setBoolValue('ShowScopeSelectorFacet',value);return value;},get_selectedScopeIDs:function(){if(this.$1_0==null){this.$1_0=new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeStringIntDictionaryData(this.m_RawData.getChild('SelectedScopeIDs',true),true);}return this.$1_0;},get_defaultScopeID:function(){return this.m_RawData.getStringValue('DefaultScopeID','');},set_defaultScopeID:function(value){this.m_RawData.setStringValue('DefaultScopeID',value);return value;},get_lastModifiedDateUtc:function(){return this.m_RawData.getStringValue('LastModifiedDateUtc','');},set_lastModifiedDateUtc:function(value){this.m_RawData.setStringValue('LastModifiedDateUtc',value);return value;}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigDictionaryData=function(p_RawData){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigDictionaryData.initializeBase(this,[p_RawData,true]);}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigDictionaryData.prototype={createInstance:function(p_RawData){return new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigData(p_RawData);},get_item:function(p_Key){return Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigDictionaryData.callBaseMethod(this, 'getObject',[p_Key]);},set_item:function(p_Key,value){Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigDictionaryData.callBaseMethod(this, 'setObject',[p_Key,value]);return value;}}
Type.registerNamespace('Coveo.CES.Common');Coveo.CES.Common.SearchInterfaceQueryString=function(){}
Type.registerNamespace('Coveo.CES.Web.Search.SharePoint');Coveo.CES.Web.Search.SharePoint.SharePointItemAttributes=function(){}
Type.registerNamespace('Coveo.CES.Web.Search.Scripts.Controls');Coveo.CES.Web.Search.Scripts.Controls.StateEnum=function(){};Coveo.CES.Web.Search.Scripts.Controls.StateEnum.prototype = {ready:0,playing:1,stopped:2,paused:3,buffering:4,ended:5}
Coveo.CES.Web.Search.Scripts.Controls.StateEnum.registerEnum('Coveo.CES.Web.Search.Scripts.Controls.StateEnum',false);Coveo.CES.Web.Search.Scripts.Controls.IMediaPlayer=function(){};Coveo.CES.Web.Search.Scripts.Controls.IMediaPlayer.registerInterface('Coveo.CES.Web.Search.Scripts.Controls.IMediaPlayer');Coveo.CES.Web.Search.Scripts.Controls._FacetScriptItem=function(p_Facet){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Facet);this.$9=p_Facet;}
Coveo.CES.Web.Search.Scripts.Controls._FacetScriptItem.prototype={$2:null,$3:null,$4:null,$5:null,$6:null,$7:null,$8:null,$9:null,$A:null,$B:null,op:null,$C:null,$D:null,$E:false,$F:function(){this.$B.setAttribute('tabIndex',0);this.$2=ss.Delegate.create(this,this.$11);this.$3=ss.Delegate.create(this,this.$12);this.$4=ss.Delegate.create(this,this.$13);this.$5=ss.Delegate.create(this,this.$14);this.$B.attachEvent('onmousedown',this.$2);this.$B.attachEvent('onmouseover',this.$3);this.$B.attachEvent('onmouseout',this.$4);this.$B.attachEvent('onclick',this.$5);if(this.$C!=null){this.$7=ss.Delegate.create(this,this.$15);this.$8=ss.Delegate.create(this,this.$16);this.$6=ss.Delegate.create(this,this.$17);this.$C.attachEvent('onmouseover',this.$7);this.$C.attachEvent('onmouseout',this.$8);this.$C.attachEvent('onclick',this.$6);}},$10:function(){this.$B.detachEvent('onmousedown',this.$2);this.$B.detachEvent('onmouseover',this.$3);this.$B.detachEvent('onmouseout',this.$4);this.$B.detachEvent('onclick',this.$5);if(this.$C!=null){this.$C.detachEvent('onmouseover',this.$7);this.$C.detachEvent('onmouseout',this.$8);this.$C.detachEvent('onclick',this.$6);}},$11:function(){this.$B.style['outline']='none';this.$E=true;},$12:function(){if(this.$9.$1_61()){this.$B.className+='_Hovered';}},$13:function(){this.$B.className=this.$B.className.replaceAll('_Hovered','');},$14:function(){this.$9.$1_5C(this,this.op);},$15:function(){this.$B.className+='_RemoveHovered';window.event.cancelBubble=true;},$16:function(){this.$B.className=this.$B.className.replaceAll('_RemoveHovered','');window.event.cancelBubble=true;},$17:function(){this.$9.$1_5C(this,'r');}}
Coveo.CES.Web.Search.Scripts.Controls._FacetScriptSearchItem=function(p_Facet,p_Index){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Facet);this.$8=p_Facet;this.$C=p_Index;}
Coveo.CES.Web.Search.Scripts.Controls._FacetScriptSearchItem.prototype={$2:null,$3:null,$4:null,$5:null,$6:null,$7:null,$8:null,$9:null,$A:null,$B:null,$C:0,$D:function(){this.$2=ss.Delegate.create(this,this.$11);this.$3=ss.Delegate.create(this,this.$12);this.$4=ss.Delegate.create(this,this.$13);this.$A.attachEvent('onmouseover',this.$2);this.$A.attachEvent('onmouseout',this.$3);this.$A.attachEvent('onclick',this.$4);this.$6=ss.Delegate.create(this,this.$14);this.$7=ss.Delegate.create(this,this.$15);this.$5=ss.Delegate.create(this,this.$16);this.$B.attachEvent('onmouseover',this.$6);this.$B.attachEvent('onmouseout',this.$7);this.$B.attachEvent('onclick',this.$5);},$E:function(){this.$A.detachEvent('onmouseover',this.$2);this.$A.detachEvent('onmouseout',this.$3);this.$A.detachEvent('onclick',this.$4);this.$B.detachEvent('onmouseover',this.$6);this.$B.detachEvent('onmouseout',this.$7);this.$B.detachEvent('onclick',this.$5);},$F:function(){return (this.$A.className.indexOf(' CesFacetSearchLine_Hovered')!==-1||this.$A.className.indexOf(' CesFacetSearchLine_RemoveHovered')!==-1);},$10:function(){return this.$A.className.replaceAll(' CesFacetSearchLine_Hovered','').replaceAll(' CesFacetSearchLine_RemoveHovered','');},$11:function(){if(this.$8.$1_53!=null){this.$8.$1_53.$12();this.$8.$1_53=null;}this.$A.className=this.$10()+' CesFacetSearchLine_Hovered';this.$8.$1_53=this;},$12:function(){this.$A.className=this.$10();},$13:function(){this.$8.$1_5E(this);},$14:function(){if(this.$8.$1_53!=null){this.$8.$1_53.$12();this.$8.$1_53=null;}this.$A.className=this.$10()+' CesFacetSearchLine_RemoveHovered';window.event.cancelBubble=true;this.$8.$1_53=this;},$15:function(){this.$A.className=this.$10();window.event.cancelBubble=true;},$16:function(){this.$8.$1_60(this);}}
Coveo.CES.Web.Search.Scripts.Controls.LegacyFacetScript=function(){Coveo.CES.Web.Search.Scripts.Controls.LegacyFacetScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.LegacyFacetScript.prototype={m_Main:null,m_Header:null,m_Popup:null,m_Showing:false,$2_0:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Main);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Header);Coveo.CES.Web.Search.Scripts.Controls.LegacyFacetScript.callBaseMethod(this, 'initialize');this.addOnClickAttribute(this.m_Header,ss.Delegate.create(this,this.$2_3),true);if(this.m_Popup!=null){this.$2_0=new Coveo.CNL.Web.Scripts.OnClickElsewhereEvent([this.m_Main],ss.Delegate.create(this,this.$2_4),true);}},tearDown:function(){if(this.$2_0!=null){this.$2_0.dispose();this.$2_0=null;}Coveo.CES.Web.Search.Scripts.Controls.LegacyFacetScript.callBaseMethod(this, 'tearDown');},fillItems:function(p_Callback){},hideItems:function(p_Callback){},$2_1:function($p0){this.m_Showing=true;if(this.m_Popup!=null){this.m_Popup.style.display='block';Coveo.CNL.Web.Scripts.DOMUtilities.positionElement(this.m_Popup,this.m_Main,Coveo.CNL.Web.Scripts.PositionEnum.belowLeft);this.m_Popup.style.visibility='visible';}},$2_2:function($p0){this.m_Showing=false;},$2_3:function(){if(!this.m_Showing){if(this.m_Popup!=null){this.m_Popup.style.visibility='hidden';}this.fillItems(ss.Delegate.create(this,this.$2_1));}else if(this.m_Popup==null){this.hideItems(ss.Delegate.create(this,this.$2_2));}},$2_4:function(){Coveo.CNL.Web.Scripts.CNLAssert.check(this.m_Popup!=null);if(this.m_Showing){this.m_Showing=false;this.m_Popup.style.display='none';}}}
Coveo.CES.Web.Search.Scripts.Controls._FacetScriptAsyncItemCall=function(){}
Coveo.CES.Web.Search.Scripts.Controls._FacetScriptAsyncItemCall.prototype={$0:null,op:null,$1:0}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript=function(){this.$1_C=['CesFacetNormalLine_NotChecked_RemoveHovered','CesFacetNormalLine_NotChecked_Hovered','CesFacetNormalLine_NotChecked','CesFacetNormalLine_Checked_RemoveHovered','CesFacetNormalLine_Checked_Hovered','CesFacetNormalLine_Checked','CesFacetRemovedLine_RemoveHovered','CesFacetRemovedLine_Hovered','CesFacetRemovedLine'];this.$1_3E={};this.$1_3F={};this.$1_51=[];Coveo.CES.Web.Search.Scripts.Controls.FacetScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_80=function($p0){var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getDocumentElemForScroll();++Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_35;var $1=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_34*(Math.cos(Math.PI*Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_35/50)-1)/2;var $2=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_32-$1;if($0.scrollTop<$2){$0.scrollTop=$2;var $3=$0.scrollHeight;if($3>Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_31){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_87(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2B.$1_63().parentNode,$3-Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_31);}if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_35<50){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_33=new Coveo.CNL.Web.Scripts.Timeout(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_80,null,10);}else{Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_33=null;}}}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_81=function(){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3A==null&&!Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2F&&Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37!=null&&Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37.style.height!=='0px'){var $0=new Array(2);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_86(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_39,$0);var $1=$0[0].$1_63();var $2=$0[1].$1_63();var $3=Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds($1);var $4=Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds($2);var $5=Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount();var $6=window.event.clientX+$5.width;var $7=window.event.clientY+$5.height;if($6<$3.left||$6>$3.right||$7<$3.top||$7>$4.bottom){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_34=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37.offsetHeight;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_35=0;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3A=new Coveo.CNL.Web.Scripts.Timeout(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_82,null,10);}}if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3B!=null){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3B.$1_5B();}Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_88();}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_82=function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37);++Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_35;var $0=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_34+Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_34*(Math.cos(Math.PI*Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_35/50)-1)/2;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37.style.height=$0+'px';if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_35<50){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3A=new Coveo.CNL.Web.Scripts.Timeout(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_82,null,10);}else{Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3A=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37.parentNode.removeChild(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37=null;}}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_83=function($p0){var $0=false;var $dict1=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_25;for(var $key2 in $dict1){var $1={key:$key2,value:$dict1[$key2]};var $2=$1.value;var $3=$2.$1_63();if($3!=null){var $4=$($3);var $5=$4.outerWidth();if($5!==Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3D){$0=true;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3D=$5;}}break;}if($0){var $dict3=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_25;for(var $key4 in $dict3){var $6={key:$key4,value:$dict3[$key4]};var $7=$6.value;$7.$1_66(null);}}Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3C=new Coveo.CNL.Web.Scripts.Timeout(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_83,null,1000);}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_84=function(){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A!=null){return;}if(window.event.keyCode===27&&Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2B!=null){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2B.$1_62();Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2B=null;}else if(window.event.keyCode===13||window.event.keyCode===46){var $0=window.event.srcElement;var $1=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_85($0.id);if($1!=null){if($0.getAttribute('tabIndex')!=null){if(window.event.keyCode===46){var $2=$1.$1_64($0);if($2!=null&&$2.$C!=null){$2.$C.click();}}else if(window.event.keyCode===13){$0.click();}else{Coveo.CNL.Web.Scripts.CNLAssert.fail();}window.event.cancelBubble=true;window.event.returnValue=false;}}}}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.beginFeedback=function(p_FacetElemID){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_FacetElemID);if(!Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2E){var $0=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_85(p_FacetElemID);$0.$1_6F();$0.$1_69();$0.$1_6D();}}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.endFeedback=function(p_FacetElemID){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_FacetElemID);if(!Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2E){var $0=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_85(p_FacetElemID);if($0!=null){$0.$1_6E();$0.$1_6A();$0.$1_70();}}}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_85=function($p0){var $0=null;var $dict1=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_25;for(var $key2 in $dict1){var $1={key:$key2,value:$dict1[$key2]};var $2=$1.value;if($p0.startsWith($2.m_FacetElemID)){$0=$2;break;}}return $0;}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_86=function($p0,$p1){Coveo.CNL.Web.Scripts.CNLAssert.check($p1.length===2);var $0=$p0.$1_63();var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition($0);var $2=1000000;var $3=-1000000;$p1[0]=$p0;$p1[1]=$p0;var $dict1=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_25;for(var $key2 in $dict1){var $4={key:$key2,value:$dict1[$key2]};var $5=$4.value;var $6=$5.$1_63();var $7=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition($6);if($7.left===$1.left){if($6.clientHeight>0&&$7.top<$2){$p1[0]=$5;$2=$7.top;}if($6.clientHeight>0&&$7.top>$3){$p1[1]=$5;$3=$7.top;}}}}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_87=function($p0,$p1){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38==null){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38=document.createElement('div');$p0.appendChild(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38);}var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38).top;var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getDocumentElemForScroll().scrollHeight;var $2=$1-$0+$p1;if($2>=0){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38.style.height=$2+'px';}}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_88=function(){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38!=null){var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getWindowSize().height;var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount().height;var $2=Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38);if($1+$0<$2.top){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38.parentNode.removeChild(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38=null;}else if($1+$0<$2.bottom){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38.style.height=($1+$0-$2.top)+'px';}}}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_89=function(){return (!Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_8A())?'onkeyup':'onkeypress';}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_8A=function(){return (window.location.search.toLowerCase().indexOf('outlookaddin=1')!==-1);}
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.prototype={$1_40:null,$1_41:null,$1_42:null,$1_43:null,$1_44:null,$1_45:null,$1_46:null,$1_47:null,$1_48:null,$1_49:null,$1_4A:null,$1_4B:null,$1_4C:null,$1_4D:null,$1_4E:null,$1_4F:null,$1_50:null,$1_52:null,$1_53:null,$1_54:null,m_FacetElemID:null,m_SelectionMode:0,m_SearchBox:null,m_ClearSearchLink:null,m_SearchPopup:null,m_CollExpElem:null,m_DropDownContainer:null,m_EraserElemID:null,m_SelectionModeIcon:null,m_NonFocusText:null,m_MoreLinkID:null,m_LessLinkID:null,m_IconElem:null,m_LoadingIconUrl:null,m_Ellipsis:0,m_FacetZone:0,m_IsCollapsed:false,m_IsDropDownFacet:false,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_FacetElemID);Coveo.CNL.Web.Scripts.CNLAssert.check(!this.m_SelectionMode||this.m_SelectionMode===1);Coveo.CNL.Web.Scripts.CNLAssert.check(!this.m_FacetZone||this.m_FacetZone===1||this.m_FacetZone===2);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_CollExpElem);if(!Object.getKeyCount(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_25)){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_26=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_84;document.attachEvent('onkeydown',Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_26);if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_8A()){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3C=new Coveo.CNL.Web.Scripts.Timeout(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_83,null,1000);}Coveo.CNL.Web.Scripts.CNLAssert.isNull(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_36);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_36=new Coveo.CNL.Web.Scripts.MouseCapture(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_81,null,null);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_36.set_cancelBubble(false);}Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_25[this.m_FacetElemID]=this;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.callBaseMethod(this, 'initialize');if(this.m_IconElem!=null){this.$1_4D=this.m_IconElem.src;}if(this.m_SearchBox!=null){this.$1_4E=this.m_SearchBox.value;if(this.m_NonFocusText!=null&&(!this.m_SearchBox.value||this.m_SearchBox.value===this.m_NonFocusText)){if(this.m_SearchBox.className.indexOf('CesFacetSearchBoxInputNonFocus')===-1){this.m_SearchBox.className+=' '+'CesFacetSearchBoxInputNonFocus';}this.m_SearchBox.value=this.m_NonFocusText;}else{this.m_ClearSearchLink.style.visibility='visible';}this.$1_41=ss.Delegate.create(this,this.$1_74);this.m_SearchBox.attachEvent('onkeydown',this.$1_41);this.$1_42=ss.Delegate.create(this,this.$1_75);this.m_SearchBox.attachEvent(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_89(),this.$1_42);this.$1_43=ss.Delegate.create(this,this.$1_77);this.m_SearchBox.attachEvent('onfocus',this.$1_43);this.$1_44=ss.Delegate.create(this,this.$1_78);this.m_SearchBox.attachEvent('onblur',this.$1_44);this.$1_45=ss.Delegate.create(this,this.$1_79);this.m_ClearSearchLink.attachEvent('onclick',this.$1_45);}this.$1_40=ss.Delegate.create(this,this.$1_7A);this.m_CollExpElem.attachEvent('onclick',this.$1_40);this.m_CollExpElem.setAttribute('tabIndex',0);this.$1_4C=document.getElementById(this.m_EraserElemID);if(this.$1_4C!=null){this.$1_46=ss.Delegate.create(this,this.$1_7E);this.$1_4C.attachEvent('onclick',this.$1_46);this.$1_4C.setAttribute('tabIndex',0);}if(this.m_SelectionModeIcon!=null){this.$1_47=ss.Delegate.create(this,this.$1_7C);this.m_SelectionModeIcon.attachEvent('onclick',this.$1_47);this.m_SelectionModeIcon.setAttribute('tabIndex',0);}this.$1_4A=((String.isNullOrEmpty(this.m_MoreLinkID))?null:document.getElementById(this.m_MoreLinkID));if(this.$1_4A!=null){this.$1_48=ss.Delegate.create(this,this.$1_71);this.$1_4A.attachEvent('onclick',this.$1_48);this.$1_4A.setAttribute('tabIndex',0);}this.$1_4B=((String.isNullOrEmpty(this.m_LessLinkID))?null:document.getElementById(this.m_LessLinkID));if(this.$1_4B!=null){this.$1_49=ss.Delegate.create(this,this.$1_72);this.$1_4B.attachEvent('onclick',this.$1_49);this.$1_4B.setAttribute('tabIndex',0);}if(this.m_IsDropDownFacet&&!this.m_IsCollapsed){this.$1_54=new Coveo.CNL.Web.Scripts.OnClickElsewhereEvent([this.$1_63()],ss.Delegate.create(this,this.$1_7B),true);}Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.registerClientFeedback(this.get_ownerId(),new Coveo.CES.Web.Search.Scripts.Controls.FacetScriptFeedback(this.m_FacetElemID));},tearDown:function(){Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.unregisterClientFeedback(this.get_ownerId());var $dict1=this.$1_3E;for(var $key2 in $dict1){var $0={key:$key2,value:$dict1[$key2]};var $1=$0.value;$1.$10();}this.$1_65();if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3B===this){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3B=null;}if(this.$1_40!=null){this.m_CollExpElem.detachEvent('onclick',this.$1_40);}if(this.$1_41!=null){this.m_SearchBox.detachEvent('onkeydown',this.$1_41);}if(this.$1_42!=null){this.m_SearchBox.detachEvent(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_89(),this.$1_42);}if(this.$1_43!=null){this.m_SearchBox.detachEvent('onfocus',this.$1_43);}if(this.$1_44!=null){this.m_SearchBox.detachEvent('onblur',this.$1_44);}if(this.$1_45!=null){this.m_ClearSearchLink.detachEvent('onclick',this.$1_45);}if(this.$1_46!=null){this.$1_4C.detachEvent('onclick',this.$1_46);}if(this.$1_47!=null){this.m_SelectionModeIcon.detachEvent('onclick',this.$1_47);}if(this.$1_48!=null){this.$1_4A.detachEvent('onclick',this.$1_48);}if(this.$1_49!=null){this.$1_4B.detachEvent('onclick',this.$1_49);}if(this.$1_4F!=null){this.$1_4F.cancel();}if(this.$1_50!=null){this.$1_50.cancel();}if(this.$1_52!=null){this.$1_52.cancel();}if(this.$1_54!=null){this.$1_54.dispose();this.$1_54=null;}Coveo.CES.Web.Search.Scripts.Controls.FacetScript.callBaseMethod(this, 'tearDown');delete Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_25[this.m_FacetElemID];if(!Object.getKeyCount(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_25)){document.detachEvent('onkeydown',Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_26);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_26=null;if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_36!=null){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_36.dispose();Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_36=null;}if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3C!=null){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3C.cancel();Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3C=null;}if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_33!=null){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_33.cancel();Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_33=null;}if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3A!=null){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3A.cancel();Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3A=null;}if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37!=null){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37.parentNode.removeChild(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37=null;}if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38!=null){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38.parentNode.removeChild(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38=null;}}},initializeFacetItem:function(p_ItemValue,p_ItemElemID,p_Op,p_RemoveElemID){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_ItemElemID);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_ItemValue);var $0=new Coveo.CES.Web.Search.Scripts.Controls._FacetScriptItem(this);$0.$A=p_ItemValue;$0.$B=document.getElementById(p_ItemElemID);$0.op=p_Op;$0.$C=((String.isNullOrEmpty(p_RemoveElemID))?null:document.getElementById(p_RemoveElemID));this.$1_3E[$0.$A]=$0;$0.$F();},initComplete:function(){this.$1_6C();if(this.m_IsDropDownFacet&&!this.m_IsCollapsed){var $0=$(this.$1_63());this.m_DropDownContainer.style.minWidth=$0.outerWidth(true)+'px';}this.$1_66(null);},registerDropDownHidingOnMouseLeave:function(){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3B=this;},$1_5B:function(){var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount();var $1=window.event.clientX+$0.width;var $2=window.event.clientY+$0.height;var $3=this.$1_63();var $4=$($3).children('.'+'CesDropDownFacetContainer').get(0);var $5=Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds($3);var $6=Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds($4);if(!$5.isPtInside($1,$2)&&!$6.isPtInside($1,$2)){this.hideDropDown();Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3B=null;}},$1_5C:function($p0,$p1){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p1);if(!this.$1_61()){return;}Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A=this;this.$1_6B(($p0.$E)?null:$p0.$B);var $0;if(Object.keyExists(this.$1_3F,$p0.$A)){delete this.$1_3F[$p0.$A];$0=true;}else{var $4=new Coveo.CES.Web.Search.Scripts.Controls._FacetScriptAsyncItemCall();$4.$0=$p0;$4.op=$p1;$4.$1=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_29;this.$1_3F[$p0.$A]=$4;$0=false;}var $1=new Array(Object.getKeyCount(this.$1_3F));var $2=0;var $dict1=this.$1_3F;for(var $key2 in $dict1){var $5={key:$key2,value:$dict1[$key2]};var $6=$5.value;$1[$2++]=[$6.op,$6.$0.$A];}++Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_29;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=2;this.valueClick($1,Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_29,ss.Delegate.create(this,this.$1_5D));switch($p1){case 's':var $3=(($p0.$B.className.indexOf(this.$1_C[5])!==-1)?this.$1_C[1]:this.$1_C[4]);this.$1_68($p0.$B,$3);break;case 'r':if($p0.$D==null){$p0.$D=$p0.$B.className;this.$1_68($p0.$B,this.$1_C[7]);}else{$p0.$B.className=$p0.$D;$p0.$D=null;}break;case 'ur':if($0){this.$1_68($p0.$B,this.$1_C[8]);}else{this.$1_68($p0.$B,this.$1_C[1]);}break;default:Coveo.CNL.Web.Scripts.CNLAssert.fail();break;}this.$1_66(null);window.event.cancelBubble=true;window.event.returnValue=false;},$1_5D:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.check(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A===this);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=0;var $0=$p0;var $1=[];var $dict1=this.$1_3F;for(var $key2 in $dict1){var $2={key:$key2,value:$dict1[$key2]};var $3=$2.value;if($3.$1<Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_29){ArrayPrototype_add($1, $2.key);$3.$0.$D=null;}}var $enum3=ss.IEnumerator.getEnumerator($1);while($enum3.moveNext()){var $4=$enum3.current;delete this.$1_3F[$4];}Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A=null;},$1_5E:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2B=this;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2F=false;this.$1_6B(null);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=2;this.searchValueClick($p0.$9,ss.Delegate.create(this,this.$1_5F));window.event.cancelBubble=true;window.event.returnValue=false;},$1_5F:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.check(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2B===this);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=0;},$1_60:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2B=this;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2F=false;this.$1_6B(null);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=2;this.searchValueRemove($p0.$9,ss.Delegate.create(this,this.$1_5F));window.event.cancelBubble=true;window.event.returnValue=false;},$1_61:function(){return (Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A==null||(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A===this&&!this.m_SelectionMode))&&Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C!==1;},$1_62:function(){Coveo.CNL.Web.Scripts.CNLAssert.check(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2B===this);if(this.$1_52!=null){this.$1_52.cancel();this.$1_52=null;}if(this.m_ClearSearchLink!=null&&this.m_ClearSearchLink.style.visibility!=='hidden'){this.m_ClearSearchLink.focus();this.$1_79();window.event.cancelBubble=true;window.event.returnValue=false;}},$1_63:function(){return document.getElementById(this.m_FacetElemID);},showMoreOrLessValues:function(p_Sign,p_Callback){},searchBoxTyping:function(p_Text,p_Callback){return null;},valueClick:function(p_OpValuePairs,p_CallSeqNo,p_Callback){return 0;},searchValueClick:function(p_Value,p_Callback){},searchValueRemove:function(p_Value,p_Callback){},clearFacet:function(p_Callback){},switchSelectionMode:function(p_Callback){},expandCollapse:function(){},hideDropDown:function(){},$1_64:function($p0){var $0=null;var $dict1=this.$1_3E;for(var $key2 in $dict1){var $1={key:$key2,value:$dict1[$key2]};var $2=$1.value;if($2.$B===$p0){$0=$2;break;}}return $0;},$1_65:function(){var $enum1=ss.IEnumerator.getEnumerator(this.$1_51);while($enum1.moveNext()){var $0=$enum1.current;$0.$E();}this.$1_53=null;ArrayPrototype_clear(this.$1_51);},$1_66:function($p0){var $0=[true];var $dict1=this.$1_3E;for(var $key2 in $dict1){var $1={key:$key2,value:$dict1[$key2]};var $2=$1.value;this.$1_67($2.$B,-1,$0);}if(!$0[0]){window.setTimeout(ss.Delegate.create(this,this.$1_66),0);}},$1_67:function($p0,$p1,$p2){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p2);Coveo.CNL.Web.Scripts.CNLAssert.check($p2.length===1);var $0=$($p0);var $1=$0.children('.'+'CesFacetLineText').first();var $2=$0.children('.'+'CesFacetLineEllipsis').first();var $3=$1.attr('coveoCaption').htmlDecode();if($p1===-1){$1.text($3);}var $4=$1.outerWidth(true);$2.css('display','none');var $5;if($p2[0]){$5=(($p1<=0)?$0.width():$p1-($0.outerWidth()-$0.width())-2);if(this.m_IsDropDownFacet){var $6=$0.outerWidth(true)-(Coveo.CNL.Web.Scripts.DOMUtilities.getWindowSize().width-$0.offset().left);if($6>0){$5-=$6;}}if(Coveo.CNL.Web.Scripts.BrowserHelper.get_ieDocumentMode()<=7&&Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){if(!$5){$p2[0]=false;}else{$5-=8;}}if($5>0){$0.children().not('.'+'CesFacetLineText').not('.'+'CesFacetLineSubCaption').not('.'+'CesFacetLineEllipsis').each(function($p1_0,$p1_1){
var $1_0=$($p1_1);$5-=$1_0.outerWidth(true);if($p2[0]){if(($p1_1.className==='CesFacetLineCheckBox'&&!$1_0.outerWidth(true))||($p1_1.className==='CesFacetLineIcon'&&!$1_0.innerWidth())){$p2[0]=false;}}});}}else{$5=40;}if($4>$5){$2.css('display','inline-block');$5-=$2.outerWidth(true);}if($4<=$5){$p0.title='';}else{$p0.title=$3;var $7=$1.get(0);if(this.m_Ellipsis===1){var $8=4;while($4>$5&&$1.text().length>0){var $9=$7.childNodes;if($9.length<=0){break;}$4=-1;var $A=$9[$9.length-1];if($A.nodeType===3){var $B=$A.nodeValue;if($B.length>1){if($8>=$B.length){$8=1;}$A.nodeValue=$B.substr(0,$B.length-$8).trim();$4=$1.outerWidth(true);if($8>1&&$4<=$5){$8=1;$A.nodeValue=$B.substr(0,$B.length-$8).trim();$4=-1;}}else{$7.removeChild($A);}}else{$7.removeChild($A);}if($4===-1){$4=$1.outerWidth(true);}}}else if(!this.m_Ellipsis){var $C=4;while($4>$5&&$1.text().length>0){var $D=$7.childNodes;if($D.length<=0){break;}$4=-1;var $E=$D[0];if($E.nodeType===3){var $F=$E.nodeValue;if($F.length>1){if($C>=$F.length){$C=1;}$E.nodeValue=$F.substr($C).trim();$4=$1.outerWidth(true);if($C>1&&$4<=$5){$C=1;$E.nodeValue=$F.substr($C).trim();$4=-1;}}else{$7.removeChild($E);}}else{$7.removeChild($E);}if($4===-1){$4=$1.outerWidth(true);}}}else{Coveo.CNL.Web.Scripts.CNLAssert.failWithMessage('Unsupported clipping mode.');}if($5<0){var $10=$0.children('.'+'CesFacetLineSideCaption');var $11={};$11['max-width']=($10.outerWidth()+$5)+'px';$11['overflow']='hidden';$11['text-overflow']='ellipsis';$10.css($11);}}},$1_68:function($p0,$p1){var $enum1=ss.IEnumerator.getEnumerator(this.$1_C);while($enum1.moveNext()){var $0=$enum1.current;var $1=$p0.className.indexOf($0);if($1!==-1){$p0.className=$p0.className.replaceAll($0,$p1);break;}}},$1_69:function(){if(this.m_IconElem!=null){this.m_IconElem.src=this.m_LoadingIconUrl;}},$1_6A:function(){if(this.m_IconElem!=null){this.m_IconElem.src=this.$1_4D;}},$1_6B:function($p0){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_27=(($p0!=null)?$p0.id:null);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_28=this.m_FacetElemID;},$1_6C:function(){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_28===this.m_FacetElemID){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_27!=null){var $0=document.getElementById(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_27);if($0!=null){$0.focus();}}Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_27=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_28=null;}},$1_6D:function(){var $dict1=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_25;for(var $key2 in $dict1){var $0={key:$key2,value:$dict1[$key2]};var $1=$0.value;if($1!==this){var $2=$1.$1_63().children[0];if($2.className.indexOf('CesDisabled')===-1){var $3=$2.className;$3=$3.replaceAll('CesFacet','CesFacet'+' '+'CesDisabled');$2.className=$3;}}if($1.m_SearchBox!=null){$1.m_SearchBox.disabled=true;}}},$1_6E:function(){var $dict1=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_25;for(var $key2 in $dict1){var $0={key:$key2,value:$dict1[$key2]};var $1=$0.value;if($1!==this){var $2=$1.$1_63();$2.children[0].className=$2.children[0].className.replaceAll('CesDisabled','').trim();}if($1.m_SearchBox!=null){$1.m_SearchBox.disabled=false;}}},$1_6F:function(){var $0=this.$1_63();Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2D=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition($0).top-Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount().height;},$1_70:function(){var $0=this.$1_63();if($0==null){return;}Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_39=this;var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getDocumentElemForScroll();var $2=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition($0).top-$1.scrollTop;var $3=Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2D-$2;if($3>$1.scrollTop){var $4=new Array(2);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_86(this,$4);var $5=$4[0].$1_63();if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37==null){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37=document.createElement('div');$5.parentNode.insertBefore(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37,$5);}Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37.style.height=($3-$1.scrollTop)+'px';}else{var $6=Coveo.CNL.Web.Scripts.DOMUtilities.getWindowSize().height;if(this.m_FacetZone!==1&&$1.scrollTop-$3+$6>$1.scrollHeight){var $7=$1.scrollTop-$3;var $8=$1.scrollHeight-$6;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_87($0.parentNode,$7-$8);}}$1.scrollTop-=$3;},$1_71:function(){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A!=null){return;}this.$1_6B(null);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=2;this.showMoreOrLessValues(1,ss.Delegate.create(this,this.$1_73));},$1_72:function(){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A!=null){return;}this.$1_6B(null);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=2;this.showMoreOrLessValues(-1,ss.Delegate.create(this,this.$1_73));},$1_73:function($p0){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=0;if(this.$1_48!=null){this.$1_4A.detachEvent('onclick',this.$1_48);this.$1_48=null;}if(this.$1_49!=null){this.$1_4B.detachEvent('onclick',this.$1_49);this.$1_49=null;}this.$1_4A=((String.isNullOrEmpty(this.m_MoreLinkID))?null:document.getElementById(this.m_MoreLinkID));if(this.$1_4A!=null){this.$1_48=ss.Delegate.create(this,this.$1_71);this.$1_4A.attachEvent('onclick',this.$1_48);this.$1_4A.setAttribute('tabIndex',0);}this.$1_4B=((String.isNullOrEmpty(this.m_LessLinkID))?null:document.getElementById(this.m_LessLinkID));if(this.$1_4B!=null){this.$1_49=ss.Delegate.create(this,this.$1_72);this.$1_4B.attachEvent('onclick',this.$1_49);this.$1_4B.setAttribute('tabIndex',0);}},$1_74:function(){if(window.event.keyCode===40){if(this.$1_51.length>0){var $0;if(this.$1_53==null){$0=0;}else{$0=Math.min(this.$1_53.$C+1,this.$1_51.length-1);}var $1=this.$1_51[$0];$1.$11();Coveo.CNL.Web.Scripts.CNLAssert.check(this.$1_53===$1);}window.event.cancelBubble=true;window.event.returnValue=false;}else if(window.event.keyCode===38){if(this.$1_51.length>0){var $2;if(this.$1_53==null){$2=0;}else{$2=Math.max(this.$1_53.$C-1,0);}var $3=this.$1_51[$2];$3.$11();Coveo.CNL.Web.Scripts.CNLAssert.check(this.$1_53===$3);}window.event.cancelBubble=true;window.event.returnValue=false;}else if(window.event.keyCode===13){if(this.$1_53!=null&&this.$1_53.$F()){this.$1_53.$13();}window.event.cancelBubble=true;window.event.returnValue=false;}else if(window.event.keyCode===46&&window.event.ctrlKey){if(this.$1_53!=null&&this.$1_53.$F()){this.$1_53.$16();}window.event.cancelBubble=true;window.event.returnValue=false;}},$1_75:function(){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A!=null||window.event.keyCode===40||window.event.keyCode===40||window.event.keyCode===13||(window.event.keyCode===46&&window.event.ctrlKey)){return;}if(this.$1_52!=null){this.$1_52.cancel();this.$1_52=null;}if(this.$1_50!=null){this.$1_50.cancel();this.$1_50=null;}var $0=ss.Delegate.create(this,function($p1_0){
if(this.m_SearchBox.value!==this.$1_4E){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_30=true;this.$1_4E=this.m_SearchBox.value;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2E=true;this.searchBoxTyping(this.m_SearchBox.value,ss.Delegate.create(this,this.$1_76));if(this.m_IconElem!=null){this.$1_50=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,function($p2_0){
this.m_IconElem.src=this.m_LoadingIconUrl;this.$1_50=null;}),null,250);}}});if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_89()==='onkeyup'){$0(null);}else{this.$1_52=new Coveo.CNL.Web.Scripts.Timeout($0,null,10);}},$1_76:function($p0){window.setTimeout(function(){
Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2E=false;},0);if(this.$1_50!=null){this.$1_50.cancel();this.$1_50=null;}if(this.m_IconElem!=null){this.m_IconElem.src=this.$1_4D;}this.$1_65();var $0=$p0;if($0.childNodes.length>0){var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getDocumentElemForScroll();Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_31=$1.scrollHeight;var $2=$1.scrollLeft;var $3=Coveo.CNL.Web.Scripts.DOMUtilities.getWindowSize();this.m_SearchPopup.style.width='';this.m_SearchPopup.style.display='block';Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2F=true;var $4=this.m_SearchBox.parentNode.parentNode.parentNode.parentNode.parentNode;var $5=Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds($4);var $6=(this.m_IsDropDownFacet)?'.'+'CesDropDownFacetContainer':'.'+'CesFacet';var $7=$($4).parents($6).first().width();this.m_SearchPopup.style.minWidth=$7+'px';var $8=$(this.m_SearchPopup).outerWidth();var $9=((Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_8A())?$7:Math.min($7*16/9,$3.width));var $A=false;if($8>=$9){$8=$9;$A=true;}else if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){$A=true;}if($A){this.m_SearchPopup.style.width=$8+'px';}var $B=$5.left;var $C=$B+$8-$2;if($C>$3.width){$B-=$C-$3.width;}Coveo.CNL.Web.Scripts.DOMUtilities.setElementPosition(this.m_SearchPopup,new Coveo.CNL.Web.Scripts.ElementPosition($B,$5.bottom-1));var $D=[true];for(var $E=0;$E<$0.childNodes.length;++$E){var $F=$0.childNodes[$E];var $10=($F.attributes.getNamedItem('Value')).value;var $11=($F.attributes.getNamedItem('ItemElemID')).value;var $12=($F.attributes.getNamedItem('RemoveElemID')).value;var $13=new Coveo.CES.Web.Search.Scripts.Controls._FacetScriptSearchItem(this,$E);$13.$9=$10;$13.$A=document.getElementById($11);$13.$B=document.getElementById($12);ArrayPrototype_add(this.$1_51, $13);$13.$D();this.$1_67($13.$A,((Coveo.CNL.Web.Scripts.BrowserHelper.get_ieDocumentMode()>=8)?0:$8),$D);}(this.$1_51[0]).$11();if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_30){var $14=Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount().height;var $15=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(this.m_SearchPopup).top+this.m_SearchPopup.clientHeight;if($15>$14+$3.height){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_32=$1.scrollTop;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_34=$15-($14+$3.height)+10;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_35=0;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_33=new Coveo.CNL.Web.Scripts.Timeout(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_80,null,10);}else{Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_88();}}}else{this.m_SearchPopup.style.display='none';Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2F=false;}},$1_77:function(){if(this.m_NonFocusText!=null){if(this.m_SearchBox.className.indexOf(' '+'CesFacetSearchBoxInputNonFocus')!==-1){this.m_SearchBox.value='';this.m_SearchBox.className=this.m_SearchBox.className.replaceAll(' '+'CesFacetSearchBoxInputNonFocus','');}else if(!!this.m_SearchBox.value){this.$1_4E='';this.$1_75();Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_30=false;}this.m_ClearSearchLink.style.visibility='visible';}Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2B=this;},$1_78:function(){if(this.m_NonFocusText!=null){if(!this.m_SearchBox.value){this.m_SearchBox.className+=' '+'CesFacetSearchBoxInputNonFocus';this.m_SearchBox.value=this.m_NonFocusText;this.m_ClearSearchLink.style.visibility='hidden';}}this.$1_4F=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,function($p1_0){
this.m_SearchPopup.style.display='none';Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2F=false;this.$1_65();}),null,250);},$1_79:function(){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A!=null){return;}this.$1_6B(null);this.m_CollExpElem.focus();this.m_SearchBox.value='';this.$1_75();this.$1_78();this.m_ClearSearchLink.style.visibility='hidden';},$1_7A:function(){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A!=null){return;}this.$1_6B(this.m_CollExpElem);this.expandCollapse();window.event.cancelBubble=true;},$1_7B:function(){this.hideDropDown();},$1_7C:function(){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A!=null){return;}this.$1_6B(null);this.$1_6F();this.$1_69();Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=2;this.switchSelectionMode(ss.Delegate.create(this,this.$1_7D));window.event.cancelBubble=true;window.event.returnValue=false;},$1_7D:function($p0){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=0;this.$1_6A();this.$1_70();},$1_7E:function(){if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A!=null&&Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A!==this){return;}if(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A!=null){Coveo.CNL.Web.Scripts.CNLAssert.check(Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A===this);Object.clearKeys(this.$1_3F);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A=null;}this.$1_6B(null);Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=1;this.clearFacet(ss.Delegate.create(this,this.$1_7F));window.event.cancelBubble=true;window.event.returnValue=false;},$1_7F:function($p0){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=0;var $dict1=this.$1_3E;for(var $key2 in $dict1){var $0={key:$key2,value:$dict1[$key2]};var $1=$0.value;$1.$D=null;}Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A=null;}}
Coveo.CES.Web.Search.Scripts.Controls.FacetScriptFeedback=function(p_FacetElemID){Coveo.CES.Web.Search.Scripts.Controls.FacetScriptFeedback.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_FacetElemID);this.$2_0=p_FacetElemID;this.m_InitialDelay=0;}
Coveo.CES.Web.Search.Scripts.Controls.FacetScriptFeedback.prototype={$2_0:null,beginFeedback:function(){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.beginFeedback(this.$2_0);},endFeedback:function(){Coveo.CES.Web.Search.Scripts.Controls.FacetScript.endFeedback(this.$2_0);}}
Coveo.CES.Web.Search.Scripts.Controls.VerticalMasterAndDetailScript=function(){Coveo.CES.Web.Search.Scripts.Controls.VerticalMasterAndDetailScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.VerticalMasterAndDetailScript.prototype={$1_1:null,$1_2:null,$1_3:0,$1_4:0,m_Root:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Root);this.$1_2=ss.Delegate.create(this,this.$1_7);window.attachEvent('onresize',this.$1_2);this.$1_1=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_6),null,500);this.$1_5();},tearDown:function(){window.detachEvent('onresize',this.$1_2);this.$1_2=null;this.$1_1.cancel();},$1_5:function(){var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(this.m_Root).top;var $1=document.documentElement.clientHeight;if($0!==this.$1_3||$1!==this.$1_4){var $2=Math.max($1-$0,0);this.m_Root.style.height=$2+'px';this.$1_3=$0;this.$1_4=$1;}},$1_6:function($p0){this.$1_5();this.$1_1=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_6),null,500);},$1_7:function(){this.$1_5();this.$1_1.cancel();this.$1_1=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_6),null,500);}}
Coveo.CES.Web.Search.Scripts.Controls.BaseChartScript=function(){Coveo.CES.Web.Search.Scripts.Controls.BaseChartScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.BaseChartScript.prototype={$1_1:null,$1_2:null,$1_3:null,$1_4:null,$1_5:null,$1_6:true,$1_7:true,$1_8:0,$1_9:0,$1_A:0,$1_B:0,m_Image:null,m_Loading:null,m_CookieUrlPrefix:null,m_ImageMapIdSuffix:null,m_BaseImageUri:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Image);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Loading);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_CookieUrlPrefix);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_ImageMapIdSuffix);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_BaseImageUri);this.$1_1=ss.Delegate.create(this,this.$1_11);this.m_Image.attachEvent('onload',this.$1_1);this.$1_3=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_E),null,0);},tearDown:function(){this.m_Image.detachEvent('onload',this.$1_1);this.$1_1=null;if(this.$1_3!=null){this.$1_3.cancel();}if(this.$1_4!=null){this.$1_4.cancel();}if(this.$1_5!=null){this.$1_5.cancel();}},$1_C:function(){if(this.$1_2.readyState===4){Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Response has been received.');if(this.$1_2.status===200){this.$1_D(this.$1_2.responseText);}this.$1_2=null;}},$1_D:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);var $0=document.createElement('span');this.m_Image.parentNode.appendChild($0);$0.style.display='none';$0.innerHTML=$p0;eval("setTimeout(\"var elem = document.getElementById('"+this.m_Image.id+"'); if (elem) elem.useMap='#"+this.m_Image.id+this.m_ImageMapIdSuffix+"';\", 0);");},$1_E:function($p0){this.$1_3=null;this.$1_10(null);Coveo.CNL.Web.Scripts.CNLAssert.check(!!this.$1_A);Coveo.CNL.Web.Scripts.CNLAssert.check(!!this.$1_B);this.$1_8=this.$1_A;this.$1_9=this.$1_B;this.$1_4=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_F),null,500);},$1_F:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.check(!!this.$1_8);Coveo.CNL.Web.Scripts.CNLAssert.check(!!this.$1_9);var $0=$(this.m_Image);if(!!this.m_Image.offsetWidth&&!!this.m_Image.offsetHeight){var $1=$0.outerWidth();var $2=$0.outerHeight();if($1!==this.$1_8||$2!==this.$1_9){this.$1_8=$1;this.$1_9=$2;if(this.$1_5!=null){this.$1_5.cancel();}this.$1_5=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_10),null,1000);}}this.$1_4=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_F),null,500);},$1_10:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_BaseImageUri);var $0=$(this.m_Image);if(!!this.m_Image.offsetWidth&&!!this.m_Image.offsetHeight){var $1=$0.outerWidth();var $2=$0.outerHeight();if($1!==this.$1_A||$2!==this.$1_B){var $3=this.m_BaseImageUri;$3+='&width='+$1;$3+='&height='+$2;this.m_Image.src=$3;this.$1_A=$1;this.$1_B=$2;if(this.$1_6){this.m_Image.style.display='none';this.m_Image.style.visibility='visible';this.m_Loading.style.display='';this.$1_6=false;}}}else{this.$1_A=-1;this.$1_B=-1;}},$1_11:function(){if(this.$1_7){this.m_Loading.style.display='none';this.m_Image.style.display='none';var $1=$(this.m_Image);$1.fadeIn('fast');this.$1_7=false;}var $0=Coveo.CNL.Web.Scripts.CookieUtilities.getCookie(this.m_Image.id);if($0!=null){var $2=this.m_CookieUrlPrefix.length;if($0.length>$2&&$0.substr(0,$2)===this.m_CookieUrlPrefix){var $3=$0.substr($2,$0.length-$2);this.$1_2=Coveo.CNL.Web.Scripts.Utilities.createGetXmlHttpRequest($3);this.$1_2.onreadystatechange=ss.Delegate.create(this,this.$1_C);this.$1_2.send();}else{this.$1_D($0);}Coveo.CNL.Web.Scripts.CookieUtilities.setCookie(this.m_Image.id,'',-1);}}}
Coveo.CES.Web.Search.Scripts.Controls.MasterAndDetailScript=function(){Coveo.CES.Web.Search.Scripts.Controls.MasterAndDetailScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.MasterAndDetailScript.prototype={$1_3:null,$1_4:null,$1_5:0,$1_6:0,$1_7:0,$1_8:null,$1_9:null,$1_A:0,$1_B:0,$1_C:null,$1_D:null,m_Root:null,m_Master:null,m_Detail:null,m_ExpandedDetailHeader:null,m_ExpandedDetailBody:null,m_CollapsedDetail:null,m_DetailExpanded:false,m_OldDetailHeightWhenExpanded:0,m_DetailHeightWhenExpanded:0,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Root);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Master);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Detail);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_ExpandedDetailHeader);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_ExpandedDetailBody);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_CollapsedDetail);Coveo.CNL.Web.Scripts.CNLAssert.notNull(!!this.m_DetailHeightWhenExpanded);this.$1_4=ss.Delegate.create(this,this.$1_11);window.attachEvent('onresize',this.$1_4);this.$1_C=ss.Delegate.create(this,this.$1_12);this.m_ExpandedDetailHeader.attachEvent('onmousedown',this.$1_C);this.$1_3=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_F),null,500);this.$1_E(true);this.m_ExpandedDetailHeader.style.display=(this.m_DetailExpanded)?'block':'none';this.m_ExpandedDetailBody.style.display=(this.m_DetailExpanded)?'block':'none';this.m_CollapsedDetail.style.display=(this.m_DetailExpanded)?'none':'block';this.$1_7=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_CollapsedDetail).height;},tearDown:function(){window.detachEvent('onresize',this.$1_4);this.$1_4=null;this.m_ExpandedDetailHeader.detachEvent('onmousedown',this.$1_C);this.$1_C=null;if(this.$1_D!=null){this.$1_D.dispose();}this.$1_3.cancel();if(this.$1_8!=null){this.$1_8.cancel();}},expandDetailSection:function(){Coveo.CNL.Web.Scripts.CNLAssert.check(!this.m_DetailExpanded);this.m_DetailExpanded=true;this.m_ExpandedDetailHeader.style.display='block';this.m_ExpandedDetailBody.style.display='block';this.m_CollapsedDetail.style.display='none';this.$1_A=this.$1_7;this.$1_B=this.m_DetailHeightWhenExpanded;this.$1_8=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_10),null,10);this.$1_9=new Coveo.CNL.Web.Scripts.Ajax.PercentTimer(150,Coveo.CNL.Web.Scripts.Ajax.EasingFunction.slowFastSlow);this.$1_9.ensureStarted();},collapseDetailSection:function(){Coveo.CNL.Web.Scripts.CNLAssert.check(this.m_DetailExpanded);if(this.$1_D!=null){this.$1_D.dispose();this.$1_D=null;}this.m_DetailExpanded=false;this.m_ExpandedDetailHeader.style.display='none';this.m_ExpandedDetailBody.style.display='none';this.m_CollapsedDetail.style.display='block';this.$1_A=this.m_DetailHeightWhenExpanded;this.$1_B=this.$1_7;this.m_Detail.style.height=Math.max(this.$1_A,0)+'px';this.$1_8=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_10),null,10);this.$1_9=new Coveo.CNL.Web.Scripts.Ajax.PercentTimer(150,Coveo.CNL.Web.Scripts.Ajax.EasingFunction.slowFastSlow);this.$1_9.ensureStarted();},updateExpandedDetailHeight:function(p_Height){},$1_E:function($p0){var $0=document.documentElement.clientHeight;var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(this.m_Root).top;if($p0||$0!==this.$1_6||$1!==this.$1_5){var $2=Math.max($0-$1,0);this.m_Root.style.height=$2+'px';if(this.m_DetailExpanded){var $3=Math.min(this.m_DetailHeightWhenExpanded,$2);Coveo.CNL.Web.Scripts.CNLAssert.check($3>=0);Coveo.CNL.Web.Scripts.CNLAssert.check($2>=$3);this.m_Master.style.height=($2-$3)+'px';this.m_Detail.style.height=$3+'px';var $4=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_ExpandedDetailHeader).height;this.m_ExpandedDetailBody.style.height=Math.max($3-$4,0)+'px';}else{this.m_Detail.style.height='';var $5=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_CollapsedDetail).height;this.m_Master.style.height=Math.max($2-$5,0)+'px';}this.$1_6=$0;this.$1_5=$1;}},$1_F:function($p0){if(this.$1_8==null){this.$1_E(false);this.$1_3=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_F),null,500);}},$1_10:function($p0){if(this.$1_9.isFinished()){this.$1_8=null;this.$1_9=null;this.$1_E(true);}else{var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_Root).height;var $1=(this.$1_A+(this.$1_B-this.$1_A)*this.$1_9.getPercentage());var $2=$0-$1;this.m_Master.style.height=Math.max($2,0)+'px';this.m_Detail.style.height=Math.max($1,0)+'px';this.$1_8=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_10),null,10);}},$1_11:function(){if(this.$1_8==null){this.$1_E(false);this.$1_3.cancel();this.$1_3=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_F),null,500);}},$1_12:function(){Coveo.CNL.Web.Scripts.CNLAssert.isNull(this.$1_D);this.m_OldDetailHeightWhenExpanded=this.m_DetailHeightWhenExpanded;this.$1_D=new Coveo.CNL.Web.Scripts.MouseCapture(ss.Delegate.create(this,this.$1_13),null,ss.Delegate.create(this,this.$1_14));window.event.returnValue=false;window.event.cancelBubble=true;},$1_13:function(){var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_ExpandedDetailHeader).height;this.m_DetailHeightWhenExpanded+=this.$1_D.get_offsetY();this.m_DetailHeightWhenExpanded=Math.max(this.m_DetailHeightWhenExpanded,$0);var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_Root).height;this.m_DetailHeightWhenExpanded=Math.min(this.m_DetailHeightWhenExpanded,$1);this.$1_E(true);},$1_14:function(){this.$1_D.dispose();this.$1_D=null;if(this.m_OldDetailHeightWhenExpanded!==this.m_DetailHeightWhenExpanded){this.updateExpandedDetailHeight(this.m_DetailHeightWhenExpanded);}}}
Coveo.CES.Web.Search.Scripts.Controls.ContextualDropDownScript=function(){Coveo.CES.Web.Search.Scripts.Controls.ContextualDropDownScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.ContextualDropDownScript.prototype={m_HotSpot:null,m_DropDown:null,m_IFrame:null,$2_0:null,$2_1:false,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_HotSpot);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_DropDown);if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6()){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_IFrame);}Coveo.CES.Web.Search.Scripts.Controls.ContextualDropDownScript.callBaseMethod(this, 'initialize');this.addOnClickAttribute(this.m_HotSpot,ss.Delegate.create(this,this.$2_2),true);this.m_DropDown.attachEvent('onclick',ss.Delegate.create(this,this.$2_3));},tearDown:function(){this.m_HotSpot=null;this.m_DropDown=null;if(this.$2_0!=null){this.$2_0.dispose();this.$2_0=null;}Coveo.CES.Web.Search.Scripts.Controls.ContextualDropDownScript.callBaseMethod(this, 'tearDown');},$2_2:function(){if(!this.$2_1){this.m_DropDown.style.position='absolute';this.m_DropDown.style.zIndex=999;this.m_DropDown.style.display='block';Coveo.CNL.Web.Scripts.DOMUtilities.positionElement(this.m_DropDown,this.m_HotSpot,Coveo.CNL.Web.Scripts.PositionEnum.belowLeft);if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6()){this.m_IFrame.style.display='block';Coveo.CNL.Web.Scripts.DOMUtilities.setElementSize(this.m_IFrame,Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_DropDown));Coveo.CNL.Web.Scripts.DOMUtilities.positionElement(this.m_IFrame,this.m_HotSpot,Coveo.CNL.Web.Scripts.PositionEnum.belowLeft);}this.$2_1=true;Coveo.CNL.Web.Scripts.CNLAssert.isNull(this.$2_0);this.$2_0=new Coveo.CNL.Web.Scripts.OnClickElsewhereEvent([this.m_HotSpot,this.m_DropDown],ss.Delegate.create(this,this.$2_4),true);}else{this.$2_5();}},$2_3:function(){this.$2_5();},$2_4:function(){this.$2_5();},$2_5:function(){if(this.$2_1){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.$2_0);this.m_DropDown.style.display='none';if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6()){this.m_IFrame.style.display='none';}this.$2_0.dispose();this.$2_0=null;this.$2_1=false;}}}
Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript=function(){Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.getInstance=function(p_Id){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Id);var $0=Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.$1_0[p_Id];Coveo.CNL.Web.Scripts.CNLAssert.notNull($0);return $0;}
Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.tryOpeningOutlookUri=function(p_Uri,p_OnSuccess,p_OnFailure){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Uri);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_OnSuccess);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_OnFailure);Coveo.CNL.Web.Scripts.CNLAssert.fail();var $0=new ss.StringBuilder();$0.appendLine('<html>');$0.appendLine('<body onload="OpenItem()">');$0.appendLine('<script language="javascript">');$0.appendLine('initialized = false;');$0.appendLine('function OpenItem() {');$0.appendLine('  initialized = true;');$0.appendLine("  var uri = '"+p_Uri+"';");$0.appendLine("  var iframe = document.getElementById('f');");$0.appendLine('  iframe.src = uri;');$0.appendLine('}');$0.appendLine('function ItWorked() {');$0.appendLine('  window.close();');$0.appendLine('}');$0.appendLine('</script>');$0.appendLine('<iframe id="f" onload="if (initialized) { ItWorked(); }"></iframe>');$0.appendLine('</body>');$0.appendLine('</html>');var $1=window.open('about:blank','_blank','width=150,height=150,left=0,top=0,toolbar=no,status=no,menubar=no,location=no');var $2=$1.document.open('text/html');$2.write($0.toString());$2.close();Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.$1_1($1,p_OnSuccess,p_OnFailure,20);}
Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.$1_1=function($p0,$p1,$p2,$p3){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p1);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p2);if(!$p3){$p0.close();eval($p1);}else{if(Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.$1_2($p0)){eval($p1);}else{try{var $0=$p0.location.href;window.setTimeout(function(){
Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.$1_1($p0,$p1,$p2,$p3-1);},100);}catch($1){if(Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.$1_2($p0)){eval($p1);}else{$p0.close();eval($p2);}}}}}
Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.$1_2=function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);var $0;try{$0=$p0.closed;}catch($1){$0=true;}return $0;}
Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.prototype={m_Id:null,m_Prefetch:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_Id);Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.$1_0[this.m_Id]=this;},tearDown:function(){delete Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.$1_0[this.m_Id];},startPrefetch:function(p_Target,p_Argument){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Target);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Argument);this.invalidatePendingPrefetch();this.m_Prefetch=Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current().DPB(p_Target,p_Argument,true,false);},invalidatePendingPrefetch:function(){this.m_Prefetch=null;},usePrefetchResultsIfPossible:function(){var $0;if(this.m_Prefetch!=null){this.m_Prefetch.applyPreemptivePostback();$0=true;}else{$0=false;}return $0;}}
Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript=function(){Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.startLoadingFeedback=function(p_ButtonElemID){if(Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_1!=null){Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_1.src=Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_2;Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_1.style.visibility=Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_3;Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_1=null;}var $dict1=Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_0;for(var $key2 in $dict1){var $0={key:$key2,value:$dict1[$key2]};var $1=$0.value;if($1.m_ButtonElemID===p_ButtonElemID){var $2=document.getElementById($1.m_IconElemID);Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_1=$2;if($2!=null){Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_2=Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_1.src;Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_3=Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_1.style.visibility;$2.src=$1.m_LoadingIconUrl;$2.style.visibility='visible';}break;}}}
Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.prototype={m_ButtonElemID:null,m_IconElemID:null,m_LoadingIconUrl:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_ButtonElemID);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_IconElemID);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_LoadingIconUrl);Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.callBaseMethod(this, 'initialize');Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_1=null;Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_0[this.m_ButtonElemID]=this;},tearDown:function(){Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.callBaseMethod(this, 'tearDown');delete Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_0[this.m_ButtonElemID];}}
Coveo.CES.Web.Search.Scripts.Controls.CloseModalBoxLinkScript=function(){Coveo.CES.Web.Search.Scripts.Controls.CloseModalBoxLinkScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.CloseModalBoxLinkScript.prototype={$1_0:null,initialize:function(){this.$1_0=ss.Delegate.create(this,this.$1_1);document.attachEvent('onkeydown',this.$1_0);},tearDown:function(){document.detachEvent('onkeydown',this.$1_0);},closeModalBox:function(){},$1_1:function(){if(window.event.keyCode===27){window.event.cancelBubble=true;window.event.returnValue=false;this.closeModalBox();}}}
Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelCloseLinkScript=function(){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelCloseLinkScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelCloseLinkScript.prototype={$1_0:null,m_ImageElem:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_ImageElem);this.$1_0=ss.Delegate.create(this,this.$1_1);this.m_ImageElem.attachEvent('onclick',this.$1_0);},tearDown:function(){this.m_ImageElem.detachEvent('onclick',this.$1_0);},$1_1:function(){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_18();}}
Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelToModalBoxLinkScript=function(){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelToModalBoxLinkScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelToModalBoxLinkScript.prototype={$1_0:null,m_ImageElem:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_ImageElem);this.$1_0=ss.Delegate.create(this,this.$1_1);this.m_ImageElem.attachEvent('onclick',this.$1_0);},tearDown:function(){this.m_ImageElem.detachEvent('onclick',this.$1_0);},$1_1:function(){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_19();}}
Coveo.CES.Web.Search.Scripts.Controls.DateParamsScript=function(){Coveo.CES.Web.Search.Scripts.Controls.DateParamsScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.DateParamsScript.prototype={m_AnytimeRadioButton:null,m_InTheLastRadioButton:null,m_BetweenRadioButton:null,m_MinimumDate:null,m_MaximumDate:null,m_ModifiedInTheLast:null,$1_0:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_AnytimeRadioButton);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_InTheLastRadioButton);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_BetweenRadioButton);this.$1_0=ss.Delegate.create(this,this.$1_1);this.m_AnytimeRadioButton.attachEvent('onclick',this.$1_0);this.m_InTheLastRadioButton.attachEvent('onclick',this.$1_0);this.m_BetweenRadioButton.attachEvent('onclick',this.$1_0);this.$1_1();},tearDown:function(){if(this.$1_0!=null){this.m_AnytimeRadioButton.detachEvent('onclick',this.$1_0);this.m_InTheLastRadioButton.detachEvent('onclick',this.$1_0);this.m_BetweenRadioButton.detachEvent('onclick',this.$1_0);}this.$1_0=null;},$1_1:function(){if((this.m_BetweenRadioButton).checked){Coveo.CNL.Web.Scripts.DOMUtilities.changeEnableStateOfChildren(this.m_MinimumDate,false,false);Coveo.CNL.Web.Scripts.DOMUtilities.changeEnableStateOfChildren(this.m_MaximumDate,false,false);Coveo.CNL.Web.Scripts.DOMUtilities.changeEnableStateOfChildren(this.m_ModifiedInTheLast,true,true);}else if((this.m_AnytimeRadioButton).checked){Coveo.CNL.Web.Scripts.DOMUtilities.changeEnableStateOfChildren(this.m_MinimumDate,true,true);Coveo.CNL.Web.Scripts.DOMUtilities.changeEnableStateOfChildren(this.m_MaximumDate,true,true);Coveo.CNL.Web.Scripts.DOMUtilities.changeEnableStateOfChildren(this.m_ModifiedInTheLast,true,true);}else{Coveo.CNL.Web.Scripts.CNLAssert.check((this.m_InTheLastRadioButton).checked);Coveo.CNL.Web.Scripts.DOMUtilities.changeEnableStateOfChildren(this.m_MinimumDate,true,true);Coveo.CNL.Web.Scripts.DOMUtilities.changeEnableStateOfChildren(this.m_MaximumDate,true,true);Coveo.CNL.Web.Scripts.DOMUtilities.changeEnableStateOfChildren(this.m_ModifiedInTheLast,false,false);}}}
Coveo.CES.Web.Search.Scripts.Controls.NoticesScript=function(){Coveo.CES.Web.Search.Scripts.Controls.NoticesScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.NoticesScript.prototype={$1_0:null,$1_1:null,m_Main:null,m_CloseButton:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Main);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_CloseButton);this.$1_0=$(this.m_Main);this.$1_1=$(this.m_CloseButton);this.$1_1.bind('click',ss.Delegate.create(this,function($p1_0){
this.$1_3();}));Coveo.CES.Web.Search.Scripts.Controls.NoticesScript.callBaseMethod(this, 'initialize');this.$1_2();},tearDown:function(){this.$1_1.unbind('click');Coveo.CES.Web.Search.Scripts.Controls.NoticesScript.callBaseMethod(this, 'tearDown');},$1_2:function(){var $0=$(this.m_Main);$(ss.Delegate.create(this,function(){
new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,function($p2_0){
this.$1_0.slideToggle('fast');}),null,500);}));},$1_3:function(){this.$1_0.slideToggle('fast');}}
Coveo.CES.Web.Search.Scripts.Controls.SharePointSearchBoxScript=function(){this.$1_0=[['/corev4.css'],['/corev4-','.css']];this.$1_1=[['/search.css'],['/search-','.css']];Coveo.CES.Web.Search.Scripts.Controls.SharePointSearchBoxScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.SharePointSearchBoxScript.$1_3=function($p0,$p1){var $0=false;for(var $1=0;$1<$p1.length;++$1){var $2=0;for(var $3=0;$2!==-1&&$3<$p1[$1].length;++$3){var $4=$p1[$1][$3];$2=$p0.indexOf($4,$2);if($2!==-1){$2+=$4.length;}}if($2!==-1){$0=true;break;}}return $0;}
Coveo.CES.Web.Search.Scripts.Controls.SharePointSearchBoxScript.prototype={m_OurSearchUrl:null,m_SearchRootStyle:null,initialize:function(){var $0='{0}'+this.m_OurSearchUrl+'?q="{1}"';var $1=new RegExp('(.+)Person\\.aspx.*','i');var $2=new RegExp('https?://.+/PeopleResults\\.aspx\\?.*k=(\\w+:)?"(.+)"','i');var $3=$1.exec(window.location.href);if($3!=null&&$3.length>0){var $5=document.documentElement.getElementsByTagName('a');for(var $6=0;$6<$5.length;$6++){var $7=$5[$6].attributes.getNamedItem('href');if($7!=null){var $8=$2.exec($7.value);if($8!=null&&$8.length>0){$7.value=String.format($0,$3[1],$8[2]);}}}}var $4=document.documentElement.getElementsByTagName('head');if($4.length>=1){var $9=$4[0];var $A=false;var $B=false;for(var $C=0;$C<$9.childNodes.length;++$C){var $D=$9.childNodes[$C].tagName;if($D!=null&&$D.toLowerCase()==='link'){var $E=$9.childNodes[$C].attributes.getNamedItem('rel');var $F=$9.childNodes[$C].attributes.getNamedItem('type');var $10=$9.childNodes[$C].attributes.getNamedItem('href');if($E!=null&&$F!=null&&$10!=null&&$E.value==='stylesheet'&&$F.value==='text/css'){var $11=$10.value.toLowerCase();if(Coveo.CES.Web.Search.Scripts.Controls.SharePointSearchBoxScript.$1_3($11,this.$1_0)){$A=true;}else if(Coveo.CES.Web.Search.Scripts.Controls.SharePointSearchBoxScript.$1_3($11,this.$1_1)){$B=true;}}}}if($A){if(!$B){var $13=document.createElement('link');$13.setAttribute('rel','stylesheet');$13.setAttribute('type','text/css');$13.setAttribute('href','/_layouts/1033/styles/themable/search.css');$9.appendChild($13);}var $12=document.documentElement.getElementsByTagName('div');for(var $14=0;$14<$12.length;++$14){var $15=$12[$14];if($15.id.indexOf('_PlaceHolderSearchArea_')!==-1&&$15.id.endsWith('_Popup')){$15.parentNode.removeChild($15);document.documentElement.getElementsByTagName('form')[0].appendChild($15);$15.className=this.m_SearchRootStyle;break;}}}}}}
Coveo.CES.Web.Search.Scripts.Controls.SearchBoxScript=function(){Coveo.CES.Web.Search.Scripts.Controls.SearchBoxScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.SearchBoxScript.prototype={m_Target:null,m_SearchAsYouType:false,m_TextBox:null,m_SearchButton:null,m_LinkButton:null,m_ScopeDropDownList:null,m_ShowDelay:0,m_HideDelay:0,m_Position:0,m_Popup:null,m_IFrame:null,m_NonFocusText:null,m_NonFocusCssClass:null,$1_0:null,$1_1:null,$1_2:null,$1_3:null,$1_4:null,$1_5:null,$1_6:null,$1_7:null,$1_8:null,$1_9:false,$1_A:false,$1_B:false,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_TextBox);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_SearchButton);this.$1_2=ss.Delegate.create(this,this.$1_18);this.m_TextBox.attachEvent('onkeydown',this.$1_2);this.$1_3=ss.Delegate.create(this,this.$1_19);this.m_SearchButton.attachEvent('onclick',this.$1_3);if(this.m_LinkButton!=null){this.$1_4=ss.Delegate.create(this,this.$1_1A);this.m_LinkButton.attachEvent('onclick',this.$1_4);}if(this.m_NonFocusText!=null&&(!this.m_TextBox.value||this.m_TextBox.value===this.m_NonFocusText)){this.$1_C(null);window.setTimeout(ss.Delegate.create(this,this.$1_C),10);}if(this.m_SearchAsYouType){if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6()){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_IFrame);}Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Popup);this.$1_5=ss.Delegate.create(this,this.$1_1B);this.m_Popup.attachEvent('onmouseover',this.$1_5);this.$1_6=ss.Delegate.create(this,this.$1_1C);this.m_Popup.attachEvent('onmouseout',this.$1_6);}this.$1_0=ss.Delegate.create(this,this.$1_16);this.m_TextBox.attachEvent('onfocus',this.$1_0);this.$1_1=ss.Delegate.create(this,this.$1_17);this.m_TextBox.attachEvent('onblur',this.$1_1);},$1_C:function($p0){if(this.m_TextBox.className.indexOf(this.m_NonFocusCssClass)===-1){this.m_TextBox.className+=' '+this.m_NonFocusCssClass;}this.m_TextBox.value=this.m_NonFocusText;},tearDown:function(){if(this.$1_0!=null){this.m_TextBox.detachEvent('onfocus',this.$1_0);}if(this.$1_1!=null){this.m_TextBox.detachEvent('onblur',this.$1_1);}if(this.$1_2!=null){this.m_TextBox.detachEvent('onkeydown',this.$1_2);}if(this.$1_3!=null){this.m_SearchButton.detachEvent('onclick',this.$1_3);}if(this.$1_4!=null){this.m_LinkButton.detachEvent('onclick',this.$1_4);}},serverUpdateResults:function(p_Query,p_Scope,p_Callback){},$1_D:function(){this.$1_E();this.$1_7=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_F),null,this.m_ShowDelay);},$1_E:function(){if(this.$1_7!=null){this.$1_7.cancel();this.$1_7=null;}},$1_F:function($p0){this.$1_7=null;if(!!this.m_TextBox.value){if(this.m_ScopeDropDownList!=null){this.serverUpdateResults(this.m_TextBox.value,this.m_ScopeDropDownList.value,ss.Delegate.create(this,this.$1_10));}else{var $0='';var $1='&'+'sc'.toLowerCase()+'=';var $2=this.m_Target.toLowerCase().indexOf($1);if($2!==-1){$2+=$1.length;var $3=this.m_Target.indexOf('&',$2);if($3===-1){$3=this.m_Target.length;}$0=this.m_Target.substring($2,$3);}this.serverUpdateResults(this.m_TextBox.value,$0,ss.Delegate.create(this,this.$1_10));}}else{this.$1_14(null);}},$1_10:function($p0){this.$1_11();},$1_11:function(){this.m_Popup.style.display='block';Coveo.CNL.Web.Scripts.DOMUtilities.positionElement(this.m_Popup,this.m_TextBox,this.m_Position);if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6()){this.m_IFrame.style.display='block';Coveo.CNL.Web.Scripts.DOMUtilities.setElementSize(this.m_IFrame,Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_Popup));Coveo.CNL.Web.Scripts.DOMUtilities.positionElement(this.m_IFrame,this.m_TextBox,this.m_Position);}},$1_12:function($p0){this.$1_13();this.$1_8=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_14),null,this.m_HideDelay);},$1_13:function(){if(this.$1_8!=null){this.$1_8.cancel();this.$1_8=null;}},$1_14:function($p0){this.$1_13();this.m_Popup.style.display='none';if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6()){this.m_IFrame.style.display='none';}},$1_15:function(){var $0=((this.m_NonFocusText==null||this.m_TextBox.className.indexOf(' '+this.m_NonFocusCssClass)===-1)?this.m_TextBox.value:'');var $1=this.m_Target;$1+='&'+'q'+'='+encodeURIComponent($0);if(this.m_ScopeDropDownList!=null&&!!this.m_ScopeDropDownList.value){$1+='&'+'sc'+'='+encodeURIComponent(this.m_ScopeDropDownList.value);}$1+='&'+'tz'+'='+encodeURIComponent(eval('jstz.determine_timezone().name()').toString());window.navigate($1);},$1_16:function(){if(this.m_SearchAsYouType){this.$1_13();this.$1_9=true;}if(this.m_NonFocusText!=null){if(this.m_TextBox.className.indexOf(' '+this.m_NonFocusCssClass)!==-1){this.m_TextBox.value='';this.m_TextBox.className=this.m_TextBox.className.replaceAll(' '+this.m_NonFocusCssClass,'');}}if(this.m_SearchAsYouType){if(!!this.m_TextBox.value){this.$1_D();}if(!this.$1_B){var $0=this.m_Target;$0+='&'+'wakeup'+'=1';var $1=Coveo.CNL.Web.Scripts.Utilities.createGetXmlHttpRequest($0);$1.send('');this.$1_B=true;}}},$1_17:function(){if(this.m_SearchAsYouType){if(!this.$1_A){this.$1_12(null);}this.$1_E();this.$1_9=false;}if(this.m_NonFocusText!=null){if(!this.m_TextBox.value){this.m_TextBox.className+=' '+this.m_NonFocusCssClass;this.m_TextBox.value=this.m_NonFocusText;}}},$1_18:function(){if(window.event.keyCode===13){this.$1_15();window.event.returnValue=false;}else if(this.m_SearchAsYouType){this.$1_D();}},$1_19:function(){this.$1_15();},$1_1A:function(){window.navigate(this.m_Target);},$1_1B:function(){this.$1_A=true;this.$1_13();},$1_1C:function(){if(!this.$1_9){this.$1_12(null);}this.$1_A=false;}}
Coveo.CES.Web.Search.Scripts.Controls.TableResultListFunnelPopupScript=function(){Coveo.CES.Web.Search.Scripts.Controls.TableResultListFunnelPopupScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.TableResultListFunnelPopupScript.prototype={$2_0:null,$2_1:null,m_Popup:null,m_Checkbox:null,m_ItemsTable:null,m_Count:0,m_SelectedCount:0,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Popup);Coveo.CES.Web.Search.Scripts.Controls.TableResultListFunnelPopupScript.callBaseMethod(this, 'initialize');this.$2_0=new Coveo.CNL.Web.Scripts.OnClickElsewhereEvent([this.m_Popup],ss.Delegate.create(this,this.$2_2),true);this.addOnClickAttribute(this.m_Checkbox,ss.Delegate.create(this,this.selectAllClicked),true);this.$2_1=ss.Delegate.create(this,this.elementClicked);for(var $0=0;$0<this.m_ItemsTable.rows.length;$0++){var $1=this.m_ItemsTable.rows[$0];var $2=$1.cells[0].getElementsByTagName('input')[0];$2.attachEvent('onclick',this.$2_1);}this.m_Checkbox.checked=this.m_SelectedCount>0;Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.m_Checkbox,(this.m_SelectedCount===this.m_Count)?1:0.5);},tearDown:function(){if(this.$2_0!=null){this.$2_0.dispose();this.$2_0=null;}for(var $0=0;$0<this.m_ItemsTable.rows.length;$0++){var $1=this.m_ItemsTable.rows[$0];var $2=$1.cells[0].getElementsByTagName('input')[0];$2.detachEvent('onclick',this.$2_1);}Coveo.CES.Web.Search.Scripts.Controls.TableResultListFunnelPopupScript.callBaseMethod(this, 'tearDown');},cancelChanges:function(p_Callback){},selectAllClicked:function(){for(var $0=0;$0<this.m_ItemsTable.rows.length;$0++){var $1=(this.m_ItemsTable.rows[$0]).cells[0].getElementsByTagName('input')[0];$1.checked=this.m_Checkbox.checked;}Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.m_Checkbox,1);},elementClicked:function(){if((window.event.srcElement).checked){this.m_SelectedCount++;}else{this.m_SelectedCount--;}this.m_Checkbox.checked=this.m_SelectedCount>0;Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.m_Checkbox,(this.m_SelectedCount===this.m_Count)?1:0.5);},$2_2:function(){this.cancelChanges(ss.Delegate.create(this,this.$2_3));},$2_3:function($p0){}}
Coveo.CES.Web.Search.Scripts.Controls.TableResultListScript=function(){Coveo.CES.Web.Search.Scripts.Controls.TableResultListScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.TableResultListScript.prototype={m_Table:null,m_MaxLines:0,m_FixedLines:0,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Table);Coveo.CES.Web.Search.Scripts.Controls.TableResultListScript.callBaseMethod(this, 'initialize');if(this.m_MaxLines>0||this.m_FixedLines>0){for(var $0=0;$0<this.m_Table.rows.length;$0++){var $1=this.m_Table.rows[$0];for(var $2=0;$2<$1.cells.length;$2++){var $3=$1.cells[$2];if(!!$3.tagName.compareTo('th',true)){this.$1_0($3);}}}}},$1_0:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);var $0=document.createElement('div');$0.style.right='0';$0.style.bottom='0';$0.innerHTML='&#133;';$0.style.fontSize=$p0.currentStyle.fontSize;$0.style.zIndex=Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex();$0.style.backgroundColor='inherit';$0.style.position='absolute';var $1=document.createElement('div');$1.style.width=$p0.currentStyle.width;$1.style.overflow='hidden';$1.style.textOverflow='';$1.style.position='relative';$1.style.backgroundColor='inherit';var $2=$p0.innerText;$0=$1.appendChild($0);for(var $7=0;$7<$p0.childNodes.length;$7++){$1.appendChild($p0.childNodes[$7]);}$p0.innerHTML='';$1=$p0.appendChild($1);var $3=$0.clientHeight;var $4=$3;if(this.m_FixedLines===-1){$4=this.m_MaxLines*$3;$1.style.maxHeight=$4.toString()+'px';}else{$4=this.m_FixedLines*$3;$1.style.height=$4.toString()+'px';}var $5=parseInt($p0.currentStyle.paddingTop.replaceAll('px',''));var $6=parseInt($p0.currentStyle.paddingBottom.replaceAll('px',''));if($1.scrollHeight<=$4+$5+$6){$1.removeChild($0);}else{$1.title=$2;}}}
Coveo.CES.Web.Search.Scripts.Controls.SilverlightMediaPlayer=function(p_XAPUrl){this.$2=p_XAPUrl;}
Coveo.CES.Web.Search.Scripts.Controls.SilverlightMediaPlayer.prototype={$1:null,$2:null,get_id:function(){return 'coveoMediaPlayer';},tearDown:function(){this.$2=null;this.$1=null;},play:function(){this.$3().Play();},pause:function(){this.$3().Pause();},stop:function(){this.$3().Stop();},getPosition:function(){return parseFloat(this.$3().GetPosition().toString());},setPosition:function(p_Position){this.$3().SetPosition(p_Position);},getState:function(){switch(this.$3().GetState().toString()){case 'Paused':return 3;case 'Playing':return 1;case 'Buffering':return 4;case 'Stopped':default:return 2;}},getStatus:function(){return this.$3().GetState().toString();},createPlayerElement:function(p_Uri,p_Height,p_Width){var $0=document.createElement('div');$0.setAttribute('id',this.get_id());$0.style.width=p_Width;$0.style.height=p_Height;var $1=document.createElement('object');$1.setAttribute('id','SilverlightControl');$1.setAttribute('data','data:application/x-silverlight-2,');$1.setAttribute('type','application/x-silverlight-2');$1.setAttribute('width','100%');$1.setAttribute('height','100%');var $2=document.createElement('param');$2.setAttribute('name','source');$2.setAttribute('value',this.$2);var $3=document.createElement('param');$3.setAttribute('name','minRuntimeVersion');$3.setAttribute('value','4.0.50401.0');var $4=document.createElement('param');$4.setAttribute('name','autoUpgrade');$4.setAttribute('value','true');var $5=document.createElement('param');$5.setAttribute('name','windowless');$5.setAttribute('value','true');var $6=document.createElement('param');$6.setAttribute('name','initParams');$6.setAttribute('value','MediaUri='+p_Uri);var $7=document.createElement('a');$7.setAttribute('href','http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0');$7.setAttribute('style','text-decoration:none');var $8=document.createElement('img');$8.src='http://go.microsoft.com/fwlink/?LinkId=161376';$8.alt='Get Microsoft Silverlight';$8.style.borderStyle='none';var $9=document.createElement('iframe');$9.setAttribute('id','_sl_historyFrame');$9.setAttribute('style','visibility:hidden;height:0px;width:0px;border:0px');$7.appendChild($8);$1.appendChild($7);$1.appendChild($2);$1.appendChild($3);$1.appendChild($4);$1.appendChild($5);$1.appendChild($6);$0.appendChild($1);$0.appendChild($9);return $0;},createPlayerString:function(p_Uri,p_Height,p_Width){var $0=new ss.StringBuilder();$0.append('<div id="'+this.get_id()+'" style="height:'+p_Height+'; width:'+p_Width+'">');$0.append('<object ID="'+'SilverlightControl'+'" data="data:application/x-silverlight-2" type="application/x-silverlight-2" width="100%" height="100%" >');$0.append('<param name="initParams" value="MediaUri='+p_Uri+'" >');$0.append('<param name="source" value="'+this.$2+'"/>');$0.append('<param name="windowless" value="true"/>');$0.append('<param name="autoUpgrade" value="true"/>');$0.append('<param name="minRuntimeVersion" value="4.0.50401.0"/>');$0.append('<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" >');$0.append('<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none" />');$0.append('</a>');$0.append('</object>');$0.append('<iframe id="_sl_historyFrame" style="visibility:hidden; height:0px; width:0px; border:0px" />');$0.append('</div>');return $0.toString();},isReady:function(){return !ss.isNullOrUndefined(this.$3());},$3:function(){try{if(ss.isNullOrUndefined(this.$1)){this.$1=document.getElementById('SilverlightControl');}return this.$1.Content.mediaPlayer;}catch($0){return null;}}}
Coveo.CES.Web.Search.Scripts.Controls.WindowsMediaPlayer=function(){}
Coveo.CES.Web.Search.Scripts.Controls.WindowsMediaPlayer.prototype={$1:null,get_id:function(){return 'coveoMediaPlayer';},tearDown:function(){if(!ss.isNullOrUndefined(this.$1)){this.$2().close();}this.$1=null;},play:function(){this.$3().play();},pause:function(){this.$3().pause();},stop:function(){this.$3().stop();},getPosition:function(){return parseFloat(this.$3().currentPosition.toString());},setPosition:function(p_Position){this.$3().currentPosition=p_Position;},getState:function(){switch(this.$2().playState.toString()){case '1':return 2;case '2':return 3;case '3':return 1;case '6':return 4;case '8':return 5;case '10':return 0;default:return 2;}},getStatus:function(){return this.$2().status.toString();},createPlayerElement:function(p_Uri,p_Height,p_Width){var $0=document.createElement('object');$0.setAttribute('classid','CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');$0.setAttribute('stretchToFit',true);$0.setAttribute('windowlessVideo',true);$0.setAttribute('uiMode','none');$0.setAttribute('URL',p_Uri);$0.style.width=p_Width;$0.style.height=p_Height;return $0;},createPlayerString:function(p_Uri,p_Height,p_Width){var $0=new ss.StringBuilder();$0.append('<object ID="'+this.get_id()+'" classid="'+'CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'+'" style="height:'+p_Height+'; width:'+p_Width+'" >');$0.append('<param name="URL" value="'+p_Uri+'" >');$0.append('<param name="stretchToFit" value="true"/>');$0.append('<param name="windowlessVideo" value="true"/>');$0.append('<param name="autostart" value="true"/>');$0.append('<param name="uiMode" value="none"/>');$0.append('</object>');return $0.toString();},isReady:function(){return !ss.isNullOrUndefined(this.$3());},$2:function(){try{if(ss.isNullOrUndefined(this.$1)){this.$1=document.getElementById(this.get_id());}return this.$1.object;}catch($0){return null;}},$3:function(){try{return this.$2().controls;}catch($0){return null;}}}
Coveo.CES.Web.Search.Scripts.Controls.CoveoCESWebSearchScripts$1=function(){}
Coveo.CES.Web.Search.Scripts.Controls.CoveoCESWebSearchScripts$1.prototype={$0:null,$1:null,$2:null,$3:null,$4:null}
Coveo.CES.Web.Search.Scripts.Controls.CoveoCESWebSearchScripts$0=function(){this.$1=Date.get_now();this.$2=Date.get_now();this.$5=3000000;this.$6=3000000;}
Coveo.CES.Web.Search.Scripts.Controls.CoveoCESWebSearchScripts$0.prototype={$3:0,$4:0}
Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript=function(){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_18=function(){if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5!=null){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5.$2_E.style.display='none';Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5=null;}if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C!=null){var $0=((Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode())?document.documentElement:document.body);$0.style.overflow=Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$0;document.documentElement.scrollLeft=Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$1.width;document.documentElement.scrollTop=Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$1.height;if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$2!=null){document.documentElement.style.width=Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$2;document.documentElement.style.height=Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$3;}Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C=null;}if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_A!=null){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_A.cancel();Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_A=null;}}
Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_19=function(){if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5!=null){var $0=Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_18();$0.$2_16();$0.showQuickViewModalBox();}}
Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_21=function(){if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5!=null&&Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C!=null){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$3=window.event.clientX;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$4=window.event.clientY;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$5=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5.$2_D).left-Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$1.width;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$6=((Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode()&&!Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6())?Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5.$2_E.offsetTop:0);if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$3<Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$5-20||Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$4<Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$6){if(Date.get_now().getTime()-Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$2.getTime()>500){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5.$2_16();}Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_18();}}else{Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$3=window.event.clientX;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$4=window.event.clientY;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$5=3000000;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$6=3000000;}}
Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_22=function(){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$1=Date.get_now();}
Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_23=function($p0){var $0=500;if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_9!=null){var $1=Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5.$2_15();if($1!==Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_9){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_9=null;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5.$2_E.style.display='block';Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5.$2_E.style.zIndex=Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex();Coveo.CNL.Web.Scripts.DOMUtilities.s_HeaderAndBodyTimerMillis=Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_8;if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C==null){var $2=Coveo.CNL.Web.Scripts.DOMUtilities.getWindowSize();var $3=((Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode())?document.documentElement:document.body);Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C=new Coveo.CES.Web.Search.Scripts.Controls.CoveoCESWebSearchScripts$1();Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$1=Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount();Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$0=$3.style.overflow;$3.style.overflow='hidden';$3.scrollLeft=Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$1.width;$3.scrollTop=Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$1.height;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$4=Coveo.CNL.Web.Scripts.DOMUtilities.getWindowSize();if(Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode()&&!Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6()){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$2=document.documentElement.style.width;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$3=document.documentElement.style.height;Coveo.CNL.Web.Scripts.DOMUtilities.setElementSize(document.documentElement,$2);}}}else{$0=10;}}if($0===500){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5.$2_17(false);}if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_A!=null){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_A=new Coveo.CNL.Web.Scripts.Timeout(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_23,null,$0);}}
Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.prototype={$2_D:null,$2_E:null,$2_F:null,$2_10:null,$2_11:null,$2_12:null,$2_13:null,$2_14:null,m_ResultElem:null,m_SidePopupElemID:null,m_UnhoveredCssClass:null,m_HoveredCssClass:null,m_ToModalBoxCssClass:null,m_PopupTopID:null,m_PopupMinWidth:0,m_PopupMinHeight:0,m_PopupHorzMargin:0,m_PopupVertMargin:0,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_ResultElem);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_SidePopupElemID);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_UnhoveredCssClass);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_HoveredCssClass);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_ToModalBoxCssClass);if(!Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_4.length){Coveo.CNL.Web.Scripts.CNLAssert.isNull(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_9);Coveo.CNL.Web.Scripts.CNLAssert.isNull(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5);Coveo.CNL.Web.Scripts.CNLAssert.isNull(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_6);Coveo.CNL.Web.Scripts.CNLAssert.isNull(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_7);Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_7=new Coveo.CNL.Web.Scripts.MouseCapture(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_21,Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_22,null);Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_7.set_cancelBubble(false);}ArrayPrototype_add(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_4, this);Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.callBaseMethod(this, 'initialize');this.$2_D=this.m_ResultElem.children[0].children[0].children[1];this.$2_E=this.$2_15().parentNode;this.$2_10=new Coveo.CNL.Web.Scripts.OnDwellEvent(this.m_ResultElem,100,ss.Delegate.create(this,this.$2_1B));this.$2_11=new Coveo.CNL.Web.Scripts.OnDwellEvent(this.$2_D,100,ss.Delegate.create(this,this.$2_1C));this.$2_12=new Coveo.CNL.Web.Scripts.OnLeaveManyEvent([this.m_ResultElem],100,ss.Delegate.create(this,this.$2_1E));this.addOnClickAttribute(this.$2_D,ss.Delegate.create(this,this.$2_1D),true);this.$2_F=ss.Delegate.create(this,this.$2_1A);this.m_ResultElem.attachEvent('onmousemove',this.$2_F);this.$2_13=ss.Delegate.create(this,this.$2_1F);this.$2_D.attachEvent('onfocus',this.$2_13);this.$2_14=ss.Delegate.create(this,this.$2_20);this.$2_D.attachEvent('onblur',this.$2_14);},tearDown:function(){if(this.$2_10!=null){this.$2_10.dispose();}if(this.$2_11!=null){this.$2_11.dispose();}if(this.$2_12!=null){this.$2_12.dispose();}if(this.$2_F!=null){this.m_ResultElem.detachEvent('onmousemove',this.$2_F);}if(this.$2_13!=null){this.$2_D.detachEvent('onfocus',this.$2_13);}if(this.$2_14!=null){this.$2_D.detachEvent('onblur',this.$2_14);}Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.callBaseMethod(this, 'tearDown');ArrayPrototype_remove(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_4, this);if(!Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_4.length){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_18();Coveo.CNL.Web.Scripts.DOMUtilities.s_HeaderAndBodyTimerMillis=Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_8;if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_7!=null){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_7.dispose();Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_7=null;}Coveo.CNL.Web.Scripts.CNLAssert.isNull(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5);Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_9=null;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_6=null;}},$2_15:function(){return document.getElementById(this.m_SidePopupElemID);},$2_16:function(){this.$2_D.className=this.m_UnhoveredCssClass;},$2_17:function($p0){var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount();var $1=0;if(!String.isNullOrEmpty(this.m_PopupTopID)){var $8=document.getElementById(this.m_PopupTopID);var $9=$0.height;$1=Math.max(Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition($8).top-$9,0);}var $2=Coveo.CNL.Web.Scripts.DOMUtilities.getWindowSize();var $3=$0.width;var $4=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(this.$2_D).left+Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.$2_D).width-$3-2;var $5=Math.max($2.width-$4-this.m_PopupHorzMargin,64);var $6=Math.max($2.height-$1-this.m_PopupVertMargin,64);var $7=($5>=this.m_PopupMinWidth&&$6>=this.m_PopupMinHeight);if(!$p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C);if($2.width!==Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$4.width||$2.height!==Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C.$4.height){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_18();}else if($7){Coveo.CNL.Web.Scripts.DOMUtilities.setFixedPosition(this.$2_E,$4,$1);Coveo.CNL.Web.Scripts.DOMUtilities.setElementSize(this.$2_E,new Coveo.CNL.Web.Scripts.ElementSize($5,$6));}}return $7;},showSidePanel:function(){},showQuickViewModalBox:function(){},$2_1A:function(){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$2=Date.get_now();},$2_1B:function(){if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_6!==this&&Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_6!=null){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_6.$2_16();}this.$2_D.className=((this.$2_17(true))?this.m_HoveredCssClass:this.m_ToModalBoxCssClass);Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_6=this;},$2_1C:function(){if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5!==this){if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_A!=null){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_A.cancel();Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_A=null;}if(this.$2_17(true)){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5=this;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_8=Coveo.CNL.Web.Scripts.DOMUtilities.s_HeaderAndBodyTimerMillis;Coveo.CNL.Web.Scripts.DOMUtilities.s_HeaderAndBodyTimerMillis=10;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_9=this.$2_15();Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_A=new Coveo.CNL.Web.Scripts.Timeout(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_23,null,10);this.showSidePanel();}}},$2_1D:function(){if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5==null){Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_18();this.$2_16();this.showQuickViewModalBox();}},$2_1E:function(){if(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_6===this&&Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_6!==Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5){this.$2_16();Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_6=null;}},$2_1F:function(){this.$2_1B();},$2_20:function(){if(Date.get_now().getTime()-Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$1.getTime()>500&&(Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$3<Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$5||Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$4<Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B.$6)&&(!Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()||!this.$2_E.contains(document.activeElement))){this.$2_16();}}}
Coveo.CES.Web.Search.Scripts.Controls.ResultImagePresenterScript=function(){Coveo.CES.Web.Search.Scripts.Controls.ResultImagePresenterScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.ResultImagePresenterScript.prototype={$1_0:null,$1_1:null,$1_2:false,m_Image:null,m_Popup:null,m_ImageInPopup:null,m_Detail:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Image);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Popup);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_ImageInPopup);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Detail);this.$1_0=new Coveo.CNL.Web.Scripts.OnDwellEvent(this.m_Image,200,ss.Delegate.create(this,this.$1_3));this.$1_1=new Coveo.CNL.Web.Scripts.OnLeaveManyEvent([this.m_Image,this.m_Popup],200,ss.Delegate.create(this,this.$1_4));},tearDown:function(){if(this.$1_0!=null){this.$1_0.dispose();}if(this.$1_1!=null){this.$1_1.dispose();}if(this.m_Popup!=null){this.m_Popup.parentNode.removeChild(this.m_Popup);}},$1_3:function(){if(!this.$1_2){this.m_Popup.style.visibility='hidden';this.m_Popup.style.display='block';var $0={};$0['of']=this.m_Image;$0['my']='center center';$0['at']='center center';$0['offset']='1 1';$0['collision']='fit fit';this.m_Detail.style.display='none';this.m_ImageInPopup.style.width='300px';$(this.m_Popup).position($0);this.m_Detail.style.display='block';var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(this.m_Popup);this.m_Detail.style.display='none';var $2=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_Image);this.m_ImageInPopup.style.width=$2.width+'px';$(this.m_Popup).position($0);this.m_Detail.style.display='block';var $3={};$3['left']=$1.left+'px';$3['top']=$1.top+'px';$(this.m_Popup).animate($3,100);var $4={};$4['width']='300px';$(this.m_ImageInPopup).animate($4,100);this.m_Popup.style.visibility='visible';this.$1_2=true;}},$1_4:function(){if(this.$1_2){this.m_Popup.style.display='none';this.$1_2=false;}}}
Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript=function(){Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_7=function($p0,$p1,$p2){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);Coveo.CNL.Web.Scripts.CNLAssert.notNull(Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0);for(var $0=0;$0<Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_2.length;++$0){var $1=Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_2[$0];if($1.m_Email.toLowerCase()===$p0.toLowerCase()){$1.$1_5($p1);}}}
Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.prototype={$1_3:null,m_Image:null,m_Email:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Image);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_Email);this.$1_3=this.m_Image.src;if(Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0==null&&!Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_1){try{Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_1=true;Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0=eval("new ActiveXObject('Name.NameCtrl.1')");if(Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0!=null&&Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0.PresenceEnabled){Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0.OnStatusChange=Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_7;}else{Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0=null;}}catch($0){Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0=null;}}if(Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0!=null){ArrayPrototype_add(Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_2, this);this.m_Image.attachEvent('onmouseover',ss.Delegate.create(this,this.$1_4));this.m_Image.attachEvent('onmouseout',ss.Delegate.create(this,this.$1_6));var $1=Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0.GetStatus(this.m_Email,'');this.$1_5($1);}},tearDown:function(){if(Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0!=null){Coveo.CNL.Web.Scripts.CNLAssert.check(ArrayPrototype_contains(Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_2, this));ArrayPrototype_remove(Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_2, this);Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0.HideOOUI();}this.m_Image=null;},$1_4:function(){Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0.HideOOUI();var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(this.m_Image);var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getVisibleRectangle();Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0.ShowOOUI(this.m_Email,0,$0.left-$1.left,$0.top-$1.top);},$1_5:function($p0){var $0;switch($p0){case 0:$0=this.$1_3.replaceAll('.unknown','.online');break;case 1:$0=this.$1_3.replaceAll('.unknown','.offline');break;case 2:$0=this.$1_3.replaceAll('.unknown','.away');break;case 3:$0=this.$1_3.replaceAll('.unknown','.busy');break;case 4:$0=this.$1_3.replaceAll('.unknown','.away');break;case 5:$0=this.$1_3.replaceAll('.unknown','.busy');break;case 6:$0=this.$1_3.replaceAll('.unknown','.away');break;case 7:$0=this.$1_3.replaceAll('.unknown','.busy');break;case 8:$0=this.$1_3.replaceAll('.unknown','.busy');break;case 9:$0=this.$1_3.replaceAll('.unknown','.dnd');break;case 15:$0=this.$1_3.replaceAll('.unknown','.busy');break;case 16:$0=this.$1_3.replaceAll('.unknown','.away');break;default:$0=this.$1_3;break;}this.m_Image.src=$0;this.m_Image.style.display='inline';},$1_6:function(){Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0.HideOOUI();}}
Coveo.CES.Web.Search.Scripts.Controls.HighlightedQueryScript=function(){Coveo.CES.Web.Search.Scripts.Controls.HighlightedQueryScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.HighlightedQueryScript.prototype={$1_0:null,$1_1:null,m_Term:null,m_Index:0,m_FrameName:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Term);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_FrameName);this.$1_0=ss.Delegate.create(this,this.$1_2);this.$1_1=ss.Delegate.create(this,this.$1_3);this.m_Term.attachEvent('onmousedown',this.$1_0);this.m_Term.attachEvent('onmousewheel',this.$1_1);},tearDown:function(){if(this.m_Term!=null){if(this.$1_0!=null){this.m_Term.detachEvent('onmousedown',this.$1_0);}if(this.$1_1!=null){this.m_Term.detachEvent('onmousewheel',this.$1_1);}this.m_Term=null;}},$1_2:function(){this.$1_5();window.event.returnValue=false;},$1_3:function(){if(this.$1_4()<0){this.$1_5();}else{this.$1_6();}window.event.cancelBubble=true;window.event.returnValue=false;},$1_4:function(){var $0=0;if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isFirefox()){$0=(eval('event.detail'))*-1;}else{$0=eval('window.event.wheelDelta');}return $0;},$1_5:function(){var $0=document.getElementsByName(this.m_FrameName)[0];if($0!=null){$0.HighlightNextOccurence(this.m_Index);}},$1_6:function(){var $0=document.getElementsByName(this.m_FrameName)[0];if($0!=null){$0.HighlightPreviousOccurence(this.m_Index);}}}
Coveo.CES.Web.Search.Scripts.Controls.PlayerScript=function(){Coveo.CES.Web.Search.Scripts.Controls.PlayerScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.PlayerScript.prototype={initialize:function(){}}
Coveo.CES.Web.Search.Scripts.Controls.ResultPlayerScript=function(){this.$1_7=-1;Coveo.CES.Web.Search.Scripts.Controls.ResultPlayerScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.ResultPlayerScript.prototype={$1_0:null,$1_1:0,$1_2:0,$1_3:null,$1_4:null,$1_5:null,$1_6:0,$1_8:null,$1_9:null,$1_A:null,$1_B:null,$1_C:null,m_UtteranceUri:null,m_UtteranceSelectedUri:null,m_Length:0,m_HeadStart:0,m_XAPUrl:null,m_Video:false,m_Player:null,m_TimeLine:null,m_Play:null,m_Pause:null,m_Slider:null,m_Filler:null,m_Status:null,m_UtterancesLink:null,m_TranscriptLink:null,m_Utterances:null,m_Transcript:null,initialize:function(){this.$1_0=[];this.$1_1=0;this.$1_2=0;this.$1_3=null;this.$1_6=0;this.$1_8=ss.Delegate.create(this,this.$1_10);this.$1_9=ss.Delegate.create(this,this.$1_11);this.$1_A=ss.Delegate.create(this,this.$1_F);this.$1_B=ss.Delegate.create(this,this.$1_E);this.$1_C=ss.Delegate.create(this,this.$1_D);this.m_Play.attachEvent('onclick',this.$1_8);this.m_Pause.attachEvent('onclick',this.$1_9);this.m_TimeLine.attachEvent('onclick',this.$1_A);if(!ss.isNullOrUndefined(this.m_TranscriptLink)&&!ss.isNullOrUndefined(this.m_UtterancesLink)){this.m_TranscriptLink.attachEvent('onclick',this.$1_B);this.m_UtterancesLink.attachEvent('onclick',this.$1_C);}if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){this.$1_5=new Coveo.CES.Web.Search.Scripts.Controls.WindowsMediaPlayer();}else{this.$1_5=new Coveo.CES.Web.Search.Scripts.Controls.SilverlightMediaPlayer(this.m_XAPUrl);}},tearDown:function(){if(this.$1_5.isReady()){this.$1_5.stop();}if(this.$1_7!==-1){window.clearTimeout(this.$1_7);}if(!ss.isNullOrUndefined(this.m_Play)){this.m_Play.detachEvent('onclick',this.$1_8);this.$1_8=null;}if(!ss.isNullOrUndefined(this.m_Pause)){this.m_Pause.detachEvent('onclick',this.$1_9);this.$1_9=null;}if(!ss.isNullOrUndefined(this.m_TimeLine)){this.m_TimeLine.detachEvent('onclick',this.$1_A);this.$1_A=null;}if(!ss.isNullOrUndefined(this.m_TranscriptLink)){this.m_TranscriptLink.detachEvent('onclick',this.$1_B);this.$1_B=null;}if(!ss.isNullOrUndefined(this.m_UtterancesLink)){this.m_UtterancesLink.detachEvent('onclick',this.$1_C);this.$1_C=null;}this.m_Filler=null;this.$1_3=null;this.$1_0=null;this.m_Pause=null;this.m_Play=null;this.m_Player=null;this.$1_4=null;this.m_Slider=null;this.m_Status=null;this.m_TimeLine=null;this.m_Transcript=null;this.m_TranscriptLink=null;this.m_Utterances=null;this.m_UtterancesLink=null;this.$1_5.tearDown();this.$1_5=null;},$1_D:function(){this.showUtterances();},$1_E:function(){this.showTranscript();},$1_F:function(){var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(this.m_TimeLine);var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_TimeLine);var $2=parseInt(window.event.clientX.toString());var $3=($2-$0.left)/$1.width;this.$1_14(this.m_Length*$3);},$1_10:function(){this.$1_5.play();this.$1_15(false);},$1_11:function(){this.$1_5.pause();this.$1_15(false);},showUtterances:function(){this.m_UtterancesLink.style.fontWeight='bold';this.m_UtterancesLink.style.backgroundColor='silver';this.m_TranscriptLink.style.fontWeight='normal';this.m_TranscriptLink.style.backgroundColor='whitesmoke';this.m_Utterances.style.display='block';this.m_Transcript.style.display='none';},showTranscript:function(){this.m_UtterancesLink.style.fontWeight='normal';this.m_UtterancesLink.style.backgroundColor='whitesmoke';this.m_TranscriptLink.style.fontWeight='bold';this.m_TranscriptLink.style.backgroundColor='silver';this.m_Utterances.style.display='none';this.m_Transcript.style.display='block';this.$1_15(false);},createMediaPlayer:function(p_Uri,p_Start){var $0=(this.m_Video)?this.m_Player.style.height:'0px';var $1=(this.m_Video)?this.m_Player.style.width:'0px';if(!Coveo.CNL.Web.Scripts.BrowserHelper.get_isFirefox()){this.m_Player.innerHTML=this.$1_5.createPlayerString(p_Uri,$0,$1);}else{this.m_Player.appendChild(this.$1_5.createPlayerElement(p_Uri,$0,$1));}this.startPlayer(p_Start);},startPlayer:function(p_Start){if(this.$1_5.isReady()){this.$1_14(this.$1_16(p_Start));this.$1_15(true);}else{if(this.$1_6<50){this.$1_6++;this.$1_7=window.setTimeout(ss.Delegate.create(this,function(){
this.startPlayer(p_Start);}),100);}else{alert('Unable to start the media player.');}}},addUtterance:function(p_Start,p_Percent,p_Html){var $0=document.createElement('div');$0.className='CesUnselectedMenuItem';$0.style.cursor='pointer';$0.innerHTML=p_Html;this.m_Utterances.appendChild($0);var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(this.m_TimeLine);var $2=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_TimeLine);var $3=document.createElement('img');$3.setAttribute('src',this.m_UtteranceUri);$3.style.position='absolute';$3.style.cursor='pointer';$3.style.zIndex=800;this.m_TimeLine.appendChild($3);Coveo.CNL.Web.Scripts.DOMUtilities.setElementPosition($3,new Coveo.CNL.Web.Scripts.ElementPosition($1.left+$2.width*p_Percent-6,$1.top+3));var $4=document.createElement('div');$4.style.position='absolute';$4.style.width='500px';$4.style.border='1px solid black';$4.style.backgroundColor='whitesmoke';$4.style.padding='5px';$4.style.zIndex=999;$4.innerHTML=p_Html;this.m_TimeLine.appendChild($4);Coveo.CNL.Web.Scripts.DOMUtilities.positionElement($4,$3,Coveo.CNL.Web.Scripts.PositionEnum.aboveLeft);$4.style.visibility='hidden';$0.attachEvent('onmouseover',ss.Delegate.create(this,function(){
$0.className='CesSelectedMenuItem';$3.setAttribute('src',this.m_UtteranceSelectedUri);}));$0.attachEvent('onmouseout',ss.Delegate.create(this,function(){
$0.className='CesUnselectedMenuItem';$3.setAttribute('src',this.m_UtteranceUri);}));$0.attachEvent('onclick',ss.Delegate.create(this,function(){
this.$1_14(this.$1_16(p_Start));}));$3.attachEvent('onmouseover',ss.Delegate.create(this,function(){
$0.style.backgroundColor='lightgrey';$3.setAttribute('src',this.m_UtteranceSelectedUri);$4.style.visibility='visible';}));$3.attachEvent('onmouseout',ss.Delegate.create(this,function(){
$0.style.backgroundColor='';$3.setAttribute('src',this.m_UtteranceUri);$4.style.visibility='hidden';}));},$1_12:function($p0){this.showTranscript();this.$1_1A();var $0=this.$1_0[$p0];if(ss.isUndefined($0)){$0=0;}var $1=$0+1;if(this.$1_18($p0,$1,1)==null){$1=1;}this.$1_19($p0,$1);this.$1_0[$p0]=$1;},$1_13:function($p0){this.showTranscript();this.$1_1A();var $0=this.$1_0[$p0];if(ss.isUndefined($0)){$0=1;}var $1=$0-1;if(this.$1_18($p0,$1,1)==null){$1=1;while(this.$1_18($p0,$1,1)!=null){++$1;}--$1;}this.$1_19($p0,$1);this.$1_0[$p0]=$1;},$1_14:function($p0){this.$1_5.setPosition($p0);this.$1_5.play();},$1_15:function($p0){if(!this.$1_5.isReady()){return;}var $0=false;var $1=this.m_Player.parentNode;while($1!=null){if($1.tagName==='BODY'){$0=true;break;}$1=$1.parentNode;}if(!$0){this.tearDown();return;}switch(this.$1_5.getState()){case 1:this.m_Play.style.display='none';this.m_Pause.style.display='inline';this.m_Status.innerHTML='';break;case 4:this.m_Play.style.display='none';this.m_Pause.style.display='inline';this.m_Status.innerHTML=this.$1_5.getStatus();break;default:this.m_Play.style.display='inline';this.m_Pause.style.display='none';this.m_Status.innerHTML='';break;}var $2=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_Slider);var $3=this.$1_5.getPosition();var $4=this.$1_17($3/this.m_Length);Coveo.CNL.Web.Scripts.DOMUtilities.setElementPosition(this.m_Slider,new Coveo.CNL.Web.Scripts.ElementPosition($4.left-$2.width/2,$4.top-8));var $5=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(this.m_TimeLine);var $6=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_TimeLine);Coveo.CNL.Web.Scripts.DOMUtilities.setElementPosition(this.m_Filler,new Coveo.CNL.Web.Scripts.ElementPosition($5.left-2,$5.top+3));this.m_Filler.style.width=($4.left-$5.left+2).toString()+'px';var $7;if(this.m_Transcript!=null){if(this.$1_3!=null){this.$1_3.style.color=this.$1_3.getAttribute('BackupColor').toString();this.$1_3.style.backgroundColor=this.$1_3.getAttribute('BackupBackground').toString();}var $8=0;var $9=this.$1_4.length;var $A=0;while($8<$9){$A=$8+Math.floor(($9-$8)/2);var $B=this.$1_4[$A];if($B<$3){$8=$A+1;}else{$9=$A;}}$A=Math.max($8-1,0);this.$1_3=document.getElementById(this.get_ownerId()+'_'+this.$1_4[$A]);if(this.$1_3!=null){this.$1_3.setAttribute('BackupColor',this.$1_3.style.color);this.$1_3.setAttribute('BackupBackground',this.$1_3.style.backgroundColor);this.$1_3.style.color='white';this.$1_3.style.backgroundColor='maroon';if(!$p0){this.$1_3.scrollIntoView();}}if((this.$1_4[$A])>$3){$7=((this.$1_4[$A])-$3)*1000;}else if($A+1<this.$1_4.length){$7=((this.$1_4[$A+1])-$3)*1000;}else{$7=1000;}if($7>500){$7=500;}}else{$7=500;}if($p0){this.$1_7=window.setTimeout(ss.Delegate.create(this,function(){
this.$1_15(true);}),parseInt($7));}},$1_16:function($p0){var $0=$p0-this.m_HeadStart;if($0<0){$0=0;}return $0;},$1_17:function($p0){var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(this.m_TimeLine);var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.m_TimeLine);$0.left+=($1.width*$p0-2);return $0;},$1_18:function($p0,$p1,$p2){return document.getElementById('CoveoHighlight:'+$p0+'.'+$p1+'.'+$p2);},$1_19:function($p0,$p1){var $0=1;var $1=this.$1_18($p0,$p1,$0);if($1!=null){var $2=parseFloat($1.parentNode.id.substring(this.get_ownerId().length+1,$1.parentNode.id.length));this.$1_14($2);$1.scrollIntoView();while($1!=null){$1.setAttribute('BackupColor',$1.style.color);$1.setAttribute('BackupBackground',$1.style.backgroundColor);$1.style.color='white';$1.style.backgroundColor='green';$1=this.$1_18($p0,$p1,++$0);}this.$1_1=$p0;this.$1_2=$p1;}},$1_1A:function(){if(!!this.$1_1){var $0=1;var $1=this.$1_18(this.$1_1,this.$1_2,$0);while($1!=null){$1.style.color=$1.getAttribute('BackupColor').toString();$1.style.backgroundColor=$1.getAttribute('BackupBackground').toString();$1=this.$1_18(this.$1_1,this.$1_2,++$0);}}}}
Coveo.CES.Web.Search.Scripts.Controls.ViewAsHtmlPanelScript=function(){Coveo.CES.Web.Search.Scripts.Controls.ViewAsHtmlPanelScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.ViewAsHtmlPanelScript.prototype={$1_0:null,$1_1:null,$1_2:null,$1_3:null,$1_4:null,$1_5:null,$1_6:null,$1_7:null,initialize:function(){this.$1_0=document.documentElement.style.margin;document.documentElement.style.margin='0px';this.$1_1=document.documentElement.style.padding;document.documentElement.style.padding='0px';this.$1_2=document.documentElement.style.height;document.documentElement.style.height='100%';this.$1_3=document.documentElement.style.overflow;document.documentElement.style.overflow='hidden';this.$1_4=document.body.style.margin;document.body.style.margin='0px';this.$1_5=document.body.style.padding;document.body.style.padding='0px';this.$1_6=document.body.style.height;document.body.style.height='100%';this.$1_7=document.body.style.overflow;document.body.style.overflow='hidden';},tearDown:function(){document.documentElement.style.margin=this.$1_0;document.documentElement.style.padding=this.$1_1;document.documentElement.style.height=this.$1_2;document.documentElement.style.overflow=this.$1_3;document.body.style.margin=this.$1_4;document.body.style.padding=this.$1_5;document.body.style.height=this.$1_6;document.body.style.overflow=this.$1_7;}}
Type.registerNamespace('Coveo.CES.Web.Search.Scripts.Controls.SharePoint');Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorLinkButtonScript=function(){Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorLinkButtonScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorLinkButtonScript.prototype={m_PopupPosition:0,m_LinkButtonElem:null,m_CoveoCssUrl:null,m_STRING_CurrentSiteCollection:null,m_STRING_CurrentSite:null,$1_0:null,$1_1:null,$1_2:null,$1_3:null,$1_4:null,$1_5:null,$1_6:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_LinkButtonElem);var $0=document.documentElement.getElementsByTagName('head');if($0.length>=1&&!String.isNullOrEmpty(this.m_CoveoCssUrl)){var $1=$0[0];var $2=false;for(var $3=0;$3<$1.childNodes.length;++$3){var $4=$1.childNodes[$3].tagName;if($4!=null&&$4.toLowerCase()==='link'){var $5=$1.childNodes[$3].attributes.getNamedItem('rel');var $6=$1.childNodes[$3].attributes.getNamedItem('type');var $7=$1.childNodes[$3].attributes.getNamedItem('href');if($5!=null&&$6!=null&&$7!=null&&$5.value==='stylesheet'&&$6.value==='text/css'&&$7.value===this.m_CoveoCssUrl){$2=true;break;}}}if(!$2){var $8=document.createElement('link');$8.setAttribute('rel','stylesheet');$8.setAttribute('type','text/css');$8.setAttribute('href',this.m_CoveoCssUrl);$1.appendChild($8);}}Coveo.CNL.Web.Scripts.CNLAssert.check(String.isNullOrEmpty(this.m_STRING_CurrentSiteCollection)===String.isNullOrEmpty(this.m_STRING_CurrentSite));if(!String.isNullOrEmpty(this.m_STRING_CurrentSiteCollection)){this.$1_0=document.createElement('div');this.$1_0.className='CesScopeEditorPopupMenu';this.$1_0.style.zIndex=Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex();this.$1_0.style.display='none';this.$1_1=document.createElement('div');this.$1_1.className='CesScopeEditorPopupMenuItem';this.$1_1.innerText=this.m_STRING_CurrentSiteCollection;this.$1_0.appendChild(this.$1_1);this.$1_2=document.createElement('div');this.$1_2.className='CesScopeEditorPopupMenuItem';this.$1_2.innerText=this.m_STRING_CurrentSite;this.$1_0.appendChild(this.$1_2);document.documentElement.getElementsByTagName('form')[0].appendChild(this.$1_0);this.$1_4=ss.Delegate.create(this,this.$1_9);this.$1_1.attachEvent('onclick',this.$1_4);this.$1_5=ss.Delegate.create(this,this.$1_A);this.$1_2.attachEvent('onclick',this.$1_5);this.$1_6=new Coveo.CNL.Web.Scripts.OnClickElsewhereEvent([this.$1_0],ss.Delegate.create(this,this.$1_B),true);}this.$1_3=ss.Delegate.create(this,this.$1_7);this.m_LinkButtonElem.attachEvent('onclick',this.$1_3);},tearDown:function(){if(this.$1_3!=null){this.m_LinkButtonElem.detachEvent('onclick',this.$1_3);}if(this.$1_4!=null){this.$1_1.detachEvent('onclick',this.$1_4);}if(this.$1_5!=null){this.$1_2.detachEvent('onclick',this.$1_5);}if(this.$1_6!=null){this.$1_6.dispose();this.$1_6=null;}if(this.$1_0!=null){document.documentElement.getElementsByTagName('form')[0].removeChild(this.$1_0);}},$1_7:function(){if(this.$1_0!=null){this.$1_0.style.display='block';Coveo.CNL.Web.Scripts.DOMUtilities.positionElement(this.$1_0,this.m_LinkButtonElem,this.m_PopupPosition);}else{this.showEditorModalBox(true);}window.event.cancelBubble=true;},$1_8:function(){this.$1_0.style.display='none';},$1_9:function(){this.showEditorModalBox(true);this.$1_8();},$1_A:function(){this.showEditorModalBox(false);this.$1_8();},$1_B:function(){this.$1_8();},showEditorModalBox:function(forDefaultConfig){}}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint.CoveoCESWebSearchScripts$2=function(){}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint.CoveoCESWebSearchScripts$2.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,$7:null}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorModalBoxScript=function(){this.$1_2=[];Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorModalBoxScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorModalBoxScript.$1_15=function($p0,$p1){var $0=($p0).get_name().toLowerCase();var $1=($p1).get_name().toLowerCase();return String.compare($0,$1,true);}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorModalBoxScript.prototype={m_SiteID:null,m_ScopeConfigDataStr:null,m_ScopeDictionaryDataStr:null,m_AddIconUrl:null,m_EditIconUrl:null,m_DeleteIconUrl:null,m_MainPanelElem:null,m_STRING_IntroMessage:null,m_STRING_NameLabel:null,m_STRING_DescriptionLabel:null,m_STRING_DefaultQuestionMark:null,m_STRING_UseSiteCollectionDefaultScopes:null,m_STRING_ShowScopeSelectorNextToSearchBox:null,m_STRING_ShowScopeFacetInSearchInterface:null,m_STRING_CreateScope:null,m_STRING_EditScope:null,m_STRING_DeleteScope:null,m_STRING_ApplyButton:null,m_STRING_CancelButton:null,m_STRING_DeleteScopeXQuestion:null,$1_0:null,$1_1:null,$1_3:null,$1_4:null,$1_5:null,$1_6:null,$1_7:null,$1_8:null,$1_9:null,$1_A:null,$1_B:null,$1_C:null,$1_D:null,$1_E:null,$1_F:null,$1_10:null,$1_11:null,$1_12:null,initialize:function(){Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorModalBoxScript.callBaseMethod(this, 'initialize');this.$1_0=new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigData(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.parse(this.m_ScopeConfigDataStr||''));var $0=document.createElement('div');$0.className='CesBottomInterSpacing';$0.innerText=this.m_STRING_IntroMessage;this.m_MainPanelElem.appendChild($0);var $1;if(!String.isNullOrEmpty(this.m_SiteID)){var $E=document.createElement('div');$E.className='CesBottomInterSpacing';var $F=document.createElement('label');this.$1_4=document.createElement('input');this.$1_4.type='checkbox';this.$1_4.checked=String.isNullOrEmpty(this.m_ScopeConfigDataStr);this.$1_5=ss.Delegate.create(this,this.$1_16);this.$1_4.attachEvent('onclick',this.$1_5);$F.appendChild(this.$1_4);$1=document.createElement('span');$1.innerText=this.m_STRING_UseSiteCollectionDefaultScopes;$F.appendChild($1);$E.appendChild($F);this.m_MainPanelElem.appendChild($E);}this.$1_6=document.createElement('div');var $2=document.createElement('table');$2.className='CesScopeListHeader';var $3=document.createElement('tr');var $4;$4=document.createElement('td');$4.className='CesScopeListCheckBoxColumn';$3.appendChild($4);$4=document.createElement('td');$4.className='CesScopeListNameColumn';$4.innerText=this.m_STRING_NameLabel;$3.appendChild($4);$4=document.createElement('td');$4.className='CesScopeListDescriptionColumn';$4.innerText=this.m_STRING_DescriptionLabel;$3.appendChild($4);$4=document.createElement('td');$4.className='CesScopeListIsDefaultColumn';$4.innerText=this.m_STRING_DefaultQuestionMark;$3.appendChild($4);$4=document.createElement('td');$4.className='CesIconCell';$3.appendChild($4);$4=document.createElement('td');$4.className='CesIconCell';$3.appendChild($4);$2.appendChild($3);this.$1_6.appendChild($2);this.m_MainPanelElem.appendChild(this.$1_6);this.$1_7=document.createElement('div');var $5=document.createElement('div');$5.className='CesScrollableList';this.$1_9=document.createElement('table');this.$1_9.className='CesLineTable';this.updateScopes(this.m_ScopeDictionaryDataStr);$5.appendChild(this.$1_9);this.$1_7.appendChild($5);var $6=document.createElement('div');$6.className='CesTopInterSpacingMinimum';this.$1_A=document.createElement('a');this.$1_A.className='CesIconButton';var $7=document.createElement('img');$7.src=this.m_AddIconUrl;this.$1_A.appendChild($7);$1=document.createElement('span');$1.innerText=this.m_STRING_CreateScope;this.$1_A.appendChild($1);this.$1_B=ss.Delegate.create(this,this.$1_17);this.$1_A.attachEvent('onclick',this.$1_B);$6.appendChild(this.$1_A);this.$1_7.appendChild($6);this.m_MainPanelElem.appendChild(this.$1_7);var $8;var $9=document.createElement('table');$9.style.width='100%';var $A=document.createElement('tr');this.$1_8=document.createElement('td');this.$1_8.className='CesTopInterSpacing';var $B=document.createElement('div');$8=document.createElement('label');this.$1_C=document.createElement('input');this.$1_C.type='checkbox';this.$1_C.checked=this.$1_0.get_showScopeSelectorDropDown();$8.appendChild(this.$1_C);$1=document.createElement('span');$1.innerText=this.m_STRING_ShowScopeSelectorNextToSearchBox;$8.appendChild($1);$B.appendChild($8);this.$1_8.appendChild($B);var $C=document.createElement('div');$8=document.createElement('label');this.$1_D=document.createElement('input');this.$1_D.type='checkbox';this.$1_D.checked=this.$1_0.get_showScopeSelectorFacet();$8.appendChild(this.$1_D);$1=document.createElement('span');$1.innerText=this.m_STRING_ShowScopeFacetInSearchInterface;$8.appendChild($1);$C.appendChild($8);this.$1_8.appendChild($C);$A.appendChild(this.$1_8);var $D=document.createElement('td');$D.className='CesButtonPanelCell CesTopInterSpacing';this.$1_E=document.createElement('input');this.$1_E.type='button';this.$1_E.className='CesButton';this.$1_E.value=this.m_STRING_ApplyButton;this.$1_F=ss.Delegate.create(this,this.$1_1B);this.$1_E.attachEvent('onclick',this.$1_F);$D.appendChild(this.$1_E);this.$1_10=document.createElement('input');this.$1_10.type='button';this.$1_10.className='CesButton';this.$1_10.value=this.m_STRING_CancelButton;this.$1_11=ss.Delegate.create(this,this.$1_1C);this.$1_10.attachEvent('onclick',this.$1_11);$D.appendChild(this.$1_10);$A.appendChild($D);$9.appendChild($A);this.m_MainPanelElem.appendChild($9);this.$1_12=ss.Delegate.create(this,this.$1_1D);this.m_MainPanelElem.attachEvent('onmouseup',this.$1_12);if(this.$1_4!=null){this.$1_16();}},tearDown:function(){if(this.$1_4!=null){this.$1_4.detachEvent('onclick',this.$1_5);this.$1_5=null;}this.m_MainPanelElem.detachEvent('onmouseup',this.$1_12);this.$1_12=null;this.$1_A.detachEvent('onclick',this.$1_B);this.$1_B=null;this.$1_E.detachEvent('onclick',this.$1_F);this.$1_F=null;this.$1_10.detachEvent('onclick',this.$1_11);this.$1_11=null;var $enum1=ss.IEnumerator.getEnumerator(this.$1_2);while($enum1.moveNext()){var $0=$enum1.current;$0.$2.detachEvent('onclick',$0.$3);$0.$3=null;$0.$4.detachEvent('onclick',$0.$5);$0.$5=null;$0.$6.detachEvent('onclick',$0.$7);$0.$7=null;}Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorModalBoxScript.callBaseMethod(this, 'tearDown');},updateScopes:function(scopeDictionaryDataStr){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.$1_9);this.m_ScopeDictionaryDataStr=scopeDictionaryDataStr;this.$1_1=new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDictionaryData(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.parse(this.m_ScopeDictionaryDataStr||''));while(this.$1_9.children.length>0){this.$1_9.removeChild(this.$1_9.firstChild);}ArrayPrototype_clear(this.$1_2);this.$1_3=null;var $0=[];var $enum1=ss.IEnumerator.getEnumerator(this.$1_1);while($enum1.moveNext()){var $1=$enum1.current;ArrayPrototype_add($0, $1);}Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeCollectionData.sort($0,Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorModalBoxScript.$1_15);var $enum2=ss.IEnumerator.getEnumerator($0);while($enum2.moveNext()){var $2=$enum2.current;var $3=new Coveo.CES.Web.Search.Scripts.Controls.SharePoint.CoveoCESWebSearchScripts$2();$3.$0=$2;var $4=document.createElement('tr');var $5;$5=document.createElement('td');$5.className='CesScopeListCheckBoxColumn';$3.$1=document.createElement('input');$3.$1.type='checkbox';$3.$1.checked=this.$1_0.get_selectedScopeIDs().containsKey($2.get_id());$5.appendChild($3.$1);$4.appendChild($5);$5=document.createElement('td');$5.className='CesScopeListNameColumn';$5.innerText=$2.get_name();$4.appendChild($5);$5=document.createElement('td');$5.className='CesScopeListDescriptionColumn';$5.innerText=$2.get_description();$4.appendChild($5);$5=document.createElement('td');$5.className='CesScopeListIsDefaultColumn';$3.$2=document.createElement('input');$3.$2.type='radio';if(!String.compare(this.$1_0.get_defaultScopeID(),$2.get_id(),true)){$3.$2.checked=true;this.$1_3=$3;}$3.$3=ss.Delegate.create(this,this.$1_18);$3.$2.attachEvent('onclick',$3.$3);$5.appendChild($3.$2);$4.appendChild($5);$5=document.createElement('td');$5.className='CesIconCell';$3.$4=document.createElement('img');$3.$4.className='CesIconButton';$3.$4.src=this.m_EditIconUrl;$3.$4.title=this.m_STRING_EditScope;$3.$5=ss.Delegate.create(this,this.$1_19);$3.$4.attachEvent('onclick',$3.$5);$5.appendChild($3.$4);$4.appendChild($5);$5=document.createElement('td');$5.className='CesIconCell';$3.$6=document.createElement('img');$3.$6.className='CesIconButton';$3.$6.src=this.m_DeleteIconUrl;$3.$6.title=this.m_STRING_DeleteScope;$3.$7=ss.Delegate.create(this,this.$1_1A);$3.$6.attachEvent('onclick',$3.$7);$5.appendChild($3.$6);$4.appendChild($5);this.$1_9.appendChild($4);ArrayPrototype_add(this.$1_2, $3);}},$1_13:function(){var $0=null;var $1=window.event.srcElement;var $2=0;while($2<this.$1_2.length&&$1!==($0=this.$1_2[$2]).$2&&$1!==$0.$6&&$1!==$0.$4){++$2;}return $0;},$1_14:function(){this.$1_0.get_selectedScopeIDs().clear();var $enum1=ss.IEnumerator.getEnumerator(this.$1_2);while($enum1.moveNext()){var $0=$enum1.current;if($0.$1.checked){this.$1_0.get_selectedScopeIDs().set_item($0.$0.get_id(),0);}}this.$1_0.set_defaultScopeID(((this.$1_3==null)?'':this.$1_3.$0.get_id()));},$1_16:function(){var $0=((this.$1_4.checked)?'hidden':'');this.$1_6.style.visibility=$0;this.$1_7.style.visibility=$0;this.$1_8.style.visibility=$0;},$1_17:function(){this.$1_14();this.editScope('');},$1_18:function(){var $0=this.$1_13();if($0===this.$1_3){this.$1_3=null;$0.$2.checked=false;}else{if(this.$1_3!=null){this.$1_3.$2.checked=false;}this.$1_3=$0;}},$1_19:function(){var $0=this.$1_13();this.$1_14();this.editScope($0.$0.get_id());},$1_1A:function(){var $0=this.$1_13();this.$1_14();if(confirm(this.m_STRING_DeleteScopeXQuestion.replaceAll('{0}',$0.$0.get_name()))){this.deleteScope($0.$0.get_id());}},$1_1B:function(){if(this.$1_4!=null&&this.$1_4.checked){this.applyButtonClick(this.m_SiteID,'');}else{this.$1_14();this.$1_0.set_showScopeSelectorDropDown(this.$1_C.checked);this.$1_0.set_showScopeSelectorFacet(this.$1_D.checked);this.applyButtonClick(this.m_SiteID,this.$1_0.getRawData().streamAsString());}},$1_1C:function(){this.cancelButtonClick();},$1_1D:function(){window.event.cancelBubble=true;window.event.returnValue=false;},editScope:function(scopeID){},deleteScope:function(scopeID){},applyButtonClick:function(siteID,scopeDataStr){},cancelButtonClick:function(){}}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint._ScopeEditorRuleScript=function(){}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint._ScopeEditorRuleScript.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,$7:null,$8:null,$9:null}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint._ScopeEditorFieldScript=function(){}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint._ScopeEditorFieldScript.prototype={$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,$7:0,$8:function(){this.$1=ss.Delegate.create(this,this.$C);this.$2=ss.Delegate.create(this,this.$D);this.$3=ss.Delegate.create(this,this.$E);this.$6.attachEvent('onmouseover',this.$1);this.$6.attachEvent('onmouseout',this.$2);this.$6.attachEvent('onclick',this.$3);},$9:function(){this.$6.detachEvent('onmouseover',this.$1);this.$6.detachEvent('onmouseout',this.$2);this.$6.detachEvent('onclick',this.$3);},$A:function(){return (this.$6.className.indexOf(' CesScopeEditorPopupMenuItem_Hovered')!==-1);},$B:function(){return this.$6.className.replaceAll(' CesScopeEditorPopupMenuItem_Hovered','');},$C:function(){if(this.$4.$1_15!=null){this.$4.$1_15.$D();this.$4.$1_15=null;}this.$6.className=this.$B()+' CesScopeEditorPopupMenuItem_Hovered';this.$4.$1_15=this;},$D:function(){this.$6.className=this.$B();},$E:function(){this.$4.$1_22(this);}}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeEditorModalBoxScript=function(){this.$1_6=[];this.$1_14=[];Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeEditorModalBoxScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeEditorModalBoxScript.prototype={m_ScopeDataStr:null,m_FieldDictionaryDataStr:null,m_AddIconUrl:null,m_DeleteIconUrl:null,m_MainPanelElem:null,m_STRING_NameLabel:null,m_STRING_DescriptionLabel:null,m_STRING_OptionalLabel:null,m_STRING_RulesLabel:null,m_STRING_AddRule:null,m_STRING_DeleteRule:null,m_STRING_ApplyButton:null,m_STRING_CancelButton:null,m_STRING_TypeFreeText:null,m_STRING_TypeWebAddress:null,m_STRING_TypeField:null,m_STRING_ActionRequire:null,m_STRING_ActionInclude:null,m_STRING_ActionExclude:null,$1_4:null,$1_5:null,$1_7:null,$1_8:null,$1_9:null,$1_A:null,$1_B:null,$1_C:null,$1_D:null,$1_E:null,$1_F:null,$1_10:null,$1_11:null,$1_12:null,$1_13:null,$1_15:null,initialize:function(){Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeEditorModalBoxScript.callBaseMethod(this, 'initialize');this.$1_4=new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeData(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.parse(this.m_ScopeDataStr||''));this.$1_5=new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldDictionaryData(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.parse(this.m_FieldDictionaryDataStr||''));var $0;var $1;var $2;this.$1_7=document.createElement('table');this.$1_7.style.width='100%';$0=document.createElement('tr');$1=document.createElement('td');$1.className='CesNameColumn';$1.innerText=this.m_STRING_NameLabel;$0.appendChild($1);$1=document.createElement('td');$1.className='CesDescriptionColumn';$2=document.createElement('span');$2.innerText=this.m_STRING_DescriptionLabel;$1.appendChild($2);$2=document.createElement('span');$2.className='CesOptionalCaption';$2.innerText=this.m_STRING_OptionalLabel;$1.appendChild($2);$0.appendChild($1);this.$1_7.appendChild($0);$0=document.createElement('tr');$1=document.createElement('td');$1.className='CesNameColumn';this.$1_8=document.createElement('input');this.$1_8.type='text';this.$1_8.value=this.$1_4.get_name();this.$1_8.style.paddingLeft='0px';this.$1_8.style.paddingRight='0px';$1.appendChild(this.$1_8);$0.appendChild($1);$1=document.createElement('td');$1.className='CesDescriptionColumn';this.$1_9=document.createElement('input');this.$1_9.type='text';this.$1_9.value=this.$1_4.get_description();this.$1_9.style.paddingLeft='0px';this.$1_9.style.paddingRight='0px';$1.appendChild(this.$1_9);$0.appendChild($1);this.$1_7.appendChild($0);$0=document.createElement('tr');$1=document.createElement('td');$1.colSpan=2;$1.className='CesTopInterSpacing';$1.innerText=this.m_STRING_RulesLabel;$0.appendChild($1);this.$1_7.appendChild($0);$0=document.createElement('tr');$1=document.createElement('td');$1.colSpan=2;var $3=document.createElement('div');$3.className='CesScrollableList';this.$1_A=document.createElement('table');this.$1_A.className='CesGridTable';var $enum1=ss.IEnumerator.getEnumerator(this.$1_4.get_rules());while($enum1.moveNext()){var $5=$enum1.current;this.$1_16($5,false);}$3.appendChild(this.$1_A);$1.appendChild($3);$0.appendChild($1);this.$1_7.appendChild($0);$0=document.createElement('tr');$1=document.createElement('td');$1.className='CesAddRuleCell';this.$1_B=document.createElement('a');this.$1_B.className='CesIconButton';var $4=document.createElement('img');$4.src=this.m_AddIconUrl;this.$1_B.appendChild($4);$2=document.createElement('span');$2.innerText=this.m_STRING_AddRule;this.$1_B.appendChild($2);this.$1_C=ss.Delegate.create(this,this.$1_1B);this.$1_B.attachEvent('onclick',this.$1_C);this.$1_D=ss.Delegate.create(this,this.$1_1C);this.$1_B.attachEvent('ondblclick',this.$1_D);$1.appendChild(this.$1_B);$0.appendChild($1);$1=document.createElement('td');$1.className='CesButtonPanelCell CesTopInterSpacing';this.$1_E=document.createElement('input');this.$1_E.type='button';this.$1_E.className='CesButton';this.$1_E.value=this.m_STRING_ApplyButton;this.$1_F=ss.Delegate.create(this,this.$1_23);this.$1_E.attachEvent('onclick',this.$1_F);$1.appendChild(this.$1_E);this.$1_10=document.createElement('input');this.$1_10.type='button';this.$1_10.className='CesButton';this.$1_10.value=this.m_STRING_CancelButton;this.$1_11=ss.Delegate.create(this,this.$1_24);this.$1_10.attachEvent('onclick',this.$1_11);$1.appendChild(this.$1_10);$0.appendChild($1);this.$1_7.appendChild($0);this.m_MainPanelElem.appendChild(this.$1_7);this.$1_12=ss.Delegate.create(this,this.$1_25);this.m_MainPanelElem.attachEvent('onmouseup',this.$1_12);this.$1_8.focus();},tearDown:function(){this.$1_1A();this.m_MainPanelElem.detachEvent('onmouseup',this.$1_12);this.$1_12=null;this.$1_B.detachEvent('onclick',this.$1_C);this.$1_C=null;this.$1_B.detachEvent('ondblclick',this.$1_D);this.$1_D=null;this.$1_E.detachEvent('onclick',this.$1_F);this.$1_F=null;this.$1_10.detachEvent('onclick',this.$1_11);this.$1_11=null;var $enum1=ss.IEnumerator.getEnumerator(this.$1_6);while($enum1.moveNext()){var $0=$enum1.current;$0.$0.detachEvent('onchange',$0.$1);$0.$1=null;$0.$7.detachEvent('onclick',$0.$8);$0.$8=null;$0.$7.detachEvent('ondblclick',$0.$9);$0.$9=null;if($0.$2!=null){$0.$2.detachEvent('onblur',$0.$3);$0.$2.detachEvent('onkeydown',$0.$4);}}Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeEditorModalBoxScript.callBaseMethod(this, 'tearDown');},$1_16:function($p0,$p1){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.$1_A);var $0=this.$1_7.lastChild;this.$1_7.removeChild($0);var $1=new Coveo.CES.Web.Search.Scripts.Controls.SharePoint._ScopeEditorRuleScript();var $2=document.createElement('tr');var $3;$3=document.createElement('td');$3.className='CesDropDownCell';$1.$0=document.createElement('select');var $4=[0,1,2];var $5=[this.m_STRING_TypeFreeText,this.m_STRING_TypeWebAddress,this.m_STRING_TypeField];for(var $8=0;$8<$4.length;++$8){var $9=document.createElement('option');$9.value=($4[$8]).toString();$9.innerText=$5[$8];$9.selected=($p0.get_ruleType()===$4[$8]);$1.$0.appendChild($9);}$1.$1=ss.Delegate.create(this,this.$1_1F);$1.$0.attachEvent('onchange',$1.$1);$3.appendChild($1.$0);$2.appendChild($3);$3=document.createElement('td');$3.className='CesDropDownCell';$1.$6=document.createElement('select');var $6=[0,1,2];var $7=[this.m_STRING_ActionRequire,this.m_STRING_ActionInclude,this.m_STRING_ActionExclude];for(var $A=0;$A<$6.length;++$A){var $B=document.createElement('option');$B.value=($6[$A]).toString();$B.innerText=$7[$A];$B.selected=($p0.get_ruleAction()===$6[$A]);$1.$6.appendChild($B);}$3.appendChild($1.$6);$2.appendChild($3);$3=document.createElement('td');$3.className='CesIconCell';$1.$7=document.createElement('img');$1.$7.className='CesIconButton';$1.$7.src=this.m_DeleteIconUrl;$1.$7.title=this.m_STRING_DeleteRule;$1.$8=ss.Delegate.create(this,this.$1_1D);$1.$7.attachEvent('onclick',$1.$8);$1.$9=ss.Delegate.create(this,this.$1_1E);$1.$7.attachEvent('ondblclick',$1.$9);$3.appendChild($1.$7);$2.appendChild($3);this.$1_17($p0,$1,$2);this.$1_A.appendChild($2);this.$1_7.appendChild($0);ArrayPrototype_add(this.$1_6, $1);if($p1){$1.$0.focus();}},$1_17:function($p0,$p1,$p2){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);Coveo.CNL.Web.Scripts.CNLAssert.notNull($p1);Coveo.CNL.Web.Scripts.CNLAssert.notNull($p2);var $0;var $1=1;if($p0.get_ruleType()!==2){Coveo.CNL.Web.Scripts.CNLAssert.check(!$p0.get_ruleType()||$p0.get_ruleType()===1);$0=document.createElement('td');$0.className='CesTextBoxCell CesContentTextBoxCell';$0.colSpan=3;$p1.$5=document.createElement('input');$p1.$5.type='text';$p1.$5.value=$p0.get_content();$0.appendChild($p1.$5);$p2.insertBefore($0,$p2.children[$1++]);}else{$0=document.createElement('td');$0.className='CesTextBoxCell CesFieldNameTextBoxCell';$p1.$2=document.createElement('input');$p1.$2.type='text';$p1.$2.value=$p0.get_fieldName();$p1.$4=ss.Delegate.create(this,this.$1_21);$p1.$2.attachEvent('onkeydown',$p1.$4);$p1.$3=ss.Delegate.create(this,this.$1_20);$p1.$2.attachEvent('onblur',$p1.$3);$0.appendChild($p1.$2);$p2.insertBefore($0,$p2.children[$1++]);$0=document.createElement('td');$0.style.paddingLeft='9px';$0.style.paddingRight='10px';$0.innerText='=';$p2.insertBefore($0,$p2.children[$1++]);$0=document.createElement('td');$0.className='CesTextBoxCell CesFieldValueTextBoxCell';$p1.$5=document.createElement('input');$p1.$5.type='text';$p1.$5.value=$p0.get_content();$0.appendChild($p1.$5);$p2.insertBefore($0,$p2.children[$1++]);}},$1_18:function(){var $0=window.event.srcElement;var $1=0;while($1<this.$1_6.length&&$0!==(this.$1_6[$1]).$2){++$1;}return $1;},$1_19:function($p0){window.setTimeout(ss.Delegate.create(this,function(){
this.$1_1A();var $1_0=this.$1_6[$p0];var $1_1=$1_0.$2.value.trim().toLowerCase();if(!String.isNullOrEmpty($1_1)){this.$1_13=document.createElement('div');this.$1_13.className='CesScopeEditorPopupMenu';this.$1_13.style.zIndex=Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex();this.$1_13.style.maxHeight='302px';this.$1_13.style.overflowY='scroll';var $1_2=0;var $enum1=ss.IEnumerator.getEnumerator(this.$1_5);while($enum1.moveNext()){var $1_3=$enum1.current;if($1_3.get_name().indexOf($1_1)!==-1){var $1_4=new Coveo.CES.Web.Search.Scripts.Controls.SharePoint._ScopeEditorFieldScript();$1_4.$4=this;$1_4.$5=$1_0;$1_4.$7=$1_2;$1_4.$6=document.createElement('div');$1_4.$6.className='CesScopeEditorPopupMenuItem';$1_4.$6.innerText=$1_3.get_name();this.$1_13.appendChild($1_4.$6);$1_4.$8();ArrayPrototype_add(this.$1_14, $1_4);++$1_2;}}document.documentElement.getElementsByTagName('form')[0].appendChild(this.$1_13);Coveo.CNL.Web.Scripts.DOMUtilities.positionElement(this.$1_13,$1_0.$2,Coveo.CNL.Web.Scripts.PositionEnum.belowLeft);}}),0);},$1_1A:function(){if(this.$1_13!=null){var $enum1=ss.IEnumerator.getEnumerator(this.$1_14);while($enum1.moveNext()){var $0=$enum1.current;$0.$9();}this.$1_15=null;ArrayPrototype_clear(this.$1_14);document.documentElement.getElementsByTagName('form')[0].removeChild(this.$1_13);this.$1_13=null;}},$1_1B:function(){var $0=new Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleData(null);this.$1_4.get_rules().add($0);this.$1_16($0,true);},$1_1C:function(){window.event.cancelBubble=true;window.event.returnValue=false;},$1_1D:function(){var $0=window.event.srcElement;var $1=0;while($1<this.$1_6.length&&$0!==(this.$1_6[$1]).$7){++$1;}this.$1_A.removeChild(this.$1_A.children[$1]);this.$1_4.get_rules().removeAt($1);ArrayPrototype_removeAt(this.$1_6, $1);},$1_1E:function(){window.event.cancelBubble=true;window.event.returnValue=false;},$1_1F:function(){var $0=window.event.srcElement;var $1=0;while($1<this.$1_6.length&&$0!==(this.$1_6[$1]).$0){++$1;}var $2=this.$1_4.get_rules().get_item($1);var $3=this.$1_6[$1];$2.set_content($3.$5.value);if($2.get_ruleType()===2){$2.set_fieldName($3.$2.value);}var $4=this.$1_A.children[$1];while($4.children.length>3){$4.removeChild($4.children[1]);}$2.set_ruleType(parseInt($0.value));this.$1_17($2,$3,$4);},$1_20:function(){if(!Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()||!this.$1_13.contains(document.activeElement)){window.setTimeout(ss.Delegate.create(this,function(){
this.$1_1A();}),200);}},$1_21:function(){var $0=(window.event.keyCode===9);if(this.$1_13!=null){if(window.event.keyCode===38){if(this.$1_14.length>0){var $1;if(this.$1_15==null){$1=0;}else{$1=Math.max(this.$1_15.$7-1,0);}var $2=this.$1_14[$1];$2.$C();Coveo.CNL.Web.Scripts.CNLAssert.check(this.$1_15===$2);if($2.$6.offsetTop<$2.$6.parentNode.scrollTop){$2.$6.scrollIntoView(true);}}window.event.cancelBubble=true;window.event.returnValue=false;$0=true;}else if(window.event.keyCode===40){if(this.$1_14.length>0){var $3;if(this.$1_15==null){$3=0;}else{$3=Math.min(this.$1_15.$7+1,this.$1_14.length-1);}var $4=this.$1_14[$3];$4.$C();Coveo.CNL.Web.Scripts.CNLAssert.check(this.$1_15===$4);if($4.$6.offsetTop+$4.$6.clientHeight>$4.$6.parentNode.scrollTop+$4.$6.parentNode.clientHeight){$4.$6.scrollIntoView(false);}}window.event.cancelBubble=true;window.event.returnValue=false;$0=true;}else if(window.event.keyCode===13){if(this.$1_15!=null&&this.$1_15.$A()){this.$1_15.$E();}window.event.cancelBubble=true;window.event.returnValue=false;$0=true;}}if(!$0){this.$1_19(this.$1_18());}},$1_22:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);$p0.$5.$2.value=$p0.$6.innerText;this.$1_1A();window.event.cancelBubble=true;window.event.returnValue=false;},$1_23:function(){this.$1_4.set_name(this.$1_8.value.trim());this.$1_4.set_description(this.$1_9.value.trim());for(var $0=0;$0<this.$1_4.get_rules().get_count();++$0){var $1=this.$1_6[$0];var $2=this.$1_4.get_rules().get_item($0);$2.set_ruleAction(parseInt($1.$6.value));$2.set_content($1.$5.value.trim());if($2.get_ruleType()===2){$2.set_fieldName($1.$2.value.trim().toLowerCase());}}this.applyButtonClick(this.$1_4.getRawData().streamAsString());},$1_24:function(){this.cancelButtonClick();},$1_25:function(){window.event.cancelBubble=true;window.event.returnValue=false;},applyButtonClick:function(scopeDataStr){},cancelButtonClick:function(){}}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ResultContextualMenu=function(){Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ResultContextualMenu.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ResultContextualMenu.prototype={$1_2:null,$1_3:null,$1_4:null,$1_5:null,$1_6:null,$1_7:false,$1_8:false,$1_9:false,$1_A:false,$1_B:null,$1_C:null,m_Target:null,m_SPTable:null,m_SPTableImage:null,m_SiteUri:null,m_ListId:null,m_ListItemId:null,m_ShowDelay:0,m_BorderColor:null,m_FileName:null,m_SPVersion:null,m_SPDeleteItemMessage:null,initialize:function(){Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ResultContextualMenu.callBaseMethod(this, 'initialize');Coveo.CNL.Web.Scripts.CNLAssert.check(this.m_ShowDelay>0);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_SPTable);this.$1_4=new Coveo.CNL.Web.Scripts.OnDwellEvent(this.m_SPTable,this.m_ShowDelay,ss.Delegate.create(this,this.$1_D));this.$1_2=ss.Delegate.create(this,this.$1_E);this.$1_3=ss.Delegate.create(this,this.$1_F);this.m_Target.attachEvent('onmouseover',this.$1_2);this.m_Target.attachEvent('onmouseout',this.$1_3);},tearDown:function(){if(this.$1_B!=null){this.$1_B.cancel();}if(this.$1_6!=null){this.$1_6.abort();this.$1_6=null;}if(this.$1_5!=null){this.m_SPTable.detachEvent('onclick',this.$1_5);this.$1_5=null;}this.$1_4.dispose();this.$1_4=null;this.m_Target.detachEvent('onmouseover',this.$1_2);this.m_Target.detachEvent('onmouseout',this.$1_3);Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ResultContextualMenu.callBaseMethod(this, 'tearDown');},$1_D:function(){if(!this.$1_8){this.$1_12();}},$1_E:function(){this.$1_9=true;if(this.$1_8){this.$1_14();}},$1_F:function(){this.$1_9=!this.$1_11(window.event,this.m_Target);if(!this.$1_9){this.$1_10(null);}},$1_10:function($p0){if(this.m_SPTableImage.style.visibility==='hidden'){var $0=document.body.getAttribute(this.m_Target.id+'ResetBorderTimeOut');if($0!=null){window.clearTimeout($0);}document.body.removeAttribute(this.m_Target.id+'ResetBorderTimeOut');Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_BorderColor);this.m_SPTable.style.borderLeftColor=this.m_BorderColor;this.m_SPTable.style.borderTopColor=this.m_BorderColor;this.m_SPTable.style.borderRightColor=this.m_BorderColor;this.m_SPTable.style.borderBottomColor=this.m_BorderColor;}else{document.body.setAttribute(this.m_Target.id+'ResetBorderTimeOut',window.setTimeout(ss.Delegate.create(this,this.$1_10),500));}},$1_11:function($p0,$p1){var $0=$p0.toElement;while($0!=null&&$0!==$p1){$0=$0.parentNode;}return $0!==$p1;},$1_12:function(){if(this.$1_7){return;}this.$1_7=true;if(this.$1_6!=null){this.$1_6.abort();this.$1_6=null;}var $0=String.format(this.m_SiteUri+'/_layouts/CES/AttributesSelector.aspx?ListItemId={0}&ListId={1}',this.m_ListItemId,this.m_ListId);var $1={};$1.dataType='jsonp';$1.success=ss.Delegate.create(this,this.$1_13);this.$1_6=$.ajax($0,$1);this.$1_A=true;},$1_13:function($p0,$p1,$p2){Coveo.CNL.Web.Scripts.CNLAssert.check($p2===this.$1_6);this.$1_6=null;this.$1_8=true;this.$1_7=false;var $0=$p0.MergeWithContext;if($0!=null){var $1=eval(this.m_SPTable.getAttribute('CTXName').toString());Coveo.CNL.Web.Scripts.CNLAssert.notNull($1);$.extend($1,$0);var $2=$p0.AttributesForTable;Coveo.CNL.Web.Scripts.CNLAssert.notNull($2);Coveo.CNL.Web.Scripts.CNLAssert.check(!!Object.getKeyCount($2));var $dict1=$2;for(var $key2 in $dict1){var $3={key:$key2,value:$dict1[$key2]};this.m_SPTable.setAttribute($3.key,$3.value);}if(this.m_SPVersion==='2007'){var $4=$2['DRef'];var $5=$2['Url'];if($4!=null&&$5!=null){var $6=0;while($6!==-1&&!$5.startsWith($4.substr($6)+'/')){$6=$4.indexOf('/',$6+1);if($6!==-1){++$6;}}if($6!==-1){this.$1_C=encodeURIComponent(('/'+$4.substr(0,$6)));}}}this.$1_A=false;if(this.$1_9){this.$1_14();if(this.m_SPVersion==='2010'&&(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isFirefox())){eval('if (typeof(currentCtx) != "undefined") window["ctx"+currentCtx.ctxId] = currentCtx;');}}}},$1_14:function(){if(!this.$1_A){this.m_SPTable.style.borderLeftColor='#b09460';this.m_SPTable.style.borderTopColor='#b09460';this.m_SPTable.style.borderRightColor='#b09460';this.m_SPTable.style.borderBottomColor='#b09460';OnItem(this.m_SPTable);if(this.m_SPVersion==='2013'){eval('if (typeof(ctx) == "undefined" && typeof(currentCtx) != "undefined") { ctx = currentCtx; }');}if(this.$1_5==null){this.$1_5=ss.Delegate.create(this,this.$1_15);this.m_SPTable.attachEvent('onclick',this.$1_5);}}},$1_15:function(){this.$1_B=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$1_16),null,1);},$1_16:function($p0){var $0=this.$1_18(document.documentElement,'ID_DeleteItem');if($0!=null){var $2="alert('"+this.m_SPDeleteItemMessage.replaceAll("'","\\'")+"');";var $3='';this.$1_17($0,$2,$3,false);}var $1=this.$1_18(document.documentElement,'ID_DeleteDocItem');if($1!=null){var $4="alert('"+this.m_SPDeleteItemMessage.replaceAll("'","\\'")+"');";var $5='';if(this.m_SPVersion==='2007'){$4+='ctx=currentCtx;';$5+=';delete window.ctx;';}this.$1_17($1,$4,$5,true);}if(this.m_SPVersion==='2013'){$(document).find('li').each(function($p1_0,$p1_1){
var $1_0=$p1_1.getAttribute('onMenuClick');if($1_0!=null&&$1_0.startsWith('STSNavigate(')&&$1_0.indexOf('/Workflow.aspx')!==-1){var $1_1=$1_0.indexOf('://');if($1_1!==-1){$1_1=$1_0.indexOf('//',$1_1+3);if($1_1!==-1){$1_0=$1_0.substr(0,$1_1)+$1_0.substr($1_1+1);$p1_1.setAttribute('onMenuClick',$1_0);}}}});}this.$1_B=null;},$1_17:function($p0,$p1,$p2,$p3){var $0=((this.m_SPVersion==='2013')?1:2);var $1=0;while($p0!=null&&$1<$0){var $2=$p0.getAttribute('onMenuClick');if($2!=null&&!$2.startsWith($p1)){if($p3&&this.$1_C!=null){var $3='&owsfileref=';var $4=$2.indexOf($3);if($4!==-1){$4+=$3.length;$2=$2.substr(0,$4)+this.$1_C+$2.substr($4);}}$2=$p1+$2+$p2;$p0.setAttribute('onMenuClick',$2);++$1;}$p0=$p0.parentNode;}},$1_18:function($p0,$p1){if($p0.id===$p1&&((this.m_SPVersion==='2007')?$p0.tagName==='TD':$p0.getAttribute('CUICommand')==null)){return $p0;}var $0=$p0.children;for(var $1=0;$1<$0.length;++$1){var $2=this.$1_18($0[$1],$p1);if($2!=null){return $2;}}return null;}}
Type.registerNamespace('Coveo.CES.Web.Search.Scripts.Security');Coveo.CES.Web.Search.Scripts.Security.ClaimsIdentityManagerScript=function(){Coveo.CES.Web.Search.Scripts.Security.ClaimsIdentityManagerScript.initializeBase(this);}
Coveo.CES.Web.Search.Scripts.Security.ClaimsIdentityManagerScript.prototype={m_ClaimsIdentityProviderPageUri:null,initialize:function(){if(!String.isNullOrEmpty(this.m_ClaimsIdentityProviderPageUri)){window.setTimeout(ss.Delegate.create(this,this.$1_0),0);}},tearDown:function(){},$1_0:function(){Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current().blankElementsBeforeNavigation();var $0=this.m_ClaimsIdentityProviderPageUri;var $1=window.location.hash;if(!String.isNullOrEmpty($1)){if($1.charAt(0)==='#'){$1=$1.substr(1);}if($1.length>1){$0+='%23'+encodeURIComponent($1);}}window.navigate($0);}}
Type.registerNamespace('Coveo.CES.Web.Search.Scripts');Coveo.CES.Web.Search.Scripts.SharePointItemUtilities=function(){}
Coveo.CES.Web.Search.Scripts.SharePointItemUtilities.viewDocument=function(p_Uri,p_Window){var $0=false;var $1=Coveo.CES.Web.Search.Scripts.SharePointItemUtilities.$0();if($1!=null){try{$0=$1.viewDocument2(p_Window,p_Uri);}catch($2){try{$0=$1.viewDocument(p_Uri);}catch($3){$0=false;}}}if($1==null||!$0){p_Window.navigate(p_Uri);}}
Coveo.CES.Web.Search.Scripts.SharePointItemUtilities.editDocument=function(p_Uri,p_Window){var $0=Coveo.CES.Web.Search.Scripts.SharePointItemUtilities.$0();if($0!=null){try{$0.editDocument2(p_Window,p_Uri);}catch($1){$0.editDocument(p_Uri);}}else{Coveo.CES.Web.Search.Scripts.SharePointItemUtilities.viewDocument(p_Uri,p_Window);}}
Coveo.CES.Web.Search.Scripts.SharePointItemUtilities.$0=function(){var $0;try{$0=new ActiveXObject('SharePoint.OpenDocuments.2');}catch($1){try{$0=new ActiveXObject('SharePoint.OpenDocuments.1');}catch($2){try{$0=new ActiveXObject('SharePoint.OpenDocuments');}catch($3){$0=null;}}}return $0;}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeData',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeBaseData);Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDictionaryData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDictionaryData',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeDictionaryData);Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDefinitionsData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeDefinitionsData',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeBaseData);Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldData',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeBaseData);Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldDictionaryData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeFieldDictionaryData',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeDictionaryData);Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleData',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeBaseData);Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleCollectionData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeRuleCollectionData',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeCollectionData);Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigData',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeBaseData);Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigDictionaryData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.SharePointScopeConfigDictionaryData',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeDictionaryData);Coveo.CES.Common.SearchInterfaceQueryString.registerClass('Coveo.CES.Common.SearchInterfaceQueryString');Coveo.CES.Web.Search.SharePoint.SharePointItemAttributes.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointItemAttributes');Coveo.CES.Web.Search.Scripts.Controls._FacetScriptItem.registerClass('Coveo.CES.Web.Search.Scripts.Controls._FacetScriptItem');Coveo.CES.Web.Search.Scripts.Controls._FacetScriptSearchItem.registerClass('Coveo.CES.Web.Search.Scripts.Controls._FacetScriptSearchItem');Coveo.CES.Web.Search.Scripts.Controls.LegacyFacetScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.LegacyFacetScript',Coveo.CNL.Web.Scripts.Ajax.AjaxTabableObjectScript);Coveo.CES.Web.Search.Scripts.Controls._FacetScriptAsyncItemCall.registerClass('Coveo.CES.Web.Search.Scripts.Controls._FacetScriptAsyncItemCall');Coveo.CES.Web.Search.Scripts.Controls.FacetScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.FacetScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.FacetScriptFeedback.registerClass('Coveo.CES.Web.Search.Scripts.Controls.FacetScriptFeedback',Coveo.CNL.Web.Scripts.Ajax.Feedback);Coveo.CES.Web.Search.Scripts.Controls.VerticalMasterAndDetailScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.VerticalMasterAndDetailScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.BaseChartScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.BaseChartScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.MasterAndDetailScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.MasterAndDetailScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.ContextualDropDownScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.ContextualDropDownScript',Coveo.CNL.Web.Scripts.Ajax.AjaxTabableObjectScript);Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.CloseModalBoxLinkScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.CloseModalBoxLinkScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelCloseLinkScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelCloseLinkScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelToModalBoxLinkScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelToModalBoxLinkScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.DateParamsScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.DateParamsScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.NoticesScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.NoticesScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.SharePointSearchBoxScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.SharePointSearchBoxScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.SearchBoxScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.SearchBoxScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.TableResultListFunnelPopupScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.TableResultListFunnelPopupScript',Coveo.CNL.Web.Scripts.Ajax.AjaxTabableObjectScript);Coveo.CES.Web.Search.Scripts.Controls.TableResultListScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.TableResultListScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.SilverlightMediaPlayer.registerClass('Coveo.CES.Web.Search.Scripts.Controls.SilverlightMediaPlayer',null,Coveo.CES.Web.Search.Scripts.Controls.IMediaPlayer);Coveo.CES.Web.Search.Scripts.Controls.WindowsMediaPlayer.registerClass('Coveo.CES.Web.Search.Scripts.Controls.WindowsMediaPlayer',null,Coveo.CES.Web.Search.Scripts.Controls.IMediaPlayer);Coveo.CES.Web.Search.Scripts.Controls.CoveoCESWebSearchScripts$1.registerClass('Coveo.CES.Web.Search.Scripts.Controls.CoveoCESWebSearchScripts$1');Coveo.CES.Web.Search.Scripts.Controls.CoveoCESWebSearchScripts$0.registerClass('Coveo.CES.Web.Search.Scripts.Controls.CoveoCESWebSearchScripts$0');Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript',Coveo.CNL.Web.Scripts.Ajax.AjaxTabableObjectScript);Coveo.CES.Web.Search.Scripts.Controls.ResultImagePresenterScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.ResultImagePresenterScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.HighlightedQueryScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.HighlightedQueryScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.PlayerScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.PlayerScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.ResultPlayerScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.ResultPlayerScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.ViewAsHtmlPanelScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.ViewAsHtmlPanelScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorLinkButtonScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorLinkButtonScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.SharePoint.CoveoCESWebSearchScripts$2.registerClass('Coveo.CES.Web.Search.Scripts.Controls.SharePoint.CoveoCESWebSearchScripts$2');Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorModalBoxScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeConfigEditorModalBoxScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.SharePoint._ScopeEditorRuleScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.SharePoint._ScopeEditorRuleScript');Coveo.CES.Web.Search.Scripts.Controls.SharePoint._ScopeEditorFieldScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.SharePoint._ScopeEditorFieldScript');Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeEditorModalBoxScript.registerClass('Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ScopeEditorModalBoxScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ResultContextualMenu.registerClass('Coveo.CES.Web.Search.Scripts.Controls.SharePoint.ResultContextualMenu',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.Security.ClaimsIdentityManagerScript.registerClass('Coveo.CES.Web.Search.Scripts.Security.ClaimsIdentityManagerScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CES.Web.Search.Scripts.SharePointItemUtilities.registerClass('Coveo.CES.Web.Search.Scripts.SharePointItemUtilities');Coveo.CES.Common.SearchInterfaceQueryString.queryParameter='q';Coveo.CES.Common.SearchInterfaceQueryString.conversationSubjectParameter='convsj';Coveo.CES.Common.SearchInterfaceQueryString.targetFrameParameter='f';Coveo.CES.Common.SearchInterfaceQueryString.oldOutlookAddInVersion='oaiv';Coveo.CES.Common.SearchInterfaceQueryString.collectionNamesParameter='c';Coveo.CES.Common.SearchInterfaceQueryString.collectionIdsParameter='ci';Coveo.CES.Common.SearchInterfaceQueryString.initialScopeParameter='sc';Coveo.CES.Common.SearchInterfaceQueryString.timeZoneParameter='tz';Coveo.CES.Common.SearchInterfaceQueryString.timeZoneOffsetParameter='t';Coveo.CES.Common.SearchInterfaceQueryString.lcidParameter='lcid';Coveo.CES.Common.SearchInterfaceQueryString.stateParameter='s';Coveo.CES.Common.SearchInterfaceQueryString.sessionGuidParameter='sg';Coveo.CES.Common.SearchInterfaceQueryString.interfaceNameParameter='sk';Coveo.CES.Common.SearchInterfaceQueryString.interfaceToLoadParameter='sktl';Coveo.CES.Common.SearchInterfaceQueryString.iconSizeParameter='is';Coveo.CES.Common.SearchInterfaceQueryString.facetIdParameter='fa';Coveo.CES.Common.SearchInterfaceQueryString.superUserTokenParameter='sut';Coveo.CES.Common.SearchInterfaceQueryString.quirksModeParameter='qm';Coveo.CES.Common.SearchInterfaceQueryString.hubNameParameter='sh';Coveo.CES.Common.SearchInterfaceQueryString.documentIdParameter='docid';Coveo.CES.Common.SearchInterfaceQueryString.mirrorIdParameter='mir';Coveo.CES.Common.SearchInterfaceQueryString.wildcardsParameter='wld';Coveo.CES.Common.SearchInterfaceQueryString.improveReadabilityParameter='rdb';Coveo.CES.Common.SearchInterfaceQueryString.maxQuickViewSizeParameter='mqvs';Coveo.CES.Common.SearchInterfaceQueryString.customContentRelayParameter='ccr';Coveo.CES.Common.SearchInterfaceQueryString.xmlSearchParameter='xml';Coveo.CES.Common.SearchInterfaceQueryString.exportToExcelParameter='xls';Coveo.CES.Common.SearchInterfaceQueryString.excelXmlDataSourceParameter='exds';Coveo.CES.Common.SearchInterfaceQueryString.openSearchParameter='opensearch';Coveo.CES.Common.SearchInterfaceQueryString.openSearchSuggestParameter='opensearchsuggest';Coveo.CES.Common.SearchInterfaceQueryString.desktopSearchParameter='desktopsearch';Coveo.CES.Common.SearchInterfaceQueryString.wakeUpParameter='wakeup';Coveo.CES.Common.SearchInterfaceQueryString.showDebugInfoParameter='debug';Coveo.CES.Common.SearchInterfaceQueryString.emailAddressParameter='ea';Coveo.CES.Common.SearchInterfaceQueryString.caseIDParameter='caseid';Coveo.CES.Common.SearchInterfaceQueryString.chartIDParameter='chart';Coveo.CES.Common.SearchInterfaceQueryString.chartWidthParameter='width';Coveo.CES.Common.SearchInterfaceQueryString.chartHeightParameter='height';Coveo.CES.Common.SearchInterfaceQueryString.disableAnalyticsLoggingParameter='disableanalyticslogging';Coveo.CES.Common.SearchInterfaceQueryString.searchBarParameter='searchbar';Coveo.CES.Common.SearchInterfaceQueryString.searchBarInfoParameter='searchbarinfo';Coveo.CES.Common.SearchInterfaceQueryString.searchBarVersionParameter='searchbarversion';Coveo.CES.Common.SearchInterfaceQueryString.outlookVersion='oaiOutlookVersion';Coveo.CES.Common.SearchInterfaceQueryString.searchBarAutoCompletionsParameter='searchbarcompletions';Coveo.CES.Common.SearchInterfaceQueryString.outlookAddInParameter='outlookaddin';Coveo.CES.Common.SearchInterfaceQueryString.outlookAddInIsCollapsedParameter='oaiIsCollapsed';Coveo.CES.Common.SearchInterfaceQueryString.outlookSenderEmailParameter='senderemail';Coveo.CES.Common.SearchInterfaceQueryString.outlookSubjectHash='subjecthash';Coveo.CES.Common.SearchInterfaceQueryString.outlookSentOn='senton';Coveo.CES.Common.SearchInterfaceQueryString.outlookBackgroundStyleColorPair='oaiBgColor';Coveo.CES.Common.SearchInterfaceQueryString.outlookStyleFontFamilyPair='oaiFontFamily';Coveo.CES.Common.SearchInterfaceQueryString.outlookSelectedStyleColorPair='oaiSelectedColor';Coveo.CES.Common.SearchInterfaceQueryString.outlookSchemeName='oaiSchemeName';Coveo.CES.Common.SearchInterfaceQueryString.outlookTabBackgroundStyleColorPair='oaiTabColor';Coveo.CES.Common.SearchInterfaceQueryString.outlookStrokeStyleColorPair='oaiStrokeColor';Coveo.CES.Common.SearchInterfaceQueryString.interfaceReloaded='itfrld';Coveo.CES.Web.Search.SharePoint.SharePointItemAttributes.lisT_VERSION_ENABLED='VersionEnabled';Coveo.CES.Web.Search.SharePoint.SharePointItemAttributes.lisT_IS_FORCE_CHECKOUT='IsForceCheckout';Coveo.CES.Web.Search.SharePoint.SharePointItemAttributes.lisT_ENABLE_MINOR_VERSIONS='EnableMinorVersions';Coveo.CES.Web.Search.SharePoint.SharePointItemAttributes.lisT_CONTENT_TYPES_ENABLED='ContentTypesEnabled';Coveo.CES.Web.Search.SharePoint.SharePointItemAttributes.lisT_BASE_TYPE='ListBaseType';Coveo.CES.Web.Search.SharePoint.SharePointItemAttributes.lisT_BASE_TEMPLATE='ListBaseTemplate';Coveo.CES.Web.Search.SharePoint.SharePointItemAttributes.lisT_WRITE_SECURITY='WriteSecurity';Coveo.CES.Web.Search.SharePoint.SharePointItemAttributes.lisT_USER_ID='UserID';Coveo.CES.Web.Search.SharePoint.SharePointItemAttributes.d_REF='DRef';Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_25={};Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_26=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_27=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_28=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_29=0;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2A=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2B=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2C=0;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2D=0;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2E=false;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_2F=false;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_30=false;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_31=0;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_32=0;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_33=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_34=0;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_35=0;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_36=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_37=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_38=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_39=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3A=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3B=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3C=null;Coveo.CES.Web.Search.Scripts.Controls.FacetScript.$1_3D=-1;Coveo.CES.Web.Search.Scripts.Controls.SearchControlScript.$1_0={};Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_0={};Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_1=null;Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_2=null;Coveo.CES.Web.Search.Scripts.Controls.FirstTimeSetupStatusScript.$1_3=null;Coveo.CES.Web.Search.Scripts.Controls.CoveoCESWebSearchScripts$0.$0=3000000;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_4=[];Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_5=null;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_6=null;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_7=null;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_8=0;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_9=null;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_A=null;Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_B=new Coveo.CES.Web.Search.Scripts.Controls.CoveoCESWebSearchScripts$0();Coveo.CES.Web.Search.Scripts.Controls.ResultSidePanelHotSpotScript.$2_C=null;Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_0=null;Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_1=false;Coveo.CES.Web.Search.Scripts.Controls.ResultPresenceIndicatorScript.$1_2=[];};
_coveoDefineJQuery();
//****************************************************************************
// Copyright (c) 2005, Coveo Solutions Inc.
//****************************************************************************

function CES_CachedDocument() {

// PUBLIC INTERFACE

//****************************************************************************
// Opens the currently displayed document in a new window.
//****************************************************************************
this.OpenInNewWindow = function()
{
    window.open(this.m_Uri, this.m_Uri.indexOf('outlook:') == 0 ? '_self' : '_blank');
}

//****************************************************************************
// Opens the currently displayed view as html in a new window.
//****************************************************************************
this.OpenViewAsHtmlInNewWindow = function()
{
    window.open(this.getAttribute("coveopageurl"), '_blank');
}

//****************************************************************************
// Highlights the next occurence of a term.
// p_Term  - The index of the term to highlight.
//****************************************************************************
this.HighlightNextOccurence = function(p_Term)
{
    if (!this.m_DoNotHighlight) {
        this.RemoveLastHighlight();

        var last = this.m_Positions[p_Term];
        if (last == undefined) {
            last = 0;
        }

        var current = last + 1;
        if (this.GetTermPart(p_Term, current, 1) == null) {
            current = 1;
        }

        this.HighlightTerm(p_Term, current);
        this.m_Positions[p_Term] = current;
    }
}

//****************************************************************************
// Highlights the previous occurence of a term.
// p_Term  - The index of the term to highlight.
//****************************************************************************
this.HighlightPreviousOccurence = function(p_Term)
{
    if (!this.m_DoNotHighlight) {
        this.RemoveLastHighlight();

        var last = this.m_Positions[p_Term];
        if (last == undefined) {
            last = 1;
        }

        var current = last - 1;
        if (this.GetTermPart(p_Term, current, 1) == null) {
            // Skip to the last one
            current = 1;
            while (this.GetTermPart(p_Term, current, 1) != null) {
                ++current;
            }
            --current;
        }

        this.HighlightTerm(p_Term, current);
        this.m_Positions[p_Term] = current;
    }
}

// PRIVATE INTERFACE

//****************************************************************************
// Resets the members used to track the current highlight.
//****************************************************************************
this.ResetMembers = function()
{
    this.m_Positions = new Array();
    this.m_LastTerm = 0;
    this.m_LastOccurence = 0;
    this.m_DoNotHighlight = false;
}

//****************************************************************************
// Retrieves the document object inside the frame.
//****************************************************************************
this.GetDocument = function()
{
    return this.contentWindow.document;
}

//****************************************************************************
// Retrieves a specific highlight part.
// p_Term      - The index of the term.
// p_Occurence - The index of the occurence of the term.
// p_Part      - The index of the part of the term.
//****************************************************************************
this.GetTermPart = function(p_Term, p_Occurence, p_Part)
{
    return this.GetDocument().getElementById('CoveoHighlight:' + p_Term + '.' + p_Occurence + '.' + p_Part);
}

//****************************************************************************
// Highlights a term and scrolls it into view.
// p_Term      - The index of the term to highlight.
// p_Occurence - The index of the term occurence to highlight.
//****************************************************************************
this.HighlightTerm = function(p_Term, p_Occurence)
{
    var part = 1;
    var elem = this.GetTermPart(p_Term, p_Occurence, part);
    if (elem != null) {
        var newScroll = -1;
        var sameHoriz = false;
        var offsetElem;
        var offsetArray;
        var i;
        var doc;
        if ((CNL_IsIE() && !CNL_IsIE6()) || CNL_IsIE11PlusStandardMode()) {
            // The horizontal scroll of scrollIntoView works differently in IE than in other browser.
            // It tries to place the term on the left side of the frame, even when it's not neccessary.
            doc = this.GetDocument();
            if (CNL_IsStandard()) {
                doc = doc.documentElement;
            } else {
                doc = doc.body;
            }
            newScroll = doc.scrollLeft;

            // Calculates the X position of the term by adding every offsetLeft
            // until there is no offsetParent left (top of the frame is reached).
            var elemPosX = 0;
            offsetElem = elem;
            offsetArray = new Array();
            i = 0;
            do {
                offsetArray[i++] = offsetElem.scrollLeft;
                elemPosX += offsetElem.offsetLeft;
            } while (offsetElem = offsetElem.offsetParent);

            if (elemPosX < newScroll) {
                // We want the term on the left side, IE will do the job.
                newScroll = -1;
            } else if (elemPosX + elem.offsetWidth > newScroll + doc.clientWidth) {
                // We want the term on the right side.
                newScroll += (elemPosX + elem.offsetWidth) - (newScroll + doc.clientWidth);
            } else {
                // Otherwise, we want to keep the same horizontal scroll.
                sameHoriz = true;
            }
        }

        var recursiveScrollFn = function (p_Elem) {
            if (p_Elem != null && p_Elem.tagName.toUpperCase() != 'BODY') {
                recursiveScrollFn(p_Elem.parentNode);
            }
            p_Elem.scrollIntoView();
        }
        recursiveScrollFn(elem);

        if (newScroll != -1) {
            offsetElem = elem;
            i = 0;
            do {
                offsetElem.scrollLeft = (sameHoriz ? offsetArray[i++] : 0);
            } while (offsetElem = offsetElem.offsetParent);

            if (!sameHoriz) {
                doc.scrollLeft = newScroll;
            }
        }

        while (elem != null) {
            elem.m_BackupColor = elem.style.color;
            elem.m_BackupBackground = elem.style.backgroundColor;
            elem.style.color = 'white';
            elem.style.backgroundColor = 'green';
            elem = this.GetTermPart(p_Term, p_Occurence, ++part);
        }

        this.m_LastTerm = p_Term;
        this.m_LastOccurence = p_Occurence;

        // FireFox 1.5.0.2 has a bug with scrollIntoView
        document.documentElement.scrollTop = 0;
    }
}

//****************************************************************************
// Unhighlights the last highlighted term.
//****************************************************************************
this.RemoveLastHighlight = function()
{
    if (this.m_LastTerm != 0) {
        var part = 1;
        var elem = this.GetTermPart(this.m_LastTerm, this.m_LastOccurence, part);
        while (elem != null) {
            elem.style.color = elem.m_BackupColor;
            elem.style.backgroundColor = elem.m_BackupBackground;
            elem = this.GetTermPart(this.m_LastTerm, this.m_LastOccurence, ++part);
        }
    }
}

} // Constructor

