    var leftPos;
    var titleArray = [ "Volcanoes National Park", "Denali National Park", "Alaska", "Glacier Bay National Park", "Yosemite National Park", "California State Parks", "Grand Canyon National Park", "Yellowstone National Park", "New Orleans", "Galapagos Islands", "Costa Rica", "Great Smoky Mountains", "Everglades National Park", "Dominica", "The Amazon", "Botswana", "Himalayas", "Borneo", "Blue Mountains", "Antarctica"

 ];

    var imgArray = [ "eco_volcanoes_natl_park.jpg", "eco_denali_natl_park.jpg", "eco_alaska_eco.jpg", "eco_glacierbay_natl_park.jpg", "eco_yosemite_natl_park.jpg", "eco_calif_state_parks.jpg", "eco_grandcanyon_natl_park.jpg", "eco_yellowstone_natl_park.jpg", "eco_neworleans.jpg", "eco_galapagos.jpg", "eco_costarica.jpg", "eco_greatsmokymts_natl_park.jpg", "eco_everglades_natl_park.jpg", "eco_dominica.jpg", "eco_amazon.jpg", "eco_botswana.jpg", "eco_himalayas.jpg", "eco_borneo.jpg", "eco_blue_mountain.jpg", "eco_antarctica.jpg"

 ];

    var linkArray = ["/outlook/travel/vacationplanner/greentravel/destination/overview/USHI0026",
"/outlook/travel/vacationplanner/greentravel/destination/overview/USAK0236", "/outlook/travel/vacationplanner/greentravel/destination/overview/USAK0012", "/outlook/travel/vacationplanner/greentravel/destination/overview/USAK0060",  "/outlook/travel/vacationplanner/greentravel/destination/overview/USCA1269",  "/outlook/travel/vacationplanner/greentravel/destination/overview/USCA0119", "/outlook/travel/vacationplanner/greentravel/destination/overview/USAZ0088", "/outlook/travel/vacationplanner/greentravel/destination/overview/USWY0088", "/outlook/travel/vacationplanner/greentravel/destination/overview/USLA0338",  "/outlook/travel/vacationplanner/greentravel/destination/overview/ECXX0016",
"/outlook/travel/vacationplanner/greentravel/destination/overview/CSXX0009",  "/outlook/travel/vacationplanner/greentravel/destination/overview/USTN0196",
"/outlook/travel/vacationplanner/greentravel/destination/overview/USFL0208", "/outlook/travel/vacationplanner/greentravel/destination/overview/DOXX0001",  "/outlook/travel/vacationplanner/greentravel/destination/overview/BRXX0146",  
"/outlook/travel/vacationplanner/greentravel/destination/overview/BCXX0001", "/outlook/travel/vacationplanner/greentravel/destination/overview/NPXX0002", 
"/outlook/travel/vacationplanner/greentravel/destination/overview/MYXX0011", "/outlook/travel/vacationplanner/greentravel/destination/overview/ASXX0112",
"/outlook/travel/vacationplanner/greentravel/destination/overview/AYXX0001" ]

    var textArray = ["Kilauea and Mauna Loa are two of the planet's most active volcanoes. Their fiery lava tunnels, furiously-pumping steam vents and rumbling underground energy make this park a must-visit.", "Breathtaking scenery and untouched wilderness make this one of Alaska's most popular places to visit.", "With over 100 state parks to explore, Alaska's vast, pristine wilderness beckons adventurers to rejoice in all its splendors.", "Two of the world's rare places where you can see a pristine, awe-inspiring landscape barely touched by civilization.", "Towering waterfalls, raging rivers, massive 1,000-year-old trees and jagged granite peaks are a few of the breathtaking sights that make Yosemite among the best natural retreats.", "California's towering redwoods, sparkling beaches, historic landmarks, peaks and valleys teeming with wildlife are among America's 11 Most Endangered Historic Places.", "The air here is some of the cleanest in the US, but a haze of pollution from nearby cities and power plants, air tours and flyovers has reduced visibility about 30 percent.", "America's first national park is one of the world's most extraordinarily biodiverse sites.", "New Orleans is a city in peril, threatened not only by the lingering effects of Hurricane Katrina but also by a repeat performance if proper measures aren't put in place.", "Visiting the Galapagos is the eco-traveler equivalent of making a pilgrimage to Mecca. The island chain is the world's first Natural World Heritage Site.", "The Rich Coast boasts four active volcanoes, an abundance of fecund rainforests, thermal hot springs, and more than 750 miles of fetching and often-uncrowded beaches.", "Though beautiful, the Smokies are also fragile. The National Parks Conservation Association has named the park one of America's 10 most endangered parks for several years running.", "At 4 million acres, Florida's Everglades National Park, home to the American crocodile and the Florida panther, is the largest swath of wilderness east of the Rocky Mountains.", "The Nature Island of the Caribbean is often visited by 40-ton whales, who like to socialize, mate, and play off its shores. Visitors are promised a 90 percent chance of spotting one up close.", "The remarkable Amazon rainforest surrounds the world's largest river system and produces 20 percent of the earth's oxygen.", "Safaris and environment-friendly resorts make it easy for travelers to see elephant herds, leopards, lions, zebras, hippos, white rhinos, and chacma baboons.", "Rustic trail lodges and group camping treks give independent trekkers the chance to engage the highest mountains on earth.", "For an all-out eco-friendly getaway, it's hard to beat a stay at the Sukau Rainforest Lodge, a completely self-sufficient hotel subsisting on rainwater and solar energy.", "A 90-minute ride from Sydney, the Blue Mountains are named for the blue hue cast by the eucalyptus oil produced by the region's native trees.", "More than 20,000 tourists now head to the South Pole each year to witness its monumental glaciers and icebergs, comical penguins, and majestic whales."      ];

	// renders pop-up window and location marker
    function travelPopUp(i,x,y){
      closeWindow('travel1stPopUp');
      cancelAutoClose();
      if (x<303) {leftPos = 260;} else {leftPos = 20;}
      document.getElementById('popUpTitle').innerHTML = "<a href=\"" + linkArray[i] + "\" onMouseDown=\"setClick();\" onMouseUp=\"this.href=intelliTrak({'href':this.href,'from':'trav_vac_green_welc_map'});\">" + titleArray[i] + "<\/a>";
      document.getElementById('popUpImage').src = 'http://i.imwx.com/web/activities/travel/images/' + imgArray[i];
      document.getElementById('popUpImage').alt = titleArray[i];
      document.getElementById('popUpImage').title = titleArray[i];
      document.getElementById('popUpImageLink').href = linkArray[i];
      document.getElementById('popUpText').innerHTML = textArray[i] + "<div style=\"position:absolute; right:10px; bottom:10px; background-color:#FFFFFF;\">&nbsp;...&nbsp;<a href=\"" + linkArray[i] + "\" onMouseDown=\"setClick();\" onMouseUp=\"this.href=intelliTrak({'href':this.href,'from':'trav_vac_green_welc_map'});\">more<\/a><\/div>";
      document.getElementById('travelPopUp').style.left = leftPos + 'px';
      document.getElementById('travelPopUp').style.display = 'block';
      document.getElementById('travelPopUpShadow').style.height = document.getElementById('travelPopUp').offsetHeight + 'px';
      document.getElementById('travelPopUpShadow').style.left = (leftPos + 5) + 'px';
      document.getElementById('travelPopUpShadow').style.display = 'block';
      document.getElementById('marker').style.left = x + 'px';
      document.getElementById('marker').style.top = (y - 15) + 'px';
      document.getElementById('marker').style.display = 'block';
      document.getElementById('markerLink').href = linkArray[i];
    }

	// hides semi-transparency of map at opening screen
    function hideOpacity() {
      document.getElementById('mapTransp').style.display = 'none';
    }


    var t;
    function autoClose() {
	  t = setTimeout("closeWindow('travelPopUp')",5000);
    }

    function cancelAutoClose() {
	  clearTimeout(t);
    }