<%
dim language, CurrentURL, splitURL
language="spanish"
CurrentURL = Request.ServerVariables("URL")
if request("language")= "language-change" then 'looks for incoming request from language link
if session("language")="" then 'switches to "spanish" if it's currently not set
session("language")="spanish"
splitURL=split(CurrentURL,".asp")
Response.Redirect(splitURL(0) & "-"&session("language")&".asp")
elseif session("language")="spanish" then 'switches to "not set" if it's currently spanish
session("language")=""
splitURL=split(CurrentURL,"-spanish.asp")
Response.Redirect(splitURL(0) &session("language")&".asp")
end if
end if
if session("language")=language and InStr(CurrentURL,language)=<1 then 'if "spanish" is not found in the url"
splitURL=split(CurrentURL,".asp")
Response.Redirect(splitURL(0) &"-" &session("language")&".asp")
elseif session("language")="" and InStr(CurrentURL,language)=>1 then 'if "spanish" is found in the url accessing it directly
session("language")=language
end if
if InStr(CurrentURL,language)=>1 then 'if "spanish" is found in the url display English link
%>
<%elseif InStr(CurrentURL,language)=<1 then 'if "spanish" is not found in the url display Spanish link
%>
You've poured time, effort and a lot of money into your collectible auto. It's not just a hobby, it's your passion. You even have a name for her. When you're cruising those beautiful country roads, the last thing you want to worry about is whether you have the right insurance policy.
We get it.
Collectible autos aren't standard vehicles and that's why specialty insurance is so important. If you want insurance for your Collectible Auto, make sure your vehicle is covered by the specialty insurance experts. From Classics to Modifieds, we know your car and we want to help you get the coverage you want.
So sit back and enjoy the ride. Leave the insurance to us.
Follow Us
Foremost on YouTube Foremost on Twitter Foremost on Facebook