v.maint = "NYSDOT"
end
end  
for k, v in pairs(NY) do if k:find ("^%a+ %d") then
v.maint = "NYSDH"
end
end  
NY.NYST = {
shield = "NYS Thruway Sign.svg",
name = "New York State Thruway",
link = "New York State Thruway",
abbr = "New York Thruway",
bannersuffix = "blue",
maint = "New York State Thruway Authority"
}  
NY.NYBC = {
shield = "NYS Thruway Sign.svg",
name = "Berkshire Connector",
link = "Berkshire Connector",
abbr = "Berkshire Connector",
bannersuffix = "blue"
}  
NY.CR.name = {
arg = "county",
default = "County Route %route%",
Fulton = "County Highway %route%"
}  
NY.CR.shield = {
ifexists = true,
arg = "county",
default = "CR %route% jct.svg",
Albany = "CR %route% jct wide.svg",
Broome = {
hook = "splitlen",
split = 3,
below = "CR %route% jct.svg",
above = "CR %route% jct wide.svg"
},
Cayuga = "",
Columbia = {
["21C"] = "CR 21C jct wide.svg",
default = "CR %route% jct.svg"
},
Clinton = "CR %route% jct.svg",
Cortland = "",
Dutchess = {
hook = "splitlen",
split = 3,
below = "CR %route% jct.svg",
above = "CR %route% jct wide.svg"
},
Erie = "Erie County %route% NY.svg",
Franklin = "Franklin County %route% NY.svg",
Fulton = "CR %route% jct wide.svg",
Genesee = "",
Herkimer = "",
Monroe = "",
Montgomery = "",
Nassau = "",
Niagara = "",
Onondaga = {
["57"] = "CR 57 jct.svg",
default = ""
},
Oneida = {
["840"] = "CR 840 jct wide.svg",
default = "CR %route% jct.svg"
},
Ontario = "",
Orleans = "",
Schenectady = "",
Seneca = "",
Steuben = {
["333"] = "CR 333 jct wide.svg",
default = "CR %route% jct.svg"
},
Wayne = "",
Westchester = "",
Wyoming = "",
Yates = ""
}
NY.CR.shieldmain = {
ifexists = true,
arg = "county",
default = "%county% County %route%.svg",
Cayuga = "",
Cortland = "",
Erie = "Erie County %route% NY.svg",
Franklin = "Franklin County %route% NY.svg",
Genesee = "",
Herkimer = "",
Monroe = "",
Montgomery = "",
Nassau = "",
Niagara = "",
Onondaga = {
["57"] = "%county% County %route%.svg",
default = ""
},
Ontario = "",
Orleans = "",
Schenectady = "",
Seneca = "",
Wayne = "",
Westchester = "",
Wyoming = "",
Yates = ""
}
NY.CR.link = "County Route %route% (%county% County, New York)" --ifexist
NY.CR.width = {ifexists = true,
arg = "county",
default = "square",
Albany = "wide",
Columbia = {
["21C"] = "wide",
default = "square"
},
Erie = "16",
Fulton = "wide",
Oneida = {
["840"] = "wide",
default = "square"
},
Steuben = {
["333"] = "wide",
default = "square"
}
}
NY.CR.bannersuffix = {
arg = "county",
Franklin = "green"
}
NY.CR.browse = "County Routes in New York"
NY.CR.browselinks = "County Routes in %county% County"  
NY["CR-Truck"] = {
shield = NY.CR.shield,
link = NY.CR.link .. " Truck",
abbr = NY.CR.abbr .." Truck",
banner = "Truck plate county.svg",
browse = NY.CR.browse,
browselinks = NY.CR.browselinks
}  
NY["CR-Old"] = {
shield = {
ifexists = true,
arg = "county",
default = "CR %route% jct.svg",
Cayuga = "",
Cortland = "",
Erie = "Erie County %route% NY.svg",
Franklin = "Franklin County %route% NY.svg",
Genesee = "",
Herkimer = "",
Monroe = "",
Montgomery = "",
Nassau = "Nassau County %route% NY.svg",
Niagara = "",
Ontario = "",
Orleans = "",
Schenectady = "",
Seneca = "",
Wayne = "",
Westchester = "",
Wyoming = "",
Yates = ""
},
name = NY.CR.name,
link = NY.CR.link,
abbr = NY.CR.abbr,,
bannersuffix = {
arg = "county",
Franklin = "green",
Nassau = "orange",
},
orientation = {
arg = "county",
Nassau = "upright",
},
browse = NY.CR.browse,
browselinks = NY.CR.browselinks
}  
-- add new types above this line if you want it to have the state highway browse
for k, v in pairs(NY) do if k:find ("CR") then
v.maint = "%county% County Highway Department"
end
end  
NY.ILR = {
shield = "Rochester Inner Loop.svg",
name = "Inner Loop",
link = "Inner Loop (Rochester)",
abbr = "Inner Loop",,
bannersuffix = "orange",
maint = ""
}  
NY.GSP = {alias = {module = "USA/NJ", type = "GSP"}}
NY.CT = {alias = {module = "USA/CT", type = "CT"}}
NY.MATP = {alias = {module = "USA/MA", type = "MATP"}}
NY.NJ = {alias = {module = "USA/NJ", type = "NJ"}}
NY.PA = {alias = {module = "USA/PA", type = "PA"}}
NY.VT = {alias = {module = "USA/VT", type = "VT"}}
NY["I-VT"] = {alias = {module = "USA/VT", type = "I"}}
NY["QC-A"] = {alias = {module = "CAN/QC", type = "A"}}
NY.ON = {alias = {module = "CAN/ON", type = "ON"}}  
return NY