// functions for Loblolly Map, copyright 2004 Loblolly Productions

    function changeMap(mapNum){
        document.mapnav.mapTextArea.value=mapText[mapNum];
	  if(cachedImages[mapNum].complete != true){
		document.images[indexOffset].src=cachedImages[7].src;
	  }
        document.images[indexOffset].src=cachedImages[mapNum].src;
    }

    function initializeMapImages(){
	  cachedImages = new Array(8);
	  for(var i=0;i<8;++i)cachedImages[i]=new Image();
	  cachedImages[7].src = "Loblolly/Loading.jpg";
	  cachedImages[0].src = "Loblolly/Location.jpg";
        cachedImages[1].src = "Loblolly/Business.jpg";
	  cachedImages[2].src = "Loblolly/Agriculture.jpg";
	  cachedImages[3].src = "Loblolly/Marine.jpg";
	  cachedImages[4].src = "Loblolly/Tourism.jpg";
	  cachedImages[5].src = "Loblolly/Health.jpg";
	  cachedImages[6].src = "Loblolly/Education.jpg";

	  // find default Location map in image list and store the index offset
	  last = document.images.length;
	  indexOffset = 0;
	  for(ktr=0;ktr<last;ktr++){
	      if(document.images[ktr].name == "MapImage")indexOffset = ktr;
	  } 
    }

    function initializeMapText(){
	    mapText = new Array(7);
	    mapText[0] = "Kent County, Maryland is within a 90 minutes drive of the 4 major markets of Washington, D.C., Baltimore, MD, Wilmington, DE and Philadelphia, PA. where approximately 18 million people live and work.";
	    mapText[1] = "Kent County business and industrial sites attract a broad spectrum of business categories from medical and professional services, manufacturing, science, financial, health care, marketing, education, construction and agriculture.";
	    mapText[2] = "Agriculture is the largest economic sector in Kent County, creating strong potential for agricultural research and agriceutical companies.\n\nThe Kent County Office of Economic Development has encouraged and supported the use of diverse agricultural products and processes. Our latest effort in support of a strong agricultural economy was to aggressively promote a significant expansion in the wine-quality grape growing industry in our county and region.\n\nIdentity Preservation farming, secure food sources and value-added products introduced by Chesapeake Fields Institute are creating enhanced profits for family farmers and related farming businesses.";
	    mapText[3] = "Kent County Maryland, has an ideal location for marine businesses... it is surrounded on three sides by water and is easily accessible to boaters visiting from major mid-Atlantic cities.\n\nOur marine industry is vital; we have over 20 marinas providing 2,700 slips and 21 County public boat launch sites. We support the growth of this industry by making the environmental health of our waters a prime concern; there is a riverkeeper initiative in place and a major marina manager representing us on Maryland's Clean Marina Committee.\n\nCome and be a part of our maritime vitality in the boating capitol of the upper Chesapeake Bay.";
	    mapText[4] = "A scenic peninsula, on Maryland's Upper Eastern Shore of the Chesapeake Bay, the County of Kent is less than a two-hour drive from Philadelphia, Washington D.C., Annapolis and Northern Virginia. Quaint waterfront towns, including Historic Chestertown, Rock Hall, Galena, Betterton and Millington, offer sunset cruise charters, small beaches, kayaking, fishing charters, boating, sailing, nine museums, two theaters, art galleries, brick sidewalk shopping, antiquing, terrific restaurants, farmers' market, local seafood, including the Chesapeake Bay Blue Crab and more.\n\nRecently named a Main Street Maryland, Chestertown boasts Maryland's second largest collection of 18th century structures. Catch a show at The Prince Theatre in Chestertown and the Mainstay in Rock Hall, which feature local to internationally renowned performers.\n\While driving Maryland's first National Scenic Byway, you will find stretches of low rolling farmland, dramatic sunsets, scenic beauty, rich heritage and some of the United States' most quaint and beautiful towns.";
	    mapText[5] = "An expanding health care industry in Kent County means opportunities for medical related manufacturers, research and  bio-medical businesses and agriceuticals.\n\nThe Chester River Health System, headquartered in Kent County, with a University of Marland Medical System affiliation, draws a sophisticated and large base of talented healthcare professionals.";
	    mapText[6] = "Education, like conservation is highly valued in Kent County, with several noted private schools and an award-winning public school that provides pre-K through adult education and career training. Washington and Chesapeake Colleges provide higher education, business consulting, research, intern programs and continuing education. Recently a formal STEM(Science, Technology, Engineering and Math) program was established in two grades and will expand over time to six grades.\n\nInnovative enrichment centers throughout the County offer education as diverse as: arts instruction, farming, recreation, cultural studies, colonial heritage, health, family and aging issues.";
     }

     function initializeMap(){
        initializeMapText()
        initializeMapImages()
        changeMap(0)
     }

// EOF
