// sets up station call letters and zone to be used in ad calls.

var stn  = String(location.host).split(".")[1];
var page = String(location.pathname);
var pageZone = "";
var callLetters = "";

var stnArray = [["myfoxny", "wnyw"], ["myfoxphoenix", "ksaz"], ["myfoxatlanta", "waga"], ["myfoxla", "kttv"], ["myfoxdfw", "kdfw"], ["myfoxchicago", "wfld"], ["myfoxphilly", "wtxf"], ["myfoxboston", "wfxt"], ["myfoxorlando", "wofl"]];
  stnArray = stnArray.concat([["myfoxdc", "wttg"], ["myfoxhouston", "kriv"], ["myfoxaustin", "ktbc"], ["myfoxmemphis", "whbq"], ["myfoxtwincities", "kmsp"], ["myfoxtampabay", "wtvt"], ["myfoxdetroit", "wjbk"], ["myfoxal", "wbrc"]]);
  stnArray = stnArray.concat([["myfoxyakima", "kcyu"], ["myfoxtricities", "kffx"], ["myfoxspokane", "kayu"], ["fox50", "wraz"], ["myfoxnepa", "wolf"], ["myfoxlubbock", "kjtv"], ["myfoxwausau", "wfxs"], ["myfox9online", "kecy"]]);
  stnArray = stnArray.concat([["myfoxillinois", "wrsp"], ["myfoxmaine", "wpfo"], ["foxcharlotte", "wccb"], ["myfoxmyrtlebeach", "wfxb"], ["myfoxchico", "kcvu"], ["myfoxwvtv", "wvns"], ["myfoxov", "wtrf"], ["myfoxchattanooga", "wdsi"]]);
  stnArray = stnArray.concat([["fox54", "wzdx"], ["fox2127", "wfxr"], ["kljb", "kljb"], ["fox2548", "wlax"], ["myfoxzone", "kidy"], ["myfoxclarksburg", "wvfx"], ["myfoxtallahassee", "wtlh"], ["fox20", "wcov"], ["myfoxlaredo", "kxof"]]);
  stnArray = stnArray.concat([["myfoxfairbanks", "kfxf"], ["myfoxeugene", "klsr"], ["my9tv", "wwor"], ["watchmy27", "kdfi"], ["my20dc", "wdca"], ["my20houston", "ktxh"], ["my29tv", "wftc"], ["my65orlando", "wrbw"], ["my24wutb", "wutb"]]);
  stnArray = stnArray.concat([["wfts1", "fts1"]]);

i = stnArray.length;
while (i--)   if (stn==stnArray[i][0])   callLetters = stnArray[i][1]; 

if(page.length <2)                  {pageZone="community/home"}     else if 
  (page.indexOf("/admin/")   != -1) {pageZone="community/hub"}      else if
  (page.indexOf("/gallery/") != -1) {pageZone="community/photo"}    else if
  (page.indexOf("/video/")   != -1) {pageZone="community/video"}    else if
  (page.indexOf("/calendar") != -1) {pageZone="community/calendar"} else if
  (page.indexOf("/blog")     != -1) {pageZone="community/blog"}     else
    {pageZone = "community/profile"};