/* Script Loading for Embedding of Client ID: fb944318-192b-4496-b4b5-1212eae4a662 Name: Oklahoma City, OK */ // Goal: // // Generate an IFRAME that sends postMessages to this window. // It should point to a valid hostname/url. // Attach an event handler to this window to address the postMessages // for IFRAME resizing on the fly. var lbisizeup = lbisizeup || {}; lbisizeup.defaultHeight = "1000"; lbisizeup.defaultMinHeight = "900"; lbisizeup.defaultWidth = "900"; lbisizeup.defaultMinWidth = "900"; lbisizeup.defaultColor = "#FFF"; // background color not supported. lbisizeup.defaultSource = "/ClientSetup/" + "fb944318-192b-4496-b4b5-1212eae4a662"; lbisizeup.init = function(ClientID) { me = lbisizeup; me.setCopyrightNotice(); me.setupIframe(); // set up a message handler to call lbisizeup.resizeframe(options); }; lbisizeup.setCopyrightNotice = function() { me = lbisizeup; var script = me.getThisScript(); var loc = me.getScriptLocation(); var span = document.createElement("span"); var span2 = document.createElement("span"); var currentYear = new Date().getFullYear(); var copyrightNode = document.createTextNode("Copyright " + '\u00A9' + ' ' + currentYear.toString() + ' '); var andNode = document.createTextNode(" and "); var gisPlanningLink = document.createElement("a"); gisPlanningLink.setAttribute("href", "//www.gisplanning.com"); gisPlanningLink.innerHTML = "GIS Planning Inc."; gisPlanningLink.setAttribute("target", "_blank"); var sizeupLink = document.createElement("a"); sizeupLink.setAttribute("href", "//www.sizeup.com"); sizeupLink.innerHTML = "SizeUp Inc."; sizeupLink.setAttribute("target", "_blank"); var patentNode = document.createTextNode(". Patent Pending. All Rights Reserved."); var termsLink = document.createElement("a"); termsLink.setAttribute("href", loc.protocol + "://" + loc.host + (loc.port ? ':' + loc.port : '') + "/Content/terms/"); termsLink.setAttribute("target", "_blank"); termsLink.innerHTML = "Terms of Use"; //var disclaimerNode = document.createTextNode("Notice and Disclaimer: Material on this website is protected by copyright and trademark laws. The information contained in this web site or linked sites is provided on an \"as is\" basis. We make no guarantee or representation about the accuracy or completeness of the information, and disclaim all warranties, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose and non-infringement. We are not responsible for any damages arising from the use of information on this site. It is your responsibility to independently investigate the information's accuracy and completeness, and to determine to your satisfaction the suitability of the property for your needs. Any projections, opinions, assumptions or estimates used are for example only and do not represent the current or future performance of any property."); span.appendChild(copyrightNode); span.appendChild(sizeupLink); span.appendChild(patentNode); span.appendChild(termsLink); //span2.appendChild(disclaimerNode); span.style["width"] = ((loc.query['width'] || me.defaultWidth) - 10) + 'px'; span.style["height"] = '18px'; span.style["backgroundColor"] = '#F8F8F8'; span.style["borderTop"] = '2px solid #EEEEEE'; span.style["padding"] = '5px'; span.style["textAlign"] = 'right'; span.style["fontSize"] = '10px'; span.style["fontFamily"] = 'Arial, Verdana, Sans-Serif'; span.style["color"] = '#606060'; span.style["display"] = 'block'; /* span2.style["width"] = ((loc.query['width'] || me.defaultWidth) - 10) + 'px'; span2.style["height"] = 'auto'; span2.style["min-height"] = '60px'; span2.style["backgroundColor"] = '#F8F8F8'; span2.style["borderTop"] = '2px solid #EEEEEE'; span2.style["padding"] = '5px'; span2.style["textAlign"] = 'left'; span2.style["fontSize"] = '8px'; span2.style["fontFamily"] = 'Arial, Verdana, Sans-Serif'; span2.style["color"] = '#606060'; span2.style["display"] = 'block'; */ gisPlanningLink.style["textDecoration"] = 'none'; gisPlanningLink.style["color"] = '#6EAB24'; //gisPlanningLink.style["margin"] = '0 5px 0 5px'; sizeupLink.style["textDecoration"] = "none"; sizeupLink.style["color"] = "#6EAB24"; //sizeupLink.style["margin"] = "0 5px 0 5px"; termsLink.style["textDecoration"] = 'none'; termsLink.style["color"] = '#6EAB24'; termsLink.style["margin"] = '0 5px 0 5px'; script.parentNode.insertBefore(span, script.nextSibling); //script.parentNode.insertBefore(span2, script.nextSibling); } lbisizeup.getThisScript = function () { me = lbisizeup; // get latest script added to the page (this script) var scripts = document.getElementsByTagName("script"); var index = scripts.length - 1; return scripts[index]; }; lbisizeup.getScriptLocation = function () { me = lbisizeup; var script = me.getThisScript(); var src = script.src; var chop = function (str) { var hash = {}; str = str.replace(' ', ''); if (str.length > 0) { var vars = str.split("&"); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split("="); hash[pair[0]] = unescape(pair[1]); } } return hash; }; var match = src.match(/^((https?|ftp):\/)?\/?((.*?)(:(.*?)|)@@)?((www\.)?([^:\/\s]+))(:([^\/]*))?((\/\w+)*\/)([-\w.]+[^#?\s]*)?(\?([^#]*))?(#(.*))?$/); match = match || new Array(20); var ret = { protocol: match[2], host: match[7], domain: match[9], port: match[11], path: match[12] + match[14], query: chop(match[16] ? match[16] : ''), hash: chop(match[18] ? match[18] : '') }; return ret; }; lbisizeup.resizeframe = function(options) { me = lbisizeup; }; lbisizeup.setupIframe = function() { me = lbisizeup; var loc = me.getScriptLocation(); var iframe = document.createElement("iframe"); var script = me.getThisScript(); iframe["frameBorder"] = "0"; iframe["border"] = "0"; iframe.style["border"] = "0"; iframe["height"] = (loc.query['height'] || me.defaultHeight) + 'px'; iframe["width"] = (loc.query['width'] || me.defaultWidth) + 'px'; iframe.style["height"] = (loc.query['height'] || me.defaultHeight) + 'px'; iframe.style["width"] = (loc.query['width'] || me.defaultWidth) + 'px'; iframe.style["background"] = ''; iframe.style["overflow"] = 'auto'; iframe.style["min-height"] = (me.defaultMinHeight) + 'px'; iframe.style["min-width"] = (me.defaultMinWidth) + 'px'; iframe.style["minHeight"] = (me.defaultMinHeight) + 'px'; iframe.style["minWidth"] = (me.defaultMinWidth) + 'px'; iframe.style["display"] = 'block'; iframe.id = "lbi_sizeup_" + "fb944318-192b-4496-b4b5-1212eae4a662"; iframe["scrolling"] = 'auto'; iframe["horizontalscrolling"] = 'no'; iframe["verticalscrolling"] = 'yes'; var isWithoutCookie = "False"; var src = loc.protocol + '://' + loc.host + (loc.port? ':' + loc.port : '') + me.defaultSource + (isWithoutCookie == 'True' ? '?c=false' : ''); iframe.src = src; script.parentNode.insertBefore(iframe, script.nextSibling); }; lbisizeup.init("fb944318-192b-4496-b4b5-1212eae4a662");