// -------------------------------------------------------------------
// 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 <br>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 <br>and the point where Amundsen started his successful trek to the South Pole.<br>Photo credit: Michael 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 <br>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 <br>can damage or even kill the coral polyps. Note anchor line extending to bottom. <br>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]="A ribbon of cloud draped across a glacial valley in the Rudyerd Bay area <br>while sunlight sparkles on the water.<br>Photo credit: LCDR Mark Wetzler, NOAA Corps.";

captions[15]="A melange of omilu or bluefin trevally (Caranx melampygus, Cuvier 1833). <br>Photo credit: Dr. Dwayne Meadows, NOAA/NMFS/OPR.";

captions[16]="Lieutenant Commander Joe Pica observing a curious humpback whale who came<br> to visit during recovery of underwater acoustic current meter.<br>Photo credit: Lt. (j.g.) Tony Perry III, NOAA Corps.";

captions[17]="St. Croix, United States Virgin Islands. <br>Photo credit: Sean Linehan, NOAA, NGS, Remote Sensing.";

captions[18]="Chile, Easter Island.<br>Photo credit: Lt. Elizabeth Crapo, NOAA Corps.";

captions[19]="Sunset at Chile, Easter Island.<br>Photo credit: Lt. Elizabeth Crapo, NOAA Corps.";

captions[20]="A volcano in the Kurile Islands, Russia. <br>Photo credit: Dr. Igor Smolyar, NOAA/NODC.";

captions[21]="A large lionfish. Pterois volitans.<br>Photo credit: Andrew David, NOAA/NMFS/SEFSC.";

captions[22]="Manatee (Trichechus manatus).<br>Photo credit: Dr. Dwayne Meadows, NMFS/OPR.";

captions[23]="Satellite transmitter placed on head of cow elephant seal. <br>Photo credit: NOAA.";

captions[24]="An Antarctic fur seal pup. <br>Photo credit: Dr. David Demer, NOAA/NMFS/SWFSC/AMLR.";

captions[25]="A buoy awaiting deployment. The KAPITAN DRANITSYN is in the background. <br />Photo credit: Mike Dunn, NC State Museum of Natural Sciences.";

captions[26]="A spectacular Arctic sunset.<br>Photo credit: Mike Dunn, NC State Museum of Natural Sciences.";

captions[27]="Project Cloudline Echo. <br>Photo credit: Dr. Harry F. Hawkins, Jr., Hurricane Research Div.";

captions[28]="Project Cloudline Echo. <br>Photo credit: Dr. Harry F. Hawkins, Jr., Hurricane Research Div.";

captions[29]="A symmetrical volcanic cone in the Kurile Islands, Russia seen at dawn over a calm north Pacific Ocean. <br>Photo credit: Dr. Igor Smolyar, NOAA/NODC.";

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 lake and mountains.";

alts[15]="School of fish.";

alts[16]="Diver and a whale.";

alts[17]="Aerial view of coastline.";

alts[18]="Statues.";

alts[19]="Sunset.";

alts[20]="Volcano.";

alts[21]="Spikey fish.";

alts[22]="Manatee.";

alts[23]="Group with seal.";

alts[24]="Baby seal.";

alts[25]="Arctic scene with buoy and ship.";

alts[26]="Arctic scene.";

alts[27]="Aerial view of clouds.";

alts[28]="Aerial view of clouds.";

alts[29]="Volcano rising above a lake.";

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>");