 
    var clientMaps2;

    var findHostUrl;
    var primaryHostUrl;
    var initMapIndex;
    var initThemeIndex;
    var initRndIndex;
    var convLon;
    var convLat;
    var viewWidth;
    var viewHeight;

    var initExtentLeft;
    var initExtentRight;
    var initExtentTop;
    var initExtentBottom;

    var loadInitialSlideshow;
    var autoPlayInitSlideshow;
    var legendBgColor;
    var clientBgColor;
    var sidebarWidth;

    var initClientWidth;
    var initClientHeight;
    var maxMapWidth;
    var maxMapHeight;
    var vertPadding;

    var horizPadding;
    var keepViewOnMapChange;
    var showStatusbarAlways;
    var showAnimationTool;
    var maxMapHistoryCount;

    var seWindow;

    
    //function SE_WindowResized()
    //{ 
    //var oMapClientStyleObj = getStyleObject_FC('MapClientObject');
    //oMapClientStyleObj.width = GetMaxWidth();
    //oMapClientStyleObj.height = GetMaxHeight();
   //}
    
    function ConvertLonToAlbersEqArea(dLon) 
    {
    //compute LON
    //Earth radius = 5,269,308.57789304
    //pi = 3.1415
    //cos(38)/180 = 0.00530596468915164
    //Earth Radius * pi = 16553532.89745098516 * cos(38)/180 = 87832.461034585
    return roundNumber(87832.461034585 * (dLon + 100), 2);
    }

    function ConvertLatToAlbersEqArea(dLat)
    { 
    //compute LAT
    var e = 0.0818191955335; //eccentricity
    var es = .00669438075774911; //e^2
    var one_es = 0.993305619242251; //1-es
    var k0 = .0000001237057815; //general scaling factor 
    var pi = 3.14159265358979; //our old friend

    var dRadsLat = (pi * dLat) / 180; //angle in radians
    var dSinLat = Math.sin(dRadsLat); //sin(lat in radians)
    var dCon = e * dSinLat; 
    return roundNumber(0.5 * (one_es * (dSinLat / (1 - dCon * dCon) - (0.5 / e) * Math.log((1 - dCon) / (1 + dCon)))) / k0, 2);
    }


/* i got this code from http://www.mediacollege.com/internet/javascript/number/round.html
i just reformatted it. it looks good, although i don't know why it subtracts 5000 if the number is between 8191 and 10485! */
    function roundNumber(rnum, rlength) 
    {
    if (rnum > 8191 && rnum < 10485) 
    {
    rnum = rnum-5000;
    var newnumber = Math.round(rnum*Math.pow(10,rlength))/Math.pow(10,rlength);
    return newnumber+5000;
    } 
    else 
    return Math.round(rnum*Math.pow(10,rlength))/Math.pow(10,rlength);
    }
function SE_WindowResized() 
{ 
var oMapClientStyleObj = getObject_FC('MapClientObject'); 
//oMapClientStyleObj.width = GetMaxWidth(); 
//oMapClientStyleObj.height = GetMaxHeight(); 
//oMapClientStyleObj.style.width = GetMaxWidth(); 
//oMapClientStyleObj.style.height = GetMaxHeight(); 
oMapClientStyleObj.width = "1000"; 
oMapClientStyleObj.height = "800";
oMapClientStyleObj.style.width = "1000";
oMapClientStyleObj.style.height = "800";
} 


function displayMap(lat, lon, map)
{
   window.onresize = SE_WindowResized;

   if (map == 1)
   {
     clientMaps2 = '<hosts><host url="http://www.socialexplorer.com"><project name="SeEst2006TractARDA"><Maps><M i="0" cap="2006 Estimates For ARDA"></M></Maps></project><project name="C2000Tract"><Maps><M i="0" cap="2000 Census"></M></Maps></project></host><host url="http://www.socialexplorer.com"><project name="ARDA_County"><Maps><M i="0" cap="Religion, 2000"/><M i="1" cap="Religion, 1990"/><M i="2" cap="Religion, 1980"/></Maps></project></host></hosts>';
     viewWidth = 33060.17959031;
     viewHeight = 10324.17408741;

   }
   else
   {
     clientMaps2 = '<hosts><host url="http://www.socialexplorer.com"><project name="ARDA_County"><Maps><M i="0" cap="Religion, 2000"/><M i="1" cap="Religion, 1990"/><M i="2" cap="Religion, 1980"/></Maps></project><project name="SeEst2006TractARDA"><Maps><M i="0" cap="2006 Estimates For ARDA"></M></Maps></project></host><host url="http://www.socialexplorer.com"><project name="C2000Tract"><Maps><M i="0" cap="2000 Census"></M></Maps></project></host></hosts>';
     viewWidth = 148060.17959031;
     viewHeight = 123324.17408741;
   }

   findHostUrl      = 'http://www.socialexplorer.com';
   primaryHostUrl   = '';
   initMapIndex    = "0";
   initThemeIndex  = "1";
   initRndIndex    = "0";
   
   if (lat == 0.0 && lon == 0.0)
   {
     initExtentLeft = "";
     initExtentRight = "";
     initExtentTop = "";
     initExtentBottom = "";
     //alert("Zip Code Not Found");
   }
   else
   {
     // Convert the Lat/Lon into the Albers Projection

     convLon = ConvertLonToAlbersEqArea(lon); 
     convLat = ConvertLatToAlbersEqArea(lat); 
    
     // Center the Lat/Lon within the display window

     initExtentLeft = convLon - (viewWidth/2);
     initExtentRight = convLon + (viewWidth/2);
     initExtentTop = convLat + (viewHeight/2);
     initExtentBottom = convLat - (viewHeight/2);
   }

   loadInitialSlideshow  = "";
   autoPlayInitSlideshow = "";
   legendBgColor   = "auto";      //hex value, auto to use document background color...
   clientBgColor   = "ffffff";      //hex value, auto to use document background color...
   sidebarWidth    = "220";    //sidebar width
    //Client size and default size settings...(size is adjusted automatically according to screen resolution)
   initClientWidth = "1000";    //auto: script selects best default size for screen resolution. automax: script determines really the max size for res
   initClientHeight = "800";  //auto: script selects best default size for screen resolution. automax: script determines really the max size for res
   maxMapWidth  = 1200;             //limit the maximum map size (not client size, this is size of the map in pixels)
   maxMapHeight = 1024;            //limit the maximum map size (not client size, this is size of the map in pixels)
   vertPadding = 110;

   horizPadding = 30;

    //client other settings...
   keepViewOnMapChange    = "true";
   showStatusbarAlways    = "false";
   showAnimationTool      = "false";
   maxMapHistoryCount     = 5;
   primaryHostUrl         = "http://www.socialexplorer.com/"

   document.write("<SCRIPT language=\"javascript\" SRC=\"http://www.socialexplorer.com/pub/maps/FlashClientHostSupport_v9_ARDA.js\"></SCRIPT>");
}




