browser = navigator.appName;
ie = "Microsoft Internet Explorer";
netscape = "Netscape";
os = navigator.platform;
var version = parseInt(navigator.appVersion);
pixPerPage=4

function loadMember(nm,idx){
	if(nm=="#") return 0;
	if(!idx) idx=1
	memAnnounce=""
	memText=setArrays(nm)
	if(memName=="#") return 0;

	totPix=memText.length
	if(browser==netscape) pixPerPage=totPix  //Fix Netscape by putting all on one page...
	totPage=Math.floor(totPix/pixPerPage+0.999)
	curPage=Math.floor(idx/pixPerPage+0.999)
	memWin=window.open("","memPhotogallery","scrollbars,status,resizable,height='480',width='640")

	memWin.document.write("<HEAD><LINK href='../dos.css' rel=stylesheet type=text/css>")
	memWin.document.write("<SCRIPT language='JavaScript' src='photogallery.js' DEFER='true'></SCRIPT></HEAD>")
	memWin.document.write("<body bgcolor='#bbbb99'>")     //background='../rsc/stilt.gif'>")
	memWin.document.write("<table width='95%' align='center' cellpadding=0 cellspacing=0 border=0><tr>")
	memWin.document.write("<td width='20%' align='center'  bgcolor='#aaaa99' valign='bottom'><font size=2>All photos &copy;"+memName+"</font></td>")
	memWin.document.write("<td width='60%' align='center' bgcolor='#aaaa99'><b><font size=6>"+memName+"'s Photogallery</font></b></td>")
	memWin.document.write("<td width='20%' align='center' bgcolor='#aaaa99' valign='bottom'><b>Page "+curPage+" of "+totPage+"</b></td></tr>")

	if(memAnnounce != null){
		memWin.document.write("<tr><td colspan=4 align='center'><b>"+memAnnounce+"</b></td></tr>")
		}
	memWin.document.write("</table><br>")
	doScrolling(curPage,totPage,totPix,nm)
	memWin.document.write("<hr width='75%'>")
	//memWin.document.write("<table align='center' border=1>")
	beg=idx-1;
	end=totPix
	if (curPage==totPage && totPage>1){
		//end=beg+Math.max((totPix-(pixPerPage*(curPage-1)))%pixPerPage,1)
		end=beg+Math.max((totPix-(pixPerPage*(curPage-1))),1)}
		else if(totPage==1) end=beg+totPix
		else end=(beg+(pixPerPage))
	for(i=beg;i<end;i++) {
		/*if((i+2)%2==0){
			memWin.document.write("<tr><td align=right width='50%'><table><tr><td class='photomatte'><img border=0 name='image' id='"+i+"' src='"+nm+"/pix"+(i+1)+".jpg'></td</tr></table></td>")
			memWin.document.write("<td align=left><blockquote class='dostext'>"+memText[i]+"</blockquote></td></tr>")
		}else {
			memWin.document.write("<tr><td align=right><blockquote class='dostext'>"+memText[i]+"</blockquote></td>")
			memWin.document.write("<td align=left><table><tr><td class='photomatte'><img name='image' border=0 id='"+i+"' src='"+nm+"/pix"+(i+1)+".jpg'></td></tr></table></td></tr>")
		}*/
		memWin.document.write("<table width='1' align='center' border=0><tr><td class='photomatte' align='center'><img border=0 name='image' id='"+i+"' src='"+nm+"/pix"+(i+1)+".jpg'></td</tr>")
		memWin.document.write("<tr><td align='right' class='dostext'>"+memText[i]+"</td></tr></table><br><br>")
		if(i>200) break
	}
	//memWin.document.write("</table>")
	memWin.document.write("<table width='75%' align='center' border=0><tr><td class='dostext'><font color='blue'>DOS members ")
	memWin.document.write("<a class=\"maillink\" onmousedown=\"mail2DOS('webmaster','dosbirds,org')\">")
	memWin.document.write("contact the webmaster</a> to get your own Photogallery!</font></td></tr></table>")
	memWin.document.write("<hr width='75%'>")
	doScrolling(curPage,totPage,totPix,nm)
	memWin.document.write("</body>")
	memWin.document.title="DOS Members\' Photogallery"
	memWin.document.close()

	return false
}
function doScrolling(cur_p,tot_p,tot_px,nm){
	if(cur_p==tot_p)
		prev=pixPerPage*(cur_p-1)-(pixPerPage)+1
	else
		prev=pixPerPage*(cur_p-1)-(pixPerPage)+1
	next=(cur_p*pixPerPage+1)
	if(tot_p>1){
		memWin.document.write("<table align='center' border=0 width='75%'><tr>")
		memWin.document.write("<td align='center' width='33%'>")
		if(cur_p>1) memWin.document.write("<b><a href='#' onMouseDown='loadMember(\""+nm+"\","+prev+");' class='doslink'>&lt&ltPrevious</a></b>")
		memWin.document.write("&nbsp;</td><td class='doslink' width='33%' align='center'>")
		for(j=1;j<=tot_p;j++){
			if(j==cur_p)
				memWin.document.write("<b><font color='#aa2277'>&nbsp;"+j+"</font>&nbsp;</b>")
			else
				memWin.document.write("<b><a href='#' onMouseDown='loadMember(\""+nm+"\","+(j*pixPerPage-(pixPerPage-1))+");' class='doslink'>&nbsp;<u>"+j+"</u>&nbsp;</a></b>")
		}
		memWin.document.write("<br><a href='#' onMouseDown='self.close()' class='doslink'>[close]</td>")
		memWin.document.write("<td align='center'>")
		if(cur_p!=tot_p) memWin.document.write("<b><a href='#' onMouseDown='loadMember(\""+nm+"\","+next+")' class='doslink'>Next&gt&gt</a></b>")
		memWin.document.write("&nbsp;</td></tr></table>")
	}
	else {
		memWin.document.write("<table align=center border=0><tr><td align='center'>")
		memWin.document.write("<b><a href='#' onMouseDown='self.close()' class='doslink'>[close]</td></tr></table>")
	}
}


function setArrays(nm) {
switch(nm)
{
case "aednie":
memName = "Andy Ednie"
var memText = new Array("<b>Wilson's Snipe</b><br><i>Gallinago gallinago</i><br>Near Smyrna, DE<br>27 April 2002",
		  "<b>Black-necked Stilt</b><br><i>Himantopus mexicanus</i><br>Raymond Pool, Bombay Hook NWR, DE<br>19 May 2002",
		  "<b>Black-billed Cuckoo</b><br><i>Coccyzus erythropthalmus</i><br>Thompson's Island, DE<br>11 May 2002",
		  "<b>Black-throated Green Warbler</b><br><i>Dendroica virens</i><br>Thompson's Island, DE<br>11 May 2002",
		  "<b>Barred Owl</b><br><i>Strix varia</i><br>Delaware<br>Spring, 2002");
break;

case "mhoberg":
memName = "Matt Hoberg"
var memText = new Array("<b>Western Kingbird</b><br><i>Tyrannus verticalis</i><br>Cedar Swamp, New Castle County, Delaware<br>2 January 2002");
break;

case "ahomsey":
memName = "Andrew Homsey"
var memText = new Array(
	"<b>Island Nesting Site</b><br><i></i><br>Middle Is., Indian River Bay, Sussex Co., DE<br>12 May 2002",
	"<b>Upland Sandpiper</b><br><i>Bartramia longicauda</i><br>Off Route 9, Dover, DE<br>24 June, 2003",
	"<b>Upland Sandpiper</b><br><i>Bartramia longicauda</i><br>Off Route 9, Dover, DE<br>24 June, 2003"
	)
break;

case "frohrbacher":
memName = "Frank Rohrbacher"
var memText = new Array("<b>Dark-bellied Brant</b><br><i>Branta bernicla bernicla</i><br>Indian River Inlet, DE<br>November 16, 2002");
break;

case "bschreitz":
memName = "Bill Schreitz"
var memText = new Array(
	"<b>Red Phalarope</b><br><i>Phalaropus fulicaria</i><br>Bombay Hook NWR<br>November 10, 2002",
	"<b>Black-crowned Night Heron</b><br><i>Nycticorax nycticorax</i><br>Shearness Pond, Bombay Hook NWR<br>June 5, 2002<br>"+
	"This picture and the next were taken by using a 460z Olympus digital camera through Swarovski SRL 7 x 42 binos.  In both cases the bird was about 30-40 feet away",
	"<b>Iceland Gull</b><br><i>Larus glaucoides</i><br>Port Mahon Road, DE<br>June 23, 2002",
	"<b>Barred Owl</b><br><i>Strix varia</i><br>Finis Pool, Bombay Hook NWR<br>June 23, 2002",
	"<b>Peregrine Falcons</b><br><i>Falco peregrinus</i><br>Shearness Pond, Bombay Hook NWR<br>September 22, 2002",
	"<b>Baird's Sandpiper</b><br><i>Calidris bairdii</i><br>Shearness Pond, Bombay Hook NWR<br>June 23, 2002",
	"<b>Great Blue Heron</b><br><i>Ardea herodias</i><br>Taken with an Olympus 460 digital camera through 7x35 Swarovski binos, Shearness Pond, Bombay Hook NWR<br>Jan., 2003",
	"<b>Bald Eagle</b><br><i>Haliaeetus leucocephalus</i><br>Taken with an Olympus 460 digital camera through a Kowa TSN 821 spotting scope at 20x, between Suddlersvile, MD and MD Rte. 301 <br>Jan., 2003",
	"<b>King Eider</b><br><i>Somateria spectabilis</i><br>Taken at about 50 yards through a KOWA TSN 821 using an Olympus D-460Z digital camera<br>April 13, 2003",
	"<b>King Eider</b><br><i>Somateria spectabilis</i><br>Taken at about 50 yards through a KOWA TSN 821 using an Olympus D-460Z digital camera<br>April 13, 2003",
	"<b>American Oystercatcher</b><br><i>Haematopus palliatus</i><br>This pretty bird was digiscoped from the Chesapeake Bay Bridge-Tunnel.<br>May 7, 2003",
	"<b>Clapper Rail with family</b><br><i> Rallus longirostris</i><br>This family of rails was digiscoped in Raymond Pool, Bombay Hook.<br>July 20, 2003",
	"<b>Dickcissel</b><br><i>Spiza americana</i><br>Spotted along the road near Goldsboro, MD.<br>July 20, 2003",
	"<b>Red-winged Blackbird</b><br><i>Agelaius phoeniceus</i><br>This female, digiscoped at Bombay Hook, is a typical sight near water in summer.<br>July 20, 2003",
	"<b>Ruff</b><br><i>Philomachus pugnax</i><br>This female, digiscoped at Bombay Hook, is a typical sight near water in summer.<br>July 20, 2003",
	"<b>Ruff</b><br><i>Philomachus pugnax</i><br>Broadkill Impoundment<br>July 4, 2004",
	"<b>Ruff</b><br><i>Philomachus pugnax</i><br>Broadkill Impoundment<br>July 4, 2004",
	"<b>Upland Sandpiper</b><br><i>Bartramia longicauda</i><br>Kiptopeake State Park, VA<br>May 2, 2004",
	"<b>Bobolinks</b><br><i>Dolichonyx oryzivorus</i><br>Pickering Creek, MD <br>August 31, 2003",
	"<b>Hudsonian Godwit</b><br><i>Limosa haemastica</i><br>Raymond Pool, BHNWR<br>June 6, 2004",
	"<b>Hudsonian Godwit</b><br><i>Limosa haemastica</i><br>Note the distinctive black underwing.<br>Raymond Pool, BHNWR<br>June 6, 2004"
	);
break;

case "msmith":
memName = "Mike Smith"
var memText = new Array("<b>Thayer's Gull (possible)</b><br><i>Larus thayeri</i><br>Cherry Island Landfill<br>November 24, 2002",
"<b>Thayer's Gull (possible)</b><br><i>Larus thayeri</i><br>Cherry Island Landfill<br>November 24, 2002",
"<b>Thayer's Gull (possible)</b><br><i>Larus thayeri</i><br>Cherry Island Landfill<br>November 24, 2002",
"<b>Yellow-legged Gull (possible)</b><br><i>Larus cachinnans</i><br>Cherry Island Landfill<br>April, 2002",
"<b>Yellow-legged Gull (on left)</b><br><i>Larus cachinnans</i><br>Cherry Island Landfill<br>April, 2002",
"<b>Yellow-legged Gull (possible)</b><br><i>Larus cachinnans</i><br>Cherry Island Landfill<br>April, 2002"
);
break;

case "rrufe":
memName = "Bob Rufe"
var memText = new Array(
"<b>Iceland Gull</b><br><i>Larus glaucoides</i><br>Cherry Island Landfill<br>January 18, 2003",
"<b>Iceland Gull</b><br><i>Larus glaucoides</i><br>Cherry Island Landfill<br>January 18, 2003",
"<b>Glaucous & Iceland Gulls</b><br><i>Larus hyperboreus/Larus glaucoides</i><br>Cherry Island Landfill<br>March 8, 2003",
"<b>4 Species of Gull</b><br><i>Larus spp.</i><br>Cherry Island Landfill<br>March 8, 2003",
"<b>Herring & Iceland Gulls</b><br><i>Larus argentatus/Larus glaucoides</i><br>Cherry Island Landfill<br>March 8, 2003",
"<b>South Polar Skua</b><br><i>Catharacta maccormicki</i><br>Pelagic Trip, off the Delaware Coast<br>May 31, 2003",
"<b>Pomarine Jaeger</b><br><i>Stercorarius pomarinus</i><br>Pelagic Trip, off the Delaware Coast<br>May 31, 2003",
"<b>Red-necked Grebe</b><br><i>Podiceps grisegena</i><br>Hoopes Reservoir, Northern DE<br>June 19, 2003",
"<b>Northern Shrike</b><br><i>Lanius excubitor</i><br>New England Field trip, Long Island<br>Feb, 2003",
"<b>Ruff</b><br><i>Philomachus pugnax</i><br>Bombay Hook NWR <br>July 10, 2004"
);
break;

case "agonzon":
memName = "Anthony Gonzon "
memAnnounce = "(<a href='http://www.geocities.com/anthony_t_gonzon/home.html' target ='_blank'>For more bird photos, visit Anthony's homepage!</a>)"
var memText = new Array(
"<b>Female Common Goldeneye</b><br><i>Bucephala clangula</i><br>Cedar Creek, DE<br>January 20, 2003",
"<b>Long-eared Owl</b><br><i>Asio otus</i><br>Winter, 2003",
"<b>Harlequin Duck</b><br><i>Histrionicus histrionicus</i><br>Indian River Inlet, DE<br>February 6, 2003",
"<b>White Pelican</b><br><i>Pelecanus erythrorhynchos</i><br>Port Mahon impoundment, DE<br>January, 2003",
"<b>imm. Common Eider</b><br><i>Somateria mollissima</i><br>Herring Point, Cape Henlopen SP<br>January, 2003",
"<b>Red Phalarope</b><br><i>Phalaropus fulicaria</i><br>Broadkill Beach, DE<br>May 17, 2003"
);
break;

case "adudley":
memName = "Adam Dudley"
var memText = new Array(
"<b>White Ibis</b><br><i>Eudocimus albus</i><br>Delaware City, DE<br>June 8, 2003",
"<b>White Ibis</b><br><i>Eudocimus albus</i><br>Delaware City, DE<br>June 8, 2003",
"<b>Iceland Gull</b><br><i>Larus glaucoides</i><br>Cherry Island Landfill<br>Wilmington, DE<br>January 23, 2004",
"<b>Curlew Sandpiper</b><br><i>Calidris ferruginea</i><br>Port Mahon Impoundment<br>Little Creek, DE<br>June 2, 2004",
"<b>Curlew Sandpiper</b><br><i>Calidris ferruginea</i><br>Port Mahon Impoundment<br>Little Creek, DE<br>June 2, 2004",
"<b>Curlew Sandpiper</b><br><i>Calidris ferruginea</i><br>Port Mahon Impoundment<br>Little Creek, DE<br>June 2, 2004",
"<b>Curlew Sandpiper</b><br><i>Calidris ferruginea</i><br>Port Mahon Impoundment<br>Little Creek, DE<br>June 2, 2004",
"<b>Curlew Sandpiper</b><br><i>Calidris ferruginea</i><br>Port Mahon Impoundment<br>Little Creek, DE<br>June 2, 2004",
"<b>Curlew Sandpiper</b><br><i>Calidris ferruginea</i><br>Port Mahon Impoundment<br>Little Creek, DE<br>June 2, 2004",
"<b>Curlew Sandpiper</b><br><i>Calidris ferruginea</i><br>Port Mahon Impoundment<br>Little Creek, DE<br>June 2, 2004",
"<b>Lesser Black-backed Gull</b><br><i>Larus fuscus</i><br>Bombay Hook NWR<br>First summer bird<br>July, 2004",
"<b>Lesser Black-backed Gull</b><br><i>Larus fuscus</i><br>Bombay Hook NWR<br>Second winter bird<br>Winter 2004",
"<b>Lesser Black-backed Gull</b><br><i>Larus fuscus</i><br>Bombay Hook NWR<br>Second winter bird<br>Winter 2004",
"<b>Lesser Black-backed Gull</b><br><i>Larus fuscus</i><br>Bombay Hook NWR<br>Third winter bird<br>Winter 2004"
);
break;

case "jgordon":
memName = "Jeff Gordon"
var memText = new Array(
"<b>Hatch-year male Rufous Hummingbird</b><br><i>Selasphorus rufus</i><br>Wilmington, DE<br>November 16, 2003",
"<b>Hatch-year male Rufous Hummingbird</b><br><i>Selasphorus rufus</i><br>Wilmington, DE<br>November 16, 2003"
);
break;

case "dstoner":
memName = "Derek Stoner"
var memText = new Array(
"<b>Snowy Owl</b><br><i>Nyctea scandiaca</i><br>Indian River Inlet, Delaware<br>March 9, 2004",
"<b>Great Cormorant</b><br><i>Phalacrocorax carbo</i><br>Indian River Inlet, Delaware<br>March 9, 2004<br>" +
	"The Great Cormorant can often be found perched on light towers along the jetty.  " +
                   "Profile photo illustrates the thick bill and white throat patch that distinguish this bird " +
                   "from the smaller double-crested cormorant."
);
break;

case "lgraff":
memName = "Larry Graff"
var memText = new Array(
"<b>Imm. Ruby-throated Hummingbird</b><br><i>Archilochus colubris</i><br>Felton, DE<br>Fall, 2003",
"<b>Black-crowned Night Heron</b><br>Bear Swamp, BHNWR<br>Fall, 2003",
"<b>Black-necked Stilt</b><br>Broadkill Impoundment<br>Fall, 2003",
"<b>Boat-tailed Grackle</b><br>Bear Swamp, BHNWR<br>Fall, 2003",
"<b>Cedar Waxwing</b><br>Maine",
"<b>Common Eider</b><br>Maine",
"<b>Dickcissel</b><br>Sussex Co., DE<br>Fall, 2003",
"<b>Great Blue Heron</b><br>Shearness Pond, BHNWR<br>2003",
"<b>Great Egret</b><br>White Clay Creek Park/Preserve",
"<b>Killdeer</b><br>Broadkill Impoundment<br>2003",
"<b>American Golden Plover</b><br>Route 9, S. of BHNWR<br>October 4, 2003",
"<b>Piping Plover</b><br>Maine<br>2003",
"<b>Semipalmated Sandpiper</b><br>Broadkill Impoundment<br>Fall, 2003",
"<b>Say's Phoebe</b><br>Bear Swamp, BHNWR<br>Fall, 2003",
"<b>Wilson's Snipe</b><br>Kent Co., DE<br>Fall, 2003",
"<b>Spotted Sandpiper</b><br>Bear Swamp, BHNWR<br>2003",
"<b>White Pelicans</b><br>Broadkill Impoundment<br>2003",
"<b>Lesser Yellowlegs/Short-billed Dowitcher</b><br>Broadkill Impoundment<br>2003",
"<b>Greater & Lesser Yellowlegs</b><br>Broadkill Impoundment/Bear Swamp, BHNWR<br>2003",
"<b>Lesser Yellowlegs</b><br>Shearness Pond, BHNWR<br>2003",
"<b>Northern Cardinal</b><br>Cape Henlopen SP<br>12/28/03",
"<b>Brown Pelican</b><br>Indian River Inlet, DE<br>12/20/03",
"<b>Ruddy Turnstone</b><br>Indian River Inlet, DE<br>12/20/03",
"<b>Double-crested Cormorant</b><br>Indian River Inlet, DE<br>12/20/03",
"<b>Brown Pelicans</b><br>Indian River Inlet, DE<br>12/20/03",
"<b>Dunlin</b><br>Port Mahon, DE<br>12/08/03",
"<b>Brown-headed Nuthatch</b><br>Cape Henlopen SP<br>12/03/03",
"<b>Ring-necked Duck</b><br>Dover, DE<br>11/04/03",
"<b>Hermit Thrush</b><br>Oyster Rocks<br>11/02/03",
"<b>Red-breasted Nuthatch</b><br>Cape Henlopen SP<br>12/03/03",
"<b>Red-breasted Nuthatch</b><br>Cape Henlopen SP<br>12/03/03",
"<b>Northern Pintails</b><br>Bombay Hook NWR<br>01/03/04",
"<b>Common Redpoll</b><br>Cape Henlopen SP<br>12/28/03",
"<b>Common Redpoll</b><br>Cape Henlopen SP<br>12/28/03",
"<b>Common Redpoll</b><br>Cape Henlopen SP<br>01/01/04",
"<b>Common Redpoll</b><br>Cape Henlopen SP<br>12/31/03",
"<b>Rough-legged Hawk</b><br>Pickering Beach Road<br>01/03/04",
"<b>Northern Pintail</b><br>Bombay Hook NWR<br>01/03/04",
"<b>Eastern Bluebird</b><br>Cape Henlopen SP<br>01/01/04",
"<b>Carolina Wren</b><br>Cape Henlopen SP<br>12/28/03",
"<b>Brown-headed Nuthatch</b><br>Cape Henlopen SP<br>12/03/03",
"<b>Snowy Owl</b><br><i>Nyctea scandiaca</i><br>Indian River Inlet, Delaware<br>March 11, 2004"
);
break;

case "melliott":
memName = "Michael Elliott"
var memText = new Array(
	"<b>Great Blue Heron</b>, North East Maryland Community Park. 9/11/03",
	"<b>Great Blue Heron</b>, with crab.  North East Maryland Community Park. 9/18/03",
	"<b>Great Egret</b>, Bombay Hook NWR. 4/24/04",
	"<b>Broad-tailed Hummingbird</b>, South Rim, Grand Canyon, 5/24/04",
	"<b>Northern Pintails</b>, Bombay Hook NWR. 2/24/04",
	"<b>Northern Cardinals</b>, fledgling & parent. White Clay Creek Preserve. 7/9/04",
	"<b>Double-crested Cormorant</b>, Bombay Hook NWR. 4/22/04"
);
break;

default:
memName="#";memText="#";
alert("Sorry, can't find the photos for the DOS member you chose.");break;
}
return memText
}

/////FEATURED GALLERY///////
iRows=99
iCols=3

function loadGallery(nm,idx,pixno){
	if(!idx) idx=1
	if(pixno==null) pixno=-1
	//Need to set each in turn for NN
	var galPhotos=setGalArrays("1")
	var galLatName=setGalArrays("2")
	var galName=setGalArrays("3")
	var galAuthor=setGalArrays("4")
	var galDate=setGalArrays("5")
	var galLocation=setGalArrays("6")
	var galComments=setGalArrays("7")
	var totPix=galPhotos.length
	if(browser==netscape) iRows=Math.ceil(totPix/iCols) //Fix Netscape by putting all on one page...
	pixPerPage=iRows*iCols

	prev=pixno-1
	next=pixno+1

	if(pixno>=0){
		totPage=totPix
		curPage=pixno
		doGalScrolling(curPage,totPage,totPix,nm,pixno)
	}
	else{
		totPage=1//=Math.floor(totPix/pixPerPage+0.999)
		curPage=1//Math.floor(idx/pixPerPage+0.999)
	}

	//NOTE: The next line does not work in NN
	document.write("<script language='javascript' src='photogallery.js' defer=TRUE></script>")
	document.write("<LINK href='../dos.css' rel=stylesheet type=text/css>")
	document.write("<table align='center' border=0>")
	if(pixno>=0){iRows=1;iCols=1}
	p_num=0
	for(i=0;i<iRows;i++) {
		document.write("<tr height='100'>");
		for(j=0;j<iCols;j++){
			p_num=j+(i*iCols)+(idx-1)
				if(pixno<0){
					document.write("<td><a href='#' onMouseDown='loadGallery(\""+nm+"\","+next+","+p_num+")'><img border=1 src='birdpix/tn_"+galPhotos[p_num]+"'></a></td>");
					document.write("<td align='left' width=\"80\" class='doslink2'><b>"+galName[p_num]+"</b><br><i>"+galAuthor[p_num]+"</i></td>");
				}
				else{
					document.write("<td><img border=3 src='birdpix/"+galPhotos[pixno]+"'></td>");
			}
			if(p_num+1>=totPix)break;
		}

		document.write("</tr>")
		if(p_num+1>=totPix)break;
	}
	document.write("</table>")
	if(pixno>=0){
		document.write("<table align='center' border=0  width='40%' class='dostext'>")
		document.write("<tr><td valign='top' align='right'><b>"+galName[pixno]+"</b></td><td width='5%'>&nbsp;</td><td width='50%' valign='top'><i>"+galLatName[pixno]+"</i></td></tr>")
		document.write("<tr><td valgn='top' align='right'>Photographer:</td><td width='5%'>&nbsp;</td><td valign='top'>"+galAuthor[pixno]+"</td></tr>")
		document.write("<tr><td valign='top' align=right>Date:</td><td width='5%'>&nbsp;</td><td valign='top'>"+galDate[pixno]+"</td></tr>")
		document.write("<tr><td valign='top' align=right>Location:</td><td width='5%'>&nbsp;</td><td valign='top'>"+galLocation[pixno]+"</td></tr>")
		document.write("<tr><td valign='top' align=right>Comments:</td><td width='5%'>&nbsp;</td><td valign='top'>"+galComments[pixno]+"</td></tr>")


		document.write("</table>")
	}
	//document.write("</body>")
	document.title="DOS Photogallery"
	document.close()

	return false
}


function doGalScrolling(cur_p,tot_p,tot_px,nm,pixno){

		//Workaround NN problem with dynamically loaded scripts
		if(navigator.appName=="Netscape") var brsOK=0
		else var brsOK=1

		var next=pixno+1
		//if(pixno>=0){
			if(brsOK)
				document.write("<table align=center border=0 width='60%' class='doslink'><tr><td width='20%'>Photo "+(pixno+1)+" of "+tot_px+"</td><td width='20%' align='center'>")
			if(pixno>0 && brsOK){
				document.write("<a  href='#' onMouseDown='loadGallery(\""+nm+"\","+prev+","+prev+")'>\<\< Previous</a>")
			}
			else document.write("&nbsp;")
			document.write("</td><td width='20%' align='center'><a href='main.htm'>Back&nbsp;to&nbsp;Photogallery</a>")
			document.write("</td><td width='20%' align='center'>")
			if(pixno<tot_px-1 && brsOK) document.write("<a  href='#' onMouseDown='loadGallery(\""+nm+"\","+next+","+next+")'>Next \>\></a>")
			else document.write("&nbsp;")
			document.write("</td><td width='20%'>&nbsp;</td></tr></table>")
		//}
}

function setGalArrays(index) {
 switch(index){
	 case "1":
		 ar_tmp = new Array("feat1.jpg","feat2.jpg","feat3.jpg","feat4.jpg","feat5.jpg",
		 					"feat6.jpg","feat7.jpg","feat8.jpg","feat9.jpg","feat10.jpg",
							"feat11.jpg","feat12.jpg","feat13.jpg","feat14.jpg","feat15.jpg")
		break;
 	case "2":
		ar_tmp = new Array(
		 "Sayornis saya",
		 "Catharacta maccormicki",
		 "Selasphorus rufus",
		 "Carduelis flammea",
		 "Branta bernicla bernicla",
		 "Nyctea scandiaca",
		 "Archilochus colubris",
		 "Somateria spectabilis",
		 "Eudocimus albus",
		 "Asio Otus",
		 "Podiceps grisegena",
		 "Pelecanus eryhrorhynchos",
		 "Phalaropus fulicaria",
		 "Chen rossii",
		 "Histrionicus histrionicus"
		)
		break;
   	case "3":
		ar_tmp = new Array(
		 "Say's Phoebe",
		 "South Polar Skua",
		 "Rufous Hummingbird",
		 "Common Redpoll",
		 "Dark-bellied Brant",
		 "Snowy Owl",
		 "Imm. Ruby-throated Hummingbird",
		 "King Eider",
		 "White Ibis",
		 "Long-eared Owl",
		 "Red-necked Grebe",
		 "American White Pelican",
		 "Red Phalarope",
		 "Ross\' Goose",
		 "Harlequin Duck"
		 )
		break;
  	case "4":
		ar_tmp = new Array(
		 "Larry Graff",
		 "Bob Rufe",
		 "Jeff Gordon",
		 "Larry Graff",
		 "Frank Rohrbacher",
		 "Derek Stoner",
		 "Larry Graff",
		 "Bill Schreitz",
		 "Adam Dudley",
		 "Eric Braun & Anthony Gonzon",
		 "Bob Rufe",
		 "Anthony Gonzon",
		 "Anthony Gonzon",
		 "Bill Schreitz",
		 "Anthony Gonzon"
		 )
		break;
   	case "5":
		ar_tmp = new Array(
		 "October, 2003",
		 "May 31, 2003",
		 "November 16, 2003",
		 "December 28, 2003",
		 "November 16, 2002",
		 "March 9, 2004",
		 "Fall, 2003",
		 "April 13, 2003",
		 "June 8, 2003",
		 "Winter, 2003",
		 "June 19, 2003",
		 "January, 2003",
		 "May 17, 2003",
		 "December, 2003",
		 "February 6, 2003"
		 )
 		break;
  	case "6":
		ar_tmp = new Array(
		"Bear Swamp, BHNWR",
		"Pelagic Trip, Coastal DE",
		"Wilmington, DE",
		"Cape Henlopen SP",
		"Indian River Inlet, Delaware",
		"Indian River Inlet, Delaware",
		"Felton, DE",
		"Fishing Pier, Cape Henlope SP",
		"Near Delaware City, DE",
		"Somewhere in Delaware",
		"Hoopes Reservoir, Northern DE",
		"Port Mahon Impoundment",
		 "Broadkill Beach",
		 "Bombay Hook NWR",
		 "Indian River Inlet, DE"
		)
 		break;
  	case "7":
		ar_tmp = new Array(
		"This bird, a state record, was seen for a period in the fall of 2003, at Bear Swamp, Bombay Hook NWR.",
		"Many local tour companies offer pelagic trips throughout the year!",
		"This hummingbird was spotted by Jeff at his backyard feeder in the city. ",
		"These often scarse winter visitors were a welcome splash of color in the cold weather.",
		"Taken with a standard SLR, the bird was seen for several days in the area. This bird is a European subspecies of the native Brant.",
		"Always a nice surprise when birding Delaware in winter, this immature Snowy " +
                  "Owl was found perched atop the roof of the beach bathhouse located on the" +
                  "south side of the inlet.",
		"Taken in Larry's backyard, this common bird is a welcome visitor to gardens across the eastern US.",
		"This immature male has been seen at this location for several weeks.  This photo was taken at about 50 yards through a "+
			"KOWA TSN 821 scope with an Olympus D-460Z digital camera.",
		"This adult White Ibis observed in a field just north of Delaware City, feeding with a large flock of Cattle Egrets and Glossy Ibis." +
			"The photo was taken with a digital camera through binoculars.",
		"These birds are often quite ellusive and hard to find, usually silent and quite nocturnal.  This owl was found on a recent night owling trip.",
		"A delightful summer surprise at Hoopes, which is a local hotspot for water birds.",
		"This pelican was first seen about the time of the 2002 Christmas Count.  Could these birds become increasingly common?",
		 "2003 saw a relatively high number of these generally scarce birds.",
		 "Among the literally hundreds of thousands of Snow Geese that invade the state each winter, the patient birder can often uncover this much rarer cousin.",
		 "Always a welcome sight, the Harlequin Duck adds color to a generally leaden scene."
		)
		break;
	default:
		ar_tmp = new Array()
		break;
}
return ar_tmp
}

