window.onload = initAll;var currImg = 0;var captionText = new Array(	"This bird with it's extremely long bill occupies our prairie lands in Eastern Montana primarily. Places such, as Benton Lake National Wildlife Refuge north of Great Falls is an excellent place to view these birds in spring and summer.",	"This long-legged wading bird can be found in most of the wetland areas west of the continental divide. It uses its up-curved bill to skim the water surface for insects.",	"This beautiful little bunting is more often heard than seen, but its presence is rather common in the valleys of western Montana. Look for this bird singing from the tops of small shrubs and bushes.  The female, pale yellowish-green in color, lacks the beautiful blues and oranges of the male.",	"This bird is probably Montana's most common and wide-spread woodpecker. Like all woodpeckers, they are cavity nesters, but they will reuse cavities year after year.",	"This sparrow primarily occupies the open prairie of the northeastern part of the state. It is sought after by many birders for their ''Life List'' and can be found most easily around the short grass prairies near Malta and Glasgow.",	"These owls, unlike most Montana owls, can be viewed during daylight hours. They occupy old burrows made by prairie dogs, ground squirrels and badgers. C.M. Russell National Wildlife Refuge is a good area to look for these little owls.",	"This duck spends most of its life in salt water but comes inland to breed. Glacier National Park's McDonald Creek is a favorite place to view this duck in the months of May and June.",	"Find this species primarily in the most western and northwestern parts of the state. If this bird is high on your list, your best bet is to contact local Audubon chapters and see who has feeders set up and would be willing to have you visit and view their feeders.",	"Montana's largest grouse is best viewed on the open prairie where sage brush is in great supply. C.M. Russell National Wildlife Refuge is a great place to look for this bird.",	"These birds have a very limited range in Montana. They are best found in Glacier National Park's high country, particularly Logan Pass. Look along the boardwalk from the Visitors Center to the Hidden Lake overlook.")var currImg = 0;var captionNumber = new Array(	"1 of 10",	"2 of 10",	"3 of 10",	"4 of 10",	"5 of 10",	"6 of 10",	"7 of 10",	"8 of 10",	"9 of 10",	"10 of 10")var currImg = 0;var captionTitle = new Array(	"LONG-BILLED CURLEW",	"AMERICAN AVOCET",	"LAZULI BUNTING",	"NORTHERN FLICKER",	"BAIRD'S SPARROW",	"BURROWING OWLS",	"HARLEQUIN DUCK",	"BLACK-CHINNED HUMMINGBIRD",	"GREATER SAGE GROUSE",	"WHITETAIL PTARMIGAN")function initAll() {	document.getElementById("imgText").innerHTML = captionText[0];	document.getElementById("imgNumber").innerHTML = captionNumber[0];	document.getElementById("imgTitle").innerHTML = captionTitle[0];	document.getElementById("prevLink").onclick = processPrevious;	document.getElementById("nextLink").onclick = processNext;}function processPrevious() {	newSlide(-1);}function processNext() {	newSlide(1);}function newSlide(direction) {	var imgCt = captionText.length;	var imgCt = captionNumber.length;	var imgCt = captionTitle.length;	currImg = currImg + direction;	if (currImg < 0) {		currImg = imgCt-1;	}	if (currImg == imgCt) {		currImg = 0;	}	document.getElementById("slideshow").src = "images/slideImg" + currImg + ".jpg";	document.getElementById("imgText").innerHTML = captionText[currImg];	document.getElementById("imgNumber").innerHTML = captionNumber[currImg];	document.getElementById("imgTitle").innerHTML = captionTitle[currImg];}						