// JavaScript Document
var full = window.location.host
//window.location.host is subdomain.domain.com
var parts = full.split('.')
var sub = parts[0]
var firstpart = "You are currently in the <strong>"
var secondpart = "</strong> market.<br> If you find this to be a mistake, please <a href='http://www.cumulusradio.com/MapRedirector.html'>click here</a>"

function UpdatetheLocation() {
var container = document.getElementById('HeaderMarketLocation');

if (sub == "lakecharles")
  {marketname = "Lake Charles";}

else if (sub == "fayettevillear") {	marketname = "Fayetteville, AR";}
else if (sub == "fortsmith") {	marketname = "Fort Smith";}
else if (sub == "ventura") {	marketname = "Oxnard / Ventura";}
else if (sub == "sanfrancisco") {	marketname = "San Francisco";}
else if (sub == "santabarbara") {	marketname = "Santa Barbara";}
else if (sub == "grandjunction") {	marketname = "Grand Junction";}
else if (sub == "ftwaltonbeach") {	marketname = "Fort Walton Beach";}
else if (sub == "cedarrapids") {	marketname = "Cedar Rapids";}
else if (sub == "quadcities") {	marketname = "Quad Cities";}
else if (sub == "kansascity") {	marketname = "Kansas City";}
else if (sub == "shreveport") {	marketname = "Shreveport / Bossier";}
else if (sub == "annarbor") {	marketname = "Ann Arbor";}
else if (sub == "battlecreek") {	marketname = "Battle Creek";}
else if (sub == "faribault") {	marketname = "Faribault / Owatonna";}
else if (sub == "columbia") {	marketname = "Columbia / Jefferson City";}
else if (sub == "columbus") {	marketname = "Columbus / Starkville";}
else if (sub == "fayettevillenc") {	marketname = "Fayetteville, NC";}
else if (sub == "harrisburg") {	marketname = "Harrisburg / York / Lancaster";}
else if (sub == "myrtlebeach") {	marketname = "Myrtle Beach";}
else if (sub == "siouxfalls") {	marketname = "Sioux Falls";}
else if (sub == "killeen") {	marketname = "Killeen / Temple";}
else if (sub == "odessa") {	marketname = "Odessa / Midland";}
else if (sub == "wichitafalls") {	marketname = "Wichita Falls";}
else if (sub == "blacksburg") {	marketname = "Blacksburg / New River Valley";}
else if (sub == "greenbay") {	marketname = "Green Bay";}

else  {  marketname = sub }

var content = marketname;

container.innerHTML = content;
}
