function analytics(){function o(n,t,i,r){var u,s=["h1","h2","h3","h4","h5","h6"],f=n.parentElement,c=!1,e;if("undefined"==typeof r&&(r=[]),isNaN(i)&&(i=0),t&&(f=t.parentElement),null===f||"body"===f.tagName.toLowerCase())return!1;for(e=0;e-1&&(u=!0,s(t[n].parentElement.parentElement)),t[n].className.toLowerCase().indexOf("video")>-1&&(r=!0),document.querySelectorAll(".breadcrumb--last").length&&(f=!0),t[n].className.toLowerCase().indexOf("btn")>-1?t[n].setAttribute("data-type","button"):t[n].className.toLowerCase().indexOf("cta")>-1?t[n].setAttribute("data-type","cta"):t[n].querySelectorAll("img").length?t[n].setAttribute("data-type","image"):t[n].setAttribute("data-type","link"),f&&t[n].setAttribute("data-breadcrumb",document.querySelector(".breadcrumb--last").textContent.trim()),t[n].setAttribute("data-template-name",document.querySelector("body").className),header=o(t[n]),"object"==typeof analyticsStore)for(i=0;i0){jQuery(".applied-filters").show();jQuery(".filter-select").show();jQuery("#no-results-div").hide();jQuery("#blocks-div").show();showLoad(n);var i=jQuery("#blocks-template").html(),r=Handlebars.compile(i),u=r(t);jQuery("#blocks-div").append(u).imagesLoaded().then(function(){equalheight(".content-block__media")});jQuery(window).resize(function(){equalheight(".content-block__media")})}else jQuery(".load-more-wrapper").hide(),jQuery(".applied-filters").hide(),jQuery(".filter-select").hide(),jQuery("#no-results-div").show(),jQuery("#no-results-div").html(jQuery("#no-results-template").html().replace("{keyword}",jQuery("#input-media-search").val().replace(//g,">"))),jQuery("#blocks-div").hide();jQuery("#input-media-search").autocomplete("close")},error:function(n){logAjaxError(n)}})}function showLoad(n){jQuery.ajax({type:"GET",dataType:"json",url:"/api/searchapi/IsLastMediaResultsPage",data:n,contentType:"application/json; charset=utf-8",success:function(t){t===!0||"true"===t?(jQuery(".load-more-wrapper").show(),jQuery(".load-more").unbind(),jQuery(".load-more").click(function(t){var i,r,u;t.preventDefault();i=getParamByName("pg",n);""===i&&(i=1);r=getParamByName("yrs",n);""===r&&(r=void 0);u=getUrlParams(void 0,parseInt(i,10)+1,r,cin,mediaType,mediaTypeExclude,pi,lp);loadResults(u)})):jQuery(".load-more-wrapper").hide()},error:function(n){logAjaxError(n)}})}function getParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))}function getParamByName(n,t){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var r=new RegExp("[\\?&]"+n+"=([^&#]*)"),i=r.exec(t);return null===i?"":decodeURIComponent(i[1].replace(/\+/g," "))}function getUrlParams(n,t,i,r,u,f,e,o){var s="r=",h,c;return(""!==t&&void 0!==t?s+="&pg="+t:(t=getParameterByName("pg"),s+=""!==t?"&pg="+t:"&pg=1"),s+=hasSearchValue()?"&k="+encodeURIComponent(jQuery("#input-media-search").val()).replace(/#/g,"%23"):"&k=",void 0===i)?s+="&yrs=":""!==i?s+="&yrs="+i:(h=getParameterByName("yrs"),s+=""!==h?"&yrs="+h:"&yrs="),c=getSelectedValues(jQuery("#cats-select")),c.length>0?jQuery.each(c,function(t,i){(void 0===n||i.toLowerCase()!=n.toLowerCase())&&(s+="&cats="+i)}):s+="&cats=",s+=void 0!==r&&r.length>0?"&cin="+r:"&cin=",s+=void 0!==u&&u.length>0?"&t="+u:"&t=",s+=void 0!==f&&f.length>0?"&xt="+f:"&xt=",s+=""!==e&&void 0!==e?"&pi="+e:"&pi=",s+=""!==o&&void 0!==o?"&lp="+o:"&lp="}function clicked(){var n,t,i;if(0===jQuery("#input-media-search").val().length)return!1;n="r=";t=getParameterByName("pg");n+=""===t||isNaN(t)?"&pg=1":"&pg="+t;n+=hasSearchValue()?"&k="+encodeURIComponent(jQuery("#input-media-search").val()).replace(/#/g,"%23"):"&k=";i=getParameterByName("yrs");n+=""===i||isNaN(i)?"&yrs=":"&yrs="+i;n+="&cats=";n+="&cin="+cin;n+="&t="+mediaType;n+="&xt="+mediaTypeExclude;n+="&pi="+pi;n+="&lp="+lp;clearResults();removeAllSelectedValues(jQuery("#years-select"));removeAllSelectedValues(jQuery("#cats-select"));window.history.pushState(null,null,"?"+n);loadResults(n)}function getSelectedValues(n){return n.find("input:checkbox:checked").map(function(){return this.id}).get()}function getSelectedValuesNormalCase(n){return n.find("input:checkbox:checked").map(function(){return this.name}).get()}function selectValue(n,t){jQuery.each(n.find("input:checkbox"),function(n,i){void 0!==t&&i.id.toLowerCase()==t.toLowerCase()&&jQuery(i).prop("checked",!0)})}function selectAllValue(n){jQuery.each(n.find("input:checkbox"),function(n,t){t.id.toLowerCase().startsWith("all")&&jQuery(t).prop("checked",!1)})}function removeSelectedValue(n,t){jQuery.each(n.find("input:checkbox:checked"),function(n,i){void 0!==t&&i.id.toLowerCase()==t.toLowerCase()&&jQuery(i).prop("checked",!1)})}function removeAllSelectedValues(n){jQuery.each(n.find("input:checkbox:checked"),function(n,t){jQuery(t).prop("checked",!1)})}function loadMediaResults(){jQuery(".content-section__media").length>0&&(Handlebars.registerHelper("getWideClass",function(n){return null!==n?" content-block__media-"+n:" "}),Handlebars.registerHelper("toLowerCase",function(n){return n.toLowerCase()}),Handlebars.registerHelper("isChecked",function(n){function i(n){for(var t,r=window.location.href,i=[],u=/[?&]?([^=]+)=([^&]*)/g;t==u.exec(r);)decodeURIComponent(t[1])==n&&i.push(decodeURIComponent(t[2]));return i}var t="";return jQuery.each(i("yrs"),function(i,r){n==r&&(t="checked")}),jQuery.each(i("cats"),function(i,r){n.toLowerCase()==r.toLowerCase()&&(t="checked")}),t}),jQuery.fn.imagesLoaded=function(){var t=this.find('img[src!=""]'),n;return t.length?(n=[],t.each(function(){var i=jQuery.Deferred(),t;n.push(i);t=new Image;t.onload=function(){i.resolve()};t.onerror=function(){i.resolve()};t.src=this.src}),jQuery.when.apply(jQuery,n)):jQuery.Deferred().resolve().promise()},String.prototype.startsWith||(String.prototype.startsWith=function(n,t){return t=t||0,this.indexOf(n,t)===t}),lp=jQuery("#landingPageId").val(),pi=jQuery("#parent").val(),cin=jQuery("#currentItemTemplateID").val(),mediaType=jQuery("#mediaType").val(),mediaTypeExclude=jQuery("#mediaTypeExcludes").val(),hasSearchValue=function(){return jQuery("#input-media-search").val().length>0&&jQuery("#input-media-search").val()!=jQuery("#input-media-search").attr("placeholder")},jQuery.ajax({type:"GET",dataType:"json",url:"/api/searchapi/getmediayears",data:"&t="+mediaType+"&xt="+mediaTypeExclude+"&pi="+pi,contentType:"application/json; charset=utf-8",success:function(n){var i=jQuery("#select-template").html(),r=Handlebars.compile(i),u=r(n),t=jQuery("#years-select");t.html(u);t.find(".form-items").click(function(){var n=jQuery.trim(jQuery(this).text());window.location=jQuery.isNumeric(n)?"?"+getUrlParams(!0,1,n,cin,mediaType,mediaTypeExclude,pi,lp):"?"+getUrlParams(!0,1,void 0,cin,mediaType,mediaTypeExclude,pi,lp)})},error:function(n){logAjaxError(n)}}),queryString=window.location.href.slice(window.location.href.indexOf("?")+1),queryString.startsWith("http")&&(queryString="pg=1&t="+mediaType+"&xt="+mediaTypeExclude+"&k=&yrs=&cats=&cin="+cin+"&pi="+pi+"&lp="+lp),queryString.startsWith("http")||loadResults(queryString),jQuery("#btn-media-search").click(function(){hasSearchValue()&&clicked()}),jQuery("#input-media-search").keypress(function(n){var t=n.which;13==t&&hasSearchValue()&&clicked()}))}function getResearchUrlParams(n){var t="",i,r,u;return t+="&k="+encodeURIComponent(getParameterByName("k")).replace(/#/g,"%23"),i="",t+=""!==i?"&pg="+i:"&pg=1",t+="&t="+getParameterByName("t"),r=getParameterByName("sort"),""!==r&&(t+="&sort="+r),t+="&f=",u=n.split("|")[0],jQuery.each(getParametersByName("r"),function(n,i){i.startsWith(u)||(t+="&r="+i)}),t}function getRefinedUrlParams(n){var t="",i,r,u;return t+="&k="+encodeURIComponent(getParameterByName("k")).replace(/#/g,"%23"),i="",t+=""!==i?"&pg="+i:"&pg=1",t+="&t="+getParameterByName("t"),r=getParameterByName("sort"),(""!==r&&(t+="&sort="+r),t+="&f=",n)||(u=getParametersByName("r"),u.length>0?jQuery.each(u,function(n,i){console.log(i);t+="&r="+i}):t+="&r="),t}function getParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))}function getParametersByName(n){var i=location.search.split("?")[1],r=i.split("&"),t=[];return jQuery.each(r,function(){var i=this.split("=");i[0]==n&&i[1].length>0&&t.push(decodeURIComponent(i[1].replace(/\+/g," ")))}),t}function loadRefiners(n){var t=jQuery("#search-refiners");0!==t.length&&jQuery.ajax({type:"GET",dataType:"json",url:"/api/searchapi/GetSearchRefiners",data:n,contentType:"application/json; charset=utf-8",success:function(n){if(n){var t=jQuery("#refiners-template").html(),i=Handlebars.compile(t),r=i(n);jQuery("#search-refiners").append(r);var u=jQuery("#refiners-mobile-template").html(),f=Handlebars.compile(u),e=f(n);jQuery("#mobile-search-refiners").append(e)}else jQuery("#mobile-search-refiners").hide()},error:function(n){logAjaxError(n)}})}function loadResearchRefiners(n){var t=jQuery("#research-search-refiners");0!==t.length&&jQuery.ajax({type:"GET",dataType:"json",url:"/api/searchapi/GetResearchSearchRefiners",data:n,contentType:"application/json; charset=utf-8",success:function(n){if(n){var i=jQuery("#research-refiners-template").html(),r=Handlebars.compile(i),u=r(n);t.append(u);t.find(".show-more").click(function(){var n=jQuery(this);console.log(n);n.parent().next().toggle();n.parent().next().next().toggle();n.parent().toggle()});t.find(".show-less").click(function(){var n=jQuery(this);console.log(n);n.parent().parent().toggle();n.parent().parent().prev().toggle()})}},error:function(n){logAjaxError(n)}})}function pageEvent(n){"use strict";var t=jQuery(n).attr("data-event-id");void 0!==t&&""!==t&&({pageEvent:t,item:jQuery(n).attr("data-event-item"),text:jQuery(n).attr("data-event-text"),hash:jQuery(n).attr("data-event-hash"),url:window.location})}function predictiveSearch(n,t,r){function f(n,t,i,r,f,e){jQuery(n).autocomplete({source:function(t,u){jQuery.ajax({url:"/api/searchapi/GetPredictiveSearch",dataType:"json",data:o(n,i,r,f),success:function(n){u(n)}})},minLength:2,create:function(){jQuery(n).autocomplete("instance")._renderItem=function(n,t){return jQuery("
  • ").append('
    '+(t.icon?'':'<\/use><\/svg>')+'<\/div>'+t.label+(t.location?', '+t.location+"<\/span>":"")+(t.position?''+t.position+"<\/span>":"")+"<\/span><\/a>").appendTo(n)};jQuery(n).autocomplete("instance")._renderMenu=function(o,h){var c=this;jQuery.each(h,function(n,t){c._renderItemData(o,t)});jQuery(o).append('
  • <\/use><\/svg><\/div>'+e+'<\/span> '+u(jQuery(n).val())+"<\/span><\/span><\/li>")}}})}function o(n,t,r,f){var e="",l,o,s,h,c;if(e+="k="+u(jQuery(n).val()),t.length>0)for(i=0;i0)for(i=0;i/g,">").replace(/\"/g,""").replace(/#/g,"%23")}f("#page_k",n,[],"","",r);f("#header_k",n,[],"","",r);f("#k",n,[],"","",r);f("#ppl_k",n,["people","offices"],"","",r);f("#input-media-search",n,[],"","",r);f("#grg_k",t,[],"","pub",r)}function loadLoopnetResults(){jQuery("#loadingDiv").show();jQuery.ajax({type:"GET",dataType:"json",url:"/api/searchapi/GetLoopNetResults",data:getLoopnetParams(),contentType:"application/json; charset=utf-8",success:function(n){if("undefined"!=typeof n.ForLeaseResults&&null!==n.ForLeaseResults&&void 0!==n.ForLeaseResults.PFResponseData.ListingList.Listing&&n.ForLeaseResults.PFResponseData.ListingList.Listing.length>0){var t=jQuery("#loopnet-lease-template").html(),i=Handlebars.compile(t),r=i(n.ForLeaseResults.PFResponseData.ListingList);jQuery("#loopnet-results-lease").append(r);jQuery("#loadingDiv").hide()}if("undefined"!=typeof n.ForSaleResults&&null!==n.ForSaleResults&&void 0!==n.ForSaleResults.PFResponseData.ListingList.Listing&&n.ForSaleResults.PFResponseData.ListingList.Listing.length>0){var u=jQuery("#loopnet-sale-template").html(),f=Handlebars.compile(u),e=f(n.ForSaleResults.PFResponseData.ListingList);jQuery("#loopnet-results-sale").append(e);jQuery("#loadingDiv").hide()}jQuery("#loadingDiv").hide()},error:function(n){jQuery("#loadingDiv").hide();jQuery("#errorDiv").show();logAjaxError(n)}})}function getLoopnetParams(){var n="";return n+="emailAddresses="+emailAddresses,n+="undefined"!=typeof forLease&&null!==forLease?"&forLease="+forLease:"&forLease=false",n+="undefined"!=typeof forLease&&null!==forLease?"&forSale="+forSale:"&forSale=false",n+("&parentId="+parentId)}var equalheight,Prism,CBRE,Grg,Slalom,lp,pi,cin,mediaType,mediaTypeExclude,hasSearchValue,queryString,emailAddresses,forSale,forLease,parentId;!function(n,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){function ni(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}function ti(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(re.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return vt.call(t,n)>-1!==r})}function di(n,t){for(;(n=n[t])&&1!==n.nodeType;);return n}function lf(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function ct(){u.removeEventListener("DOMContentLoaded",ct);n.removeEventListener("load",ct);i.ready()}function ft(){this.expando=i.expando+ft.uid++}function gi(n,t,r){var u;if(void 0===r&&1===n.nodeType)if(u="data-"+t.replace(eu,"-$&").toLowerCase(),r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:ue.test(r)?i.parseJSON(r):r}catch(f){}e.set(n,t,r)}else r=void 0;return r}function nr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||"px"!==o&&+s)&&et.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f/=e,i.style(n,t,f+o);while(e!==(e=c()/s)&&1!==e&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function o(n,t){var r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[];return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function ii(n,t){for(var i=0,u=n.length;u>i;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function tr(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;b>l;l++)if(e=n[l],e||0===e)if("object"===i.type(e))i.merge(y,e.nodeType?[e]:e);else if(lu.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(hu.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes);s=h.firstChild;s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];)if(u&&i.inArray(e,u)>-1)f&&f.push(e);else if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&ii(s),r)for(v=0;e=s[v++];)cu.test(e.type||"")&&r.push(e);return h}function lt(){return!0}function d(){return!1}function ir(){try{return u.activeElement}catch(n){}}function ri(n,t,r,u,f,e){var o,s;if("object"==typeof t){"string"!=typeof r&&(u=u||r,r=void 0);for(s in t)ri(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),f===!1)f=d;else if(!f)return this;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function rr(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n:n}function af(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function vf(n){var t=ce.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function ur(n,t){var u,c,f,s,h,l,a,o;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),o=s.events)){delete h.handle;h.events={};for(f in o)for(u=0,c=o[f].length;c>u;u++)i.event.add(t,f,o[f][u])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function yf(n,t){var i=t.nodeName.toLowerCase();"input"===i&&su.test(n.type)?t.checked=n.checked:("input"===i||"textarea"===i)&&(t.defaultValue=n.defaultValue)}function y(n,t,u,e){t=br.apply([],t);var l,w,c,a,s,b,h=0,v=n.length,d=v-1,p=t[0],k=i.isFunction(p);if(k||v>1&&"string"==typeof p&&!f.checkClone&&he.test(p))return n.each(function(i){var r=n.eq(i);k&&(t[0]=p.call(this,i,r.html()));y(r,t,u,e)});if(v&&(l=tr(t,n[0].ownerDocument,!1,n,e),w=l.firstChild,1===l.childNodes.length&&(l=w),w||e)){for(c=i.map(o(l,"script"),af),a=c.length;v>h;h++)s=l,h!==d&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(b=c[c.length-1].ownerDocument,i.map(c,vf),h=0;a>h;h++)s=c[h],cu.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(b,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):i.globalEval(s.textContent.replace(le,"")))}return n}function fr(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&ii(o(u,"script")),u.parentNode.removeChild(u));return n}function er(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.detach(),u}function ui(n){var r=u,t=vu[n];return t||(t=er(n,r),"none"!==t&&t||(wt=(wt||i("