window.onload = function () { var footerBar = document.getElementById("footer-bottom").children[0]; var siteMapWrap = document.createElement("p"); var siteMapLink = document.createElement("a"); siteMapWrap.id = "social-map"; siteMapLink.id = "social-map-link"; siteMapLink.href = "/site-map"; siteMapLink.innerHTML = "Site Map"; siteMapWrap.appendChild(siteMapLink); footerBar.appendChild(siteMapWrap) }; window.onscroll = function() { var fixedHeader = document.getElementById("main-header"); fixedHeader.classList.remove("et-fixed-header"); }; /*insertLink("top-header","top_link_wrap","Listen to Rick Goldberg on Divorce Talk Radio KPRC 950 AM","https://www.rickmgoldberg.com/divorce-talk-with-rick-goldberg/","_self");*/ /* if (window.location.pathname == "/") { insertLink("top-header","corporate_law_link","Commercial Litigation","/corporate-law","_self");*/ /*var corporateNav= document.getElementsByClassName("corporate_law_nav"); var i; for (i = 0; i