function setSchema(schema) {
  var selector = "script[type='application/ld+json']";
  var schemaTag = document.querySelector(selector);

  if (!schemaTag) {
    schemaTag = document.createElement('script');
    schemaTag.type = 'application/ld+json';
    schemaTag.text = schema;

    document.head.appendChild(schemaTag);
  } else {
    schemaTag.text = schema;
  }
}

function findOrCreateMetaTag(name) {
  // Match the name case-insensitively (rather than via a CSS ":i" selector, unsupported in
  // older browsers) - host pages sometimes ship tags like <meta name="Description"> and we
  // need to update that one instead of adding a duplicate.
  var metaTag = null;
  var metaTags = document.getElementsByTagName("meta");
  for (var i = 0; i < metaTags.length; i++) {
    if ((metaTags[i].getAttribute("name") || "").toLowerCase() === name.toLowerCase()) {
      metaTag = metaTags[i];
      break;
    }
  }
  if (!metaTag) {
    metaTag = document.createElement("meta");
    metaTag.name = name;
    document.querySelector("head").appendChild(metaTag);
  }
  return metaTag;
}

function setMetaTagContent(metaTag, content, contentSeparator) {
  var newContent = content;
  if (metaTag.content) {
    newContent += contentSeparator + metaTag.content;
  }
  metaTag.content = newContent;
}

function addOrUpdateCanonicalLink(canonicalLinkUrl) {
  var existingCanonicalLink =  document.querySelector("link[rel='canonical']");
  var link = existingCanonicalLink || document.createElement('link');

  // canonicalLinkUrl, when present, is already the full per-listing canonical URL
  // (computed server-side from the country override plus this listing's own url_slug).
  link.href = canonicalLinkUrl || window.location.href;
  link.rel = 'canonical';

  document.head.appendChild(link);
}

var seoAttrs = {"pageTitle":"Palestine Shopping Center, Palestine, TX for lease","metaDescription":"For lease - Palestine Shopping Center, 330 E Spring St, Palestine, TX 75801","schema":{"@context":"https://schema.org/","@type":"RealEstateListing","contentLocation":{"@type":"Place","address":{"@type":"PostalAddress","streetAddress":"330 E Spring St","addressLocality":"Palestine","addressRegion":"TX","postalCode":"75801","addressCountry":"US"}}},"overrideCanonicalLink":true,"canonicalLinkUrl":null};

if (seoAttrs.pageTitle) {
  document.title = seoAttrs.pageTitle;
}

if (seoAttrs.metaDescription) {
  var metaDescTag = findOrCreateMetaTag("description");
  setMetaTagContent(metaDescTag, seoAttrs.metaDescription, " ");
}

if (seoAttrs.schema) {
  setSchema(JSON.stringify(seoAttrs.schema));
}

if (seoAttrs.overrideCanonicalLink) {
  addOrUpdateCanonicalLink(seoAttrs.canonicalLinkUrl);
}

buildoutEmbed({ "content": "\u003cheader\u003e\u003ch1\u003ePalestine Shopping Center\u003c/h1\u003e\u003cp\u003e330 E Spring St, Palestine, TX  75801\u003c/p\u003e\u003c/header\u003e\u003cimg src=\"https://d33y5rc9xva21v.cloudfront.net/eyJidWNrZXQiOiJidWlsZG91dC1wcm9kdWN0aW9uIiwia2V5IjoiZGF0YXMvMTQ1MjkxMDMvMzkzZGYwZjcxOTI5ZjE4MWI4MWIwYjdhMDFmNGY2OTJjZWM5YzEzNi9vcmlnaW5hbC5qcGciLCJlZGl0cyI6eyJyZXNpemUiOnsid2lkdGgiOjI1MDAsImhlaWdodCI6MjUwMCwiZml0IjoiaW5zaWRlIiwid2l0aG91dEVubGFyZ2VtZW50Ijp0cnVlfSwicm90YXRlIjpudWxsfSwidXBkYXRlZEF0IjoxNjc2OTEyNzMxfQ==\" /\u003e\u003csection id=\"overview\"\u003e\u003ch2\u003eOverview\u003c/h2\u003e\u003ctable id=\"summary-attributes\"\u003e\u003ctr\u003e\u003cth\u003ePrice Summary\u003c/th\u003e\u003ctd\u003e$2,000 per month (NNN)\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth\u003eTotal SF Available\u003c/th\u003e\u003ctd\u003e2,900 SF\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth\u003eProperty Type\u003c/th\u003e\u003ctd\u003eOffice\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth\u003eProperty Subtype\u003c/th\u003e\u003ctd\u003eOffice Building\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth\u003eBuilding Size\u003c/th\u003e\u003ctd\u003e45,923 SF\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003ch3\u003eHighlights\u003c/h3\u003e\u003cul\u003e\u003cli\u003eReception\u003c/li\u003e\u003cli\u003eConference Room\u003c/li\u003e\u003cli\u003e(8) private offices\u003c/li\u003e\u003cli\u003e(2) bathrooms\u003c/li\u003e\u003cli\u003eBreak room/kitchenette\u003c/li\u003e\u003cli\u003eStorage room\u003c/li\u003e\u003c/ul\u003e\u003ch3\u003eDescription\u003c/h3\u003e\u003cp\u003eOffice space available in the heart of Palestine, just minutes from downtown. The property offers strong visibility, easy access, and proximity to established retail and business activity\u2014ideal for a variety of office users.\u003c/p\u003e\u003ch3\u003eLocation\u003c/h3\u003e\u003cp\u003eLocated at the corner of E Spring St. and N Mallard St. in Palestine, Tx.\u003c/p\u003e\u003ch3\u003eContact Broker\u003c/h3\u003e\u003cdiv id=\"broker\"\u003e\u003cp\u003eHagan Baker\u003cbr /\u003eSenior Vice President, Office, Medical, Industrial\u003cbr /\u003eDrake Real Estate \u0026amp; Investments\u003c/p\u003e\u003ctable\u003e\u003ctr\u003e\u003cth\u003eCell\u003c/th\u003e\u003ctd\u003e903.405.1954\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth\u003eOffice\u003c/th\u003e\u003ctd\u003e903.405.1954\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/div\u003e\u003cdiv id=\"broker\"\u003e\u003cp\u003eMitchell NeJame\u003cbr /\u003eAssociate, Office, Medical, Industrial\u003cbr /\u003eDrake Real Estate \u0026amp; Investments\u003c/p\u003e\u003ctable\u003e\u003ctr\u003e\u003cth\u003eOffice\u003c/th\u003e\u003ctd\u003e903.780.9029\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/div\u003e\u003c/section\u003e\u003csection id=\"spaces\"\u003e\u003ch2\u003eAvailable Space (2,900 SF)\u003c/h2\u003e\u003ch3\u003e330 E Spring Street Ste E\u003c/h3\u003e\u003ctable\u003e\u003ctr\u003e\u003cth\u003e\u003cspan class=\"translation_missing\" title=\"translation missing: en.plugins.templates.v2.plugins.inventory.bot_show.space_available\"\u003eSpace Available\u003c/span\u003e:\u003c/th\u003e\u003ctd\u003e2,900 SF\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth\u003e\u003cspan class=\"translation_missing\" title=\"translation missing: en.plugins.templates.v2.plugins.inventory.bot_show.rate\"\u003eRate\u003c/span\u003e:\u003c/th\u003e\u003ctd\u003e$2,000 per month\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003cth\u003e\u003cspan class=\"translation_missing\" title=\"translation missing: en.plugins.templates.v2.plugins.inventory.bot_show.type\"\u003eType\u003c/span\u003e:\u003c/th\u003e\u003ctd\u003eOffice Building\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/section\u003e\u003cp\u003ePowered by Buildout\u003c/p\u003e" });
