<?xml version="1.0" encoding="UTF-8" ?> 
<Module>
	<ModulePrefs title="Discovery HD Theater :: Sunrise Earth" title_url="http://dhd.discovery.com/convergence/sunriseearth/sunriseearth.html" author="Discovery Communications, Inc." author_affiliation="DCI" author_email="info@discovery.com" screenshot="http://dcrwebworks.com/widgets/google/sunrise_earth/screenshot.png" thumbnail="http://dcrwebworks.com/widgets/google/sunrise_earth/thumbnail.png" height="320">
		<Require feature="dynamic-height" />
	</ModulePrefs> 
	<Content type="html">
		<![CDATA[ 
		<style type="text/css">
			div {
			  margin-top: 5px;
			}
			h3 {
			  font: bold 12px Arial, Helvetica, sans-serif;
			  margin-bottom: 0;
			}
			p {
			  font: 12px Arial, Helvetica, sans-serif;
			  margin-top: 0;
			}
			img {
			  width: 100%;
			}
		</style>
		<div>
			<img src="http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo_hidden.gif" id="sunrise" alt="" />
			<h3 id="location">Sunrise Earth: Cribworks Kayak</h3>
			<p id="description">White water roars and mist erupts as the sun's first rays hit the <a href="http://www.discovery.com/googleearth/index.html?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=18579414">West Branch of Maine's Penobscot River</a>.</p>
		</div>
		<script type="text/javascript">
			// create an array and fill it with image URLs
			var theImages = new Array();
			theImages[0] = "http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo01.jpg";
			theImages[1] = "http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo02.jpg";
			theImages[2] = "http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo03.jpg";
			theImages[3] = "http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo04.jpg";
			theImages[4] = "http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo05.jpg";
			theImages[5] = "http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo06.jpg";
			theImages[6] = "http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo07.jpg";
			theImages[7] = "http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo08.jpg";
			theImages[8] = "http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo09.jpg";
			theImages[9] = "http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo10.jpg";
			theImages[10] = "http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo11.jpg";
			theImages[11] = "http://dcrwebworks.com/widgets/google/sunrise_earth/images/photo12.jpg";
			
			// create an array and fill it with locations
			var theLocations = new Array();
			theLocations[0] = "Sunrise Earth: Acadia National Park ";
			theLocations[1] = "Sunrise Earth: Icelandic Waterfall";
			theLocations[2] = "Sunrise Earth: Buddhists of Wat Svay";
			theLocations[3] = "Sunrise Earth: San Francisco Tai Chi";
			theLocations[4] = "Sunrise Earth: Yellowstone Geysers";
			theLocations[5] = "Sunrise Earth: Volcano Lagoon";
			theLocations[6] = "Sunrise Earth: Sequoia Light";
			theLocations[7] = "Sunrise Earth: Sea of Terns";
			theLocations[8] = "Sunrise Earth: Lobster Village";
			theLocations[9] = "Sunrise Earth: Gator Hole";
			theLocations[10] = "Sunrise Earth: Cribworks Kayak";
			theLocations[11] = "Sunrise Earth: Alewife Eternal Return";
			
			// create an array and fill it with text
			var theText = new Array();
			theText[0] = "Witness sunrise over the highest vantage point along the North Atlantic seaboard, <a href='http://www.discovery.com/googleearth/index.html?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=18579390'>Cadillac Mountain of Maine's Acadia National Park</a>.";
			theText[1] = "Mist from <a href='http://www.discovery.com/googleearth/?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=364937943'>Gullfoss Waterfall</a> fills the air as the new day's sun shines down on a frozen winter scene.";
			theText[2] = "As the sun rises at <a href='http://www.discovery.com/googleearth/index.html?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=348411093'>Wat Svay in Cambodia</a>, the sound of chanting Buddhists monks can be heard.";
			theText[3] = "The slow, synchronized movements of Tai Chi practitioners coax the sun up above <a href='http://www.discovery.com/googleearth/?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=18579389'>San Francisco Bay overlooking Golden Gate Park</a>.";
			theText[4] = "The <a href='http://www.discovery.com/googleearth/index.html?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=18579405'>geysers of Wyoming's Yellowstone National Park</a> welcome the sunrise with steam and shooting water.";
			theText[5] = "A tidal lagoon flushes its night load of water under the shadow of <a href='http://www.discovery.com/googleearth/index.html?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=18579385'>Alaska's Augustine volcano</a>, a perfect cone that last erupted in 1986. This is a land where the earth quakes an average of once every 30 sunrises.";
			theText[6] = "Ancient giant sequoias encircle a meadow in <a href='http://www.discovery.com/googleearth/index.html?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=18579367'>California's Sierra Mountains</a> and filter the early morning sunlight down to the forest floor.";
			theText[7] = "More than 17,000 terns begin their daily routine on an island off the <a href='http://www.discovery.com/googleearth/index.html?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=18579383'>southern elbow of Cape Cod, Mass</a>.";
			theText[8] = "Lobstermen begin their day overlooking a peaceful ocean in <a href='http://www.discovery.com/googleearth/index.html?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=18579412'>New Harbor, Maine</a>.";
			theText[9] = "Alligators, egrets, wood storks and ravens see the first light of day from a gator hole in <a href='http://www.discovery.com/googleearth/index.html?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=18579404'>Florida's Everglades National Park</a> during the dry season.";
			theText[10] = "White water roars and mist erupts as the sun's first rays hit the <a href='http://www.discovery.com/googleearth/index.html?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=18579414'>West Branch of Maine's Penobscot River</a>.";
			theText[11] = "As the sun surfaces, <a href='http://www.discovery.com/googleearth/index.html?playerId=219243115&categoryId=350721045&lineupId=348523849&titleId=18579373'>alewives make the dangerous trek</a> from the freshwater lakes of New England to the cold Atlantic Ocean.";

			// select a random number based on the length of the array
			var randomNum = Math.round(Math.random() * (theImages.length-1));

			// locate the image element with an id of "sunrise_img"
			var sunrise = document.getElementById("sunrise");

			// replace the image tag's src attribute
			sunrise.setAttribute("src", theImages[randomNum]);
			
			// locate the h3 element
			var locH3 = document.getElementById("location");
			
			// replace the h3's text
			locH3.innerHTML = theLocations[randomNum];
			
			// locate the p element
			var textP = document.getElementById("description");
			
			// replace the p element's text
			textP.innerHTML = theText[randomNum];
			
			// on window resize, re-set the height of the iframe
			window.onresize = window.onload = function() {
			  _IG_AdjustIFrameHeight();
			}
		</script>
		]]>
	</Content> 
</Module>
