Place Harmonizer

Harmonizes, formats, and locks a selected place

As of 2016-01-06. See the latest version.

/* global I18n */
/* global OpenLayers */
/* global $ */
/* global W */
/* global unsafeWindow */
/* global Components */
// ==UserScript==
// @name         Place Harmonizer
// @namespace 	 https://greasyfork.org/en/users/19426-bmtg
// @version      0.907
// @description  Harmonizes, formats, and locks a selected place
// @author       WMEPH development group
// @include             https://www.waze.com/editor/*
// @include             https://www.waze.com/*/editor/*
// @include             https://editor-beta.waze.com/editor/*
// @include             https://editor-beta.waze.com/*/editor/*
// @grant       none
// ==/UserScript==
(function () {
    function placeHarmonizer_bootstrap() {
        var bGreasemonkeyServiceDefined     = false;
    
        try
        {
            if ("object" === typeof Components.interfaces.gmIGreasemonkeyService)
            {
                bGreasemonkeyServiceDefined = true;
            }
        }
        catch (err)
        {
            //Ignore.
        }
        if ( "undefined" === typeof unsafeWindow  ||  ! bGreasemonkeyServiceDefined)
        {
            unsafeWindow    = ( function ()
            {
                var dummyElem   = document.createElement('p');
                dummyElem.setAttribute ('onclick', 'return window;');
                return dummyElem.onclick ();
            } ) ();
        }
        /* begin running the code! */
        if (("undefined" !== typeof W.loginManager)) {
            setTimeout(runPH, 100);
        }
        else {
            console.log("WMEPH: Bootstrap failed.  Trying again...");
            setTimeout(function () {
                placeHarmonizer_bootstrap();
            }, 1000);
        }
    }
    
    function runPH() {
        var WMEPHversion = "0.907";
        var isDevVersion = false;
        // user name and rank
        var thisUser = W.loginManager.user;
        if (thisUser === null) {
            console.log("WMEPH: Could not determine user.");
            return;
        }
        var WMEPHdevList = "bmtg|vtpearce|cardyin|jtsmith2|joyriding|fjsawicki".split("|");  
        var WMEPHbetaList = "jwe252|uscwaller|t0cableguy|tonestertm|driving79".split("|");
        var devUser = (WMEPHdevList.indexOf(thisUser.userName) > -1);
        var betaUser = (WMEPHbetaList.indexOf(thisUser.userName) > -1);
        if (devUser) {betaUser = true;}
        var usrRank = thisUser.normalizedLevel;
        var devVersStr;
        var devVersStrSpace;
        var sidebarMessage = [];
        var severity = 0;
        var NH_Bann;
        
        if (isDevVersion) {
            debugger;
        }
        
        // alert list, may eventually be removed.
        var alertList = ["If this is a bank branch, please add the Bank category and run script again.  If this is a standalone ATM, please add ATM after the name, add the ATM category, and run the script again.  If it is the bank's corporate offices, please add 'Corporate Offices' after the name, use the Offices category, and run again.",
                "If this is a bank branch, please remove ATM from the bank name, add the Bank category if needed, and run the script again.  If this is a standalone ATM, please add the ATM category and run the script again."
            ];
    
        // initialize the KB shortcut and settings tab
        setTimeout(setupKBShort, 1200);
        setTimeout(add_PlaceHarmonizationSettingsTab, 1300);
        
        // prime the shortcut
        function setupKBShort() {
            console.log("WMEPH: Initializing");
            if (isDevVersion) {
                shortcut.add("Shift+Alt+s", function() {
                    harmonizePlace();
                });
            } else {
                shortcut.add("Shift+Alt+a", function() {
                    harmonizePlace();
                });
            }
        }
        
        // settings tab
        function add_PlaceHarmonizationSettingsTab() {
            //Create Settings Tab
            if (isDevVersion) {
                devVersStr = "Dev";
                devVersStrSpace = " " + devVersStr;
            }
            else {
                devVersStr = "";
                devVersStrSpace = "";
            }
            // ' + devVersStr + '
            var phTabHtml = '<li><a href="#sidepanel-ph' + devVersStr + '" data-toggle="tab" id="PlaceHarmonization' + devVersStr + '">WMEPH' + devVersStrSpace + '</a></li>';
            $("#user-tabs ul.nav-tabs:first").append(phTabHtml);
        
            //Create Settings Tab Content
            var phContentHtml = '<div class="tab-pane" id="sidepanel-ph' + devVersStr + '"><div id="PlaceHarmonizer' + devVersStr + '"><p>WMEPH' + devVersStrSpace + ' v. ' + WMEPHversion + '</p><hr align="center" width="90%"><p>Settings:</p></div></div>';
            $("#user-info div.tab-content:first").append(phContentHtml);
            
            //Create Settings Checkboxes and Load Data
            if (devUser || betaUser || usrRank > 2) {
                createSettingsCheckbox("WMEPH-EnableServices" + devVersStr,"Enable Automatic Addition of Common Services");
            }
            // createSettingsCheckbox("WMEPH-ConvenienceStoreToGasStations","Add the Convenience Store Category to all Gas Stations");
            // createSettingsCheckbox("WMEPH-PreserveLongURLs","Preserve Long URLs for Harmonized Places");
            // createSettingsCheckbox("WMEPH-StripWWW","Strip 'www.' from URLs");
            if (devUser) {
                createSettingsCheckbox("WMEPH-RegionOverride" + devVersStr,"Disable Region Specificity");
            }
            
            var phContentHtml2 = '<div class="tab-pane" id="sidepanel-ph' + devVersStr + '"><div id="PlaceHarmonizer' + devVersStr + '"><hr align="center" width="90%"><p><a href="https://www.waze.com/forum/viewtopic.php?f=819&t=164962" target="_blank" title="Submit feedback and suggestions">Submit feedback and suggestions</a></p></div></div>';
            $("#PlaceHarmonizer" + devVersStr).append(phContentHtml2);
            // $("#user-info div.tab-content:first").append(phContentHtml2);
            
            
        }
    
        // -----------------------------------------------------------------------------------------------
        // createSettingCheckbox
        // -----------------------------------------------------------------------------------------------
        // This routine will create a checkbox in the #PlaceHarmonizer tab and will load the setting
        //        settingID:  The #id of the checkbox being created.  
        //                        This will be used later to refer to the checkbox in code.
        //  textDescription:  The description of the checkbox that will be use
        // -----------------------------------------------------------------------------------
        function createSettingsCheckbox(settingID, textDescription) {
            //Create settings checkbox and append HTML to settings tab
            var phTempHTML = '<input type="checkbox" id="' + settingID + '">'+ textDescription +'</input><br>';
            $("#PlaceHarmonizer" + devVersStr).append(phTempHTML);
            console.log(settingID + 'checkbox created');
            
            //Associate click event of new checkbox to call saveSettingToLocalStorage with proper ID
            $("#" + settingID).click(function() {saveSettingToLocalStorage(settingID);});
            console.log('Callback Set');
            
            //Load Setting for Local Storage, if it doesn't exist set it to NOT checked.
            //If previously set to 1, then trigger "click" event.
            if (!localStorage.getItem(settingID))
            {
                console.log(settingID + ' not found.');
            } else if(localStorage.getItem(settingID) === "1") {
                console.log(settingID + ' = 1 so invoking click');
                $("#" + settingID).trigger('click');
            }
            console.log('Setting Checked');
        }
    
        // Save settings prefs
        function saveSettingToLocalStorage(settingID) {
            if ($("#" + settingID).prop('checked')) {
                console.log(settingID + ' to 1');
                localStorage.setItem(settingID, '1');
            } else {
                console.log(settingID + ' to 0');
                localStorage.setItem(settingID, '0');
            }	
        }
        
        // Focus away from the current cursor focus, to set text box changes
        function blurAll() {
            var tmp = document.createElement("input");
            document.body.appendChild(tmp);
            tmp.focus();
            document.body.removeChild(tmp);
        }
    
        // Old function, will eventually be removed if not needed.
        function alertMessage(messageNum) {
            return alertList[messageNum];
        }
    
        // used for phone reformatting
        if (!String.plFormat) {
            String.plFormat = function(format) {
                var args = Array.prototype.slice.call(arguments, 1);
                return format.replace(/{(\d+)}/g, function(name, number) {
                    return typeof args[number] !== "undefined" ? args[number] : null;
                });
            };
        }
        
        // Banner production
        function WMEPH_DispWarn(e, t, o) {
            "use strict";
            var numWords = e.split(' ').length;
            var r;
            // If no duration is specified, use 30 seconds + 3 seconds per word 
            if ("undefined" === typeof o) {
                r = 3e4 + numWords * 3000;
            } else {r = o;}
            t !== !0 && (e = "<li>" + e);
            var n = $('<div id="WMEPHlog">').append(e);
            $("#WMEPH_logger_warn").append(n), n.delay(r).slideUp({
                duration: 200,
                complete: function() {
                    n.remove();
                }
            })
        }
    
        // Change place.name to title case
        var ignoreWords = ["an", "and", "as", "at", "by", "for", "from", "hhgregg", "in", "into", "of", "on", "or", "the", "to", "with"];
        var capWords = ["3M", "AMC", "AOL", "AT&T", "ATM", "BBC", "BLT", "BMV", "BMW", "BP", "CBS", "CCS", "CGI", "CISCO", "CNN", "CVS", "DHL", "DKNY",
            "DMV", "DSW", "ER", "ESPN", "FCUK", "GNC", "H&M", "HP", "HSBC", "IBM", "IKEA", "IRS", "JBL", "JCPenney", "KFC", "LLC", "MBNA", "MCA", "MCI",
            "NBC", "PNC", "TCBY", "TNT", "UPS", "USA", "USPS", "VW", "ZZZ"
        ];
        function toTitleCase(str) {
            if (!str) {
                return str;
            }
            
            var allCaps = (str === str.toUpperCase());
            
            str = str.replace(/\b([^\W_\d][^\s-\/]*) */g, function(txt) {
                return ((txt === txt.toUpperCase()) && !allCaps) ? txt : txt.charAt(0).toUpperCase() + txt.substr(1);
            });
            // Cap O'Reilley's, L'Amour, D'Artagnan as long as 5+ letters
            str = str.replace(/[oOlLdD]'[A-Za-z']{3,}/g, function(txt) {
                return ((txt === txt.toUpperCase()) && !allCaps) ? txt : txt.charAt(0).toUpperCase() + txt.charAt(1) + txt.charAt(2).toUpperCase() + txt.substr(3);
            });
            // Cap McFarley's, as long as 5+ letters long
            str = str.replace(/[mM][cC][A-Za-z']{3,}/g, function(txt) {
                return ((txt === txt.toUpperCase()) && !allCaps) ? txt : txt.charAt(0).toUpperCase() + txt.charAt(1).toLowerCase() + txt.charAt(2).toUpperCase() + txt.substr(3);
            });
            // anything sith an "&" sign, cap the word after &
            str = str.replace(/&\w+/g, function(txt) {
                return ((txt === txt.toUpperCase()) && !allCaps) ? txt : txt.charAt(0) + txt.charAt(1).toUpperCase() + txt.substr(2);
            });
    
            str = str.replace(/[^ ]+/g, function(txt) {
                var txtLC = txt.toLowerCase();
                return (ignoreWords.indexOf(txtLC) > -1) ? txtLC : txt;
            });
            str = str.replace(/[^ ]+/g, function(txt) {
                var txtLC = txt.toUpperCase();
                return (capWords.indexOf(txtLC) > -1) ? txtLC : txt;
            });
            str = str.charAt(0).toUpperCase() + str.substr(1);
            return str;
        }
    
        // Change place.name to title case
        function toTitleCaseStrong(str) {
            if (!str) {
                return str;
            }
            var allCaps = (str === str.toUpperCase());
            
            
            str = str.replace(/\b([^\W_\d][^\s-\/]*) */g, function(txt) {
                return ((txt === txt.toUpperCase()) && !allCaps) ? txt : txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
            });
            // Cap O'Reilley's, L'Amour, D'Artagnan as long as 5+ letters
            str = str.replace(/[oOlLdD]'[A-Za-z']{3,}/g, function(txt) {
                return ((txt === txt.toUpperCase()) && !allCaps) ? txt : txt.charAt(0).toUpperCase() + txt.charAt(1) + txt.charAt(2).toUpperCase() + txt.substr(3).toLowerCase();
            });
            // Cap McFarley's, as long as 5+ letters long
            str = str.replace(/[mM][cC][A-Za-z']{3,}/g, function(txt) {
                return ((txt === txt.toUpperCase()) && !allCaps) ? txt : txt.charAt(0).toUpperCase() + txt.charAt(1).toLowerCase() + txt.charAt(2).toUpperCase() + txt.substr(3).toLowerCase();
            });
            // anything sith an "&" sign, cap the word after &
            str = str.replace(/&\w+/g, function(txt) {
                return ((txt === txt.toUpperCase()) && !allCaps) ? txt : txt.charAt(0) + txt.charAt(1).toUpperCase() + txt.substr(2);
            });
    
            str = str.replace(/[^ ]+/g, function(txt) {
                var txtLC = txt.toLowerCase();
                return (ignoreWords.indexOf(txtLC) > -1) ? txtLC : txt;
            });
            str = str.replace(/[^ ]+/g, function(txt) {
                var txtLC = txt.toUpperCase();
                return (capWords.indexOf(txtLC) > -1) ? txtLC : txt;
            });
            str = str.charAt(0).toUpperCase() + str.substr(1);
            return str;
        }
    
        // normalize phone
        function normalizePhone(s, outputFormat) {
            if (!s) {
                sidebarMessage.push("Phone is missing.");
                severity = Math.max(1, severity);
                return s;
            }
            // Remove all non digits
            var s1 = s.replace(/\D/g, '');
            // 9 or 10 digits?
            var m = s1.match(/^1?(\d{3})(\d{3})(\d{4})$/);
            if (!m) {
                sidebarMessage.push("Phone is invalid.");
                severity = Math.max(2, severity);
                return s;
            } else {
                return String.plFormat(outputFormat, m[1], m[2], m[3]);
            }
        }
    
        // Normalize url
        function normalizeURL(s,item,addr) {
            if (!s) {
                var searchName = item.attributes.name;
                // Remove & sign from search name to prevent google search error
                searchName = searchName.replace(/&/g, function(txt) {
                    return "%26";
                });
                var searchG4S = "http://www.google.com/search?q=" + searchName + ",%20" + addr.street.name + ",%20" + addr.city.name + ",%20" + addr.state.name;
                sidebarMessage.push("URL missing. (<a href=\"" + searchG4S + "\" target=\"_blank\" style=\"color: #FFF\" title=\"Search for store in Google\">Click to search</a>)");
                severity = Math.max(1, severity);
                return s;
            }
            var m = s.match(/^https?:\/\/(.*)$/i);
            if (m) {
                return m[1];
            } else {
                return s;
            }
        }
    
        // Check if a single region/state string is in a csv list of state/regions
        function checkRegion(regList, plReg) {
            return ~plReg.indexOf(regList);
        }
    
        // Only go if a venue is selected
        function harmonizePlace() {
            if (W.selectionManager.selectedItems.length === 1) {
                var item = W.selectionManager.selectedItems[0].model;
                if (item.type === "venue") {harmonizePlaceGo();}
            }
        }
    
        // Main script
        function harmonizePlaceGo() {
            
            // set-up default message
            sidebarMessage = ["Place is formatted."];
            NH_Bann = {
                STC: {
                    active: false,
                    bannText: "Force Title Case: ",
                    id: "toTitleCaseStrong",
                    value: "Yes",
                    cLog: "WMEPH: Applied Strong Title Case",
                    action: function(item) {
                        var newNameStr = toTitleCaseStrong(item.attributes.name);
                        if (newNameStr !== item.attributes.name) {
                            console.log(NH_Bann.STC.cLog);
                            W.model.actionManager.add(new UpdateObject(item, {
                                name: newNameStr
                            }));
                            NH_Bann.STC.active = false;
                            
                        }
                    }
                },
                ATM: {
                    active: false,
                    bannText: "ATM at location? ",
                    id: "addATMCat",
                    value: "Yes",
                    cLog: "WMEPH: Added ATM category",
                    action: function() {
                        NH_Bann.ATM.active = false;
                    }
                },
                USPS: {
                    active: false,
                    bannText: "Is this a USPS location? ",
                    id: "USPSCat",
                    value: "Yes",
                    cLog: "WMEPH: Fixed USPS",
                    action: function(item) {
                        tempServ = ["AIR_CONDITIONING", "CREDIT_CARDS", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                        W.model.actionManager.add(new UpdateObject(item, {
                            url: "usps.com",
                            aliases: ["United States Postal Service"],
                            // services: tempServ.push
                        }));
                        NH_Bann.USPS.active = false;
                    }
                }
                
            }
            
            // track any errors to determine banner color
            severity = 0;
            
            // focus away from current cursor position
            blurAll();
    
            // Not sure what this does, but it's in all the other scripts that update Waze objects
            var UpdateObject;
            if (typeof(require) !== "undefined") {
                UpdateObject = require("Waze/Action/UpdateObject");
            } else {
                UpdateObject = W.Action.UpdateObject;
            }
    
            // Only for R2+
            if (usrRank < 2) {
                alert("Script is currently available for editors of Rank 2 and up.");
                return;
            }
            
            // lock levels are offset by one
            var lockLevel2 = 1;
            var lockLevel3 = 2;
            var lockLevel4 = 3;
            var lockLevel5 = 4;
    
            // Only lock up to the user's level
            if (lockLevel2 > (usrRank - 1)) {
                lockLevel2 = (usrRank - 1);
            }
            if (lockLevel3 > (usrRank - 1)) {
                lockLevel3 = (usrRank - 1);
            }
            if (lockLevel4 > (usrRank - 1)) {
                lockLevel4 = (usrRank - 1);
            }
            if (lockLevel5 > (usrRank - 1)) {
                lockLevel5 = (usrRank - 1);
            }
    
            // Only can select one place at a time in WME, so the loop is superfluous (eg, ix=0 will work), but perhaps we leave in just in case.
            for (var ix = 0; ix < W.selectionManager.selectedItems.length; ix++) {
                
                var item = W.selectionManager.selectedItems[ix].model;
                // get GPS lat/long coords from place
                var mercCoordLon = item.attributes.geometry.bounds.right;
                var mercCoordLat = item.attributes.geometry.bounds.top;
                var itemGPS = OpenLayers.Layer.SphericalMercator.inverseMercator(mercCoordLon,mercCoordLat);
                // if nothing goes wrong, then lock the place
                var lockOK = 1;
                var categories = item.attributes.categories;
                var vname = item.attributes.name;
                var addr = item.getAddress()
                // strip non letter and digit chars for string comparison with names on the PHN data
                var nameShort = vname.replace(/[^A-Za-z]/g, '');
                var nameNumShort = vname.replace(/[^A-Za-z0-9]/g, '');
                var countryCode;
                
                // Some user submitted places have no data in the country, state and address fields.  Need to have that to make the localization work.
                if (!addr.state || !addr.country) {
                    alert("Place has no address.  Script localization rules require a state.  Please set the address and rerun the script.");
                    return;
                }
                
                // Country restrictions
                if (addr.country.name === "United States") {
                    countryCode = "USA";
                } else if (addr.country.name === "Canada") {
                    countryCode = "CAN";
                    alert("At present this script is not supported in Canada.  Coming soon.");
                    return;
                } else {
                    alert("At present this script is not supported in your country.");
                    return;
                }
                
                
                // Setup USA State and Regional vars
                var region; var state2L;
                switch (addr.state.name) {
                    case "Arkansas": state2L = "AR"; region = "SCR"; break;
                    case "Louisiana": state2L = "LA"; region = "SCR"; break;
                    case "Mississippi": state2L = "MS"; region = "SCR"; break;
                    case "Oklahoma": state2L = "OK"; region = "SCR"; break;
                    case "Alaska": state2L = "AK"; region = "NWR"; break;
                    case "Idaho": state2L = "ID"; region = "NWR"; break;
                    case "Montana": state2L = "MT"; region = "NWR"; break;
                    case "Oregon": state2L = "OR"; region = "NWR"; break;
                    case "Washington": state2L = "WA"; region = "NWR"; break;
                    case "Wyoming": state2L = "WY"; region = "NWR"; break;
                    case "Hawaii": state2L = "HI"; region = "HI"; break;
                    case "Arizona": state2L = "AZ"; region = "SWR"; break;
                    case "California": state2L = "CA"; region = "SWR"; break;
                    case "Colorado": state2L = "CO"; region = "SWR"; break;
                    case "Nevada": state2L = "NV"; region = "SWR"; break;
                    case "New Mexico": state2L = "NM"; region = "SWR"; break;
                    case "Utah": state2L = "UT"; region = "SWR"; break;
                    case "Iowa": state2L = "IA"; region = "PLN"; break;
                    case "Kansas": state2L = "KS"; region = "PLN"; break;
                    case "Minnesota": state2L = "MN"; region = "PLN"; break;
                    case "Missouri": state2L = "MO"; region = "PLN"; break;
                    case "Nebraska": state2L = "NE"; region = "PLN"; break;
                    case "North Dakota": state2L = "ND"; region = "PLN"; break;
                    case "South Dakota": state2L = "SD"; region = "PLN"; break;
                    case "Texas": state2L = "TX"; region = "TX"; break;
                    case "Illinois": state2L = "IL"; region = "GLR"; break;
                    case "Indiana": state2L = "IN"; region = "GLR"; break;
                    case "Michigan": state2L = "MI"; region = "GLR"; break;
                    case "Ohio": state2L = "OH"; region = "GLR"; break;
                    case "Wisconsin": state2L = "WI"; region = "GLR"; break;
                    case "Kentucky": state2L = "KY"; region = "SAT"; break;
                    case "North Carolina": state2L = "NC"; region = "SAT"; break;
                    case "South Carolina": state2L = "SC"; region = "SAT"; break;
                    case "Tennessee": state2L = "TN"; region = "SAT"; break;
                    case "Alabama": state2L = "AL"; region = "SER"; break;
                    case "Florida": state2L = "FL"; region = "SER"; break;
                    case "Georgia": state2L = "GA"; region = "SER"; break;
                    case "Connecticut": state2L = "CT"; region = "NEW"; break;
                    case "Maine": state2L = "ME"; region = "NEW"; break;
                    case "Massachusetts": state2L = "MA"; region = "NEW"; break;
                    case "New Hampshire": state2L = "NH"; region = "NEW"; break;
                    case "Rhode Island": state2L = "RI"; region = "NEW"; break;
                    case "Vermont": state2L = "VT"; region = "NEW"; break;
                    case "Delaware": state2L = "DE"; region = "NOR"; break;
                    case "New Jersey": state2L = "NJ"; region = "NOR"; break;
                    case "New York": state2L = "NY"; region = "NOR"; break;
                    case "Pennsylvania": state2L = "PA"; region = "NOR"; break;
                    case "District of Columbia": state2L = "DC"; region = "MAR"; break;
                    case "Maryland": state2L = "MD"; region = "MAR"; break;
                    case "Virginia": state2L = "VA"; region = "MAR"; break;
                    case "West Virginia": state2L = "WV"; region = "MAR"; break;
                    default:
                        region = "Unknown";
                }
                console.log("WMEPH: Place is in region " + region)
    
                // Gas Station correction
                var subFuel = 0;
                var brandSwap = 0;
                var desServ = [];
                var customStoreFinder = false;
                if (categories.indexOf("GAS_STATION") > -1) {
                    if (nameShort.toUpperCase() == "SAMSCLUB" || nameShort.toUpperCase() == "SAMSCLUBFUELCENTER" || nameShort.toUpperCase() == "SAMSCLUBGAS" ||
                        nameShort.toUpperCase() == "SAMSCLUBFUEL" || nameShort.toUpperCase() == "SAMSCLUBGASOLINE") {
                        desServ = ["CREDIT_CARDS", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                        W.model.actionManager.add(new UpdateObject(item, {
                            name: "Sam's Club Gasoline",
                            url: "samsclub.com",
                            description: "Members only"
                        }));
                        subFuel = 1;
                    } else if (nameShort.toUpperCase() == "COSTCO" || nameShort.toUpperCase() == "COSTCOFUELCENTER" || nameShort.toUpperCase() == "COSTCOGASOLINE" ||
                        nameShort.toUpperCase() == "COSTCOGAS" || nameShort.toUpperCase() == "COSTCOFUEL") {
                        desServ = ["CREDIT_CARDS", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                        W.model.actionManager.add(new UpdateObject(item, {
                            name: "Costco Gasoline",
                            url: "costco.com",
                            description: "Members only"
                        }));
                        subFuel = 1;
                    } else if (nameShort.toUpperCase() == "BJS" || nameShort.toUpperCase() == "BJSFUELCENTER" || nameShort.toUpperCase() == "BJSGAS" ||
                        nameShort.toUpperCase() == "BJSFUEL" || nameShort.toUpperCase() == "BJSGASOLINE" ||
                        nameShort.toUpperCase() == "BJSWHOLESALE" || nameShort.toUpperCase() == "BJSWHOLESALEFUELCENTER" || nameShort.toUpperCase() == "BJSWHOLESALEGAS" ||
                        nameShort.toUpperCase() == "BJSWHOLESALEFUEL" || nameShort.toUpperCase() == "BJSWHOLESALEGASOLINE" ||
                        nameShort.toUpperCase() == "BJSWHOLESALECLUB" || nameShort.toUpperCase() == "BJSWHOLESALECLUBFUELCENTER" || nameShort.toUpperCase() == "BJSWHOLESALECLUBGAS" ||
                        nameShort.toUpperCase() == "BJSWHOLESALECLUBFUEL" || nameShort.toUpperCase() == "BJSWHOLESALECLUBGASOLINE") {
                        desServ = ["CREDIT_CARDS", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                        W.model.actionManager.add(new UpdateObject(item, {
                            name: "BJ's Gasoline",
                            url: "bjs.com",
                            description: "Members only"
                        }));
                        subFuel = 1;
                    } else {
                        if (!(item.attributes.brand === "" || item.attributes.brand == null)) {
                            if (item.attributes.brand.toUpperCase() !== vname.toUpperCase() && item.attributes.brand !== "Unbranded") {
                                W.model.actionManager.add(new UpdateObject(item, {
                                    name: item.attributes.brand,
                                    aliases: [toTitleCase(vname)]
                                }));
                                vname = item.attributes.brand;
                                brandSwap = 1;
                            }
                        }
                        desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                        if (categories.indexOf("ATM") > -1) {
                            if (categories.indexOf("CAR_WASH") > -1) {
                                W.model.actionManager.add(new UpdateObject(item, {
                                    categories: ["GAS_STATION", "CONVENIENCE_STORE", "CAR_WASH", "ATM"]
                                }));
                            } else {
                                W.model.actionManager.add(new UpdateObject(item, {
                                    categories: ["GAS_STATION", "CONVENIENCE_STORE", "ATM"]
                                }));
                            }
                        } else {
                            if (categories.indexOf("CAR_WASH") > -1) {
                                W.model.actionManager.add(new UpdateObject(item, {
                                    categories: ["GAS_STATION", "CONVENIENCE_STORE", "CAR_WASH"]
                                }));
                            } else {
                                W.model.actionManager.add(new UpdateObject(item, {
                                    categories: ["GAS_STATION", "CONVENIENCE_STORE"]
                                }));
                            }
                        }
                    }
                }
    
                // Place Harmonization 
                
                // **** All this next stuff for specific brands will be moved to csv parsing, so ignore for now.
    
                var tempCat = item.attributes.categories;
                var tempName = item.attributes.name;
                var tempServ = item.attributes.services.slice(0);
                var walmartFlag = 0;
                var hotelCat = 0;
    
                //	Brand based- Gas Stations:
    
                if (nameNumShort.toUpperCase() == "7ELEVEN" || nameShort.toUpperCase() == "SEVENELEVEN" ||
                    nameNumShort.toUpperCase() == "711" || nameNumShort.toUpperCase() == "SEVEN11") {
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "7-Eleven",
                        aliases: ["7-11"],
                        url: "7-eleven.com"
                    }));
                } else if (nameNumShort.toUpperCase() == "76" || nameNumShort.toUpperCase() == "76GAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "76",
                        url: "76.com"
                    }));
                } else if (nameShort.toUpperCase() == "AMOCO" || nameShort.toUpperCase() == "AMOCOGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Amoco",
                        url: "amoco.com"
                    }));
                } else if (nameShort.toUpperCase() == "BP" || nameShort.toUpperCase() == "BPGAS" || nameShort.toUpperCase() == "BRITISHPETROLEUM") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "BP",
                        url: "mybpstation.com"
                    }));
                } else if (nameShort.toUpperCase() == "CHEVRON" || nameShort.toUpperCase() == "CHEVRONGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Chevron",
                        url: "chevron.com"
                    }));
                } else if (nameShort.toUpperCase() == "CIRCLEK" || nameShort.toUpperCase() == "CIRCLEKGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Circle K",
                        url: "circlek.com"
                    }));
                } else if (nameShort.toUpperCase() == "CITGO" || nameShort.toUpperCase() == "CITGOGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Citgo",
                        url: "citgo.com"
                    }));
                } else if (nameShort.toUpperCase() == "CONOCO" || nameShort.toUpperCase() == "CONOCOGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Conoco",
                        url: "conoco.com"
                    }));
                } else if (nameShort.toUpperCase() == "EXXON" || nameShort.toUpperCase() == "EXXONGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Exxon",
                        url: "exxonmobilstations.com"
                    }));
                } else if (nameShort.toUpperCase() == "FLYINGJ" || nameShort.toUpperCase() == "FLYINGJGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Flying J",
                        url: "pilotflyingj.com"
                    }));
                } else if (nameShort.toUpperCase() == "GETTY" || nameShort.toUpperCase() == "GETTYGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Getty",
                        url: "getty.com"
                    }));
                } else if (nameShort.toUpperCase() == "GULF" || nameShort.toUpperCase() == "GULFGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Gulf",
                        url: "gulfoil.com"
                    }));
                } else if (nameShort.toUpperCase() == "HESS" || nameShort.toUpperCase() == "HESSEXPRESS" || nameShort.toUpperCase() == "HESSGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Hess",
                        url: "hess.com"
                    }));
                } else if (nameShort.toUpperCase() == "KANGAROOEXPRESS" || nameShort.toUpperCase() == "KANGAROOEXPRESSGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Kangaroo Express",
                        url: "kangarooexpress.com"
                    }));
                } else if (nameShort.toUpperCase() == "LOVES" || nameShort.toUpperCase() == "LOVESGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Love's",
                        url: "loves.com"
                    }));
                } else if (nameShort.toUpperCase() == "MARATHON" || nameShort.toUpperCase() == "MARATHONGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Marathon",
                        url: "mymarathonstation.com"
                    }));
                } else if (nameShort.toUpperCase() == "MOBIL" || nameShort.toUpperCase() == "MOBILGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Mobil",
                        url: "exxonmobilstations.com"
                    }));
                } else if (nameShort.toUpperCase() == "MURPHYUSA" || nameShort.toUpperCase() == "MURPHYUSAGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Murphy USA",
                        url: "murphyusa.com"
                    }));
                } else if (nameNumShort.toUpperCase() == "PHILLIPS66" || nameNumShort.toUpperCase() == "PHILIPS66" ||
                    nameShort.toUpperCase() == "PHILLIPS" || nameNumShort.toUpperCase() == "PHILLIPS66GAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Phillips 66",
                        url: "phillips66.com"
                    }));
                } else if (nameShort.toUpperCase() == "PILOT" || nameShort.toUpperCase() == "PILOTGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Pilot",
                        url: "pilotflyingj.com"
                    }));
                } else if (nameShort.toUpperCase() == "QUIKTRIP" || nameShort.toUpperCase() == "QUIKTRIPGAS" ||
                    nameShort.toUpperCase() == "QUICKTRIP" || nameShort.toUpperCase() == "QUICKTRIPGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "QuikTrip",
                        url: "quiktrip.com"
                    }));
                } else if (nameShort.toUpperCase() == "RACETRAC" || nameShort.toUpperCase() == "RACETRACGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "RaceTrac",
                        url: "racetrac.com"
                    }));
                } else if (nameShort.toUpperCase() == "RACEWAY" || nameShort.toUpperCase() == "RACEWAYGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Raceway",
                        url: "raceway.com"
                    }));
                } else if (nameShort.toUpperCase() == "SHELL" || nameShort.toUpperCase() == "SHELLGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Shell",
                        url: "shell.us/products-services/shell-for-motorists/station-locator.html"
                    }));
                } else if (nameShort.toUpperCase() == "SINCLAIR" || nameShort.toUpperCase() == "SINCLAIRGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Sinclair",
                        url: "sinclair.com"
                    }));
                } else if (nameShort.toUpperCase() == "SPEEDWAY" || nameShort.toUpperCase() == "SPEEDWAYGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Speedway",
                        url: "speedway.com"
                    }));
                } else if (nameShort.toUpperCase() == "SUNOCO" || nameShort.toUpperCase() == "SUNOCOGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Sunoco",
                        url: "sunoco.com"
                    }));
                } else if (nameShort.toUpperCase() == "THORNTONS" || nameShort.toUpperCase() == "THORNTONSGAS" ||
                    nameShort.toUpperCase() == "THORNTON" || nameShort.toUpperCase() == "THORNTONGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Thorntons",
                        url: "thorntonsinc.com"
                    }));
                } else if (nameShort.toUpperCase() == "TEXACO" || nameShort.toUpperCase() == "TEXACOGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Texaco",
                        url: "texaco.com"
                    }));
                } else if (nameShort.toUpperCase() == "VALERO" || nameShort.toUpperCase() == "VALEROGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Valero",
                        url: "valero.com/Stores/Pages/Home.aspx"
                    }));
                } else if (nameShort.toUpperCase() == "TRAVELCENTERSOFAMERICA" || nameShort.toUpperCase() == "TRAVELCENTER") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Travelcenters of America",
                        url: "ta-petro.com"
                    }));
                } else if (nameShort.toUpperCase() == "WAWA" || nameShort.toUpperCase() == "WAWAGAS") {
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Wawa",
                        url: "wawa.com"
                    }));
                }
    
                //	Non Gas Stations:
                else if (nameNumShort.toUpperCase() == "24HRFITNESS" || nameNumShort.toUpperCase() == "24HOURFITNESS" || nameNumShort.toUpperCase() == "24HFITNESS") {
                    tempCat = ["GYM_FITNESS"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "24 Hour Fitness",
                        url: "24hourfitness.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "AAA" || nameShort.toUpperCase() == "AMERICANAUTOMOBILEASSOCIATION" || nameShort.toUpperCase() == "TRIPLEA") {
                    tempCat = ["ORGANIZATION_OR_ASSOCIATION"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "AAA",
                        aliases: ["American Automobile Association"],
                        url: "aaa.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ACADEMYSPORTS" || nameShort.toUpperCase() == "ACADEMYSPORTSOUTDOORS") {
                    tempCat = ["SPORTING_GOODS", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Academy Sports & Outdoors",
                        url: "academy.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ACEHARDWARE" || (nameShort.toUpperCase() == "ACE" && categories.indexOf("HARDWARE_STORE") > -1)) {
                    tempCat = ["HARDWARE_STORE"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Ace Hardware",
                        url: "acehardware.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ALBERTSONS") {
                    tempCat = ["SUPERMARKET_GROCERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Albertsons",
                        url: "albertsons.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ALDI") {
                    tempCat = ["SUPERMARKET_GROCERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Aldi",
                        url: "aldi.us",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "AMSCOT") {
                    tempCat = ["BANK_FINANCIAL"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Amscot",
                        url: "amscot.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ANYTIMEFITNESS") {
                    tempCat = ["GYM_FITNESS"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Anytime Fitness",
                        url: "anytimefitness.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "APPLEBEES" || nameShort.toUpperCase() == "APPLEBEE" || nameShort.toUpperCase() == "APPLEBYS") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Applebee's",
                        url: "applebees.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ARBYS" || nameShort.toUpperCase() == "ARBY") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Arby's",
                        url: "arbys.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ATLANTICSTORAGE" || nameShort.toUpperCase() == "ATLANTICSELFSTORAGE") {
                    tempCat = ["SHOPPING_AND_SERVICES"];
                    desServ = ["CREDIT_CARDS", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Atlantic Self Storage",
                        aliases: ["Atlantic Storage"],
                        url: "atlanticselfstorage.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ATT" || nameShort.toUpperCase() == "ATANDT") {
                    tempCat = ["ELECTRONICS"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "AT&T",
                        url: "att.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ATTAUTHORIZEDRESELLER") {
                    tempCat = ["ELECTRONICS"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "AT&T Authorized Reseller",
                        url: "att.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "AUBONPAIN") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Au Bon Pain",
                        url: "aubonpain.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "AUTOZONE") {
                    tempCat = ["CAR_SERVICES"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "AutoZone",
                        url: "autozone.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "AVIS" || nameShort.toUpperCase() == "AVISCARRENTAL" || nameShort.toUpperCase() == "AVISRENTACAR" ||
                    nameShort.toUpperCase() == "AVISRENTAL" || nameShort.toUpperCase() == "AVISRENTALCAR") {
                    tempCat = ["CAR_RENTAL"];
                    desServ = ["CREDIT_CARDS", "PARKING_FOR_CUSTOMERS"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Avis",
                        url: "avis.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BABIESRUS" || nameShort.toUpperCase() == "BABIESAREUS") {
                    tempName = "Babies R Us";
                    tempCat = ["TOY_STORE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: tempName,
                        url: "babiesrus.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BACKYARDBURGERS") {
                    var regList = "SAT, SER";
                    if (checkRegion(regList, region)) {
                        tempCat = ["FAST_FOOD"];
                        desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                        W.model.actionManager.add(new UpdateObject(item, {
                            name: "Back Yard Burgers'",
                            url: "backyardburgers.com",
                            categories: tempCat
                        }));
                    }
                }
    
                // ** Banks:  see list at end
                else if (nameShort.toUpperCase() == "BASSPROSHOPS" || nameShort.toUpperCase() == "BASSPRO") {
                    tempCat = ["SPORTING_GOODS"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Bass Pro Shops",
                        url: "basspro.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BEDBATHBEYOND") {
                    tempCat = ["DEPARTMENT_STORE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Bed Bath & Beyond",
                        url: "bedbathandbeyond.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BEEFOBRADYS" || nameShort.toUpperCase() == "BEEFS") {
                    tempCat = ["RESTAURANT", "BAR"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Beef 'O' Brady's",
                        aliases: ["Beef's"],
                        url: "beefobradys.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BELK") {
                    tempCat = ["DEPARTMENT_STORE", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Belk",
                        url: "belk.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BESTBUY") {
                    tempCat = ["ELECTRONICS"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Best Buy",
                        url: "bestbuy.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BILO") {
                    tempCat = ["SUPERMARKET_GROCERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "BI-LO",
                        url: "bi-lo.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BIGLOTS") {
                    tempCat = ["SUPERMARKET_GROCERY", "DEPARTMENT_STORE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Big Lots",
                        url: "biglots.com",
                        categories: tempCat
                    }));
                }
    
                // BJ's Gasoline: see gas station section
                else if (!(categories.indexOf("GAS_STATION") > -1) && !(categories.indexOf("RESTAURANT") > -1) &&
                    (nameShort.toUpperCase() == "BJS" || nameShort.toUpperCase() == "BJSWHOLESALE" || nameShort.toUpperCase() == "BJSWHOLESALECLUB")) {
                    tempCat = ["SUPERMARKET_GROCERY", "DEPARTMENT_STORE", "FURNITURE_HOME_STORE", "ELECTRONICS", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "BJ's Wholesale Club",
                        url: "bjs.com",
                        description: "Members only"
                    }));
                } else if (nameShort.toUpperCase() == "BJSRESTAURANT" || nameShort.toUpperCase() == "BJSBREWHOUSE" || nameShort.toUpperCase() == "BJSRESTAURANTBREWHOUSE") {
                    tempCat = ["RESTAURANT", "BAR"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "BJ's Restaurant & Brewhouse",
                        url: "bjsrestaurants.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BOBEVANS" || nameShort.toUpperCase() == "BOBEVAN") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Bob Evans",
                        url: "bobevans.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BOJANGLES") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Bojangles'",
                        url: "bojangles.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BOOKSAMILLION" || nameShort.toUpperCase() == "BOOKSAMILION") {
                    tempCat = ["BOOKSTORE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Books-A-Milion",
                        aliases: ["Books a Million"],
                        url: "booksamillion.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BOSTONMARKET" || nameShort.toUpperCase() == "BOSTONMKT") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Boston Market",
                        url: "bostonmarket.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BUCADIBEPPO" || nameShort.toUpperCase() == "BUCADIBEPO") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Buca di Beppo",
                        url: "bucadibeppo.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BUFFALOWILDWINGS" || nameShort.toUpperCase() == "BUFFALOWILDWINGSGRILLBAR" ||
                    nameShort.toUpperCase() == "BWW" || nameShort.toUpperCase() == "BDUBS" ||
                    nameShort.toUpperCase() == "BUFFALOWILDWINGSGRILLANDBAR" || nameShort.toUpperCase() == "BUFFALOWILDWINGSGRILL") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Buffalo Wild Wings Grill & Bar",
                        aliases: ["BWW", "BDubs"],
                        url: "buffalowildwings.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BURGERFI") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "BurgerFi",
                        url: "burgerfi.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BURGERKING" || nameShort.toUpperCase() == "BK") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Burger King",
                        aliases: ["BK"],
                        url: "bk.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CAPTAINDS" || nameShort.toUpperCase() == "CAPTDS") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Captain D's",
                        url: "captainds.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CARMAX") {
                    tempCat = ["CAR_DEALERSHIP"];
                    desServ = ["PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "CarMax",
                        url: "carmax.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CHECKERS") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Checkers",
                        url: "checkers.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CHEDDARS" || nameShort.toUpperCase() == "CHEDARS") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Cheddar's",
                        url: "cheddars.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CHICKENEXPRESS" || nameShort.toUpperCase() == "CHICKENXPRESS") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Chicken Express",
                        url: "chickene.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CHICKENSALADCHICK") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Chicken Salad Chick",
                        url: "chickensaladchick.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CHICKFILA" || nameShort.toUpperCase() == "CHICFILA") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Chick-fil-A",
                        aliases: ["Chick Fil A", "Chickfila"],
                        url: "chickfila.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CHILIS") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Chili's",
                        url: "chilis.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CHIPOTLEMEXICANGRILL" || nameShort.toUpperCase() == "CHIPOTLE") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Chipotle Mexican Grill",
                        url: "chipotle.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CHUCKECHEESES" || nameShort.toUpperCase() == "CEC" || nameShort.toUpperCase() == "CHUCKECHEESE") {
                    tempCat = ["GAME_CLUB", "RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Chuck E Cheese's",
                        aliases: ["CEC"],
                        url: "chuckecheese.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CHURCHSCHICKEN" || nameShort.toUpperCase() == "CHURCHCHICKEN") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Church's Chicken",
                        url: "churchs.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CHUYS") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Chuy's",
                        url: "chuys.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "COOKOUT") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Cook Out",
                        url: "cookoutnc.com",
                        categories: tempCat
                    }));
                }
    
                // Costco Gasoline: see gas station section
                else if (!(categories.indexOf("GAS_STATION") > -1) && (nameShort.toUpperCase() == "COSTCO" || nameShort.toUpperCase() == "COSTCOWHOLESALE")) {
                    tempCat = ["SUPERMARKET_GROCERY", "DEPARTMENT_STORE", "FURNITURE_HOME_STORE", "ELECTRONICS", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Costco",
                        description: "Members only",
                        url: "costco.com"
                    }));
                } else if (nameShort.toUpperCase() == "CRACKERBARREL") {
                    tempCat = ["RESTAURANT", "GIFTS"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Cracker Barrel",
                        url: "crackerbarrel.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CVSPHARMACY" || nameShort.toUpperCase() == "CVS") {
                    tempCat = ["PHARMACY", "CONVENIENCE_STORE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "CVS Pharmacy",
                        url: "cvs.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "DAIRYQUEEN" || nameShort.toUpperCase() == "DQ") {
                    tempCat = ["FAST_FOOD", "ICE_CREAM"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Dairy Queen",
                        aliases: ["DQ"],
                        url: "dq.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "DAVIDSBRIDAL" || nameShort.toUpperCase() == "DAVIDSBRIDE") {
                    tempCat = ["FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "David's Bridal",
                        url: "davidsbridal.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "DENNYS") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Denny's",
                        url: "dennys.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "DILLARDS" || nameShort.toUpperCase() == "DILLARD") {
                    tempCat = ["DEPARTMENT_STORE", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Dillard's",
                        url: "dillards.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "DOLLARGENERAL" || nameShort.toUpperCase() == "DOLLARGENERALSTORE") {
                    tempCat = ["SHOPPING_AND_SERVICES"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Dollar General",
                        url: "dollargeneral.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "DOLLARTREE" || nameShort.toUpperCase() == "DOLLARTREESTORE") {
                    tempCat = ["SHOPPING_AND_SERVICES"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Dollar Tree",
                        url: "dollartree.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "DOMINOS" || nameShort.toUpperCase() == "DOMINOSPIZZA") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "DELIVERIES", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Domino's",
                        url: "dominos.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "DONATOS") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Donato's",
                        url: "donatos.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "DUNKINDONUTS" || nameShort.toUpperCase() == "DUNKINGDONUTS" || vname.toUpperCase() == "DD") {
                    tempCat = ["BAKERY", "CAFE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Dunkin' Donuts",
                        url: "dunkindonuts.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "EARTHFARE") {
                    tempCat = ["SUPERMARKET_GROCERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Earth Fare",
                        url: "earthfare.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "EINSTEINBROSBAGELS" || nameShort.toUpperCase() == "EINSTEINBROTHERSBAGELS" ||
                    nameShort.toUpperCase() == "EINSTEINBROS" || nameShort.toUpperCase() == "EINSTEINBROTHERS") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Einstein Bros Bagels",
                        aliases: ["Einstein Brothers"],
                        url: "einsteinbros.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ELEPHANTBAR") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Elephant Bar",
                        url: "elephantbar.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ENTERPRISE" || nameShort.toUpperCase() == "ENTERPRISECARRENTAL" ||
                    nameShort.toUpperCase() == "ENTERPRISERENTACAR" || nameShort.toUpperCase() == "ENTERPRISERENTAL" || nameShort.toUpperCase() == "ENTERPRISERENTALCAR") {
                    tempCat = ["CAR_RENTAL"];
                    desServ = ["CREDIT_CARDS", "PARKING_FOR_CUSTOMERS"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Enterprise",
                        url: "enterprise.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "FANTASTICSAMS" || nameShort.toUpperCase() == "FANTASTICSAM") {
                    tempCat = ["PERSONAL_CARE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Fantastic Sam's",
                        url: "fantasticsams.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "FATZCAFE" || nameShort.toUpperCase() == "FATZ") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Fatz Cafe",
                        url: "fatz.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "FEDEX" || nameShort.toUpperCase() == "FEDERALEXPRESS") {
                    tempCat = ["SHOPPING_AND_SERVICES"];
                    tempName = "FedEx";
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: tempName,
                        aliases: ["Federal Express"],
                        url: "fedex.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "FEDEXOFFICE") {
                    tempCat = ["SHOPPING_AND_SERVICES"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Fedex Office",
                        url: "fedex.com",
                        categories: tempCat,
                    }));
                } else if (nameShort.toUpperCase() == "FIREHOUSESUBS" || nameShort.toUpperCase() == "FIREHOUSE") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Firehouse Subs",
                        url: "firehousesubs.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "FIVEGUYSBURGERSFRIES" || nameNumShort.toUpperCase() == "5GUYSBURGERSFRIES" ||
                    nameShort.toUpperCase() == "FIVEGUYS" || nameNumShort.toUpperCase() == "5GUYS" ||
                    nameShort.toUpperCase() == "FIVEGUYSBURGERS" || nameNumShort.toUpperCase() == "5GUYSBURGERS") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Five Guys",
                        url: "fiveguys.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "FOODLION") {
                    tempCat = ["SUPERMARKET_GROCERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Food Lion",
                        url: "foodlion.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "GNC" || nameShort.toUpperCase() == "GENERALNUTRITIONCENTER" ||
                    nameShort.toUpperCase() == "GENERALNUTRITIONCENTERS") {
                    tempCat = ["PERSONAL_CARE"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "GNC",
                        aliases: ["General Nutrition Centers"],
                        url: "gnc.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "GOLDENCORRAL" || nameShort.toUpperCase() == "GOLDENCORAL") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Golden Corral",
                        url: "goldencorral.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "GOLDSGYM" || nameShort.toUpperCase() == "GOLDGYM") {
                    tempCat = ["GYM_FITNESS"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Gold's Gym",
                        url: "goldsgym.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "GREATCLIPS" || nameShort.toUpperCase() == "GREATCLIP") {
                    tempCat = ["PERSONAL_CARE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Great Clips",
                        url: "greatclips.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HARDEES" || nameShort.toUpperCase() == "HARDEE" || nameShort.toUpperCase() == "HARDYS") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Hardee's",
                        url: "hardees.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HARRISTEETER") {
                    tempCat = ["SUPERMARKET_GROCERY", "PHARMACY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Harris Teeter",
                        url: "harristeeter.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HERTZ" || nameShort.toUpperCase() == "HERTZCARRENTAL" ||
                    nameShort.toUpperCase() == "HERTZRENTACAR" || nameShort.toUpperCase() == "HERTZRENTAL" || nameShort.toUpperCase() == "HERTZRENTALCAR") {
                    tempCat = ["CAR_RENTAL"];
                    desServ = ["CREDIT_CARDS", "PARKING_FOR_CUSTOMERS"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Hertz",
                        url: "hertz.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HHGREGG" || nameShort.toUpperCase() == "HHGREG") {
                    tempCat = ["ELECTRONICS"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "h.h. gregg",
                        aliases: ["hhgregg", "hh gregg"],
                        url: "hhgregg.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HOOTERS" || nameShort.toUpperCase() == "GOLDENCORAL") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Hooters",
                        url: "hooters",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HRBLOCK" || nameShort.toUpperCase() == "HANDRBLOCK") {
                    tempCat = ["BANK_FINANCIAL"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "H&R Block",
                        aliases: ["H And R Block"],
                        url: "hrblock.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HUDDLEHOUSE") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Huddle House",
                        url: "huddlehouse.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "IGA") {
                    tempCat = ["SUPERMARKET_GROCERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "IGA",
                        url: "iga.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "IHOP" || nameShort.toUpperCase() == "INTERNATIONALHOUSEOFPANCAKES") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "IHOP",
                        url: "ihop.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "INGLES") {
                    tempCat = ["SUPERMARKET_GROCERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Ingles",
                        url: "ingles-markets.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "JASONSDELI" || nameShort.toUpperCase() == "JASONDELI") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Jason's Deli",
                        url: "jasonsdeli.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "JCPENNEY" || nameShort.toUpperCase() == "JCPENNEYS" ||
                    nameShort.toUpperCase() == "JCPENNY" || nameShort.toUpperCase() == "JCPENNYS") {
                    tempCat = ["DEPARTMENT_STORE", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "JCPenney",
                        url: "jcpenney.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "JIMMYJOHNS" || nameShort.toUpperCase() == "JIMMYJOHNSSUBS" ||
                    nameShort.toUpperCase() == "JIMMIEJOHNS" || nameShort.toUpperCase() == "JIMMIEJOHNSSUBS") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Jimmy John's",
                        url: "jimmyjohns.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "JOANNFABRICS" || nameShort.toUpperCase() == "JOANNFABRIC" || nameShort.toUpperCase() == "JOANNFABRICCRAFTS" ||
                    nameShort.toUpperCase() == "JOANNEFABRICS" || nameShort.toUpperCase() == "JOANNEFABRIC" || nameShort.toUpperCase() == "JOANNEFABRICCRAFTS" ||
                    nameShort.toUpperCase() == "JOANNSFABRICS" || nameShort.toUpperCase() == "JOANNS") {
                    tempCat = ["ARTS_AND_CRAFTS"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Jo-Ann Fabric & Craft",
                        url: "joann.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "KFC" || nameShort.toUpperCase() == "KENTUCKYFRIEDCHICKEN" || nameShort.toUpperCase() == "KENTUCKYFRIED") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "KFC",
                        aliases: ["Kentucky Fried Chicken"],
                        url: "kfc.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "KMART" || nameShort.toUpperCase() == "KMARTSUPERSTORE") {
                    tempCat = ["DEPARTMENT_STORE", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Kmart",
                        url: "kmart.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "KOBE" || nameShort.toUpperCase() == "KOBEJAPANESESTEAKHOUSE" || nameShort.toUpperCase() == "KOBESTEAKHOUSE") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Kobe Japanese Steakhouse",
                        url: "kobesteakhouse.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "KOHLS" || nameShort.toUpperCase() == "KOHL") {
                    tempCat = ["DEPARTMENT_STORE", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Kohl's",
                        url: "kohls.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "KRISPYKREME" || nameShort.toUpperCase() == "KRISPYKREAM" || vname.toUpperCase() == "KK") {
                    tempCat = ["BAKERY", "CAFE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Krispy Kreme",
                        url: "krispykreme.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "KRYSTAL") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Krystal",
                        url: "krystal.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "LABCORP") {
                    tempCat = ["OFFICES"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "LabCorp",
                        aliases: ["Lab Corp"],
                        url: "labcorp.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "LAFITNESS") {
                    tempCat = ["GYM_FITNESS"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "LA Fitness",
                        url: "lafitness.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "LENSCRAFTERS") {
                    tempCat = ["OFFICES"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "LabCorp",
                        aliases: ["LensCrafters"],
                        url: "lenscrafters.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "LITTLECAESARS" || nameShort.toUpperCase() == "LITTLECAESARSPIZZA" ||
                    nameShort.toUpperCase() == "LITTLECESARS" || nameShort.toUpperCase() == "LITTLECESARSPIZZA" ||
                    nameShort.toUpperCase() == "LITTLECEASARS" || nameShort.toUpperCase() == "LITTLECEASARSPIZZA") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "DELIVERIES", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Little Caesars",
                        url: "littlecaesars.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "LONGHORN" || nameShort.toUpperCase() == "LONGHORNSTEAKHOUSE") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "LongHorn Steakhouse",
                        url: "longhornsteakhouse.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "LOWES" || nameShort.toUpperCase() == "LOWESHOMEIMPROVEMENT" || nameShort.toUpperCase() == "LOWESHOMEIMPROVMENT") {
                    tempCat = ["HARDWARE_STORE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Lowe's",
                        url: "lowes.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "MACYS" || nameShort.toUpperCase() == "MACY") {
                    tempCat = ["DEPARTMENT_STORE", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Macy's",
                        url: "macys.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "MANNYSORIGINALCHOPHOUSE" || nameShort.toUpperCase() == "MANNYSCHOPHOUSE") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Manny's Original Chophouse",
                        url: "mannyschophouse.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "MARCOSPIZZA" || nameShort.toUpperCase() == "MARCOS" || nameShort.toUpperCase() == "MARCOPIZZA") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "DELIVERIES", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Marco's Pizza",
                        url: "marcos.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "MARSHALLS" || nameShort.toUpperCase() == "MARSHALS") {
                    tempCat = ["FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Marshalls",
                        url: "marshallsonline.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "MATTRESSFIRM" || nameShort.toUpperCase() == "THEMATTRESSFIRM" || nameShort.toUpperCase() == "MATRESSFIRM") {
                    tempCat = ["FURNITURE_HOME_STORE"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Mattress Firm",
                        url: "mattressfirm.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "MCDONALDS" || nameShort.toUpperCase() == "MCDS" || nameShort.toUpperCase() == "MCDONALD") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "McDonald's",
                        url: "mcdonalds.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "MELLOWMUSHROOM" || nameShort.toUpperCase() == "MELLOWMUSHROOMPIZZA") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Mellow Mushroom",
                        url: "mellowmushroom.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "MENSWEARHOUSE" || nameShort.toUpperCase() == "MENSWAREHOUSE") {
                    tempCat = ["FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Men's Wearhouse",
                        url: "menswearhouse.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "METROPCS") {
                    tempCat = ["ELECTRONICS"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "MetroPCS",
                        aliases: ["Metro PCS"],
                        url: "metropcs.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "METROSTORAGE" || nameShort.toUpperCase() == "METROSELFSTORAGE") {
                    tempCat = ["SHOPPING_AND_SERVICES"];
                    desServ = ["CREDIT_CARDS", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Metro Self Storage",
                        aliases: ["Metro Storage"],
                        url: "metrostorage.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "MICHAELS") {
                    tempCat = ["ARTS_AND_CRAFTS"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Michael's",
                        url: "michaels.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "MOESSOUTHWESTGRILL" || nameShort.toUpperCase() == "MOESSWGRILL") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Moe's Southwest Grill",
                        url: "moes.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "NEWKS" || nameShort.toUpperCase() == "NEWK") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Newk's",
                        url: "newks.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "NORDSTROM" || nameShort.toUpperCase() == "NORDSTROMS") {
                    tempCat = ["DEPARTMENT_STORE", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Nordstrom",
                        url: "nordstrom.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "NORDSTROMRACK" || nameShort.toUpperCase() == "NORDSTROMSRACK") {
                    tempCat = ["FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Nordstrom Rack",
                        url: "nordstromrack.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "OLIVEGARDEN" || nameShort.toUpperCase() == "THEOLIVEGARDEN") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Olive Garden",
                        url: "olivegarden.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ONTHEBORDER" || nameShort.toUpperCase() == "ONTEHBORDER") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "On the Border",
                        url: "home.ontheborder.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "OREILLYAUTOPARTS" || nameShort.toUpperCase() == "OREILLYPARTS" || nameShort.toUpperCase() == "OREILLYAUTO") {
                    tempCat = ["CAR_SERVICES"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "O'Reilly Auto Parts",
                        url: "oreillyauto.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "OUTBACK" || nameShort.toUpperCase() == "OUTBACKSTEAKHOUSE") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Outback Steakhouse",
                        url: "outback.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PANDAEXPRESS" || nameShort.toUpperCase() == "PANDAXPRESS") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Panda Express",
                        url: "pandaexpress.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PANERABREAD" || nameShort.toUpperCase() == "PANERA") {
                    tempCat = ["RESTAURANT", "BAKERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Panera Bread",
                        url: "panerabread.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PAPAJOHNS" || nameShort.toUpperCase() == "PAPAJOHNSPIZZA") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "DELIVERIES", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Papa John's Pizza",
                        url: "papajohns.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PAPPADEAUXSEAFOODKITCHEN" || nameShort.toUpperCase() == "PAPPADEAUXS" ||
                    nameShort.toUpperCase() == "PAPPADEAUXSEAFOOD" || nameShort.toUpperCase() == "PAPPADEAUXSSEAFOODKITCHEN") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Pappadeaux Seafood Kitchen",
                        aliases: ["Pappadeaux's"],
                        url: "pappadeaux.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PAYLESS" || nameShort.toUpperCase() == "PAYLESSSHOES" || nameShort.toUpperCase() == "PAYLESSSHOESOURCE") {
                    tempCat = ["DEPARTMENT_STORE", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Payless ShoeSource",
                        url: "payless.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PEPBOYS") {
                    tempCat = ["GARAGE_AUTOMOTIVE_SHOP", "CAR_SERVICES"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Pep Boys",
                        url: "pepboys.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PEPPERPALACE") {
                    tempCat = ["SHOPPING_AND_SERVICES"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Pepper Palace",
                        url: "pepperpalace.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PETCO") {
                    tempCat = ["PET_STORE_VETERINARIAN_SERVICES"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Petco",
                        url: "petco.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PETSMART") {
                    tempCat = ["PET_STORE_VETERINARIAN_SERVICES"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "PetSmart",
                        url: "petsmart.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PFCHANGS" || nameShort.toUpperCase() == "PFCHANG" ||
                    nameShort.toUpperCase() == "PFCHANGSCHINABISTRO" || nameShort.toUpperCase() == "PFCHANGSBISTRO") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "P.F. Chang's China Bistro",
                        aliases: ["PF Chang's China Bistro"],
                        url: "pfchangs.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PIGGLYWIGGLY") {
                    tempCat = ["SUPERMARKET_GROCERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Piggly Wiggly",
                        url: "pigglywiggly.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PIZZAHUT" || nameShort.toUpperCase() == "PIZAHUT") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "DELIVERIES", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Pizza Hut",
                        url: "pizzahut.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "POPEYES" || nameShort.toUpperCase() == "POPEYESLOUISIANAKITCHEN") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Popeyes Louisiana Kitchen",
                        url: "locations.popeyes.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PUBLICSTORAGE" || nameShort.toUpperCase() == "PUBLICSELFSTORAGE") {
                    tempCat = ["SHOPPING_AND_SERVICES"];
                    desServ = ["CREDIT_CARDS", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Public Storage",
                        url: "publicstorage.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PUBLIX" || nameShort.toUpperCase() == "PUBLIXSUPERMARKET") {
                    tempCat = ["SUPERMARKET_GROCERY", "PHARMACY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Publix",
                        url: "publix.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "QUIZNOS" || nameShort.toUpperCase() == "QUIZNO") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Quiznos",
                        url: "quiznos.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "RADIOSHACK") {
                    tempCat = ["ELECTRONICS"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Radio Shack",
                        url: "radioshack.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "RAISINGCANES" || nameShort.toUpperCase() == "RAISINGCANE") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Raising Cane's",
                        url: "raisingcanes.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "REDLOBSTER" || nameShort.toUpperCase() == "REDLOBSTERGRILL") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Red Lobster",
                        url: "redlobster.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ROSS" || nameShort.toUpperCase() == "ROSSDRESSFORLESS" || nameNumShort.toUpperCase() == "ROSSDRESS4LESS") {
                    tempCat = ["FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Ross Dress for Less",
                        url: "rossstores.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "RUBYTUESDAY" || nameShort.toUpperCase() == "RUBYTUESDAYS") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Ruby Tuesday",
                        url: "rubytuesday.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "RURALKING" || nameShort.toUpperCase() == "RURALKINGSUPPLY") {
                    tempCat = ["DEPARTMENT_STORE", "SPORTING_GOODS"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Rural King Supply",
                        url: "ruralking.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "RYANS") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Ryan's",
                        url: "ryans.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SALSARITAS") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Salsarita's",
                        url: "salsaritas.com",
                        categories: tempCat
                    }));
                }
    
                // Sam's Club Gasoline: see gas station section
                else if (!(categories.indexOf("GAS_STATION") > -1) && (nameShort.toUpperCase() == "SAMSCLUB")) {
                    tempCat = ["SUPERMARKET_GROCERY", "DEPARTMENT_STORE", "FURNITURE_HOME_STORE", "ELECTRONICS", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Sam's Club",
                        url: "samsclub.com",
                        description: "Members only"
                    }));
                } else if (nameShort.toUpperCase() == "SAVEALOT") {
                    tempCat = ["SUPERMARKET_GROCERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Save-A-Lot",
                        url: "save-a-lot.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SCHLOTZSKYS" || nameShort.toUpperCase() == "SCHLOTSKYS" ||
                    nameShort.toUpperCase() == "SHLOTZSKYS" || nameShort.toUpperCase() == "SHLOTSKYS") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Schlotzsky's",
                        url: "schlotzskys.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SEARS" || nameShort.toUpperCase() == "SEARSHOME") {
                    tempCat = ["DEPARTMENT_STORE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Sears",
                        url: "sears.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SEPHORA" || nameShort.toUpperCase() == "SEPHORASALON") {
                    tempCat = ["PERSONAL_CARE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Sephora",
                        url: "sephora.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SIZZLER" || nameShort.toUpperCase() == "SIZZLERGRILL" || nameShort.toUpperCase() == "SIZZLERSTEAKHOUSE") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Sizzler",
                        url: "sizzler.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SMASHBURGER") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Smashburger",
                        url: "smashburger.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SONIC" || nameShort.toUpperCase() == "SONICDRIVEIN") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Sonic Drive-In",
                        url: "sonicdrivein.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SPORTSAUTHORITY" || nameShort.toUpperCase() == "THESPORTSAUTHORITY") {
                    tempCat = ["SPORTING_GOODS", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Sports Authority",
                        url: "sportsauthority.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "STARBUCKS" || nameShort.toUpperCase() == "STARBUCK") {
                    tempCat = ["CAFE"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Starbucks",
                        aliases: [],
                        url: "starbucks.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "STEAKNSHAKE" || nameShort.toUpperCase() == "STEAKANDSHAKE") {
                    tempCat = ["FAST_FOOD", "RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Steak 'n Shake",
                        aliases: ["Steak and Shake"],
                        url: "steaknshake.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SUBWAY") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "SUBWAY",
                        url: "subway.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SUPERCUTS" || nameShort.toUpperCase() == "SUPERCUTSSALON") {
                    tempCat = ["PERSONAL_CARE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Supercuts",
                        url: "supercuts.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "TACOBELL") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Taco Bell",
                        url: "tacobell.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "TARGET" || nameShort.toUpperCase() == "TARGETSUPERSTORE") {
                    tempCat = ["DEPARTMENT_STORE", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Target",
                        url: "target.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "TEXASROADHOUSE" || nameShort.toUpperCase() == "TXROADHOUSE") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Texas Roadhouse",
                        url: "texasroadhouse.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "TGIFRIDAYS" || nameShort.toUpperCase() == "TGIF" || nameShort.toUpperCase() == "TGIFRIDAY") {
                    tempCat = ["RESTAURANT"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "TGI Friday's",
                        aliases: ["TGIF"],
                        url: "tgifridays.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "THEHOMEDEPOT" || nameShort.toUpperCase() == "HOMEDEPOT") {
                    tempCat = ["HARDWARE_STORE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "The Home Depot",
                        url: "homedepot.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "TJMAXX" || nameShort.toUpperCase() == "TJMAX") {
                    tempCat = ["FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "TJ Maxx",
                        url: "tjmaxx.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "TOYSRUS" || nameShort.toUpperCase() == "TOYSAREUS") {
                    tempName = "Toys R Us";
                    tempCat = ["TOY_STORE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: tempName,
                        url: "toysrus.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "TRADERJOES") {
                    tempCat = ["SUPERMARKET_GROCERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Trader Joe's",
                        url: "traderjoes.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "UHAUL") {
                    tempCat = ["CAR_RENTAL", "SHOPPING_AND_SERVICES"];
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "U-Haul",
                        aliases: ["UHaul"],
                        url: "uhaul.com",
                        description: "Moving truck rental",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ULTA" || nameShort.toUpperCase() == "ULTASALON") {
                    tempCat = ["PERSONAL_CARE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "ULTA",
                        url: "ulta.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "UNCLEBOBSSELFSTORAGE") {
                    tempCat = ["SHOPPING_AND_SERVICES"];
                    desServ = ["CREDIT_CARDS", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Uncle Bob's Self Storage",
                        url: "unclebobs.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "UPS" || nameShort.toUpperCase() == "UNITEDPARCELSERVICE") {
                    tempCat = ["SHOPPING_AND_SERVICES"];
                    tempName = "UPS";
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: tempName,
                        aliases: ["United Parcel Service"],
                        url: "ups.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "UPSSTORE" || nameShort.toUpperCase() == "THEUPSSTORE") {
                    tempCat = ["SHOPPING_AND_SERVICES"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "The UPS Store",
                        url: "theupsstore.com",
                        categories: tempCat,
                        description: "For packing, shipping, printing and business service needs."
                    }));
                } else if (nameShort.toUpperCase() == "VITAMINSHOPPE" || nameShort.toUpperCase() == "VITAMINSHOP" ||
                    nameShort.toUpperCase() == "THEVITAMINSHOPPE" || nameShort.toUpperCase() == "THEVITAMINSHOP") {
                    tempCat = ["PERSONAL_CARE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Vitamin Shop",
                        url: "vitaminshoppe.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "VONMAUR" || nameShort.toUpperCase() == "VONMAUER") {
                    tempCat = ["DEPARTMENT_STORE", "FASHION_AND_CLOTHING"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Von Maur",
                        url: "vonmaur.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "WAFFLEHOUSE" || nameShort.toUpperCase() == "WAFLEHOUSE") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Waffle House",
                        url: "wafflehouse.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "WALGREENS" || nameShort.toUpperCase() == "WALGREEN") {
                    tempCat = ["PHARMACY", "CONVENIENCE_STORE"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Walgreens",
                        url: "walgreens.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "WALMART" || nameShort.toUpperCase() == "WALMARTSUPERCENTER" || nameShort.toUpperCase() == "SUPERWALMART") {
                    if (categories.indexOf("SUPERMARKET_GROCERY") > -1) {
                        tempCat = ["DEPARTMENT_STORE", "SUPERMARKET_GROCERY"];
                    } else {
                        tempCat = ["DEPARTMENT_STORE"];
                        walmartFlag = 1;
                    }
                    var customStoreURL = "http://www.walmart.com/store/finder?location=" + addr.city.name + "%20" + state2L + "&distance=25";
                    customStoreFinder = true;
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Walmart",
                        url: "walmart.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "WALMARTNEIGHBORHOODMARKET" || nameShort.toUpperCase() == "WALMARTMARKET") {
                    tempCat = ["SUPERMARKET_GROCERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Walmart Neighborhood Market",
                        url: "walmart.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "WENDYS") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Wendy's",
                        url: "wendys.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "WHATABURGER") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Whataburger",
                        url: "whataburger.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "WHOLEFOODSMARKET" || nameShort.toUpperCase() == "WHOLEFOODS") {
                    tempCat = ["SUPERMARKET_GROCERY"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Whole Foods Market",
                        url: "wholefoodsmarket.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "WORLDMARKET" || nameShort.toUpperCase() == "COSTPLUS" || nameShort.toUpperCase() == "COSTPLUSWORLDMARKET") {
                    tempCat = ["DEPARTMENT_STORE", "MARKET"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "World Market",
                        aliases: ["Cost Plus World Market"],
                        url: "worldmarket.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "YOUFIT") {
                    tempCat = ["GYM_FITNESS"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Youfit",
                        url: "youfit.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "ZAXBYS" || nameShort.toUpperCase() == "ZAXBY") {
                    tempCat = ["FAST_FOOD"];
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "TAKE_AWAY", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Zaxby's",
                        url: "zaxbys.com",
                        categories: tempCat
                    }));
                }
    
                // HOTELS:
                else if (nameShort.toUpperCase() == "CANDLEWOODSUITES" || nameShort.toUpperCase() == "CANDLEWOOD") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Candlewood Suites",
                        url: "ihg.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "COURTYARDBYMARRIOTT" || nameShort.toUpperCase() == "MARRIOTTCOURTYARD") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Courtyard by Marriott",
                        url: "marriott.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CROWNEPLAZA" || nameShort.toUpperCase() == "CROWNPLAZA") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Crown Plaza",
                        url: "ihg.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "EXTENDEDSTAYAMERICA" || nameShort.toUpperCase() == "EXTENDEDSTAY") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Extended Stay America",
                        url: "extendedstayamerica.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HAMPTONINN") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Hampton Inn",
                        url: "hamptoninn3.hilton.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HILTON" || nameShort.toUpperCase() == "HILTONHOTEL") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Hilton",
                        url: "hilton.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HILTONGARDENINN") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Hilton Garden Inn",
                        url: "hilton.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HOLIDAYINN") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Holiday Inn",
                        url: "ihg.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HOLIDAYINNSUITES" || nameShort.toUpperCase() == "HOLIDAYINNANDSUITES") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Holiday Inn & Suites",
                        aliases: ["Holiday Inn and Suites"],
                        url: "ihg.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HOLIDAYINNEXPRESS") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Holiday Inn Express",
                        url: "ihg.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HOLIDAYINNEXPRESSSUITES" || nameShort.toUpperCase() == "HOLIDAYINNEXPRESSANDSUITES") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Holiday Inn Express & Suites",
                        aliases: ["Holiday Inn Express and Suites"],
                        url: "ihg.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HOLIDAYINNRESORT") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Holiday Inn Resort",
                        url: "ihg.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HOTELINDIGO") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Hotel Indigo",
                        url: "ihg.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HOWARDJOHNSON" || nameShort.toUpperCase() == "HOJO") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Howard Johnson",
                        aliases: ["HoJo"],
                        url: "hojo.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "HYATT") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Hyatt",
                        url: "hyatt.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "LAQUINTA" || nameShort.toUpperCase() == "LAQUINTAINN") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "La Quinta Inn",
                        aliases: ["LaQuinta Inn"],
                        url: "lq.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "MARRIOTT" || nameShort.toUpperCase() == "MARRIOT") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Marriott",
                        url: "marriott.com",
                        categories: tempCat
                    }));
                } else if (nameNumShort.toUpperCase() == "MOTEL6" || nameShort.toUpperCase() == "MOTELSIX") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Motel 6",
                        url: "motel6.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "STAYBRIDGESUITES" || nameShort.toUpperCase() == "STAYBRIDGE") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Staybridge Suites",
                        url: "ihg.com",
                        categories: tempCat
                    }));
                } else if (nameNumShort.toUpperCase() == "SUPER8" || nameShort.toUpperCase() == "SUPEREIGHT") {
                    hotelCat = 1;
                    tempCat = ["HOTEL"];
                    desServ = ["WI_FI", "RESTROOMS", "CREDIT_CARDS", "RESERVATIONS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Super 8",
                        url: "super8.com",
                        categories: tempCat
                    }));
                }
    
                // BANKS: 
                else if (nameShort.toUpperCase() == "BANKOFAMERICA" || nameShort.toUpperCase() == "BOFA") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        sidebarMessage.push(alertList[0]);
                        severity = 3;
                        lockOK = 0;
                    } else {
                        tempCat = ["BANK_FINANCIAL", "ATM"];
                        desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                        W.model.actionManager.add(new UpdateObject(item, {
                            name: "Bank of America",
                            url: "bankofamerica.com",
                            categories: tempCat
                        }));
                    }
                } else if (nameShort.toUpperCase() == "BANKOFAMERICAATM" || nameShort.toUpperCase() == "BOFAATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Bank of America ATM",
                        url: "bankofamerica.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "BANKUNITED") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "BankUnited",
                        url: "bankunited.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BANKUNITEDATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "BankUnited ATM",
                        url: "bankunited.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "BBT" || vname.toUpperCase() == "BBANDT") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "BB&T",
                        aliases: ["BBT", "BB and T"],
                        url: "bbt.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "BBTATM" || vname.toUpperCase() == "BBANDTATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "BB&T ATM",
                        aliases: ["BBT ATM", "BB and T ATM"],
                        url: "bbt.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameNumShort.toUpperCase() == "C1BANK") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "C1 Bank",
                        url: "c1bank.com",
                        categories: tempCat
                    }));
                } else if (nameNumShort.toUpperCase() == "C1BANKATM" || vname.toUpperCase() == "C1ATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "C1 Bank ATM",
                        aliases: ["C1 ATM"],
                        url: "c1bank.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "CHASEBANK" || vname.toUpperCase() == "CHASE") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Chase Bank",
                        url: "chase.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CHASEBANKATM" || vname.toUpperCase() == "CHASEATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Chase ATM",
                        url: "chase.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "CITIBANK" || vname.toUpperCase() == "CITI") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Citibank",
                        aliases: ["Citi Bank"],
                        url: "citibank.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CITIBANKATM" || vname.toUpperCase() == "CITIATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Citibank ATM",
                        aliases: ["Citi ATM"],
                        url: "citibank.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "CITIZENS" || vname.toUpperCase() == "CITIZENSBANK") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Citizens Bank",
                        url: "citizens.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "CITIZENSATM" || vname.toUpperCase() == "CITIZENSBANKATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Citizens Bank ATM",
                        url: "citizens.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "FIFTHTHIRDBANK" || nameShort.toUpperCase() == "FIFTHTHIRD" || nameNumShort.toUpperCase() == "53BANK") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Fifth Third Bank",
                        aliases: ["5/3 Bank"],
                        url: "53.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "FIFTHTHIRDBANKATM" || nameShort.toUpperCase() == "FIFTHTHIRDATM" ||
                    nameNumShort.toUpperCase() == "53BANKATM" || nameNumShort.toUpperCase() == "53ATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Fifth Third Bank ATM",
                        aliases: ["5/3 Bank ATM"],
                        url: "53.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "FIRSTCITIZENSBANK" || nameShort.toUpperCase() == "FIRSTCITIZENS") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "First Citizens Bank",
                        url: "firstcitizensonline.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "FIRSTCITIZENSBANKATM" || nameShort.toUpperCase() == "FIRSTCITIZENSATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "First Citizens Bank ATM",
                        url: "firstcitizensonline.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "IBMSOUTHEASTEMPLOYEESFEDERALCREDITUNION" || nameShort.toUpperCase() == "IBMSOUTHEASTEFCU" ||
                    nameShort.toUpperCase() == "IBMSEFCU" || nameShort.toUpperCase() == "IBMSEEFCU") {
                    tempName = "IBM Southeast EFCU";
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: tempName,
                        aliases: ["IBM Southeast Employees' Federal Credit Union", "IBM SEFCU"],
                        url: "ibmsecu.org",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "IBMSOUTHEASTEMPLOYEESFEDERALCREDITUNIONATM" || nameShort.toUpperCase() == "IBMSOUTHEASTEFCUATM" ||
                    nameShort.toUpperCase() == "IBMSEFCUATM" || nameShort.toUpperCase() == "IBMSEEFCUATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "IBM Southeast EFCU ATM",
                        aliases: ["IBM Southeast Employees' Federal Credit Union ATM", "IBM SEFCU ATM"],
                        url: "ibmsecu.org",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "PNCBANK" || nameShort.toUpperCase() == "PNC") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "PNC Bank",
                        url: "pnc.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "PNCBANKATM" || nameShort.toUpperCase() == "PNCATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "PNC Bank ATM",
                        url: "pnc.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "REGIONS" || nameShort.toUpperCase() == "REGIONSBANK") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Regions Bank",
                        url: "regions.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "REGIONSATM" || nameShort.toUpperCase() == "REGIONSBANKATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Regions Bank ATM",
                        url: "regions.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "SOUTHSTATEBANK") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "South State Bank",
                        url: "southstatebank.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SOUTHSTATEBANKATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "South State Bank ATM",
                        url: "southstatebank.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "SUNCOASTCREDITUNION" || nameShort.toUpperCase() == "SUNCOASTSCHOOLSCREDITUNION" ||
                    nameShort.toUpperCase() == "SUNCOASTFEDERALCREDITUNION" || nameShort.toUpperCase() == "SUNCOASTSCHOOLSFEDERALCREDITUNION" ||
                    nameShort.toUpperCase() == "SUNCOASTCU" || nameShort.toUpperCase() == "SUNCOASTSCHOOLSCU" ||
                    nameShort.toUpperCase() == "SUNCOASTFCU" || nameShort.toUpperCase() == "SUNCOASTSCHOOLSFCU") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Suncoast Credit Union",
                        aliases: ["Suncoast CU", "Suncoast Schools Credit Union"],
                        url: "suncoastcreditunion.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SUNCOASTCREDITUNIONATM" || nameShort.toUpperCase() == "SUNCOASTSCHOOLSCREDITUNIONATM" ||
                    nameShort.toUpperCase() == "SUNCOASTFEDERALCREDITUNIONATM" || nameShort.toUpperCase() == "SUNCOASTSCHOOLSFEDERALCREDITUNIONATM" ||
                    nameShort.toUpperCase() == "SUNCOASTCUATM" || nameShort.toUpperCase() == "SUNCOASTSCHOOLSCUATM" ||
                    nameShort.toUpperCase() == "SUNCOASTFCUATM" || nameShort.toUpperCase() == "SUNCOASTSCHOOLSFCUATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Suncoast Credit Union ATM",
                        aliases: ["Suncoast CU ATM"],
                        url: "suncoastcreditunion.com",
                        categories: tempCat
                    }));
                }
                //
                else if (nameShort.toUpperCase() == "SUNTRUST" || nameShort.toUpperCase() == "SUNTRUSTBANK") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "SunTrust Bank",
                        url: "suntrust.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "SUNTRUSTATM" || nameShort.toUpperCase() == "SUNTRUSTBANKATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "SunTrust Bank ATM",
                        url: "suntrust.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "TDBANK" || nameShort.toUpperCase() == "TD") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "TD Bank",
                        url: "tdbank.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "TDBANK" || nameShort.toUpperCase() == "TDATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "TD Bank ATM",
                        url: "tdbank.com",
                        categories: tempCat
                    }));
                }
                //	
                else if (nameShort.toUpperCase() == "WELLSFARGO" || nameShort.toUpperCase() == "WELLSFARGOBANK") {
                    if (!(categories.indexOf("BANK_FINANCIAL") > -1)) {
                        alertMessage(0);
                        return;
                    }
                    tempCat = ["BANK_FINANCIAL", "ATM"];
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Wells Fargo",
                        url: "wellsfargo.com",
                        categories: tempCat
                    }));
                } else if (nameShort.toUpperCase() == "WELLSFARGOATM" || nameShort.toUpperCase() == "WELLSFARGOBANKATM") {
                    if (!(categories.indexOf("ATM") > -1)) {
                        alertMessage(1);
                        return;
                    }
                    tempCat = ["ATM"];
                    desServ = ["WHEELCHAIR_ACCESSIBLE"];
                    W.model.actionManager.add(new UpdateObject(item, {
                        name: "Wells Fargo",
                        url: "wellsfargo.com",
                        categories: tempCat
                    }));
                }
                
                else if (brandSwap == 1) {
                    var newUrl = normalizeURL(item.attributes.url,item,addr);
                    W.model.actionManager.add(new UpdateObject(item, {
                        url: newUrl
                    }));
                } else if (!item.attributes.residential) {
                    var newUrl = normalizeURL(item.attributes.url,item,addr);
                    var newName = toTitleCase(vname);
                    if (newName !== item.attributes.name) {
                        console.log("WMEPH: Name updated");
                        W.model.actionManager.add(new UpdateObject(item, {
                            name: newName
                        }));
                    }
                    if (newName !== toTitleCaseStrong(vname)) {
                        NH_Bann.STC.active = true;
                    }
                    if (newUrl !== item.attributes.url) {
                        console.log("WMEPH: URL updated");
                        W.model.actionManager.add(new UpdateObject(item, {
                            url: newUrl
                        }));
                    }
                }
    
                // Phone fixing
    
                // Category/Name-based Services:
                if (categories.indexOf("BANK_FINANCIAL") > -1 && !(categories.indexOf("ATM") > -1)) {
                    desServ = ["AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                }
                if (tempCat.indexOf("SHOPPING_CENTER") > -1 || tempCat.indexOf("PARKING_LOT") > -1 || tempCat.indexOf("GARAGE_AUTOMOTIVE_SHOP") > -1) {
                    desServ = ["PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                }
                if (tempCat.indexOf("HOSPITAL_MEDICAL_CARE") > -1 || tempCat.indexOf("DEPARTMENT_STORE") > -1 || tempCat.indexOf("RESTAURANT") > -1 ||
                    tempCat.indexOf("CAFE") > -1 || tempCat.indexOf("CAR_DEALERSHIP") > -1 || tempCat.indexOf("FURNITURE_HOME_STORE") > -1 ||
                    tempCat.indexOf("SPORTING_GOODS") > -1 || tempCat.indexOf("CAR_DEALERSHIP") > -1 || tempCat.indexOf("BAR") > -1 ||
                    tempCat.indexOf("GYM_FITNESS") > -1 || tempCat.indexOf("CONVENIENCE_STORE") > -1 ||
                    tempCat.indexOf("SUPERMARKET_GROCERY") > -1 || tempCat.indexOf("PET_STORE_VETERINARIAN_SERVICES") > -1 ||
                    tempCat.indexOf("TOY_STORE") > -1 || tempCat.indexOf("PERSONAL_CARE") > -1) {
                    desServ = ["RESTROOMS", "CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                }
                if (tempCat.indexOf("BOOKSTORE") > -1 || tempCat.indexOf("FASHION_AND_CLOTHING") > -1 || tempCat.indexOf("PERSONAL_CARE") > -1 ||
                    tempCat.indexOf("BAKERY") > -1 || tempCat.indexOf("HARDWARE_STORE") > -1 || tempCat.indexOf("DESSERT") > -1 || tempCat.indexOf("FAST_FOOD") > -1 ||
                    tempCat.indexOf("PHARMACY") > -1 || tempCat.indexOf("ELECTRONICS") > -1 || tempCat.indexOf("FLOWERS") > -1 ||
                    tempCat.indexOf("MARKET") > -1 || tempCat.indexOf("JEWELRY") > -1 || tempCat.indexOf("MUSIC_STORE") > -1) {
                    desServ = ["CREDIT_CARDS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                }
                
                for (var ixServ = 0; ixServ < desServ.length; ixServ++) {
                    if (tempServ.indexOf(desServ[ixServ]) == -1) { tempServ.push(desServ[ixServ]); }
                }
        //		These categories get their services replaced
                if ((tempCat.indexOf("COLLEGE_UNIVERSITY") > -1 || tempCat.indexOf("SCHOOL") > -1 || tempCat.indexOf("RELIGIOUS_CENTER") > -1 || tempCat.indexOf("KINDERGARDEN") > -1) && !(tempCat.indexOf("PARKING_LOT") > -1)) {
                    tempServ = ["RESTROOMS", "AIR_CONDITIONING", "PARKING_FOR_CUSTOMERS", "WHEELCHAIR_ACCESSIBLE"];
                }
                
                
                // Place Area check
                if (item.isPoint() && (tempCat.indexOf("GAS_STATION") > -1 || tempCat.indexOf("PARKING_LOT") > -1 || tempCat.indexOf("AIRPORT") > -1 ||
                        tempCat.indexOf("BRIDGE") > -1 || tempCat.indexOf("CEMETERY") > -1 || tempCat.indexOf("EMBASSY_CONSULATE") > -1 ||
                        tempCat.indexOf("FIRE_DEPARTMENT") > -1 || tempCat.indexOf("POLICE_STATION") > -1 ||
                        tempCat.indexOf("PRISON_CORRECTIONAL_FACILITY") > -1 || tempCat.indexOf("SCHOOL") > -1 || tempCat.indexOf("SHOPPING_CENTER") > -1 ||
                        tempCat.indexOf("RACING_TRACK") > -1 || tempCat.indexOf("THEME_PARK") > -1 || tempCat.indexOf("GOLF_COURSE") > -1 ||
                        tempCat.indexOf("PARK") > -1)) {
                    sidebarMessage = ["This category should be an area.  Please change it, or manually lock it."];
                    severity = Math.max(3, severity);
                    lockOK = 0;
                }
                if (item.isPoint() && tempCat.indexOf("STADIUM_ARENA") > -1) {
                    sidebarMessage = ["This category should be an area.  Please change it, manually lock it, or consider using the 'Sports Court' category and a place point for small/local ball fields and arenas."];
                    severity = Math.max(3, severity);
                    lockOK = 0;
                }
                if (region === "SER" && item.isPoint() && tempCat.indexOf("POST_OFFICE") > -1) {
                    sidebarMessage = ["Only use the 'Post Office' category for USPS post offices.  If this is a USPS location, please change to an area place and run the script again.  All other mail service places use the 'Shopping and Services' Category."];
                    severity = Math.max(3, severity);
                    lockOK = 0;
                }
                if (item.isPoint() && tempCat.indexOf("HOSPITAL_MEDICAL_CARE") > -1) {
                    sidebarMessage = ["This category should usually be an area.  Please change it, or manually lock it (if it is an ER point inside a larger hospital area). Please use the 'Office' category for non-emergency medical offices."];
                    severity = Math.max(3, severity);
                    lockOK = 0;
                }
                if (region === "SER" && (tempCat.indexOf("JUNCTION_INTERCHANGE") > -1 || tempCat.indexOf("SEA_LAKE_POOL") > -1 || tempCat.indexOf("RIVER_STREAM") > -1 ||
                        tempCat.indexOf("FOREST_GROVE") > -1 || tempCat.indexOf("CANAL") > -1 || tempCat.indexOf("SWAMP_MARSH") > -1 ||
                        tempCat.indexOf("ISLAND") > -1 || tempCat.indexOf("BEACH") > -1 || tempCat.indexOf("TRANSPORTATION") > -1)) {
                    sidebarMessage = ["This category is usually not mapped in the SE region.  Please manually lock it, if it's a valid place."];
                    severity = Math.max(3, severity);
                    lockOK = 0;
                }
                if (region === "SER" && item.is2D() && (tempCat.indexOf("CAR_DEALERSHIP") > -1)) {
                    sidebarMessage = ["This category should be a point place, not an area."];
                    severity = Math.max(3, severity);
                    lockOK = 0;
                }
    
                // Address check
                if (!item.attributes.name && !item.attributes.residential) {
                    sidebarMessage.push("Place does not have a name.");
                    severity = Math.max(3, severity);
                    lockOK = 0;
                }
                if (!addr.street || addr.street.isEmpty) {
                    sidebarMessage.push("Place does not have a street.");
                    severity = Math.max(3, severity);
                    lockOK = 0;
                }
                if (!item.attributes.houseNumber) {
                    sidebarMessage.push("Place does not have a house number.");
                    severity = Math.max(3, severity);
                    lockOK = 0;
                } else {
                    var hnTemp = item.attributes.houseNumber.replace(/[^\d]/g, '');
                    if (hnTemp != item.attributes.houseNumber || hnTemp > 999999) {
                        sidebarMessage.push("House number is non-standard.  Correct it and rerun, or manually lock if correct.");
                        severity = Math.max(3, severity);
                        lockOK = 0;
                    }
                }
    
                // Phone formatting		
                var outputFormat = "({0}) {1}-{2}";
                if (region === "SER" && !(/^\(\d{3}\) \d{3}-\d{4}$/.test(item.attributes.phone))) {
                    outputFormat = "{0}-{1}-{2}";
                } else if (region === "GLR") {
                    outputFormat = "{0}-{1}-{2}";
                } else if (countryCode === "CAN") {
                    outputFormat = "+1-{0}-{1}-{2}";
                }
                if (!item.attributes.residential) {
                    var newPhone = normalizePhone(item.attributes.phone, outputFormat);
                    if (newPhone !== item.attributes.phone) {
                        console.log("WMEPH: Phone updated");
                        W.model.actionManager.add(new UpdateObject(item, {phone: newPhone}));
                    }
                } 
                
                // Clear attributes from residential places
                if (item.attributes.residential) {
                    var resName = item.attributes.houseNumber + " " + addr.street.name;
                    if (item.attributes.name !== resName) {
                        console.log("WMEPH: Res name mismatch");
                        W.model.actionManager.add(new UpdateObject(item, {name: resName}));
                    }
                    if (item.attributes.phone !== null && item.attributes.phone !== "") {
                        console.log("WMEPH: Res phone mismatch");
                        W.model.actionManager.add(new UpdateObject(item, {phone: null}));
                    }
                    if (item.attributes.url !== null && item.attributes.url !== "") {
                        console.log("WMEPH: Res url mismatch");
                        W.model.actionManager.add(new UpdateObject(item, {url: null}));
                    }
                }
                        
                // Post Office cat check
                if (tempCat.indexOf("POST_OFFICE") > -1) {
                    NH_Bann.USPS.active = true;
                }
    
                //	Add services to existing, only if they are different than what's there
                var servMatch = true;  
                for (var idServ = 0; idServ < tempServ.length; idServ++) {
                    if (item.attributes.services.indexOf(tempServ[idServ]) == -1) { servMatch = false; }
                }
                if (!item.attributes.residential && !servMatch && $("#WMEPH-EnableServices" + devVersStr).prop('checked')) {
                    console.log("WMEPH: Services updated");
                    W.model.actionManager.add(new UpdateObject(item, { services: tempServ }));
                } else if (item.attributes.residential) {
                    if (item.attributes.services.length > 0) {
                        W.model.actionManager.add(new UpdateObject(item, {services: [] }));
                    }
                }
                
                // Place locking
                if (lockOK == 1) {
                    var levelToLock = lockLevel3;
    
                    if (region === "SER") {
                        if (tempCat.indexOf("COLLEGE_UNIVERSITY") > -1 && tempCat.indexOf("PARKING_LOT") > -1) {
                            levelToLock = lockLevel4;
                        } else if (item.isPoint() && tempCat.indexOf("COLLEGE_UNIVERSITY") > -1 && !(tempCat.indexOf("HOSPITAL_MEDICAL_CARE") > -1)) {
                            levelToLock = lockLevel4;
                        } else if (tempCat.indexOf("HOSPITAL_MEDICAL_CARE") > -1 || tempCat.indexOf("COLLEGE_UNIVERSITY") > -1 ||
                            tempCat.indexOf("STADIUM_ARENA") > -1 || tempCat.indexOf("SCHOOL") > -1 || tempCat.indexOf("AIRPORT") > -1) {
                            levelToLock = lockLevel5;
                        }
                    }
    
                    if (region === "SAT") {
                        var SATlevel5Categories = ["HOSPITAL_MEDICAL_CARE", "AIRPORT"];
                        for (var ixCat = 0; ixCat < item.attributes.categories.length; ixCat++) {
                            if (SATlevel5Categories.indexOf(item.attributes.categories[ixCat]) > -1) {
                                levelToLock = lockLevel5;
                                break;
                            }
                        }
                    }
    
                    if (region === "MAR") {
                        var MARlevel4Categories = [ "HOSPITAL_MEDICAL_CARE", "AIRPORT", "FIRE_DEPARTMENT", "POLICE_STATION" ];
                        for (var ixCat = 0; ixCat < item.attributes.categories.length; ixCat++) {
                            if (MARlevel4Categories.indexOf(item.attributes.categories[ixCat]) > -1) {
                                levelToLock = lockLevel4;
                                break;
                            }
                        }
                    }
    
                    if (item.attributes.lockRank < levelToLock) {
                        console.log("WMEPH: Venue locked!");
                        W.model.actionManager.add(new UpdateObject(item, {
                            lockRank: levelToLock
                        }));
                    }
                    sidebarMessage.push("Place is locked.");
                }
    
                // console.log(W.model)
                // User alerts for potentially confusing places
                if (brandSwap == 1) {
                    sidebarMessage = ["The gas brand didn't match the primary name.  The script placed the primary name into the alt, and put the brand in the primary spot.  Check that the brand is indeed the current brand and verify all scripted changes."];
                    severity = Math.max(3, severity);
                }
    
                if (severity < 3) {
                    if (tempName == "UPS") {
                        sidebarMessage.push("If this is a 'UPS Store' location, please change the name to The UPS Store and run the script again.");
                        severity = Math.max(1, severity);
                    }
                    if (tempName == "Home" || tempName == "Casa" || tempName == "My Home" || tempName == "Mi Casa") {
                        sidebarMessage.push("The place name suggests a residential place.  Please verify.");
                        severity = Math.max(2, severity);
                    }
                    if (tempName == "FedEx") {
                        sidebarMessage.push("If this is a FedEx Office location, please change the name to FedEx Office and run the script again.");
                        severity = Math.max(1, severity);
                    }
                    if (tempName == "IBM Southeast EFCU") {
                        sidebarMessage.push("Please add the suffix ' - LOCATION' to the primary name as found on IBMSEFCU's website");
                        severity = Math.max(2, severity);
                    }
                    if (tempName == "Toys R Us") {
                        sidebarMessage.push("If there is a Babies R Us at this location, please add it as an alt-name.");
                        severity = Math.max(1, severity);
                    }
                    if (tempName == "Babies R Us") {
                        sidebarMessage.push("If there is a Toys R Us at this location, please make it the primary name and Babies R Us the alt name.");
                        severity = Math.max(1, severity);
                    }
                    if (walmartFlag == 1) {
                        sidebarMessage.push("If this Walmart sells groceries, please add the Supermarket category to the place.");
                        severity = Math.max(1, severity);
                    }
                    if (tempCat.indexOf("POST_OFFICE") > -1) {
                        customStoreURL = "https://tools.usps.com/go/POLocatorAction.action";
                        customStoreFinder = true;
                        sidebarMessage.push("Please verify that the primary post office name is properly named: 'USPS - Branch Name'. If this isn't a USPS post office (eg UPS, Fedex, Mailboxes Etc.), please undo the script changes and change the category.  'Post Office' is only used for USPS locations.");
                        severity = Math.max(1, severity);
                    }
                    if (item.is2D() && tempCat.indexOf("STADIUM_ARENA") > -1) {
                        sidebarMessage.push("If this is a small/local ball field/arena, please consider using the 'Sports Court' category and making it a point place.");
                        severity = Math.max(0, severity);
                    }
                    if (subFuel == 1) {
                        sidebarMessage.push("Make sure this place is for the gas station itself and not the main store building.  Otherwise undo and check the categories.");
                        severity = Math.max(2, severity);
                    }
                    if (hotelCat == 1 || tempCat.indexOf("HOTEL") > -1) {
                        sidebarMessage.push("Please check hotel details, as names can often be unique (e.g. Holiday Inn - Tampa North).");
                        severity = Math.max(1, severity);
                    }
    
                }
    
                if (item.attributes.url !== null && item.attributes.url !== "") {
                    if (customStoreFinder) {
                        sidebarMessage.push("(<a href=\"" + customStoreURL + "\" target=\"_blank\" style=\"color: #FFF\" title=\"Open " + item.attributes.name + " store finder in a new tab\">Website</a>)");
                    } else {
                        sidebarMessage.push("(<a href=\"http://" + item.attributes.url + "\" target=\"_blank\" style=\"color: #FFF\" title=\"Open " + item.attributes.url + " in a new tab\">Website</a>)");
                    }
                }
    
                // if (sidebarMessage.length > 1) {
                //     sidebarMessage = sidebarMessage.join("<li>");
                // }
                
                // Messaging banners
                assembleBanner(item);
                
            }
        }
        
        // Set up banner messages
        function assembleBanner(item) {
            // sidebarMessageEXT = [sidebarMessage.slice(0)];
            var sidebarMessageEXT = sidebarMessage.slice(0);
            var EXTOption = false;
            for (var NHix = 0; NHix < Object.keys(NH_Bann).length; NHix++ ) {
                var tempKey = Object.keys(NH_Bann)[NHix];
                if (NH_Bann[tempKey].active) {
                    sidebarMessageEXT.push(NH_Bann[tempKey].bannText + '<input class="PHbutton" id="' + NH_Bann[tempKey].id + '" type="button" value="' + NH_Bann[tempKey].value + '">');
                    EXTOption = true;
                }
            }
            displayBanners(sidebarMessageEXT.join("<li>"), severity);
            setupButtons(item);
            // if (EXTOption) {
            // 	sidebarMessageEXT = sidebarMessageEXT.join("<li>");
            // 	displayBanners(sidebarMessageEXT,severity);
            // 	setupButtons();
            // } else {
            // 	displayBanners(sidebarMessage,severity);	
            // 	setupButtons();
            // }
        }
        
        // Button event handlers
        function setupButtons(item) {
            // Button and run function for title case
            var ixButt = 0;
            var btn = [];
            for (var NHix = 0; NHix < Object.keys(NH_Bann).length; NHix++ ) {
                var tempKey = Object.keys(NH_Bann)[NHix];
                if (NH_Bann[tempKey].active) {
                    btn[ixButt] = document.getElementById(NH_Bann[tempKey].id); 
                    btn[ixButt].onclick = (function(buttonId, item){
                        return function() {
                            NH_Bann[buttonId].action(item);
                            assembleBanner(item);
                        }
                    })(tempKey, item)
                    ixButt++;
                }
            }
            
        }
        
        
        // Display banners with <LI> string and severity
        function displayBanners(sbm,sev) {
            $('#WMEPH_logger_warn').empty();
            if (sev == 0) {
                    $('<div id="WMEPH_logger_warn">').css("width", "290").css("background-color", "rgb(36, 172, 36)").css("color", "white").css("font-size", "15px").css("font-weight", "bold").css("margin-left", "auto").css("margin-right", "auto").prependTo(".contents")
                }
                if (sev == 1) {
                    $('<div id="WMEPH_logger_warn">').css("width", "290").css("background-color", "rgb(40, 40, 230)").css("color", "white").css("font-size", "15px").css("font-weight", "bold").css("margin-left", "auto").css("margin-right", "auto").prependTo(".contents")
                }
                if (sev == 2) {
                    $('<div id="WMEPH_logger_warn">').css("width", "290").css("background-color", "rgb(217, 173, 42)").css("color", "white").css("font-size", "15px").css("font-weight", "bold").css("margin-left", "auto").css("margin-right", "auto").prependTo(".contents")
                }
                if (sev == 3) {
                    $('<div id="WMEPH_logger_warn">').css("width", "290").css("background-color", "rgb(211, 48, 48)").css("color", "white").css("font-size", "15px").css("font-weight", "bold").css("margin-left", "auto").css("margin-right", "auto").prependTo(".contents")
                }
                WMEPH_DispWarn(sbm);
                
        }
        
        // Category translation
        function swapJ(json){
            var ret = {};
            for(var key in json){
            ret[json[key]] = key;
            }
            return ret;
        }
        var catTransWaze2Lang = I18n.translations['en'].venues.categories;
        var catTransLang2Waze = swapJ(catTransWaze2Lang);
        
        // CSS setups
        var cssCode = [".PHbutton {background: #ffffff;color: #000;padding: 0px 6px 0px 6px;text-decoration: none;}",
            ".PHbutton:hover {background: #e8e5e8;text-decoration: none;}"]
        for (var cssix=0; cssix<cssCode.length; cssix++) {
            insertCss(cssCode[cssix]);
        }
        function insertCss( code ) {
            var style = document.createElement('style');
            style.type = 'text/css';
            style.innerHTML = code;
            document.head.appendChild( style );
        }
        
        // Populate a submission form for new chains
    //	var PHSubForm = FormApp.openByUrl(
    //    	'https://docs.google.com/forms/d/1hv5hXBlGr1pTMmo4n3frUx1DovUODbZodfDBwwTc7HE/viewform'
    //    );
    //	console.log(PHSubForm);
    //	 
    //	 function evenBetterBuildUrls() {
    //		var ss = SpreadsheetApp.getActive();
    //		var sheet = ss.getSheetByName("Form Responses 1");
    //		var data = ss.getDataRange().getValues();  // Data for pre-fill
    //		var headers = data[0];                     // Sheet headers == form titles (questions)
    //		
    //		var formUrl = ss.getFormUrl();             // Use form attached to sheet
    //		var form = FormApp.openByUrl(
    //	'https://docs.google.com/forms/d/1hv5hXBlGr1pTMmo4n3frUx1DovUODbZodfDBwwTc7HE/viewform'
    //		);
    //		var items = form.getItems();
    //		var urlCol = headers.indexOf("Prefilled URL");   // If there is a column labeled this way, we'll update it
    //		
    //		// Skip headers, then build URLs for each row in Sheet1.
    //		for (var row = 1; row < data.length; row++ ) {
    //		  Logger.log("Generating pre-filled URL from spreadsheet for row="+row);
    //		  // build a response from spreadsheet info.
    //		  var response = form.createResponse();
    //		  for (var i=0; i<items.length; i++) {
    //			var ques = items[i].getTitle();           // Get text of question for item
    //			var quesCol = headers.indexOf(ques);      // Get col index that contains this question
    //			var resp = ques ? data[row][quesCol] : "";
    //			var type = items[i].getType().toString();
    //			Logger.log("Question='"+ques+"', resp='"+resp+"' type:"+type);
    //			// Need to treat every type of answer as its specific type.
    //			switch (items[i].getType()) {
    //			  case FormApp.ItemType.TEXT:
    //				var item = items[i].asTextItem();
    //				break;
    //			  case FormApp.ItemType.PARAGRAPH_TEXT: 
    //				item = items[i].asParagraphTextItem();
    //				break;
    //			  case FormApp.ItemType.LIST:
    //				item = items[i].asListItem();
    //				break;
    //			  case FormApp.ItemType.MULTIPLE_CHOICE:
    //				item = items[i].asMultipleChoiceItem();
    //				break;
    //			  case FormApp.ItemType.CHECKBOX:
    //				item = items[i].asCheckboxItem();
    //				// In a form submission event, resp is an array, containing CSV strings. Join into 1 string.
    //				// In spreadsheet, just CSV string. Convert to array of separate choices, ready for createResponse().
    //				if (typeof resp !== 'string')
    //				  resp = resp.join(',');      // Convert array to CSV
    //				resp = resp.split(/ *, */);   // Convert CSV to array
    //				break;
    //			  case FormApp.ItemType.DATE:
    //				item = items[i].asDateItem();
    //				resp = new Date( resp );
    //				break;
    //			  case FormApp.ItemType.DATETIME:
    //				item = items[i].asDateTimeItem();
    //				resp = new Date( resp );
    //				break;
    //			  default:
    //				item = null;  // Not handling DURATION, GRID, IMAGE, PAGE_BREAK, SCALE, SECTION_HEADER, TIME
    //				break;
    //			}
    //			// Add this answer to our pre-filled URL
    //			if (item) {
    //			  var respItem = item.createResponse(resp);
    //			  response.withItemResponse(respItem);
    //			}
    //			// else if we have any other type of response, we'll skip it
    //			else Logger.log("Skipping i="+i+", question="+ques+" type:"+type);
    //		  }
    //		  // Generate the pre-filled URL for this row
    //		  var editResponseUrl = response.toPrefilledUrl();
    //		  // If there is a "Prefilled URL" column, update it
    //		  if (urlCol >= 0) {
    //			var urlRange = sheet.getRange(row+1,urlCol+1).setValue(editResponseUrl);
    //		  }
    //		}
    //	};
    //	
    
    
        // KB Shortcut function
        var shortcut = {
            'all_shortcuts': {}, //All the shortcuts are stored in this array
            'add': function(shortcut_combination, callback, opt) {
                //Provide a set of default options
                var default_options = {
                    'type': 'keydown',
                    'propagate': false,
                    'disable_in_input': false,
                    'target': document,
                    'keycode': false
                }
                if (!opt) opt = default_options;
                else {
                    for (var dfo in default_options) {
                        if (typeof opt[dfo] == 'undefined') opt[dfo] = default_options[dfo];
                    }
                }
    
                var ele = opt.target;
                if (typeof opt.target == 'string') ele = document.getElementById(opt.target);
                var ths = this;
                shortcut_combination = shortcut_combination.toLowerCase();
    
                //The function to be called at keypress
                var func = function(e) {
                    e = e || window.event;
    
                    if (opt['disable_in_input']) { //Don't enable shortcut keys in Input, Textarea fields
                        var element;
                        if (e.target) element = e.target;
                        else if (e.srcElement) element = e.srcElement;
                        if (element.nodeType == 3) element = element.parentNode;
    
                        if (element.tagName == 'INPUT' || element.tagName == 'TEXTAREA') return;
                    }
    
                    //Find Which key is pressed
                    var code;
                    if (e.keyCode) code = e.keyCode;
                    else if (e.which) code = e.which;
                    var character = String.fromCharCode(code).toLowerCase();
    
                    if (code == 188) character = ","; //If the user presses , when the type is onkeydown
                    if (code == 190) character = "."; //If the user presses , when the type is onkeydown
    
                    var keys = shortcut_combination.split("+");
                    //Key Pressed - counts the number of valid keypresses - if it is same as the number of keys, the shortcut function is invoked
                    var kp = 0;
    
                    //Work around for stupid Shift key bug created by using lowercase - as a result the shift+num combination was broken
                    var shift_nums = {
                            "`": "~",
                            "1": "!",
                            "2": "@",
                            "3": "#",
                            "4": "$",
                            "5": "%",
                            "6": "^",
                            "7": "&",
                            "8": "*",
                            "9": "(",
                            "0": ")",
                            "-": "_",
                            "=": "+",
                            ";": ":",
                            "'": "\"",
                            ",": "<",
                            ".": ">",
                            "/": "?",
                            "\\": "|"
                        }
                        //Special Keys - and their codes
                    var special_keys = {
                        'esc': 27,
                        'escape': 27,
                        'tab': 9,
                        'space': 32,
                        'return': 13,
                        'enter': 13,
                        'backspace': 8,
                        'scrolllock': 145,
                        'scroll_lock': 145,
                        'scroll': 145,
                        'capslock': 20,
                        'caps_lock': 20,
                        'caps': 20,
                        'numlock': 144,
                        'num_lock': 144,
                        'num': 144,
                        'pause': 19,
                        'break': 19,
                        'insert': 45,
                        'home': 36,
                        'delete': 46,
                        'end': 35,
                        'pageup': 33,
                        'page_up': 33,
                        'pu': 33,
                        'pagedown': 34,
                        'page_down': 34,
                        'pd': 34,
                        'left': 37,
                        'up': 38,
                        'right': 39,
                        'down': 40,
                        'f1': 112,
                        'f2': 113,
                        'f3': 114,
                        'f4': 115,
                        'f5': 116,
                        'f6': 117,
                        'f7': 118,
                        'f8': 119,
                        'f9': 120,
                        'f10': 121,
                        'f11': 122,
                        'f12': 123
                    }
    
                    var modifiers = {
                        shift: {
                            wanted: false,
                            pressed: false
                        },
                        ctrl: {
                            wanted: false,
                            pressed: false
                        },
                        alt: {
                            wanted: false,
                            pressed: false
                        },
                        meta: {
                            wanted: false,
                            pressed: false
                        } //Meta is Mac specific
                    };
    
                    if (e.ctrlKey) modifiers.ctrl.pressed = true;
                    if (e.shiftKey) modifiers.shift.pressed = true;
                    if (e.altKey) modifiers.alt.pressed = true;
                    if (e.metaKey) modifiers.meta.pressed = true;
    
                    var k;
                    for (var i = 0; k = keys[i], i < keys.length; i++) {
                        //Modifiers
                        if (k == 'ctrl' || k == 'control') {
                            kp++;
                            modifiers.ctrl.wanted = true;
    
                        } else if (k == 'shift') {
                            kp++;
                            modifiers.shift.wanted = true;
    
                        } else if (k == 'alt') {
                            kp++;
                            modifiers.alt.wanted = true;
                        } else if (k == 'meta') {
                            kp++;
                            modifiers.meta.wanted = true;
                        } else if (k.length > 1) { //If it is a special key
                            if (special_keys[k] == code) kp++;
    
                        } else if (opt['keycode']) {
                            if (opt['keycode'] == code) kp++;
    
                        } else { //The special keys did not match
                            if (character == k) kp++;
                            else {
                                if (shift_nums[character] && e.shiftKey) { //Stupid Shift key bug created by using lowercase
                                    character = shift_nums[character];
                                    if (character == k) kp++;
                                }
                            }
                        }
                    }
    
                    if (kp == keys.length &&
                        modifiers.ctrl.pressed == modifiers.ctrl.wanted &&
                        modifiers.shift.pressed == modifiers.shift.wanted &&
                        modifiers.alt.pressed == modifiers.alt.wanted &&
                        modifiers.meta.pressed == modifiers.meta.wanted) {
                        callback(e);
    
                        if (!opt['propagate']) { //Stop the event
                            //e.cancelBubble is supported by IE - this will kill the bubbling process.
                            e.cancelBubble = true;
                            e.returnValue = false;
    
                            //e.stopPropagation works in Firefox.
                            if (e.stopPropagation) {
                                e.stopPropagation();
                                e.preventDefault();
                            }
                            return false;
                        }
                    }
                }
                this.all_shortcuts[shortcut_combination] = {
                    'callback': func,
                    'target': ele,
                    'event': opt['type']
                };
                //Attach the function with the event
                if (ele.addEventListener) ele.addEventListener(opt['type'], func, false);
                else if (ele.attachEvent) ele.attachEvent('on' + opt['type'], func);
                else ele['on' + opt['type']] = func;
            },
    
            //Remove the shortcut - just specify the shortcut and I will remove the binding
            'remove': function(shortcut_combination) {
                shortcut_combination = shortcut_combination.toLowerCase();
                var binding = this.all_shortcuts[shortcut_combination];
                delete(this.all_shortcuts[shortcut_combination])
                if (!binding) return;
                var type = binding['event'];
                var ele = binding['target'];
                var callback = binding['callback'];
    
                if (ele.detachEvent) ele.detachEvent('on' + type, callback);
                else if (ele.removeEventListener) ele.removeEventListener(type, callback, false);
                else ele['on' + type] = false;
            }
        }
    }
    
    placeHarmonizer_bootstrap();
})();
// var DLscript = document.createElement("script");
// DLscript.textContent = runPH.toString() + ' \n' + 'runPH();';
// DLscript.setAttribute("type", "application/javascript");
// document.body.appendChild(DLscript);