function Colors( )
   {
   // Light Yellow bgcolor=fff2bf
   // Dark  Yellow bgcolor=ffe57f
   // Light Blue   bgcolor=cfdfff
   // Dark  Blue   bgcolor=00009f
   //       White  bgcolor=ffffff
   //       Black  bgcolor=000000
   // Light Green  bgcolor=
   }

function openWindow( url )
   {
   if (forecastWindow == null || forecastWindow.closed)
      {
      var windowProperties = "toolbar=0,location=0,directories=0,status=0, " +
                             "menubar=0,scrollbars=1,resizable=0,width=320,height=320";
      forecastWindow = window.open(url, "forecast", windowProperties);
      }
   else
      {
      forecastWindow.location = url;
      forecastWindow.focus();
      }
   }

function dots(Level)
{
var strg = "";
if (Level == '0')
   {
   strg = "";
   }
if (Level == '1')
   {
   strg = "../";
   }
if (Level == '2')
   {
   strg = "../../";
   }
if (Level == '3')
   {
   strg = "../../../";
   }
return (strg)
}

function Show_Map_Caption (File_Name, Caption, Size)
   {
   if (Size == 'L')
      {
      document.write("<table border=0 cellspacing=0 cellpadding=0><caption align=left><font face='arial' size=2>" + Caption + "<tr>");
      document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' width='8' height='8'><br><img src='http://www.ersys.com/images/gray.gif' width='8' height='435'></td>");
      document.write("<td valign=top><img src='" + File_Name + "' alt='Thematic map' width=405 height=435><br><img src='http://www.ersys.com/images/gray.gif' width='397' height='8'></td></tr></table>");
      }
   else
      {
      document.write("<table border=0 cellspacing=0 cellpadding=0><caption align=left><font face='arial' size=1>" + Caption + "<tr>");
      document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' width='8' height='8'><br><img src='http://www.ersys.com/images/gray.gif' width='8' height='182'></td>");
      document.write("<td valign=top><img src='" + File_Name + "' alt='Thematic map' width=227 height=182><br><img src='http://www.ersys.com/images/gray.gif' width='219' height='8'></td></tr></table>");
      }
   }

function Show_Map (City_Fips, Abreviation, Satelite)
   {
   var flag = 0;

   document.write("<center>");

   if (Abreviation == 'eth') {flag = 1;}
   if (Abreviation == 'ter') {flag = 2;}
   if (Abreviation == 'bsa') {flag = 2;}
   if (flag == 0)
      {
      document.write("<table border=0 cellspacing=0 cellpadding=0><tr>");
      document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' width='8' height='8'><br><img src='http://www.ersys.com/images/gray.gif' width='8' height='69'></td>");
      document.write("<td valign=top><img src='http://www.ersys.com/images/scle_"+Abreviation+".gif' alt='Legend' width=405 height=69><br><img src='http://www.ersys.com/images/gray.gif' width='397' height='8'><img src='http://www.ersys.com/images/clr.gif' width='23' height='4'><br><img src='http://www.ersys.com/images/clr.gif' width='8' height='4'></td>");
      document.write("</tr></table>");
      }
   if (flag == 1)
      {
      document.write("<table border=0 cellspacing=0 cellpadding=0><tr>");
      document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' width='8' height='8'><br><img src='http://www.ersys.com/images/gray.gif' width='8' height='227'></td>");
      document.write("<td valign=top><img src='http://www.ersys.com/images/scle_eth.gif' alt='Legend' width=405 height=227><br><img src='http://www.ersys.com/images/gray.gif' width='397' height='8'><img src='http://www.ersys.com/images/clr.gif' width='23' height='4'><br><img src='http://www.ersys.com/images/clr.gif' width='8' height='4'></td>");
      document.write("</tr></table>");
      }
   document.write("<table border=0 cellspacing=0 cellpadding=0><tr>");
   document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' WIDTH='8' HEIGHT='8'></td><td><IMG SRC='http://www.ersys.com/images/axis_x.gif' width=405 height=13></td></tr><tr>");
   document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' width='8' height='8'><br><img src='http://www.ersys.com/images/gray.gif' width='8' height='435'></td>");
   if (Satelite == '1')
      {
      document.write("<td valign=top><a href='javascript:CalcPost(20.25,21.75)'><img name='Move' src='../images/" + Abreviation + City_Fips + ".png' width=405 height=435 border=0></a><IMG SRC='http://www.ersys.com/images/axis_y.gif' width=15 height=435><br><img src='http://www.ersys.com/images/gray.gif' width='397' height='8'></td>");
      }
   else
      {
      document.write("<td valign=top><img src='../images/" + Abreviation + City_Fips + ".png' alt='Thematic map' width=405 height=435><IMG SRC='http://www.ersys.com/images/axis_y.gif' width=15 height=435><br><img src='http://www.ersys.com/images/gray.gif' width='397' height='8'></td>");
      }
   document.write("</tr></table><br>");
   if (Satelite == '1')
      {
      document.write("<font size=1> Satelite available - click on map to see results</font><br>");
      }
   document.write("</center>");
   }

function Show_Map_2000 (City_Fips, Abreviation, Satelite)
   {
   var flag = 0;

   document.write("<center>");

   if (Abreviation == 'eth') {flag = 1;}
   if (Abreviation == 'ter') {flag = 2;}
   if (Abreviation == 'bsa') {flag = 2;}
   if (flag == 0)
      {
      document.write("<table border=0 cellspacing=0 cellpadding=0><tr>");
      document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' width='8' height='8'><br><img src='http://www.ersys.com/images/gray.gif' width='8' height='69'></td>");
      document.write("<td valign=top><img src='http://www.ersys.com/images/scle_"+Abreviation+".gif' alt='Legend' width=405 height=69><br><img src='http://www.ersys.com/images/gray.gif' width='397' height='8'><img src='http://www.ersys.com/images/clr.gif' width='23' height='4'><br><img src='http://www.ersys.com/images/clr.gif' width='8' height='4'></td>");
      document.write("</tr></table>");
      }
   if (flag == 1)
      {
      document.write("<table border=0 cellspacing=0 cellpadding=0><tr>");
      document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' width='8' height='8'><br><img src='http://www.ersys.com/images/gray.gif' width='8' height='227'></td>");
      document.write("<td valign=top><img src='http://www.ersys.com/images/scle_eth.gif' alt='Legend' width=405 height=227><br><img src='http://www.ersys.com/images/gray.gif' width='397' height='8'><img src='http://www.ersys.com/images/clr.gif' width='23' height='4'><br><img src='http://www.ersys.com/images/clr.gif' width='8' height='4'></td>");
      document.write("</tr></table>");
      }
   document.write("<table border=0 cellspacing=0 cellpadding=0><tr>");
   document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' WIDTH='8' HEIGHT='8'></td><td><IMG SRC='http://www.ersys.com/images/axis_x.gif' width=405 height=13></td></tr><tr>");
   document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' width='8' height='8'><br><img src='http://www.ersys.com/images/gray.gif' width='8' height='435'></td>");
   if (Satelite == '1')
      {
      document.write("<td valign=top><a href='javascript:CalcPost(20.25,21.75)'><img name='Move' src='../images/" + Abreviation + City_Fips + "a.png' alt='Thematic map' width=405 height=435 border=0></a><IMG SRC='http://www.ersys.com/images/axis_y.gif' width=15 height=435><br><img src='http://www.ersys.com/images/gray.gif' width='397' height='8'></td>");
      }
   else
      {
      document.write("<td valign=top><img src='../images/" + Abreviation + City_Fips + "a.png' alt='Thematic map' width=405 height=435><img src='http://www.ersys.com/images/axis_y.gif' width=15 height=435><br><img src='http://www.ersys.com/images/gray.gif' width='397' height='8'></td>");
      }
   document.write("</tr></table><br>");
   if (Satelite == '1')
      {
      document.write("<font size=1> Satelite available - click on map to see results</font><br>");
      }
   document.write("</center>");
   }

function Show_Chart (File_Name, Size)
   {
   document.write("<center>");
   document.write("<table border=0 cellspacing=0 cellpadding=0><tr>");
   if (Size == 'L')
     {
     document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' WIDTH='8' HEIGHT='8'><BR><IMG SRC='http://www.ersys.com/images/gray.gif' width='8' height='234'></td>");
     document.write("<td valign=top><img src='" + File_Name + "' alt='Chart' width=390 height=234><br><img src='http://www.ersys.com/images/gray.gif' width='382' height='8'></td>");
     }
   else
     {
     document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' WIDTH='8' HEIGHT='8'><BR><IMG SRC='http://www.ersys.com/images/gray.gif' width='8' height='234'></td>");
     document.write("<td valign=top><img src='" + File_Name + "' alt='Chart' width=234 height=234><br><img src='http://www.ersys.com/images/gray.gif' width='226' height='8'></td>");
     }
   document.write("</tr></table>");
   document.write("</center>");
   }

function Weather_Today (Zip_Code)
   {
   //document.write("<B>Sorry, the weather report is temporarily suspended. We are working to resolve the problem.</>");
   //document.write("<a href='http://weatherguys.com/index.asp?zip="+ Zip_Code + "'><img src='http://209.70.191.111/zipcode/"+ Zip_Code.substring(0,1) + "/"+ Zip_Code + ".gif' border='0' alt='Todays weather from www.weatherguys.com'></a>");
   document.write("<a href='http://www.myaffiliateprogram.com/u/accuwx/wp.asp?id=10971&thisZip="+ Zip_Code + "'>");
   document.write("<img src='http://www.accuweather.com/wxpost/byzip/"+ Zip_Code + "/32/wxport.png' border='0' alt='WXPort' width=200 height=125></a>");

   }

function Weather_Fcst (Zip_Code)
   {
   document.write("<B>Sorry, the weather fcst report is temporarily suspended. We are working to resolve the problem.</>");
   //document.write("<a href='http://weatherguys.com/index.asp?zip="+ Zip_Code + "'><img src='http://209.70.191.111/forecast/"+ Zip_Code.substring(0,1) + "/"+ Zip_Code + ".gif' border='0' alt='4-day Forecasts from www.weatherguys.com'></a>");
   }

function GetCookie(name)
     {
     var result = null;
     var myCookie = ' ' + document.cookie + ';';
     var searchName = ' ' + name + '=';
     var startOfCookie = myCookie.indexOf(searchName);
     var endOfCookie;
     if (startOfCookie != -1)
        {
        startOfCookie += searchName.length;
        // skip past cookie name
        endOfCookie = myCookie.indexOf(';', startOfCookie);
        result = unescape(myCookie.substring(startOfCookie, endOfCookie));
        }
     return result;
     }

function SetCookie(name, value)
     {
     document.cookie = name + '=' + escape(value) + '; path=/';
     }

function DelCookie(name)
     {
     var threeDays = 3 * 34 * 60 * 60 * 1000;
     var expDate = new Date();
     expDate.setTime = (expDate.getTime() - threeDays);
     document.cookie = name + '=deleted; expires=' + expDate.toGMTString();
     }

function Related(Level, State_name, State_fips, City_name, City_fips, Source)
   {
   DelCookie('hotelState');
   DelCookie('hotelCity');
   SetCookie('hotelState', State_fips);
   SetCookie('hotelCity', City_fips);
   //document.write("");
   }

function Show_Map_Usemap (File_Name, Caption, Size)
   {
// document.write("<table border=0 cellspacing=0 cellpadding=0>");
// if (Caption != '')
//    {
//    document.write("<caption align=left><font face='arial' size=2>" + Caption );
//    }
// document.write("<tr>");
   if (Size == 'L')
      {
      document.write("<table border=0 cellspacing=0 cellpadding=0><caption align=left><font face='arial' size=2>" + Caption + "<tr>");
      document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' width='8' height='8'><br><img src='http://www.ersys.com/images/gray.gif' width='8' height='435'></td>");
      document.write("<td valign=top><img src='" + File_Name + "' usemap='#mapper' border=0 width=405 height=435><br><img src='http://www.ersys.com/images/gray.gif' width='397' height='8'></td></tr></table>");
      }
   else
      {
      document.write("<table border=0 cellspacing=0 cellpadding=0><caption align=left><font face='arial' size=1>" + Caption + "<tr>");
      document.write("<td valign=top><img src='http://www.ersys.com/images/clr.gif' width='8' height='8'><br><img src='http://www.ersys.com/images/gray.gif' width='8' height='182'></td>");
      document.write("<td valign=top><img src='" + File_Name + "' usemap='#mapper' border=0 width=227 height=182><br><img src='http://www.ersys.com/images/gray.gif' width='219' height='8'></td></tr></table>");
      }
   }
