// -------------------------------------------------------------------
// Image of the Day Script
// -------------------------------------------------------------------

var d=new Date();

var captions=new Array(31);

var alts=new Array(31);

captions[0]="Red sandstone and white snow dusting pinion pines with a high mountain looming over all through low-lying clouds. Oak Creek Canyon, AZ.<br>Photo credit: Janet Ward, NOAA Office of Communications & External Affairs.";

captions[1]="Adelie penguin on the sea ice. <br>Photo credit: Michael Van Woert, NOAA NESDIS, ORA.";

captions[2]="The Ross Ice Shelf at the Bay of Whales. This is the southern-most navigable point on the planet and the point where Amundsen started his successful trek to the South Pole.<br>Photo credit: LMichael Van Woert, NOAA NESDIS, ORA.";

captions[3]="Scorpion fish.<br>Credit: Paula Keener-Chavis, NOAA.";

captions[4]="A hotshot crew conducts burnout operations on the Derby Fire. Severe drought conditions contributed to extreme fire behavior. <br>Photo credit: Dan Borsum, NOAA/NWS/WR/WFO/Billings Montana.";

captions[5]="King Penguin. <br>Photo credit: Lieutenant Philip Hall, NOAA Corps.";

captions[6]="Railroad vine and sea oats at Nanny Goat Beach. Sapelo Island National Estuarine Research Reserve. <br>Photo credit: Jim Couch, Georgia Department of Natural Resources.";

captions[7]="Dive tourism can place additional stress on reefs. Standing on or handling live corals can damage or even kill the coral polyps. Note anchor line extending to bottom. Anchor could be damaging delicate reef animals.<br>Photo credit: David Burdick.";

captions[8]="The airport terminal at Nanwalek. <br>Photo credit: NOAA/NOS/COOPS.";

captions[9]="Floats for lobster traps adorning a Maine fence. <br>Photo credit: Captain Albert E. Theberge, NOAA Corps (ret.).";

captions[10]="Penguin gathering on top of iceberg. <br>Photo credit: Lieutenant Philip Hall, NOAA Corps.";

captions[11]="Pioneer Liquors in the vicinity of Seward. <br>Photo credit: Dr. Igor Smolyar, NESDIS/NODC.";

captions[12]="Gulf of Mexico Anemone.<br>Photo credit: Image courtesy of Expedition to the Deep Slope 2007, NOAA-OE.";

captions[13]="Drum Point Lighthouse.<br>Photo credit: Elinor DeWire, Sentinel Publications.";

captions[14]="Colorado Plateau cumulus.<br>Photo credit: Sean Linehan, NOAA NOS/NGS.";

captions[15]="Resident Canada Geese - the ones who forget to fly home for the summer. Resident Canada Geese put additional stress on the Chesapeake Bay ecosystem. <br>Photo credit: Mary Hollinger.";

captions[16]="Baseline measurement over the engine area of the HASSLER. <br>Photo credit: NOAA's Maritime Heritage Program.";

captions[17]="Sunset at sea. <br>Photo credit: Personnel of the NOAA Ship DELAWARE II. ";

captions[18]="Alaskan Elk.<br>Photo credit: Dr. Igor Smolyar, NESDIS/NODC.";

captions[19]="A lone sandpiper patrolling the edge of the surf line in search of dinner.<br>Photo credit: Mary Hollinger, NESDIS/NODC biologist, NOAA.";

captions[20]="An almost round island in Prince William Sound as seen from the air at a low tide.  <br>Photo credit: NOAA.";

captions[21]="Portion of large derelict net on surface while still entangled on reef.<br>Photo credit: Dr. Dwayne Meadows, NOAA/NMFS/OPR.";

captions[22]="Stepping Stones Lighthouse.<br>Photo credit: NOAA.";

captions[23]="Mangroves growing in the coral rocks of the Guam coastline.<br>Photo credit: David Burdick.";

captions[24]="Divers engaged in cutting net debris for floating to surface and transporting back to contract vessel CASITAS. <br>Photo credit: Dr. Dwayne Meadows, NOAA/NMFS/OPR.";

captions[25]="Uncovered reef flat with intervening channels at low tide on the Guam coastline. <br />Photo credit: David Burdick.";

captions[26]="Railroad vine and ghost crab tracks. Sapelo Island National Estuarine Research Reserve. .<br>Photo credit: Jim Couch, Georgia Department of Natural Resources.";

captions[27]="Orographic lift of moist air coming off ocean produces clouds along the Santa Lucia Mountains south of Monterey. <br>Photo credit: Robert Schwemmer, NOAA, NOS, CINMS.";

captions[28]="Sapelo Island Lighthouse. Sapelo Island National Estuarine Research Reserve. <br>Photo credit: Jim Couch, Georgia Department of Natural Resources.";

captions[29]="Periwinkle and seaweed covered granite shoreline. <br>Photo credit: Captain Albert E. Theberge, NOAA Corps (ret.).";

captions[30]="Happy Halloween! <br>A pumpkin patch along Highway 1 north of Davenport. <br>Photo credit: Captain Albert E. Theberge, NOAA Corps (ret.).";

alts[0]="Snow-covered red rock canyon.";

alts[1]="Penquin.";

alts[2]="Antarctic ice shelf.";

alts[3]="Red fish.";

alts[4]="Forest fire.";

alts[5]="Penquin.";

alts[6]="Georgia beach scene.";

alts[7]="Divers at Marianas Island reef.";

alts[8]="Small shack and single prop plane.";

alts[9]="Lobster floats on a fence.";

alts[10]="Penquins atop an iceberg.";

alts[11]="Small shack.";

alts[12]="Anemone.";

alts[13]="Lighthouse.";

alts[14]="Clouds over colorado red rock.";

alts[15]="Flock of geese and goslings.";

alts[16]="Wreck of the HASSLER.";

alts[17]="Sunset over water.";

alts[18]="Elk.";

alts[19]="Sandpiper.";

alts[20]="Small rocky island.";

alts[21]="Diver with net debris.";

alts[22]="Lighthouse on small rocky island.";

alts[23]="Mangrove.";

alts[24]="Divers with net debris.";

alts[25]="Rocky shoreline.";

alts[26]="Georgia beach scene.";

alts[27]="Clouds over Calif. coast.";

alts[28]="Lighthouse.";

alts[29]="Maine rocky coastline.";

alts[30]="Field of pumpkins.";




 pix=d.getDate();
 arry=d.getDate()-1;

document.write("<img src=" +  "'" + "potd/day" + pix + ".jpg'" +  "ALT=" + "'" + alts[arry] + "'><br />");

document.write(captions[arry]);

//document.write("<a href=" +  "'" + "potd/day" + pix + ".jpg'" + "rel=" + "'thumbnail'" + " title=" + "'" + captions[arry] + "'" + ">" + "<IMG ALT=" + "'" + alts[arry] + "'"  + "SRC=" + "'" + "potd/daysm" + pix + ".jpg'></a><br>");

//document.write("<a href=" +  "'" + "potd/day" + pix + ".jpg'" + "rel=" + "'thumbnail'" + " title=" + "'" + captions[arry] + "'" + ">" + "Click to view larger version of the image and caption</a><br>");