function ULS_Search(){if (ULS_Search.caller){ULS_Search.caller.ULSTeamName = "Office Search Server";ULS_Search.caller.ULSFileName = "Search.js";}}
var i7F=parseInt("0x7F"),i7FF=parseInt("0x7FF"),iFFFF=parseInt("0xFFFF"),i1FFFFF=parseInt("0x1FFFFF"),i3FFFFFF=parseInt("0x3FFFFFF"),i7FFFFFFF=parseInt("0x7FFFFFFF"),logWAQuery=true;function canonicalizedUtf8FromUnicode(i){ULS_Search();var j=' <>"#%{}|^~[]`&?+',c="",h,g,f,k,b,a,d,e;i+="";for(h=0;h<i.length;h++){g=i.charAt(h);f=g.charCodeAt(0);if(f<=i7F)if(j.indexOf(g)!=-1)c+="%"+f.toString(16).toUpperCase();else c+=g;else{e="";b=f.toString(2);if(f<=i7FF){for(d=11;d>b.length;d--)e+="0";b=e+b;a="110"+b.substr(0,5);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(5,6);c+="%"+parseInt(a,2).toString(16).toUpperCase()}else if(f<=iFFFF){for(d=16;d>b.length;d--)e+="0";b=e+b;a="1110"+b.substr(0,4);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(4,6);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(10,6);c+="%"+parseInt(a,2).toString(16).toUpperCase()}else if(f<=i1FFFFF){for(d=21;d>b.length;d--)e+="0";b=e+b;a="11110"+b.substr(0,3);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(3,6);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(9,6);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(15,6);c+="%"+parseInt(a,2).toString(16).toUpperCase()}else if(f<=i3FFFFFF){for(d=26;d>b.length;d--)e+="0";b=e+b;a="111110"+b.substr(0,2);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(2,6);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(8,6);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(14,6);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(20,6);c+="%"+parseInt(a,2).toString(16).toUpperCase()}else if(f<=i7FFFFFFF){for(d=31;d>b.length;d--)e+="0";b=e+b;a="1111110"+b.substr(0,1);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(1,6);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(7,6);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(13,6);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(19,6);c+="%"+parseInt(a,2).toString(16).toUpperCase();a="10"+b.substr(25,6);c+="%"+parseInt(a,2).toString(16).toUpperCase()}}}return c}function GetItemUrl(f){ULS_Search();var d=false;if(null!=window.clientInformation)d=window.clientInformation.userAgent.indexOf("MSIE ")>0;var c=document.getElementById(f);if(null!=c){if(d){var a=c.outerHTML,b=a.indexOf('href="');if(b>0){b+=6;var e=a.indexOf('"',b);if(e>0){a=a.substring(b,e);a=a.replace(/&#39;/gi,"'");a=a.replace(/&quot;/gi,'"');a=a.replace(/&amp;/gi,"&");return a}}}return c.href}return ""}function GoToItemUrl(a){ULS_Search();window.location.href=GetItemUrl(a)}function ConCatGoToUrl(){ULS_Search();var b="";for(var a=0;a<arguments.length;a++)b+=arguments[a];window.location.href=b}function GetCookieExpireTime(){ULS_Search();var a=new Date,b=a.getMonth();if(b==11){a.setMonth(0);a.setYear(a.getYear()+1)}else a.setMonth(b+1);return a.toGMTString()}function _ppsi(b,a){ULS_Search();return b+a}function OnshdCB(a){ULS_Search();Onshd(a,"c","","","")}function Onshd(d,e,h,i,j){ULS_Search();var b=document.forms[0],g=_ppsi(d,"shd"),a,c,f=document.styleSheets(g).rules[0].style;if(null==b||null==f)return;c=false;if("a"==e){a=_ppsi(d,"spssSHDH");if(null!=b.elements[a])c=b.elements[a].value=="false"}else{a=_ppsi(d,"spssSHDC");if(null!=b.elements[a])c=b.elements[a].checked}if(c){f.display="";if("a"==e){if(null!=b.elements[a])b.elements[a].value="true";document.links.item(h).innerText=i}document.cookie=g+"=true; expires="+GetCookieExpireTime()}else{f.display="none";if("a"==e){if(null!=b.elements[a])b.elements[a].value="false";document.links.item(h).innerText=j}document.cookie=g+"=false; expires="+GetCookieExpireTime()}}function OnPTP(b){ULS_Search();var a=document.forms[0];if(null!=a.elements[_ppsi(b,"spssWFEH")])a.elements[_ppsi(b,"spssWFEH")].value="PageToPrevious";a.submit()}function OnPTN(b){ULS_Search();var a=document.forms[0];if(null!=a.elements[_ppsi(b,"spssWFEH")])a.elements[_ppsi(b,"spssWFEH")].value="PageToNext";a.submit()}function OnPTT(f,c,b,e){ULS_Search();var a=document.forms[0];if(e){var d=String.fromCharCode(c.keyCode);if(d=="\n"||d=="\r"){if(null!=a.elements[_ppsi(b,"spssWFEH")])a.elements[_ppsi(b,"spssWFEH")].value="DirectPageTo";if(null!=a.elements[_ppsi(b,"spssAPNH")])a.elements[_ppsi(b,"spssAPNH")].value=f.value;a.submit()}}else if(c.which==10||c.which==13){if(null!=a.elements[_ppsi(b,"spssWFEH")])a.elements[_ppsi(b,"spssWFEH")].value="DirectPageTo";a.submit()}}function OnPTD(c,b){ULS_Search();var a=document.forms[0];if(null!=a.elements[_ppsi(b,"spssWFEH")])a.elements[_ppsi(b,"spssWFEH")].value="DirectPageTo";if(null!=a.elements[_ppsi(b,"spssAPNH")])a.elements[_ppsi(b,"spssAPNH")].value=c.value;a.submit()}function OnChangeGroupBySelection(b,a){ULS_Search();if(null!=document.forms[0].elements[a])OnGroupBy(b,document.forms[0].elements[a].value)}function OnGroupBy(b,c){ULS_Search();var a=document.forms[0];if(null!=a.elements[_ppsi(b,"spssWFEH")])a.elements[_ppsi(b,"spssWFEH")].value="GroupBy";if(null!=a.elements[_ppsi(b,"spssGBKH")])a.elements[_ppsi(b,"spssGBKH")].value=c;a.submit()}function OnChangeSortBySelection(g,e){ULS_Search();var a="";if(null!=document.forms[0].elements[e])a=document.forms[0].elements[e].value;var c=a.toUpperCase().lastIndexOf(" DESC");if(c>=0)a=a.substring(0,c);var d='"',b=a.indexOf(d),f=a.lastIndexOf(d);if(b>=0){if(f>b)a=a.substring(0,f);a=a.substring(b+d.length,a.length)}OnCCT(g,a,c>=0?"DESC":"ASC")}function OnCCT(a,d,e){ULS_Search();var b=_ppsi(a,"spssSBCTH"),c=document.forms[0];if(null!=c.elements[b]){c.elements[b].value='"'+d+'"';if(e.toUpperCase()=="DESC")c.elements[b].value+=" DESC"}if(null!=document.forms[0].elements[_ppsi(a,"spssWFEH")])document.forms[0].elements[_ppsi(a,"spssWFEH")].value="SortBy";if(null!=document.forms[0].elements[_ppsi(a,"SBCH")])document.forms[0].elements[_ppsi(a,"SBCH")].value="1";document.forms[0].submit()}function toggleMgmtAdv(c,b){ULS_Search();var a=document.forms[0].elements["SPSHASOO"];if(a!=null){if("spl"==b)a.value="Off";else a.value="On";if(null!=document.forms[0].elements["SPSSBWFEHC"])document.forms[0].elements["SPSSBWFEHC"].value="Advanced"}var d=document.forms[0].elements[_ppsi(c,"mvmh")];if(null!=d)d.value=b;if("spl"==b){OnResultView(c,"vbs");return}document.forms[0].submit()}function OnResultView(c,f){ULS_Search();var d=document.forms[0],b,a;switch(f){case "slv":b='"urn:schemas.microsoft.com:fulltextqueryinfo:rank" DESC';a="NoneNone";var g=_ppsi(c,"spssSHDH");d.elements[g].value="false";break;case "vbs":b='"urn:schemas.microsoft.com:fulltextqueryinfo:rank" DESC';a="urn:schemas.microsoft.com:fulltextqueryinfo:sitename";break;case "vba":b='"urn:schemas.microsoft.com:fulltextqueryinfo:rank" DESC';a="urn:schemas-microsoft-com:office:office#Author";break;case "vbr":b='"urn:schemas.microsoft.com:fulltextqueryinfo:rank" DESC';a="NoneNone";break;case "vrd":b='"urn:schemas.microsoft.com:fulltextqueryinfo:rank" DESC';a="DAV:getlastmodified";break;case "vbc":b='"urn:schemas.microsoft.com:fulltextqueryinfo:rank" DESC';a="urn:schemas-microsoft-com:publishing:Category";break;case "Recent":b='"CreationDate" DESC';a="CreationDate";break;case "SiteRegTopics":b='"Title" DESC';a="Location";break;case "SiteRegSimple":b='"Title" DESC';a="NoneNone";break;case "SiteRegTeams":b='"Title" DESC';a="NoneNone"}var e=_ppsi(c,"spssSBCTH");if(null!=d.elements[e])d.elements[e].value=b;if(null!=document.forms[0].elements[_ppsi(c,"spssWFEH")])document.forms[0].elements[_ppsi(c,"spssWFEH")].value="GroupBy";if(null!=document.forms[0].elements[_ppsi(c,"spssGBKH")])document.forms[0].elements[_ppsi(c,"spssGBKH")].value=a;if(null!=document.forms[0].elements[_ppsi(c,"mvth")])document.forms[0].elements[_ppsi(c,"mvth")].value=f;document.forms[0].submit()}function OnGFL(a,b,c){ULS_Search();if(null!=document.forms[0].elements[_ppsi(a,"spssWFEH")])document.forms[0].elements[_ppsi(a,"spssWFEH")].value="SeeFullListLink";if(null!=document.forms[0].elements[_ppsi(a,"spssWMCH")])document.forms[0].elements[_ppsi(a,"spssWMCH")].value=b;if(null!=document.forms[0].elements[_ppsi(a,"spssWMDH")])document.forms[0].elements[_ppsi(a,"spssWMDH")].value=c;document.forms[0].submit()}function ShowHideGroup(a,k,h){ULS_Search();var f=document.getElementById(a);if(null==f)return;var i=a.substring(0,a.indexOf("_t")),j=new RegExp(i+"_g"+k+"_r"),g=document.getElementsByTagName("TR"),m=g.length;for(var e=0;e<m;e++){var b=g[e];if(b.id.search(j)>=0)if(h)b.className=b.className.replace(/groupHide/g,"groupShow");else b.className=b.className.replace(/groupShow/g,"groupHide")}var d,c;if(h)d=a.replace("_te_","_tc_");else d=a.replace("_tc_","_te_");c=document.getElementById(d);if(null!=c)c.style.display="";f.style.display="none";try{ResizePeopleImages()}catch(l){}}function OnToggleAllGroups(a,c,d,f,e){ULS_Search();var g=document.forms[0];if(null!=document.forms[0].elements[_ppsi(a,"spssECAH")]){var b=!(document.forms[0].elements[_ppsi(a,"spssECAH")].value=="true");OnExpandCollapseAll(a,c,b);document.links.item(d).innerText=b?e:f}}function OnExpandCollapseAll(a,l,b){ULS_Search();var k=new RegExp(_ppsi(a,"_g([\\d]+)_r[\\d]")),h=document.getElementsByTagName("TR"),m=h.length,c,n,o,i,f,g,d,e,j=-1;for(c=0;c<m;c++){tmp=h[c];if(null!=k.exec(tmp.id)){e=RegExp.$1;if(e!=j){i=_ppsi(a,"_tc_"+RegExp.$1);f=document.links.item(i);g=_ppsi(a,"_te_"+RegExp.$1);d=document.links.item(g);if(null!=d){d.style.display=b?"none":"";if(null!=f)f.style.display=b?"":"none"}j=e}if(b)tmp.className=tmp.className.replace(/groupHide/g,"groupShow");else tmp.className=tmp.className.replace(/groupShow/g,"groupHide")}}if(null!=document.forms[0].elements[_ppsi(a,"spssAGECH")])document.forms[0].elements[_ppsi(a,"spssAGECH")].value=b;document.cookie=l+"="+b+"; expires="+GetCookieExpireTime();if(null!=document.forms[0].elements[_ppsi(a,"spssECAH")])document.forms[0].elements[_ppsi(a,"spssECAH")].value=b}function GetPinLink(c){ULS_Search();var a=document.forms[0].elements[_ppsi(c,"spssQI")];if(null!=a){var b=document.URL.indexOf("?");if(b>=0)return document.URL.substring(0,b)+"?"+a.value;else return document.URL+"?"+a.value}else return null}function GetTaxonomyApplyFilterUrl(g){ULS_Search();var i=document.getElementById("TaggingControl_"+g);if(i==null)return document.URL;var j=new Microsoft.SharePoint.Taxonomy.ControlObject(i);if(j==null)return document.URL;var c=new Microsoft.SharePoint.Taxonomy.Term.getTerms(j.getRawText());if(c&&c.length>0){var a=/(r=.+?)&/g.exec(document.URL);if(a==null||a.length==0)a=/(r=.+)/g.exec(document.URL);var b="";if(a!=null&&a.length>=1)b=a[1];var d=b;for(var f=0;f<c.length;f++){var h=c[f].get_guid(),k=c[f].get_text();if(h=="00000000-0000-0000-0000-000000000000")return;var e="";if(g=="Tags")e="owstaxidmetadataalltagsinfo=#0"+h+':"'+k+'"';else e="owstaxid"+g.toLowerCase()+"=#"+h+':"'+k+'"';if(b.indexOf(e)<0)d=d+" "+e}if(b=="")return document.URL.replace(/&r=/,"")+"&r="+encodeURIComponent(d).replace(/-/g,"%2D");else return document.URL.replace(b,encodeURIComponent(d).replace(/-/g,"%2D"))}else return document.URL}function loadEmmControls(){ULS_Search();var _emmOnLoadFunctionNames=null;if(_emmOnLoadFunctionNames==null)_emmOnLoadFunctionNames=[];var _emmOnloadCalled=true;for(var i=0;i<_emmOnLoadFunctionNames.length;i++){var expr="if(typeof("+_emmOnLoadFunctionNames[i]+')==""function""){'+_emmOnLoadFunctionNames[i]+"();}";eval(expr)}}function LoadJavaScript(b,c){ULS_Search();var a=document.createElement("script");a.type="text/javascript";a.src=c;if(b!=null)b.appendChild(a);return a}function LoadTaxonomyJavaScript(){ULS_Search();var a=containerIds.pop(),b=document.getElementsByTagName("head")[0];LoadJavaScript(b,"/_layouts/sp.ui.rte.js");LoadJavaScript(b,"/_layouts/scriptforwebtaggingui.js");var c=LoadJavaScript(b,"/_layouts/webtaggingdialog.js");c.onload=function(){ULS_Search();if(isScriptLoaded==false){SetElementDisplay("TaxonomyMoreControl_"+a,"block");Microsoft.SharePoint.Taxonomy.ScriptForWebTaggingUI.onLoad("TaggingControl_"+a);isScriptLoaded=true}};c.onreadystatechange=function(){ULS_Search();if(this.readyState=="complete"&&isScriptLoaded==false){SetElementDisplay("TaxonomyMoreControl_"+a,"block");Microsoft.SharePoint.Taxonomy.ScriptForWebTaggingUI.onLoad("TaggingControl_"+a);isScriptLoaded=true}}}var isScriptLoaded=false,containerIds=[];function RenderTaggingControl(b,g,m,k,h,n,f,l,j,i){ULS_Search();containerIds.push(b);var a=document.getElementById("TaggingControl_"+b);if(a==null){alert("control is null");return}if(a.childNodes.length<=1){a["InputFieldId"]="MetadataHiddenInput_"+b;a["SspId"]=m;a["TermSetId"]=k;a["AnchorId"]="00000000-0000-0000-0000-000000000000";a["IsMulti"]=true;a["ExcludeKeyword"]=false;a["FieldName"]=l;a["DisplayPickerButton"]=true;a["WebServiceUrl"]=h;a["Lcid"]=n;a["IsUIRightToLeft"]=i;a["IsAddTerms"]=false;a["IsIgnoreFormatting"]=true;a["IsIncludeDeprecated"]=true;a["IsIncludePathData"]=false;a["IsIncludeTermSetName"]=false;a["IsIncludeUnavailable"]=true;a["IsSpanTermSets"]=g;a["IsSpanTermStores"]=g;if(j==true)if(isScriptLoaded==false){var e;try{e=typeof SP.Ribbon.PageManager}catch(o){e="undefined"}EnsureScript("ribbon",e,LoadTaxonomyJavaScript)}else{SetElementDisplay("TaxonomyMoreControl_"+b,"block");Microsoft.SharePoint.Taxonomy.ScriptForWebTaggingUI.onLoad("TaggingControl_"+b)}}SetElementGroupDisplay(f,"none");var d=document.getElementById(f+"_"+b);if(d!=null){d.style.display="none";var c=d.nextSibling;c.style.display="block";if(c.childNodes.length>2)c.childNodes[2].focus()}}function GoSearch(l,z,k,x,A,y,w,v,u,j,s,r,q,p,t,i){ULS_Search();try{AddSearchoptionsToQuery()}catch(B){}var h=document.forms[0].elements[z].value;h=h.replace(/\s*$/,"");var o="1";if(l)o=document.forms[0].elements[l].Value;if(h==""||o=="0"){alert("Please enter one or more search words.");if(null!=event){event.returnValue=false;return false}else return}var c="?k="+encodeURIComponent(h);if(i!=null&&i!="")c+="&r="+encodeURIComponent(i);if(null!=k){var n=document.forms[0].elements[k].value;if(x)c+=canonicalizedUtf8FromUnicode(" "+n);else c+="&a="+canonicalizedUtf8FromUnicode(" "+n)}if(A){var b="",f="",g="",d="",a=document.forms[0].elements[y],e=false;b=a.options[a.selectedIndex].text;d=a.options[a.selectedIndex].value;if(d==s){f=d;b="";g=document.forms[0].elements[w].value;e=true}if(d==r){f=d;b="";g=document.forms[0].elements[v].value;e=true}if(d==q){f=b;b="";g=document.forms[0].elements[u].value;e=true}if(b==p){b=a.options[a.selectedIndex].value;e=true}if(e)j=t;if(b!=""){c+="&s="+encodeURIComponent(b);if(a.options[a.selectedIndex].value!=""&&!e)j=a.options[a.selectedIndex].value}if(f!="")c+="&cs="+encodeURIComponent(f);if(g!="")c+="&u="+encodeURIComponent(g)}var C=document.forms[0];try{external.AutoCompleteSaveForm(C)}catch(m){}window.location=j+c;try{if(null!=event)event.returnValue=false}catch(m){}return}function SetCrawlLogFilters(z,p,t,s,x,h,g,k){ULS_Search();var b=x,a="?",j=document.forms[0].elements[z].value;j=j.replace(/\s*$/,"");if(j!=""){b+=a+"u="+canonicalizedUtf8FromUnicode(j);a="&"}if(null!=p){var i=document.forms[0].elements[p],A=i.options[i.selectedIndex].text,u=i.options[i.selectedIndex].value;if(u!="-1"){b+=a+"cs="+canonicalizedUtf8FromUnicode(u);a="&"}}if(null!=t){var r=document.forms[0].elements[t],w=r.options[r.selectedIndex].value;if(w!="-1"){b+=a+"st="+canonicalizedUtf8FromUnicode(w);a="&"}}if(null!=s){var y=document.forms[0].elements[s].value,q=document.forms[0].elements[y],v=q.options[q.selectedIndex].value;if(v!="-1"){b+=a+"sm="+canonicalizedUtf8FromUnicode(v);a="&"}}if(null!=h){var f=document.getElementById(g_strDateTimeControlIDs[h]);if(f!=null&&f.value!=null&&f.value!=""){var d=f.value,o=document.getElementById(g_strDateTimeControlIDs[h]+"Hours");if(o!=null)d+=" "+o.selectedIndex+":";else d+=" 00:";var n=document.getElementById(g_strDateTimeControlIDs[h]+"Minutes");if(n!=null)d+=n.selectedIndex*5+":00";else d+=":00:00";b+=a+"min="+canonicalizedUtf8FromUnicode(d);a="&"}}if(null!=g){var e=document.getElementById(g_strDateTimeControlIDs[g]);if(e!=null&&e.value!=null&&e.value!=""){var c=e.value,m=document.getElementById(g_strDateTimeControlIDs[g]+"Hours");if(m!=null)c+=" "+m.selectedIndex+":";else c+=" 00:";var l=document.getElementById(g_strDateTimeControlIDs[g]+"Minutes");if(l!=null)c+=l.selectedIndex*5+":00";else c+=":00:00";b+=a+"max="+canonicalizedUtf8FromUnicode(c)}}if(b==x){alert("Please choose one of the filters.");if(null!=event){event.returnValue=false;return false}else return}if(null!=k&&k!=""){b+=a+"cl="+canonicalizedUtf8FromUnicode(k);a="&"}window.top.window.location=b;if(null!=event)event.returnValue=false;return}function SetSpecialTermFilters(f,c,e){ULS_Search();var a=e,b=document.forms[0].elements[f].value;b=b.replace(/\s*$/,"");if(b!=""){a+="&k="+canonicalizedUtf8FromUnicode(b);delim="&"}if(a==e)if(null!=event){event.returnValue=false;return false}else return;if(null!=c){var d=document.forms[0].elements[c],g=d.options[d.selectedIndex].value;a+="&ft="+canonicalizedUtf8FromUnicode(g)}window.top.window.location=a;if(null!=event)event.returnValue=false;return}function XmlEscape(a){ULS_Search();return a?a.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;"):""}function SendClick(t,q,j,s,i){ULS_Search();var a=i.id,g=a.replace("_Url","_Title").replace("_Icon","_Title"),l=/\d+_Title/.exec(g),m=/\d+/.exec(l),b=m?parseInt(m[0],10):0,p=/^(CSR_RV|CSR_MRL|SRP_)/.exec(a),f=null,h=null,d=null,r=g.replace(/\d+_Title/,""),n=document.getElementById(g);if(n)h=n.innerText;if(/^BBR_/.exec(a)){var e=/\d+$/.exec(a);b=e?parseInt(e[0],10):0;var o=document.getElementById("BBR_"+e);if(o){f=o.innerHTML;h=f}}else if(b>0&&/^SRB_/.exec(a)){d="";for(var c=1;c<b&&c<10;c++){var u=r+l[0].replace(/\d+/,c),k=document.getElementById(u);if(k)d+="<z>"+XmlEscape(k.href)+"</z>"}}else if(i.attributes["mss_definition"]!=null)j=j.replace("<df>false</df>","<df>true</df>");SendSoap(t,q,j,p?null:i.href,b+s-1,f,p,d,h)}function SendSoap(i,h,a,d,g,e,j,c,f){ULS_Search();var b=window.XMLHttpRequest?new XMLHttpRequest:window.ActiveXObject?new ActiveXObject("Msxml2.XMLHTTP"):null;if(b){b.open("POST",i,true);b.setRequestHeader("Content-Type","text/xml; charset=utf-8");b.setRequestHeader("SOAPAction",h);if(d)a=a.replace("</i>","<c>"+XmlEscape(d)+"</c>"+"</i>");if(g)a=a.replace("<r>0","<r>"+g);if(j)a=a.replace("<f>false","<f>true");if(logWAQuery)a=a.replace("<lq>false","<lq>true");logWAQuery=false;if(e)a=a.replace("</i>","<y>"+XmlEscape(e)+"</y>"+"</i>");if(c)a=a.replace("</i>",c+"</i>");if(f)a=a.replace("</i>","<ti>"+XmlEscape(f)+"</ti>"+"</i>");b.send(a)}}function SetElementDisplay(b,c){ULS_Search();var a=document.getElementById(b);if(a)a.style.display=c}function SetElementGroupDisplay(c,e){ULS_Search();var b=document.getElementsByTagName("div"),c=new RegExp(c);for(var a=0;a<b.length;a++){var d=b[a];if(c.exec(d.id))d.style.display=e}}function RecordRefinementSelections(g,f){ULS_Search();var e=document.getElementsByTagName("input"),h=new RegExp(f),d="";for(var b=0;b<e.length;b++){var a=e[b];if((a.type=="checkbox"&&a.checked||a.type=="text")&&h.exec(a.id))d+=a.value+";"}var c=document.getElementById(g);if(c)c.value=d}function uncheckMutualExclusiveMoreFilters(e,d){ULS_Search();if(!e.checked)return;var b=d.split(";"),a=0;while(a<b.length){var c=document.getElementById(b[a]);if(c)c.checked=false;a++}}FST_FlickScrollWindow=function(a,b){ULS_Search();this._previewWindowId=a;this._previewDivId=b};FST_FlickScrollWindow.prototype={_element:null,_previewWindow:null,_previewWindowId:null,_previewDiv:null,_previewDivId:null,_visible:false,_isDragging:false,_dragStartX:0,_dragStartY:0,_dragPrevX:0,_dragPrevY:0,_lastDragTime:0,_animTimeLength:1500,_lastSpeedX:0,_lastSpeedY:0,_currSpeedX:0,_currSpeedY:0,_floatScrollPosX:0,_floatScrollPosY:0,_tamperCheckX:0,_tamperCheckY:0,_animTimeStart:0,_lastAnimTime:0,_animTimeoutId:null,initialize:function(){ULS_Search();this._previewWindow=document.getElementById(this._previewWindowId);this._previewDiv=document.getElementById(this._previewDivId);this._previewDiv.onmousedown=Function.createDelegate(this,this.myBeginDrag);this._previewDiv.onmousemove=Function.createDelegate(this,this.myDrag);this._previewDiv.onmouseup=Function.createDelegate(this,this.myEndDrag)},ToggleVisible:function(){ULS_Search();this._visible=!this._visible;if(this._visible){this._previewDiv.innerHTML=this.preparedHtml;this._previewWindow.style.width=this._previewWindow.parentNode.clientWidth;if(this._previewWindow.parentNode.clientWidth=="")this._previewWindow.style.width="600px";else this._previewWindow.style.width=this._previewWindow.parentNode.clientWidth+"px"}this._previewWindow.style.display=this._visible?"block":"none"},myBeginDrag:function(a){ULS_Search();if(a==null)a=window.event;var b=a.target!=null?a.target:a.srcElement;this.stopAnimation();this._dragStartX=a.clientX;this._dragStartY=a.clientY;this._dragPrevX=a.clientX;this._dragPrevY=a.clientY;this._lastDragTime=(new Date).getTime();this._isDragging=true;return false},myDrag:function(a){ULS_Search();if(a==null)a=window.event;if(this._isDragging){var b=(new Date).getTime(),c=this._dragPrevX-a.clientX,d=this._dragPrevY-a.clientY,e=this._previewWindow.scrollLeft+=c,e=this._previewWindow.scrollTop+=d;this._dragPrevX=a.clientX;this._dragPrevY=a.clientY;this._lastSpeedX=c/(b-this._lastDragTime+1);this._lastSpeedY=d/(b-this._lastDragTime+1);this._lastDragTime=b;return false}},myEndDrag:function(){ULS_Search();if(this._isDragging){this._isDragging=false;if(Math.abs(this._lastSpeedX)>.2||Math.abs(this._lastSpeedY)>.2)this.startAnimation();if(this._dragStartX==this._dragPrevX&&this._dragStartY==this._dragPrevY)FST_ShowFullView()}},startAnimation:function(){ULS_Search();var a=(new Date).getTime();this._animTimeStart=a;this._lastAnimTime=a;this._currSpeedX=this._lastSpeedX;this._currSpeedY=this._lastSpeedY;this._floatScrollPosX=this._previewWindow.scrollLeft;this._floatScrollPosY=this._previewWindow.scrollTop;this._tamperCheckX=this._previewWindow.scrollLeft;this._tamperCheckY=this._previewWindow.scrollTop;this._animTimeoutId=setTimeout(Function.createDelegate(this,this.animate),10)},stopAnimation:function(){ULS_Search();if(this._animTimeoutId){clearTimeout(this._animTimeoutId);this._animTimeoutId=null}this._lastSpeedX=0;this._lastSpeedY=0;this._currSpeedX=0;this._currSpeedY=0},animate:function(){ULS_Search();var b=(new Date).getTime();if(this._currSpeedX!=0){var a=(b-this._animTimeStart)/this._animTimeLength;if(a>=0&&a<1)if(Math.abs(this._previewWindow.scrollLeft!=this._tamperCheckX)||Math.abs(this._previewWindow.scrollTop!=this._tamperCheckY))this.stopAnimation();else{var c=b-this._lastAnimTime;this._currSpeedX=this._lastSpeedX*(1-a)*(1-a);this._currSpeedY=this._lastSpeedY*(1-a)*(1-a);this._floatScrollPosX+=this._currSpeedX*c;this._floatScrollPosY+=this._currSpeedY*c;this._previewWindow.scrollLeft=this._floatScrollPosX;this._previewWindow.scrollTop=this._floatScrollPosY;this._tamperCheckX=this._previewWindow.scrollLeft;this._tamperCheckY=this._previewWindow.scrollTop;this._animTimeoutId=setTimeout(Function.createDelegate(this,this.animate),10)}else this.stopAnimation()}this._lastAnimTime=b},dummyElementWithoutComma:null};var FST_fullViewImgSrc=null;function FST_GetScrollLeft(){ULS_Search();var a=window.pageXOffset||document.body.scrollLeft||document.documentElement.scrollLeft;return a?a:0}function FST_GetScrollTop(){ULS_Search();var a=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;return a?a:0}function FST_ShowFullView(){ULS_Search();var a=document.getElementById("FST_fullSizePreviewWindow");if(!a){a=document.createElement("div");a.id="FST_fullSizePreviewWindow";a.style.position="absolute";a.style.top="0";a.style.left="0";a.style.width=800+"px";a.style.height=600+"px";a.style.zIndex="1000";document.body.appendChild(a)}var b=FST_GetScrollLeft(),c=FST_GetScrollTop();a.style.top=""+c+"px";a.style.left=""+b+"px";a.style.display="block";a.innerHTML='<center class="srch-ext-fullViewCenter">'+'<table class="srch-ext-fullViewTable"><tr><td class="srch-ext-fullViewTr">'+'<div onclick="FST_HideFullView();" class="srch-ext-fullViewClose">X</div>'+"</td></tr>"+'<tr><td class="srch-ext-fullViewTableTd" id="FST_fullViewTd">'+'<img class="srch-ext-fullViewImg" src="'+FST_fullViewImgSrc+'" onclick="FST_HideFullView();" />'+"</td></tr></table>"+"</center>"}function FST_HideFullView(){ULS_Search();document.getElementById("FST_fullSizePreviewWindow").style.display="none"}var FST_displayPreview=[];function FST_CheckForPreview(a,k,c,i){ULS_Search();var j=decodeURIComponent(k),d="FST_previewWindow_"+a,f="FST_previewDiv_"+a,g="FST_previewLinks_"+a,h="FST_previewIcon_"+a;document.getElementById(d).style.height=i+"px";document.getElementById(d).style.display="inline-block";var b=document.getElementById(d).clientHeight;if(b==0)b=i-35;else b=b-20;document.getElementById(d).style.display="none";var e=FST_displayPreview[a];if(!e){e=new FST_FlickScrollWindow(d,f);e.initialize();FST_displayPreview[a]=e;c=c.toLowerCase();if(c=="doc"||c=="docx"){var m=new FST_WordDocument;m.GetPreviewImagesDoc(g,h,a,f,j,b)}if(c=="ppt"||c=="pptx"){var l=new FST_PPTPresentation;l.getPreviewImagesPpt(g,h,a,f,j,b)}}}function FST_TogglePreviewWindow(b){ULS_Search();var a=FST_displayPreview[b];if(a)a.ToggleVisible()}function FST_WordDocument(){ULS_Search();}FST_WordDocument.prototype={slides:[],docId:null,previewLinksId:null,previewIconId:null,previewDivId:null,url:null,gDocRef:null,numPages:0,docDataXml:null,imageHeight:0,imageWidth:0,GetPreviewImagesDoc:function(e,f,k,g,j,b){ULS_Search();this.docId=k;this.previewLinksId=e;this.previewIconId=f;this.previewDivId=g;this.imageHeight=b;this.imageWidth=Math.round(b*(3/4));var c=new RegExp("^http(s)?://");c.ignoreCase=true;var i=j.replace(c,"H:"),d=i.replace(/^(H:[^\/]*\/[^\/]*\/)/i,"$1/"),h=encodeURIComponent(d);document.getElementById(this.previewDivId).innerHTML="Loading...";var a=new Sys.Net.WebRequest;a.set_url("/Docs/_layouts/WordViewerFrame.aspx?d="+h);a.add_completed(Function.createDelegate(this,this.myOnCompleteDoc));a.invoke()},myOnCompleteDoc:function(c){ULS_Search();if(c.get_statusCode()==200){var d=c.get_responseData(),a=d.match(/BaseDocQueryParam:\s\'[^\']*\'/i);if(a==null||a.toString()=="")return;a=a.toString().replace(/^.*\'([^\']*)\'.*$/,"$1");this.gDocRef=a;var b=new Sys.Net.WebRequest;b.set_url("/Docs/_layouts/docdatahandler.ashx?"+a+"&type=png&ui=en-US");b.add_completed(Function.createDelegate(this,this.myOnCompleteDoc2));b.invoke()}},myOnCompleteDoc2:function(b){ULS_Search();if(b.get_statusCode()==200){this.docDataXml=b.get_xml();var d=this.docDataXml.documentElement.getElementsByTagName("pageset")[0].attributes.getNamedItem("count").value;this.numPages=parseInt(d);var c="";for(var a=0;a<this.numPages;a++)c+='<img class="srch-ext-previewDivDocImg"'+' src="/Docs/_layouts/ResReader.ashx?'+this.gDocRef+"&o=origin&v=00000000-0000-0000-0000-000000000102&n=p"+(a+1)+'.img" '+'onmousedown="FST_fullViewImgSrc=this.src;" '+'height="'+this.imageHeight+'px" width="'+this.imageWidth+'px" />';document.getElementById(this.previewDivId).style.width=(this.imageWidth+10)*this.numPages+"px";document.getElementById(this.previewDivId).style.height=this.imageHeight+10+"px";FST_displayPreview[this.docId].preparedHtml=c;document.getElementById(this.previewIconId).className="srch-ext-previewIconDocImg";document.getElementById(this.previewIconId).src="/Docs/_layouts/ResReader.ashx?"+this.gDocRef+"&o=origin&v=00000000-0000-0000-0000-000000000102&n=p1.img";document.getElementById(this.previewLinksId).style.display="block";document.getElementById(this.previewIconId).style.display="block";document.getElementById(this.previewIconId).parentNode.style.display="block"}},dummyElementWithoutTrailingComma:null};function FST_PPTPresentation(){ULS_Search();}FST_PPTPresentation.prototype={docId:null,previewLinksId:null,previewIconId:null,slides:[],previewDivId:null,url:null,gDocRef:null,imageHeight:0,imageWidth:0,getPreviewImagesPpt:function(d,e,j,f,i,b){ULS_Search();this.docId=j;this.previewLinksId=d;this.previewIconId=e;this.previewDivId=f;this.imageHeight=b;this.imageWidth=Math.round(b*(4/3));var c=new RegExp("^http(s)?://[^/]*/");c.ignoreCase=true;var h=i.replace(c,"/"),g=h,a=new Sys.Net.WebRequest;a.set_url("/Docs/_layouts/powerpointframe.aspx?PowerpointView=ReadingView&PresentationId="+g);a.add_completed(Function.createDelegate(this,this.myOnCompletePpt));a.invoke()},myOnCompletePpt:function(c){ULS_Search();if(c.get_statusCode()==200){var e=c.get_responseData(),a=e.match(/PresentationId:\s\'[^\']*\'/i);if(a==null||a.toString()=="")return;a=a.toString().replace(/^.*\'([^\']*)\'.*$/,"$1");a=a.replace(/\\u0025/gi,"%");a=a.replace(/\\u0026/gi,"&");this.gDocRef=a;var b=new Sys.Net.WebRequest,d='{"presentationInfoId":null,"presentationId":"'+a+'","powerpointView":"StaticView"}';b.set_url("/_vti_bin/pptWS.asmx/GetPresentationInfoXml");b.set_httpVerb("POST");b.set_body(d);b.get_headers()["Content-Length"]=d.length;b.get_headers()["Content-Type"]="application/json; charset=utf-8";b.add_completed(Function.createDelegate(this,this.myOnCompletePpt2));b.invoke()}},myOnCompletePpt2:function(d){ULS_Search();if(d.get_statusCode()==200){var i=d.get_object(),g=i.d.Result,k=Sys.Net.XMLDOM(g),b=k.documentElement.getElementsByTagName("sld"),h=b.length,f="",c=encodeURIComponent(this.gDocRef);for(var a=0;a<b.length;a++){var m=b[a].attributes.getNamedItem("id").value,l=b[a].attributes.getNamedItem("title").value,e=b[a].attributes.getNamedItem("sldImg").value,j="/_layouts/ImageHandler.ashx?PowerPointView=StaticView&PresentationId="+c+"&ResourceId="+e;f+='<img class="srch-ext-previewDivPptImg"'+' src="'+j+'" '+'onmousedown="FST_fullViewImgSrc=this.src;" '+' height="'+this.imageHeight+'px" width="'+this.imageWidth+'px" />';if(a==0)document.getElementById(this.previewIconId).src="/_layouts/ImageHandler.ashx?PowerPointView=StaticView&PresentationId="+c+"&ResourceId="+e}FST_displayPreview[this.docId].preparedHtml=f;document.getElementById(this.previewDivId).style.width=(this.imageWidth+10)*h+"px";document.getElementById(this.previewIconId).className="srch-ext-previewIconPptImg";document.getElementById(this.previewLinksId).style.display="block";document.getElementById(this.previewIconId).style.display="block";document.getElementById(this.previewIconId).parentNode.style.display="block"}},dummyElementWithoutTrailingComma:null}