var profiles = new Array(
	"African Blue Tit||http://www.birdimages.net/birds/tits/africanblue.html",
        "American Flamingo||http://www.birdimages.net/birds/flamingoes/american.html",
        "Andean Flamingo||http://www.birdimages.net/birds/flamingoes/andean.html",
        "Andean Goose||http://www.birdimages.net/birds/geese/andean.html",
        "Arctic Tern||http://www.birdimages.net/birds/gulls/arctictern.html",
        "Australian Wood Duck||http://www.birdimages.net/birds/ducks/auswoodduck.html",
        "Avocet||http://www.birdimages.net/birds/avocets/avocet.html",
        "Bar-Headed Goose||http://www.birdimages.net/birds/geese/barheaded.html",
        "Barnacle Goose||http://www.birdimages.net/birds/geese/barnacle.html",
        "Barrow's Goldeneye||http://www.birdimages.net/birds/ducks/barrowsgoldeneye.html",
        "Bewick's Swan||http://www.birdimages.net/birds/swans/bewick.html",
        "Blackbird||http://www.birdimages.net/birds/thrushes/blackbird.html",
        "Pacific Brent Goose||http://www.birdimages.net/birds/geese/brant.html",
        "Black Redstart||http://www.birdimages.net/birds/flycatchers/blackredstart.html",
        "Black Swan||http://www.birdimages.net/birds/swans/black.html",
        "Black-headed Duck||http://www.birdimages.net/birds/ducks/blackheadedduck.html",
        "Black-headed Gull||http://www.birdimages.net/birds/gulls/blackheaded.html",
        "Black-necked Grebe||http://www.birdimages.net/birds/grebes/bngrebe.html",
        "Black-necked Swan||http://www.birdimages.net/birds/swans/blacknecked.html",
        "Black-winged Stilt||http://www.birdimages.net/birds/avocets/bwstilt.html",
        "Blue Tit||http://www.birdimages.net/birds/tits/blue.html",
        "Blue-Winged Goose||http://www.birdimages.net/birds/geese/bluewinged.html",
        "Brazilian Teal||http://www.birdimages.net/birds/ducks/brazilian.html",
        "Cape Teal||http://www.birdimages.net/birds/ducks/capeteal.html",
        "Carrion Crow||http://www.birdimages.net/birds/crows/carrion.html",
        "Canada Goose||http://www.birdimages.net/birds/geese/canada.html",
        "Cape Barren Goose||http://www.birdimages.net/birds/geese/capebarren.html",
        "Cattle Egret||http://www.birdimages.net/birds/herons/cattle.html",
        "Chaffinch||http://www.birdimages.net/birds/finches/chaffinch.html",
        "Wandering Whistling Duck||http://www.birdimages.net/birds/ducks/wanderingwhistlingduck.html",
        "Chilean Flamingo||http://www.birdimages.net/birds/flamingoes/chilean.html",
        "Chiloe Wigeon||http://www.birdimages.net/birds/ducks/chiloe.html",
        "Collared Dove||http://www.birdimages.net/birds/pigeons/collareddove.html",
	"Coal Tit||http://www.birdimages.net/birds/tits/coal.html",
        "Common Crane||http://www.birdimages.net/birds/cranes/commoncrane.html",
        "Common Cuckoo||http://www.birdimages.net/birds/cuckoos/cuckoo.html",
        "Common Eider||http://www.birdimages.net/birds/ducks/eider.html",
        "Common Guillemot||http://www.birdimages.net/birds/auks/guillemot.html",
        "Common Tern||http://www.birdimages.net/birds/gulls/commontern.html",
        "Common Whitethroat||http://www.birdimages.net/birds/warblers/whitethroat.html",
        "Coot||http://www.birdimages.net/birds/rails/coot.html",
        "Cormorant||http://www.birdimages.net/birds/cormorants/cormorant.html",
        "Cory's Shearwater||http://www.birdimages.net/birds/shearwaters/corys.html",
        "Coscoroba Swan||http://www.birdimages.net/birds/swans/coscoroba.html",
        "Crested Duck||http://www.birdimages.net/birds/ducks/patagonian.html",
        "Dunlin||http://www.birdimages.net/birds/sandpipers/dunlin.html",
        "Dunnock||http://www.birdimages.net/birds/accentors/dunnock.html",
        "Emperor Goose||http://www.birdimages.net/birds/geese/emperor.html",
	"Ferruginous Duck||http://www.birdimages.net/birds/ducks/ferruginousduck.html",
        "Fieldfare||http://www.birdimages.net/birds/thrushes/fieldfare.html",
        "Fulmar||http://www.birdimages.net/birds/shearwaters/fulmar.html",
        "Gadwall||http://www.birdimages.net/birds/ducks/gadwall.html",
        "Garganey||http://www.birdimages.net/birds/ducks/garganey.html",
        "Goldeneye||http://www.birdimages.net/birds/ducks/goldeneye.html",
        "Goldcrest||http://www.birdimages.net/birds/warblers/goldcrest.html",
        "Goldfinch||http://www.birdimages.net/birds/finches/goldfinch.html",
        "Goosander||http://www.birdimages.net/birds/ducks/goosander.html",
        "Great Crested Grebe||http://www.birdimages.net/birds/grebes/gcgrebe.html",
        "Great Tit||http://www.birdimages.net/birds/tits/great.html",
        "Great Northern Diver||http://www.birdimages.net/birds/divers/gtnorthern.html",
        "Greater White-cheeked Pintail||http://www.birdimages.net/birds/ducks/gwcpintail.html",
        "Greater Flamingo||http://www.birdimages.net/birds/flamingoes/greater.html",
        "Greenfinch||http://www.birdimages.net/birds/finches/greenfinch.html",
        "Greenshank||http://www.birdimages.net/birds/sandpipers/greenshank.html",
        "Grey Heron||http://www.birdimages.net/birds/herons/grey.html",
        "Grey Lag Goose||http://www.birdimages.net/birds/geese/greylag.html",
        "Grey Partridge||http://www.birdimages.net/birds/pheasants/greypartridge.html",
        "Grey Phalarope||http://www.birdimages.net/birds/sandpipers/greyphalarope.html",
        "Grey Wagtail||http://www.birdimages.net/birds/pipits/greywag.html",
        "Hardhead||http://www.birdimages.net/birds/ducks/hardhead.html",
        "Hawaiian Goose||http://www.birdimages.net/birds/geese/hawaiian.html",
        "Herring Gull||http://www.birdimages.net/birds/gulls/herring.html",
        "Hooded Merganser||http://www.birdimages.net/birds/ducks/hoodedmerganser.html",
        "Hottentot Teal||http://www.birdimages.net/birds/ducks/hottentot.html",
        "House Sparrow||http://www.birdimages.net/birds/sparrows/house.html",
        "Jackdaw||http://www.birdimages.net/birds/crows/jackdaw.html",
        "Kestrel||http://www.birdimages.net/birds/falcons/kestrel.html",
        "Kingfisher||http://www.birdimages.net/birds/kingfishers/kingfisher.html",
        "Kittiwake||http://www.birdimages.net/birds/gulls/kittiwake.html",
        "Knot||http://www.birdimages.net/birds/sandpipers/knot.html",
        "Lapwing||http://www.birdimages.net/birds/plovers/lapwing.html",
        "Lesser Black-backed Gull||http://www.birdimages.net/birds/gulls/lesserbb.html",
        "Lesser Grey Shrike||http://www.birdimages.net/birds/shrikes/lessergrey.html",
        "Lesser White-fronted Goose||http://www.birdimages.net/birds/geese/lesserwhitefronted.html",
        "Little Egret||http://www.birdimages.net/birds/herons/little.html",
        "Little Grebe||http://www.birdimages.net/birds/grebes/littlegrebe.html",
        "Little Stint||http://www.birdimages.net/birds/sandpipers/littlestint.html",
        "Long-Tailed Tit||http://www.birdimages.net/birds/lt-tits/lt-tit.html",
        "Maderian Chaffinch||http://www.birdimages.net/birds/finches/madchaff.html",
        "Mallard||http://www.birdimages.net/birds/ducks/mallard.html",
        "Magpie||http://www.birdimages.net/birds/crows/magpie.html",
        "Magpie Goose||http://www.birdimages.net/birds/geese/magpie.html",
        "Mandarin Duck||http://www.birdimages.net/birds/ducks/mandarin.html",
        "Marbled Duck||http://www.birdimages.net/birds/ducks/marbled.html",
        "Marsh Harrier||http://www.birdimages.net/birds/raptors/marshharrier.html",
        "Meadow Pipit||http://www.birdimages.net/birds/pipits/meadowpipit.html",
        "Moorhen||http://www.birdimages.net/birds/rails/moorhen.html",
        "Muscovy Duck||http://www.birdimages.net/birds/ducks/muscovy.html",
        "Mute Swan||http://www.birdimages.net/birds/swans/mute.html",
        "New Zealand Shoveler||http://www.birdimages.net/birds/ducks/nzshoveller.html",
        "Northern Gannet||http://www.birdimages.net/birds/gannets/northern.html",
        "Northern Wheatear||http://www.birdimages.net/birds/flycatchers/wheatear.html",
        "Oystercatcher||http://www.birdimages.net/birds/oystercatchers/oystercatcher.html",
        "Pacific Black Duck||http://www.birdimages.net/birds/ducks/pacificblack.html",
        "Paradise Shelduck||http://www.birdimages.net/birds/ducks/paradiseshelduck.html",
        "Pheasant||http://www.birdimages.net/birds/pheasants/pheasant.html",
        "Philippine Duck||http://www.birdimages.net/birds/ducks/philippine.html",
        "Pied Wagtail||http://www.birdimages.net/birds/pipits/piedwag.html",
        "Pintail||http://www.birdimages.net/birds/ducks/pintail.html",
        "Plumed Whistling Duck||http://www.birdimages.net/birds/ducks/plumedwhistlingduck.html",
        "Pochard||http://www.birdimages.net/birds/ducks/pochard.html",
        "Puffin||http://www.birdimages.net/birds/auks/puffin.html",
	"Puna Teal||http://www.birdimages.net/birds/ducks/punateal.html",
        "Radjah Shelduck||http://www.birdimages.net/birds/ducks/radjahshelduck.html",
        "Razorbill||http://www.birdimages.net/birds/auks/razorbill.html",
        "Redhead||http://www.birdimages.net/birds/ducks/redhead.html",
        "Red Kite||http://www.birdimages.net/birds/raptors/redkite.html",
        "Red Shoveler||http://www.birdimages.net/birds/ducks/redshoveller.html",
	"Redwing||http://www.birdimages.net/birds/thrushes/redwing.html",
        "Red-Billed Teal||http://www.birdimages.net/birds/ducks/redbilledteal.html",
        "Red-breasted Goose||http://www.birdimages.net/birds/geese/redbreasted.html",
        "Red-Crested Pochard||http://www.birdimages.net/birds/ducks/redcrestedpochard.html",
	"Red-legged Partridge||http://www.birdimages.net/birds/pheasants/redleggedpartridge.html",
        "Reed Bunting||http://www.birdimages.net/birds/buntings/reedbunting.html",
        "Redshank||http://www.birdimages.net/birds/sandpipers/redshank.html",
        "Ringed Plover||http://www.birdimages.net/birds/plovers/ringedplover.html",
        "Ringed Teal||http://www.birdimages.net/birds/ducks/ringedteal.html",
        "Robin||http://www.birdimages.net/birds/flycatchers/robin.html",
        "Rock Pipit||http://www.birdimages.net/birds/pipits/rockpipit.html",
        "Rook||http://www.birdimages.net/birds/crows/rook.html",
        "Ruddy Duck||http://www.birdimages.net/birds/ducks/ruddyduck.html",
        "Sanderling||http://www.birdimages.net/birds/sandpipers/sanderling.html",
        "Sandwich Tern||http://www.birdimages.net/birds/gulls/sandwichtern.html",
        "Sedge Warbler||http://www.birdimages.net/birds/warblers/sedge.html",
        "Shag||http://www.birdimages.net/birds/cormorants/shag.html",
        "Shoveler||http://www.birdimages.net/birds/ducks/shoveller.html",
        "Song Thrush||http://www.birdimages.net/birds/thrushes/songthrush.html",
        "Shelduck||http://www.birdimages.net/birds/ducks/shelduck.html",
        "Smew||http://www.birdimages.net/birds/ducks/smew.html",
        "Snow Goose||http://www.birdimages.net/birds/geese/snow.html",
        "Cape Shelduck||http://www.birdimages.net/birds/ducks/capeshelduck.html",
        "South Georgia Pintail||http://www.birdimages.net/birds/ducks/sgeorgiapintail.html",
        "Spot-billed Duck||http://www.birdimages.net/birds/ducks/spotbilled.html",
        "Spur-winged Goose||http://www.birdimages.net/birds/geese/spurwinged.html",
        "Starling||http://www.birdimages.net/birds/starlings/starling.html",
        "Stonechat||http://www.birdimages.net/birds/flycatchers/stonechat.html",
        "Swan Goose||http://www.birdimages.net/birds/geese/swan.html",
        "Tree Sparrow||http://www.birdimages.net/birds/sparrows/tree.html",
        "Trumpeter Swan||http://www.birdimages.net/birds/swans/trumpeter.html",
        "Tufted Duck||http://www.birdimages.net/birds/ducks/tufted.html",
        "Turnstone||http://www.birdimages.net/birds/sandpipers/turnstone.html",
        "Water Rail||http://www.birdimages.net/birds/rails/waterrail.html",
        "Waxwing||http://www.birdimages.net/birds/waxwings/waxwing.html",
        "West Indian Whistling Duck||http://www.birdimages.net/birds/ducks/westindianwhistlingduck.html",
        "White-faced Whistling Duck||http://www.birdimages.net/birds/ducks/whitefacedwhistlingduck.html",
        "Black-bellied Whistling Duck||http://www.birdimages.net/birds/ducks/blackbelliedwhistlingduck.html",
        "White-Fronted Goose||http://www.birdimages.net/birds/geese/whitefronted.html",
        "White-Headed Duck||http://www.birdimages.net/birds/ducks/whiteheadedduck.html",
        "Whooper Swan||http://www.birdimages.net/birds/swans/whooper.html",
        "Wood Duck||http://www.birdimages.net/birds/ducks/woodduck.html",
        "Wood Pigeon||http://www.birdimages.net/birds/pigeons/woodpigeon.html",
        "Yellowhammer||http://www.birdimages.net/birds/buntings/yellowhammer.html",
        "Yellow Wagtail||http://www.birdimages.net/birds/pipits/yellowwag.html",
        "Yellow-legged Gull||http://www.birdimages.net/birds/gulls/yellowlegged.html",
        "Canary||http://www.birdimages.net/birds/finches/canary.html",
        "Blue Chaffinch||http://www.birdimages.net/birds/finches/bluechaff.html",
        "Berthelot's Pipit||http://www.birdimages.net/birds/pipits/berthelotspipit.html",
        "Southern Grey Shrike||http://www.birdimages.net/birds/shrikes/southgrey.html",
        "Spanish Sparrow||http://www.birdimages.net/birds/sparrows/spanish.html",
        "Raven||http://www.birdimages.net/birds/crows/raven.html",
        "Turtle Dove||http://www.birdimages.net/birds/pigeons/turtledove.html",
        "Barn Swallow||http://www.birdimages.net/birds/hirundines/swallow.html",
        "Monk Parakeet||http://www.birdimages.net/birds/parakeets/monkparakeet.html",        
        "Banded Demoiselle||http://www.birdimages.net/odonata/demoiselles/banded.html",
        "Copper Demoiselle||http://www.birdimages.net/odonata/demoiselles/copper.html",        
        "Large Red Damselfly||http://www.birdimages.net/odonata/damselflies/largered.html",
        "Blue-tailed Damselfly||http://www.birdimages.net/odonata/damselflies/bluetailed.html",
        "Azure Damselfly||http://www.birdimages.net/odonata/damselflies/azure.html",
        "Common Blue Damselfly||http://www.birdimages.net/odonata/damselflies/commonblue.html",
        "Red-eyed Damselfly||http://www.birdimages.net/odonata/damselflies/redeyed.html",        
        "Brown Hawker||http://www.birdimages.net/odonata/hawkers/brown.html",
        "Migrant Hawker||http://www.birdimages.net/odonata/hawkers/migrant.html",
        "Southern Hawker||http://www.birdimages.net/odonata/hawkers/southern.html",
        "Hairy Hawker||http://www.birdimages.net/odonata/hawkers/hairy.html",
        "Pronged Clubtail||http://www.birdimages.net/odonata/clubtails/pronged.html",
        "Four-spotted Chaser||http://www.birdimages.net/odonata/chasers/fourspot.html",        
        "Broad-bodied Chaser||http://www.birdimages.net/odonata/chasers/broad.html",
        "Ruddy Darter||http://www.birdimages.net/odonata/chasers/ruddy.html",
        "Common Darter||http://www.birdimages.net/odonata/chasers/common.html",
        "Island Darter||http://www.birdimages.net/odonata/chasers/island.html",
        "Black-tailed Skimmer||http://www.birdimages.net/odonata/chasers/blacktail.html",
        "Epaulet Skimmer||http://www.birdimages.net/odonata/chasers/epaulet.html",
	"Wren||http://www.birdimages.net/birds/wrens/wren.html",
	"Egyptian Goose||http://www.birdimages.net/birds/geese/egyptian.html",
	"Chiffchaff||http://www.birdimages.net/birds/warblers/chiffchaff.html",
	"Reed Warbler||http://www.birdimages.net/birds/warblers/reed.html",
	"Purple Emperor||http://www.birdimages.net/lepidoptera/browns/purpleemperor.html",
	"Silver-washed Fritillary||http://www.birdimages.net/lepidoptera/browns/silverwashed.html",
	"Emperor Dragonfly||http://www.birdimages.net/odonata/emperors/emperor.html",
	"White-legged Damselfly||http://www.birdimages.net/odonata/featherlegs/white.html",
	"Orange White-legged Damselfly||http://www.birdimages.net/odonata/featherlegs/orange.html",
	"White-tailed Skimmer||http://www.birdimages.net/odonata/skimmers/whitetail.html",
	"Western Clubtail||http://www.birdimages.net/odonata/clubtails/western.html",
	"Goblet-marked Damselfly||http://www.birdimages.net/odonata/damselflies/goblet.html",
	"Southern Emerald Damselfly||http://www.birdimages.net/odonata/spreadwings/southern.html",
	"Small Emerald Damselfly||http://www.birdimages.net/odonata/spreadwings/small.html",
	"Small Red Damselfly||http://www.birdimages.net/odonata/damselflies/smallred.html",
	"Large White-faced Darter||http://www.birdimages.net/odonata/whitefaces/largewhiteface.html",
	"Broad Scarlet||http://www.birdimages.net/odonata/scarlets/broadscarlet.html",
	"Purple Heron||http://www.birdimages.net/birds/herons/purple.html",
	"Weaver\'s Fritillary||http://www.birdimages.net/lepidoptera/browns/weavers.html",
	"Dark Green Fritillary||http://www.birdimages.net/lepidoptera/browns/darkgreen.html",
	"Lesser Purple Emperor||http://www.birdimages.net/lepidoptera/browns/lesserpemperor.html",
	"Large Chequered Skipper||http://www.birdimages.net/lepidoptera/skippers/largechequered.html",
	"Purple Hairstreak||http://www.birdimages.net/lepidoptera/blues/purple.html",
	"Ilex Hairstreak||http://www.birdimages.net/lepidoptera/blues/ilex.html",
	"Marbled Fritillary||http://www.birdimages.net/lepidoptera/browns/marbledfrit.html",
	"Heath Fritillary||http://www.birdimages.net/lepidoptera/browns/heathfrit.html",
	"White Admiral||http://www.birdimages.net/lepidoptera/browns/whiteadmiral.html",
	"Pearly Heath||http://www.birdimages.net/lepidoptera/browns/pearlyheath.html",
	"Black-veined White||http://www.birdimages.net/lepidoptera/whites/blackveined.html",
	"Brown Hairstreak||http://www.birdimages.net/lepidoptera/browns/ilex.html",
	"Swallowtail||http://www.birdimages.net/lepidoptera/swallowtails/swallowtail.html",
	"Two-tailed Pasha||http://www.birdimages.net/lepidoptera/browns/ttpasha.html",
	"Geranium Bronze||http://www.birdimages.net/lepidoptera/blues/gbronze.html",
	"Red-veined Darter||http://www.birdimages.net/odonata/chasers/redveined.html",
	"Banded Groundling||http://www.birdimages.net/odonata/groundlings/banded.html",
	"Griffon Vulture||http://www.birdimages.net/birds/raptors/griffonvulture.html",
	"Slavonian Grebe||http://www.birdimages.net/birds/grebes/slavoniangrebe.html",
	"Duke of Burgundy||http://www.birdimages.net/lepidoptera/blues/dukeofburgundy.html",
	"Pearl-bordered Fritillary||http://www.birdimages.net/lepidoptera/browns/pearl.html",
	"Small Pearl-bordered Fritillary||http://www.birdimages.net/lepidoptera/browns/smallpearl.html",
	"Common Goldenring||http://www.birdimages.net/odonata/goldenrings/goldenring.html",
	"Large Blue||http://www.birdimages.net/lepidoptera/blues/large.html",
	"Silver-studded Blue||http://www.birdimages.net/lepidoptera/blues/silverstudded.html",
	"Lulworth Skipper||http://www.birdimages.net/lepidoptera/skippers/lulworth.html",
	"Grayling||http://www.birdimages.net/lepidoptera/browns/grayling.html",
	"Snow Bunting||http://www.birdimages.net/birds/buntings/snowbunting.html"
        );


// Define global variables
var SEARCHANY     = 1;
var SEARCHALL     = 2;
var SEARCHURL     = 4;
var searchType  = '';
var showMatches   = 167;
var currentMatch  = 0;
var copyArray   = new Array();
var docObj      = document;

// Determine the type of search, and make
// sure the user has entered something

function validate(entry) {
  if (entry.charAt(0) == "+") {
    entry = entry.substring(1,entry.length);
    searchType = SEARCHALL;
    }
  else if (entry.substring(0,4) == "url:") {
    entry = entry.substring(5,entry.length);
    searchType = SEARCHURL;
    }
  else { searchType = SEARCHANY; }
  
  while (entry.charAt(0) == ' ') {
    entry = entry.substring(1,entry.length);
    document.forms[0].query.value = entry;
    }
  while (entry.charAt(entry.length - 1) == ' ') {
    entry = entry.substring(0,entry.length - 1);
    document.forms[0].query.value = entry;
    }
  if (entry.length < 3) {
    alert("Please enter at least 3 characters.");
    document.forms[0].query.focus();
    return;
    }
  convertString(entry);
  }

// Put the search terms in an array and
// and call appropriate search algorithm

function convertString(reentry) {
  var searchArray = reentry.split(" ");
  if (searchType == (SEARCHANY | SEARCHALL)) { requireAll(searchArray); }
  else { allowAny(searchArray); }
  }

// Define a function to perform a search that requires
// a match of any of the terms the user provided
function allowAny(t) {
  var findings = new Array(0);
  for (i = 0; i < profiles.length; i++) {
    var compareElement  = profiles[i].toUpperCase();
    if(searchType == SEARCHANY) { var refineElement  = compareElement.substring(0,compareElement.indexOf('|HTTP')); }
    else { var refineElement = compareElement.substring(compareElement.indexOf('|HTTP'), compareElement.length); }
    for (j = 0; j < t.length; j++) {
      var compareString = t[j].toUpperCase();
      if (refineElement.indexOf(compareString) != -1) {
        findings[findings.length] = profiles[i];
        break;
        }
      }
    }
  verifyManage(findings);
  }

// Define a function to perform a search that requires
// a match of all terms the user provided
function requireAll(t) {
  var findings = new Array();
  for (i = 0; i < profiles.length; i++) {
    var allConfirmation = true;
    var allString       = profiles[i].toUpperCase();
    var refineAllString = allString.substring(0,allString.indexOf('|HTTP'));
    for (j = 0; j < t.length; j++) {
      var allElement = t[j].toUpperCase();
      if (refineAllString.indexOf(allElement) == -1) {
        allConfirmation = false;
        continue;
        }
      }
    if (allConfirmation) {
      findings[findings.length] = profiles[i];
      }
    }
  verifyManage(findings);
  }

// Determine whether the search was successful
// If so print the results; if not, indicate that, too
function verifyManage(resultSet) {
  if (resultSet.length == 0) { noMatch(); }
  else {
    copyArray = resultSet.sort();
    formatResults(copyArray, currentMatch, showMatches, document.forms[0].query.value);
    }
  }

// Define a function that indicates that the returned no results
function noMatch() {
  alert('Searching for ' + document.forms[0].query.value + ' produced no results');
  document.forms[0].query.focus();
  }

// Define a function to print the results of a successful search
function formatResults(results, reference, offset, query) {
  var currentRecord = (results.length < reference + offset ? results.length : reference + offset);  
  var who = "info";
  var where = "birdimages.net"; 
  docObj.open();
  
  docObj.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>' +
                 '<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' +
                 '<base href="http://www.birdimages.net/" />' +                 
                 '<title>David Hastings\' Bird Photos - search results</title>' +
                 '<LINK rel="shortcut icon" href="favicon.ico" />' +
                 '<link rel="stylesheet" href="bp-style.css" type="text/css">' +
                 '<META http-equiv="Content-Script-Type" content="text/javascript">' +
                 '<script type="text/javascript" src="bp-links.js"></script></head<body>' +
                 '<div id="container"><div id="header"><div id=header2>' +
                 '<a class=qq href=\"mailto:' + who + '@' + where + '\">Contact</a></div></div>' +
                 '<div id="navbar">' +
                 '<br><a class=mm href="birds/index.html" target="_top">Birds</a>' +
                 '<br><a class=mm href="butterflies/index.html" target="_top">Butterflies</a>' +
                 '<br><a class=mm href="odonata/index.html" target="_top">Dragonflies &amp; Damselflies</a>' +
                 '<br><a class=mm href="nhdiary/index.html" target="_top">Natural History Diary</a>' +
                 '<br>&nbsp;<br><a class=mm href="index.html" target="_top">BirdImages Home</a>' +
                 '<h3>&copy; David Hastings 2011. This web page is licenced for personal, private, non- commercial use only. No automated processing by advertising systems is permitted. </h3>' +

                 '</div>' +
                 '<div id="content">' +  
                 '<TABLE WIDTH=100% BORDER=0 ALIGN=CENTER CELLPADDING=3>' +
                 '<TR><TD VALIGN=TOP><h2>' +
                 'Search Query   :<i> ' + query + '</i><BR>\n' +
                 'Search Results: ' + results.length + '</h2><DL>');
    
                if (searchType == SEARCHURL) {
                        for (var i = reference; i < currentRecord; i++) {
                                var divide = results[i].split("|");
                                docObj.writeln('<DT>' + '<img src="condense.gif"> <A HREF="' + divide[2] + '" class=rr>' + divide[2] + '</A>' +
                                                '<DD>' + '<I>' + divide[1] + '</I><P>');
                        }
                }
                else {
                        for (var i = reference; i < currentRecord; i++) {
                                var divide = results[i].split('|');
                                docObj.writeln('<DT>' + '<img src="condense.gif"> <A HREF="' + divide[2] + '" class=rr>' + divide[0] + '</A>' +
                                                '<DD>' + '<I>' + divide[1] + '</I><P>');
                        }
                }
                docObj.writeln('</DL>');
                docObj.writeln('</TD></TR></TABLE></DIV></DIV></BODY></HTML>');
                docObj.close;
  } 


function TopLinksBar()
{
document.write('<br><a class=mm href="birds/index.html" target="_top">Birds</a>');
document.write('<br><a class=mm href="lepidoptera/index.html" target="_top">Butterflies &amp; Moths</a>');
document.write('<br><a class=mm href="odonata/index.html" target="_top">Dragonflies &amp; Damselflies</a>');
document.write('<br><a class=mm href="nhdiary/index.html" target="_top">Natural History Diary</a>');
document.write('<br>&nbsp;<br><a class=mm href="../index.html" target="_top">BirdImages Home</a>');
document.write('<h3>&copy; David Hastings 2012</h3>'); 
document.write('<br>This web page is licenced for personal, private, non- commercial use only. Automated processing by advertising systems is not permitted.');
}

function OldMailAddr()
{
        who = "info";
        where = "birdimages.net";           
        
        document.write('<a class=qq href=\"mailto:' + who + '@' + where + '\">');
        document.write(' Contact</a>');
}

function MailAddr()
{
        who = "info";
        where = "birdimages.net";           
        
        document.write('<form name="search" onsubmit="validate(document.forms[0].query.value); return false;">');
        document.write('<input type="text" name="query" value="Search" size="25">');

        document.write('<a class=qq href=\"mailto:' + who + '@' + where + '\">');
        document.write(' Contact</a></form>');
}

function PageCreatorMod(selection,w,h,wn)
{
var w1 = w * 1.1;
var h1 = h * 1.15;
settings="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+w1+",height="+h1;

infowin=window.open("",wn,settings);

infowin.document.write("<HTML><HEAD><TITLE>www.birdimages.net</TITLE></HEAD><BODY BGCOLOR='#C5E2F5'>");
infowin.document.write("<CENTER><IMG SRC=images/" + selection + "-l.jpg><P>");
infowin.document.write("<A HREF='javascript:window.close()'><img src='../header.close.win.gif' border=0></A></FONT><P></CENTER></BODY></HTML>");
}                     

function NHLinksBar()
{
document.write('<br><a class=mm href="nhdiary2005.html">Natural History Diary 2005</a>');
document.write('<br><a class=mm href="nhdiary2006.html">Natural History Diary 2006</a>'); 
document.write('<br><a class=mm href="nhdiary2007.html">Natural History Diary 2007</a>');
document.write('<br><a class=mm href="nhdiary2008.html">Natural History Diary 2008</a>');
document.write('<br><a class=mm href="nhdiary2009.html">Natural History Diary 2009</a>');
document.write('<br><a class=mm href="nhdiary2010.html">Natural History Diary 2010</a>');
document.write('<br><a class=mm href="nhdiary2011.html">Natural History Diary 2011</a>');
document.write('<br><a class=mm href="nhdiary2012.html">Natural History Diary 2012</a>');

document.write('<br>&nbsp;<br><a class=mm href="../birds/index.html" target="_top">Birds</a>');
document.write('<br><a class=mm href="../lepidoptera/index.html" target="_top">Butterflies &amp; Moths</a>');
document.write('<br><a class=mm href="../odonata/index.html" target="_top">Dragonflys &amp; Damselflies</a>');

document.write('<br>&nbsp;<br><a class=mm href="http://www.bbowt.org.uk/" target="_new">BBOWT</a>');
document.write('<br><a class=mm href="http://www.birdsofbritain.co.uk/index.htm" target="_new">Birds of Britain</a>');
document.write('<br><a class=mm href="http://madeira.seawatching.net/index.html" target="_new">Birding Madeira</a>');
document.write('<br><a class=mm href="http://www.britishbutterflies.co.uk/" target="_new">British Butterflies</a>');
document.write('<br><a class=mm href="http://www.british-dragonflies.org.uk/" target="_new">British Dragonfly Society</a>');
document.write('<br><a class=mm href="http://www.butterfly-conservation.org/" target="_new">Butterfly Conservation</a>');
document.write('<br><a class=mm href="http://www.bumblebee.org/" target="_new">Bumblebees</a>');
document.write('<br><a class=mm href="http://fly.to/dragonflies" target="_new">European Dragonflies and Damselflies</a>');
document.write('<br><a class=mm href="http://www.froglife.org/" target="_new">Froglife</a>');
document.write('<br><a class=mm href="http://www.madeirabirds.com/" target="_new">Madeira Birds</a>');
document.write('<br><a class=mm href="http://www.leps.it/" target="_new">Moths and Butterflies of Europe and N Africa</a>');
document.write('<br><a class=mm href="http://www.mothscount.org/" target="_new">Moths Count</a>');
document.write('<br><a class=mm href="http://www.naturalengland.org.uk/" target="_new">Natural England</a>');
document.write('<br><a class=mm href="http://www.naturephoto-cz.com/" target="_new">NaturePhoto-CZ</a>');
document.write('<br><a class=mm href="http://www.newforestdragonflies.com/index.htm" target="_new">New Forest Dragonflies</a>');
document.write('<br><a class=mm href="http://otmoorbirding.blogspot.com/" target="_new">Otmoor Birding</a>');
document.write('<br><a class=mm href="http://www.oos.org.uk/" target="_new">Oxford Ornithological Soc</a>');
document.write('<br><a class=mm href="http://oxonbirding.blogspot.com/" target="_new">Oxon Bird Log</a>');
document.write('<br><a class=mm href="http://www.portmeadowbirding.com" target="_new">Port Meadow Birding</a>');
document.write('<br><a class=mm href="http://www.rspb.org.uk/" target="_new">RSPB</a>');
document.write('<br><a class=mm href="http://www.rspb-oxford.org.uk/" target="_new">RSPB Oxford Group</a>');
document.write('<br><a class=mm href="http://www.saveradleylakes.org.uk/" target="_new">Save Radley Lakes</a>');
document.write('<br><a class=mm href="http://www.stephenburch.com/" target="_new">Steve Burch\'s Birding site</a>');
document.write('<br><a class=mm href="http://www.ukbutterflies.co.uk/" target="_new">UK Butterflies</a>');
document.write('<br><a class=mm href="http://www.ladybird-survey.org/" target="_new">UK Ladybirds</a>');
document.write('<br><a class=mm href="http://ukmoths.org.uk/" target="_new">UK Moths</a>');
document.write('<br><a class=mm href="http://www.uknature.co.uk/" target="_new">UK Nature</a>');
document.write('<br><a class=mm href="http://www.wwt.org.uk/" target="_new">Wildfowl and Wetlands Trust</a>');
document.write('<br><a class=mm href="http://www.wildlife-gardening.co.uk/" target="_new">Wildlife Gardening</a>');
document.write('<br><a class=mm href="http://www.mangoverde.com/birdsound/index.html" target="_new">World Bird Guide</a>');

document.write('<br>&nbsp;<br><a class=mm href="../index.html" target="_top">BirdImages Home</a>');
document.write('<h3>&copy; David Hastings 2012</h3>'); 
document.write('<br>This web page is licenced for personal, private, non- commercial use only. Automated processing by advertising systems is not permitted.');
}

function DDLinksBarHome()
{
document.write('<br><a class=mm href="index.html" target="_top">Dragonflies &amp; Damselflies</a>');
document.write('<br>&nbsp;<br><a class=mm href="demoiselles/index.html" target="_top">Demoiselles</a>');
document.write('<br><a class=mm href="spreadwings/index.html" target="_top">Emerald Damselflies</a>');
document.write('<br><a class=mm href="damselflies/index.html" target="_top">Damselflies</a>');
document.write('<br><a class=mm href="featherlegs/index.html" target="_top">White-legged Damselflies</a>');
document.write('<br><a class=mm href="hawkers/index.html" target="_top">Hawkers</a>');
document.write('<br><a class=mm href="emperors/index.html" target="_top">Emperors</a>');
document.write('<br><a class=mm href="clubtails/index.html" target="_top">Clubtails</a>');
document.write('<br><a class=mm href="hooktails/index.html" target="_top">Hooktails</a>');
document.write('<br><a class=mm href="goldenrings/index.html" target="_top">Goldenrings</a>');
document.write('<br><a class=mm href="emeralds/index.html" target="_top">Emeralds</a>');
document.write('<br><a class=mm href="chasers/index.html" target="_top">Chasers</a>');
document.write('<br><a class=mm href="skimmers/index.html" target="_top">Skimmers</a>');
document.write('<br><a class=mm href="whitefaces/index.html" target="_top">Whitefaces</a>');
document.write('<br><a class=mm href="darters/index.html" target="_top">Darters</a>');
document.write('<br><a class=mm href="scarlets/index.html" target="_top">Scarlets</a>');
document.write('<br><a class=mm href="groundlings/index.html" target="_top">Groundlings</a>');

document.write('<br>&nbsp;<br><a class=mm href="odonata_index.html" target="_top">Image index</a>');
document.write('<br><a class=mm href="species2009.html" target="_top">2009 records</a>');
document.write('<br><a class=mm href="species2010.html" target="_top">2010 records</a>');
document.write('<br><a class=mm href="france2010.html" target="_top">2010 French records</a>');
document.write('<br><a class=mm href="species2011.html" target="_top">2011 records</a>');

document.write('<br><br><a class=mm href="http://www.british-dragonflies.org.uk/" target="_new">British Dragonfly Society</a>');
document.write('<br><a class=mm href="http://fly.to/dragonflies" target="_new">European Dragonflies and Damselflies</a>');
document.write('<br><a class=mm href="http://www.newforestdragonflies.com/index.htm" target="_new">New Forest Dragonflies</a>');
document.write('<br><a class=mm href="http://www.stephenburch.com/dragonflies/dragonflies.htm" target="_new">Steve Burch\'s Dragonfly site</a>');
document.write('<br><a class=mm href="http://www.stephenburch.com/dragonflies/oxondnews2011.htm" target="_new">Oxon hot news</a>');
document.write('<br><a class=mm href="http://www.dragonflyproject.org.uk/" target="_new">The Dragonfly Project</a>');
document.write('<br><a class=mm href="http://www.curdhome.co.uk/photos/Dragonflies/index.htm" target="_new">John Curd Dragonflies</a>');
document.write('<br><a class=mm href="http://www.curdhome.co.uk/photos/Damselflies/index.htm" target="_new">John Curd Damselflies</a>');
document.write('<br><a class=mm href="http://www.dragonfly-images.co.uk/" target="_new">Chris Brooks Photography</a>');



document.write('<br>&nbsp;<br><a class=mm href="../birds/index.html" target="_top">Birds</a>');
document.write('<br><a class=mm href="../lepidoptera/index.html" target="_top">Butterflies &amp; Moths</a>');
document.write('<br><a class=mm href="../nhdiary/index.html" target="_top">Natural History Diary</a>');
document.write('<br><a class=mm href="../index.html" target="_top">BirdImages Home</a>');
document.write('<h3>&copy; David Hastings 2012</h3>'); 
document.write('<br>This web page is licenced for personal, private, non- commercial use only. Automated processing by advertising systems is not permitted.');
}

function DDLinksBar()
{
document.write('<br><a class=mm href="../index.html" target="_top">Dragonflies &amp; Damselflies</a>');
document.write('<br>&nbsp;<br><a class=mm href="../demoiselles/index.html" target="_top">Demoiselles</a>');
document.write('<br><a class=mm href="../spreadwings/index.html" target="_top">Emerald Damselflies</a>');
document.write('<br><a class=mm href="../damselflies/index.html" target="_top">Damselflies</a>');
document.write('<br><a class=mm href="../featherlegs/index.html" target="_top">White-legged Damselflies</a>');
document.write('<br><a class=mm href="../hawkers/index.html" target="_top">Hawkers</a>');
document.write('<br><a class=mm href="../emperors/index.html" target="_top">Emperors</a>');
document.write('<br><a class=mm href="../clubtails/index.html" target="_top">Clubtails</a>');
document.write('<br><a class=mm href="../hooktails/index.html" target="_top">Hooktails</a>');
document.write('<br><a class=mm href="../goldenrings/index.html" target="_top">Goldenrings</a>');
document.write('<br><a class=mm href="../emeralds/index.html" target="_top">Emeralds</a>');
document.write('<br><a class=mm href="../chasers/index.html" target="_top">Chasers</a>');
document.write('<br><a class=mm href="../skimmers/index.html" target="_top">Skimmers</a>');
document.write('<br><a class=mm href="../whitefaces/index.html" target="_top">Whitefaces</a>');
document.write('<br><a class=mm href="../darters/index.html" target="_top">Darters</a>');
document.write('<br><a class=mm href="../scarlets/index.html" target="_top">Scarlets</a>');
document.write('<br><a class=mm href="../groundlings/index.html" target="_top">Groundlings</a>');

document.write('<br>&nbsp;<br><a class=mm href="../odonata_index.html" target="_top">Image index</a>');
document.write('<br><a class=mm href="../species2009.html" target="_top">2009 records</a>');
document.write('<br><a class=mm href="../species2010.html" target="_top">2010 records</a>');
document.write('<br><a class=mm href="../france2010.html" target="_top">2010 French records</a>');
document.write('<br><a class=mm href="../species2011.html" target="_top">2011 records</a>');

document.write('<br><br><a class=mm href="http://www.british-dragonflies.org.uk/" target="_new">British Dragonfly Society</a>');
document.write('<br><a class=mm href="http://www.dragonflypix.com/index.html" target="_new">DragonflyPix</a>');
document.write('<br><a class=mm href="http://www.ghmahoney.org.uk/dragonfly/" target="_new">Dragonflies and Damselflies</a>');
document.write('<br><a class=mm href="http://fly.to/dragonflies" target="_new">European Dragonflies and Damselflies</a>');
document.write('<br><a class=mm href="http://www.newforestdragonflies.com/index.htm" target="_new">New Forest Dragonflies</a>');
document.write('<br><a class=mm href="http://www.stephenburch.com/dragonflies/dragonflies.htm" target="_new">Steve Burch\'s Dragonfly site</a>');
document.write('<br><a class=mm href="http://www.stephenburch.com/dragonflies/oxondnews2011.htm" target="_new">Oxon hot news</a>');
document.write('<br><a class=mm href="http://www.dragonflyproject.org.uk/" target="_new">The Dragonfly Project</a>');
document.write('<br><a class=mm href="http://www.curdhome.co.uk/photos/Dragonflies/index.htm" target="_new">John Curd Dragonflies</a>');
document.write('<br><a class=mm href="http://www.curdhome.co.uk/photos/Damselflies/index.htm" target="_new">John Curd Damselflies</a>');
document.write('<br><a class=mm href="http://www.dragonfly-images.co.uk/" target="_new">Chris Brooks Photography</a>');

document.write('<br>&nbsp;<br><a class=mm href="../../birds/index.html" target="_top">Birds</a>');
document.write('<br><a class=mm href="../../lepidoptera/index.html" target="_top">Butterflies &amp; Moths</a>');
document.write('<br><a class=mm href="../../nhdiary/index.html" target="_top">Natural History Diary</a>');
document.write('<br><a class=mm href="../../index.html" target="_top">BirdImages Home</a>');
document.write('<h3>&copy; David Hastings 2012</h3>'); 
document.write('<br>This web page is licenced for personal, private, non- commercial use only. Automated processing by advertising systems is not permitted.');
}

function BFLinksBarHome()
{
document.write('<br><a class=mm href="index.html" target="_top">Butterflies &amp; Moths</a>');
document.write('<br>&nbsp;<br><a class=mm href="skippers/index.html" target="_top">Skippers</a>');
document.write('<br><a class=mm href="swallowtails/index.html" target="_top">Swallowtails</a>');
document.write('<br><a class=mm href="whites/index.html" target="_top">Whites</a>');
document.write('<br><a class=mm href="blues/index.html" target="_top">Hairstreaks, Coppers &amp; Blues</a>');
document.write('<br><a class=mm href="browns/index.html" target="_top">Nymphalids, Fritillaries &amp; Browns</a>');

document.write('<br>&nbsp;<br><a class=mm href="site_guide.html" target="_top">Oxfordshire Site Guide</a>');
document.write('<br><a class=mm href="butterfly_index.html" target="_top">Image index</a>');
document.write('<br><a class=mm href="photography.html" target="_top">Butterfly photography</a>');
document.write('<br><a class=mm href="moths2009.html">2009 Moth photos</a>');
document.write('<br><a class=mm href="species2009.html" target="_top">2009 records</a>');
document.write('<br><a class=mm href="species2010.html" target="_top">2010 records</a>');
document.write('<br><a class=mm href="france2010.html" target="_top">2010 French records</a>');
document.write('<br><a class=mm href="species2011.html" target="_top">2011 records</a>');

document.write('<br>&nbsp;<br><a class=mm href="http://www.britishbutterflies.co.uk/" target="_new">British Butterflies</a>');
document.write('<br><a class=mm href="http://www.butterfly-conservation.org/" target="_new">Butterfly Conservation</a>');
document.write('<br><a class=mm href="http://upperthames-butterflies.org.uk/" target="_new">BC Upper Thames Branch</a>');
document.write('<br><a class=mm href="http://www.eurobutterflies.com/" target="_new">Eurobutterflies</a>');
document.write('<br><a class=mm href="http://www.leps.it/" target="_new">Moths and Butterflies of Europe and N Africa</a>');
document.write('<br><a class=mm href="http://www.mothscount.org/" target="_new">Moths Count</a>');
document.write('<br><a class=mm href="http://www.ukbutterflies.co.uk/" target="_new">UK Butterflies</a>');
document.write('<br><a class=mm href="http://www.ukbms.org/default.htm" target="_new">UKBMS</a>');
document.write('<br><a class=mm href="http://ntlargeblue.wordpress.com/" target="_new">Large Blue Blog</a>');
document.write('<br><a class=mm href="http://www.purple-emperor.co.uk/index.htm" target="_new">Hampshire Butterflies</a>');

document.write('<br>&nbsp;<br><a class=mm href="../birds/index.html" target="_top">Birds</a>');
document.write('<br><a class=mm href="../odonata/index.html" target="_top">Dragonflies &amp; Damselflies</a>');
document.write('<br><a class=mm href="../nhdiary/index.html" target="_top">Natural History Diary</a>');
document.write('<br>&nbsp;<br><a class=mm href="../index.html" target="_top">BirdImages Home</a>');
document.write('<h3>&copy; David Hastings 2012</h3>'); 
document.write('<br>This web page is licenced for personal, private, non- commercial use only. Automated processing by advertising systems is not permitted.');
}

function BFLinksBar()
{
document.write('<br><a class=mm href="../index.html" target="_top">Butterflies &amp; Moths</a>');
document.write('<br>&nbsp;<br><a class=mm href="../skippers/index.html" target="_top">Skippers</a>');
document.write('<br><a class=mm href="../swallowtails/index.html" target="_top">Swallowtails</a>');
document.write('<br><a class=mm href="../whites/index.html" target="_top">Whites</a>');
document.write('<br><a class=mm href="../blues/index.html" target="_top">Hairstreaks, Coppers &amp; Blues</a>');
document.write('<br><a class=mm href="../browns/index.html" target="_top">Nymphalids, Fritillaries &amp; Browns</a>');

document.write('<br>&nbsp;<br><a class=mm href="../site_guide.html" target="_top">Oxfordshire Site Guide</a>');
document.write('<br><a class=mm href="../butterfly_index.html" target="_top">Image index</a>');
document.write('<br><a class=mm href="../photography.html" target="_top">Butterfly photography</a>');
document.write('<br><a class=mm href="../moths2009.html">2009 Moth photos</a>');
document.write('<br><a class=mm href="../species2009.html" target="_top">2009 records</a>');
document.write('<br><a class=mm href="../species2010.html" target="_top">2010 records</a>');
document.write('<br><a class=mm href="../france2010.html" target="_top">2010 French records</a>');
document.write('<br><a class=mm href="../species2011.html" target="_top">2011 records</a>');

document.write('<br>&nbsp;<br><a class=mm href="http://www.britishbutterflies.co.uk/" target="_new">British Butterflies</a>');
document.write('<br><a class=mm href="http://www.butterfly-conservation.org/" target="_new">Butterfly Conservation</a>');
document.write('<br><a class=mm href="http://upperthames-butterflies.org.uk/" target="_new">BC Upper Thames Branch</a>');
document.write('<br><a class=mm href="http://www.eurobutterflies.com/" target="_new">Eurobutterflies</a>');
document.write('<br><a class=mm href="http://www.leps.it/" target="_new">Moths and Butterflies of Europe and N Africa</a>');
document.write('<br><a class=mm href="http://www.mothscount.org/" target="_new">Moths Count</a>');
document.write('<br><a class=mm href="http://www.ukbutterflies.co.uk/" target="_new">UK Butterflies</a>');
document.write('<br><a class=mm href="http://www.ukbms.org/default.htm" target="_new">UKBMS</a>');
document.write('<br><a class=mm href="http://ntlargeblue.wordpress.com/" target="_new">Large Blue Blog</a>');
document.write('<br><a class=mm href="http://www.purple-emperor.co.uk/index.htm" target="_new">Hampshire Butterflies</a>');


document.write('<br>&nbsp;<br><a class=mm href="../../birds/index.html" target="_top">Birds</a>');
document.write('<br><a class=mm href="../../odonata/index.html" target="_top">Dragonflies &amp; Damselflies</a>');
document.write('<br><a class=mm href="../../nhdiary/index.html" target="_top">Natural History Diary</a>');
document.write('<br>&nbsp;<br><a class=mm href="../../index.html" target="_top">BirdImages Home</a>');
document.write('<h3>&copy; David Hastings 2012</h3>'); 
document.write('<br>This web page is licenced for personal, private, non- commercial use only. Automated processing by advertising systems is not permitted.');
}

function BirdsLinksBar()
{
document.write('<br><a class=mm href="../index.html" target="_top">Birds</a>');
document.write('<br><a class=mm href="../species2010.html" target="_top">2010 records</a>');
document.write('<br><a class=mm href="../species2011.html" target="_top">2011 records</a>');

document.write('<br>&nbsp;<br><a class=mm href="../divers/index.html" target="_top">Divers</a>');
document.write('<br><a class=mm href="../grebes/index.html" target="_top">Grebes</a>');
document.write('<br><a class=mm href="../shearwaters/index.html" target="_top">Shearwaters &amp; Petrels</a>');
document.write('<br><a class=mm href="../gannets/index.html" target="_top">Gannets</a>');
document.write('<br><a class=mm href="../cormorants/index.html" target="_top">Cormorants</a>');
document.write('<br><a class=mm href="../herons/index.html" target="_top">Herons &amp; Egrets</a>');
document.write('<br><a class=mm href="../flamingoes/index.html" target="_top">Flamingoes</a>');
document.write('<br><a class=mm href="../swans/index.html" target="_top">Swans</a>');
document.write('<br><a class=mm href="../geese/index.html" target="_top">Geese</a>');
document.write('<br><a class=mm href="../ducks/index.html" target="_top">Ducks</a>');
document.write('<br><a class=mm href="../raptors/index.html" target="_top">Raptors</a>');
document.write('<br><a class=mm href="../falcons/index.html" target="_top">Falcons</a>');
document.write('<br><a class=mm href="../pheasants/index.html" target="_top">Partridges &amp; Pheasants</a>');
document.write('<br><a class=mm href="../rails/index.html" target="_top">Rails, Gallinules &amp; Coots</a>');
document.write('<br><a class=mm href="../cranes/index.html" target="_top">Cranes</a>');
document.write('<br><a class=mm href="../oystercatchers/index.html" target="_top">Oystercatchers</a>');
document.write('<br><a class=mm href="../avocets/index.html" target="_top">Avocets &amp; Stilts</a>');
document.write('<br><a class=mm href="../plovers/index.html" target="_top">Plovers</a>');
document.write('<br><a class=mm href="../sandpipers/index.html" target="_top">Sandpipers &amp; Phalaropes</a>');
document.write('<br><a class=mm href="../gulls/index.html" target="_top">Gulls &amp; Terns</a>');
document.write('<br><a class=mm href="../auks/index.html" target="_top">Auks, Guillemots &amp; Puffins</a>');
document.write('<br><a class=mm href="../cuckoos/index.html" target="_top">Cuckoos</a>');
document.write('<br><a class=mm href="../pigeons/index.html" target="_top">Pigeons &amp; Doves</a>');
document.write('<br><a class=mm href="../parakeets/index.html" target="_top">Parrots &amp; Macaws</a>');
document.write('<br><a class=mm href="../hirundines/index.html" target="_top">Swallows &amp; Martins</a>');
document.write('<br><a class=mm href="../kingfishers/index.html" target="_top">Kingfishers</a>');
document.write('<br><a class=mm href="../pipits/index.html" target="_top">Pipits &amp; Wagtails</a>');
document.write('<br><a class=mm href="../waxwings/index.html" target="_top">Waxwings</a>');
document.write('<br><a class=mm href="../wrens/index.html" target="_top">Wrens</a>');
document.write('<br><a class=mm href="../accentors/index.html" target="_top">Accentors</a>');
document.write('<br><a class=mm href="../flycatchers/index.html" target="_top">Flycatchers and Chats</a>');
document.write('<br><a class=mm href="../thrushes/index.html" target="_top">Thrushes</a>');
document.write('<br><a class=mm href="../warblers/index.html" target="_top">Warblers and Crests</a>');
document.write('<br><a class=mm href="../lt-tits/index.html" target="_top">Long-Tailed Tits</a>');
document.write('<br><a class=mm href="../tits/index.html" target="_top">Tits</a>');
document.write('<br><a class=mm href="../shrikes/index.html" target="_top">Shrikes</a>');
document.write('<br><a class=mm href="../crows/index.html" target="_top">Crows</a>');
document.write('<br><a class=mm href="../starlings/index.html" target="_top">Starlings</a>');
document.write('<br><a class=mm href="../sparrows/index.html" target="_top">Sparrows</a>');
document.write('<br><a class=mm href="../finches/index.html" target="_top">Finches</a>');
document.write('<br><a class=mm href="../buntings/index.html" target="_top">Buntings</a>');
document.write('<br>&nbsp;<br><a class=mm href="../newzealand.html" target="_top">Birding in New Zealand</a>');
document.write('<br><a class=mm href="../scillies.html" target="_top">Birding on the Isles of Scilly</a>');
document.write('<br><a class=mm href="../bird_index.html" target="_top">Bird Image Index</a>');

document.write('<br>&nbsp;<br><a class=mm href="https://www.birdguides.com/home/default.asp" target="_new">Birdguides</a>');
document.write('<br><a class=mm href="http://www.birdsofbritain.co.uk/index.htm" target="_new">Birds of Britain</a>');
document.write('<br><a class=mm href="http://madeira.seawatching.net/index.html" target="_new">Birding Madeira</a>');
document.write('<br><a class=mm href="http://www.madeirabirds.com/" target="_new">Madeira Birds</a>');
document.write('<br><a class=mm href="http://otmoorbirding.blogspot.com/" target="_new">Otmoor Birding</a>');
document.write('<br><a class=mm href="http://www.oos.org.uk/" target="_new">Oxford Ornithological Soc</a>');
document.write('<br><a class=mm href="http://oxonbirding.blogspot.com/" target="_new">Oxon Bird Log</a>');
document.write('<br><a class=mm href="http://www.portmeadowbirding.com" target="_new">Port Meadow Birding</a>');
document.write('<br><a class=mm href="http://www.rspb.org.uk/" target="_new">RSPB</a>');
document.write('<br><a class=mm href="http://www.rspb-oxford.org.uk/" target="_new">RSPB Oxford Group</a>');
document.write('<br><a class=mm href="http://www.stephenburch.com/" target="_new">Steve Burch\'s Birding site</a>');
document.write('<br><a class=mm href="http://www.mangoverde.com/birdsound/index.html" target="_new">World Bird Guide</a>');

document.write('<br>&nbsp;<br><a class=mm href="../../nhdiary/index.html" target="_top">Natural History Diary</a>');
document.write('<br><a class=mm href="../../lepidoptera/index.html" target="_top">Butterflies  &amp; Moths</a>');
document.write('<br><a class=mm href="../../odonata/index.html" target="_top">Dragonflies &amp; Damselflies</a>');
document.write('<br>&nbsp;<br><a class=mm href="../../index.html" target="_top">BirdImages Home</a>');
document.write('<h3>&copy; David Hastings 2012</h3>'); 
document.write('<br>This web page is licenced for personal, private, non- commercial use only. Automated processing by advertising systems is not permitted.');
}

function BirdsLinksBarHome()
{
document.write('<br><a class=mm href="index.html" target="_top">Birds</a>');
document.write('<br><a class=mm href="species2010.html" target="_top">2010 records</a>');
document.write('<br><a class=mm href="species2011.html" target="_top">2011 records</a>');

document.write('<br>&nbsp;<br><a class=mm href="divers/index.html" target="_top">Divers</a>');
document.write('<br><a class=mm href="grebes/index.html" target="_top">Grebes</a>');
document.write('<br><a class=mm href="shearwaters/index.html" target="_top">Shearwaters &amp; Petrels</a>');
document.write('<br><a class=mm href="gannets/index.html" target="_top">Gannets</a>');
document.write('<br><a class=mm href="cormorants/index.html" target="_top">Cormorants</a>');
document.write('<br><a class=mm href="herons/index.html" target="_top">Herons &amp; Egrets</a>');
document.write('<br><a class=mm href="flamingoes/index.html" target="_top">Flamingoes</a>');
document.write('<br><a class=mm href="swans/index.html" target="_top">Swans</a>');
document.write('<br><a class=mm href="geese/index.html" target="_top">Geese</a>');
document.write('<br><a class=mm href="ducks/index.html" target="_top">Ducks</a>');
document.write('<br><a class=mm href="raptors/index.html" target="_top">Raptors</a>');
document.write('<br><a class=mm href="falcons/index.html" target="_top">Falcons</a>');
document.write('<br><a class=mm href="pheasants/index.html" target="_top">Partridges &amp; Pheasants</a>');
document.write('<br><a class=mm href="rails/index.html" target="_top">Rails, Gallinules &amp; Coots</a>');
document.write('<br><a class=mm href="cranes/index.html" target="_top">Cranes</a>');
document.write('<br><a class=mm href="oystercatchers/index.html" target="_top">Oystercatchers</a>');
document.write('<br><a class=mm href="avocets/index.html" target="_top">Avocets &amp; Stilts</a>');
document.write('<br><a class=mm href="plovers/index.html" target="_top">Plovers</a>');
document.write('<br><a class=mm href="sandpipers/index.html" target="_top">Sandpipers &amp; Phalaropes</a>');
document.write('<br><a class=mm href="gulls/index.html" target="_top">Gulls &amp; Terns</a>');
document.write('<br><a class=mm href="auks/index.html" target="_top">Auks, Guillemots &amp; Puffins</a>');
document.write('<br><a class=mm href="cuckoos/index.html" target="_top">Cuckoos</a>');
document.write('<br><a class=mm href="pigeons/index.html" target="_top">Pigeons &amp; Doves</a>');
document.write('<br><a class=mm href="parakeets/index.html" target="_top">Parrots &amp; Macaws</a>');
document.write('<br><a class=mm href="hirundines/index.html" target="_top">Swallows &amp; Martins</a>');
document.write('<br><a class=mm href="kingfishers/index.html" target="_top">Kingfishers</a>');
document.write('<br><a class=mm href="pipits/index.html" target="_top">Pipits &amp; Wagtails</a>');
document.write('<br><a class=mm href="waxwings/index.html" target="_top">Waxwings</a>');
document.write('<br><a class=mm href="wrens/index.html" target="_top">Wrens</a>');
document.write('<br><a class=mm href="accentors/index.html" target="_top">Accentors</a>');
document.write('<br><a class=mm href="flycatchers/index.html" target="_top">Flycatchers and Chats</a>');
document.write('<br><a class=mm href="thrushes/index.html" target="_top">Thrushes</a>');
document.write('<br><a class=mm href="warblers/index.html" target="_top">Warblers and Crests</a>');
document.write('<br><a class=mm href="lt-tits/index.html" target="_top">Long-Tailed Tits</a>');
document.write('<br><a class=mm href="tits/index.html" target="_top">Tits</a>');
document.write('<br><a class=mm href="shrikes/index.html" target="_top">Shrikes</a>');
document.write('<br><a class=mm href="crows/index.html" target="_top">Crows</a>');
document.write('<br><a class=mm href="starlings/index.html" target="_top">Starlings</a>');
document.write('<br><a class=mm href="sparrows/index.html" target="_top">Sparrows</a>');
document.write('<br><a class=mm href="finches/index.html" target="_top">Finches</a>');
document.write('<br><a class=mm href="buntings/index.html" target="_top">Buntings</a>');
document.write('<br>&nbsp;<br><a class=mm href="newzealand.html" target="_top">Birding in New Zealand</a>');
document.write('<br><a class=mm href="scillies.html" target="_top">Birding on the Isles of Scilly</a>');
document.write('<br><a class=mm href="bird_index.html" target="_top">Bird Image Index</a>');

document.write('<br>&nbsp;<br><a class=mm href="https://www.birdguides.com/home/default.asp" target="_new">Birdguides</a>');
document.write('<br><a class=mm href="http://www.birdsofbritain.co.uk/index.htm" target="_new">Birds of Britain</a>');
document.write('<br><a class=mm href="http://madeira.seawatching.net/index.html" target="_new">Birding Madeira</a>');
document.write('<br><a class=mm href="http://www.madeirabirds.com/" target="_new">Madeira Birds</a>');
document.write('<br><a class=mm href="http://otmoorbirding.blogspot.com/" target="_new">Otmoor Birding</a>');
document.write('<br><a class=mm href="http://www.oos.org.uk/" target="_new">Oxford Ornithological Soc</a>');
document.write('<br><a class=mm href="http://oxonbirding.blogspot.com/" target="_new">Oxon Bird Log</a>');
document.write('<br><a class=mm href="http://www.portmeadowbirding.com" target="_new">Port Meadow Birding</a>');
document.write('<br><a class=mm href="http://www.rspb.org.uk/" target="_new">RSPB</a>');
document.write('<br><a class=mm href="http://www.rspb-oxford.org.uk/" target="_new">RSPB Oxford Group</a>');
document.write('<br><a class=mm href="http://www.stephenburch.com/" target="_new">Steve Burch\'s Birding site</a>');
document.write('<br><a class=mm href="http://www.mangoverde.com/birdsound/index.html" target="_new">World Bird Guide</a>');

document.write('<br>&nbsp;<br><a class=mm href="../nhdiary/index.html" target="_top">Natural History Diary</a>');
document.write('<br><a class=mm href="../lepidoptera/index.html" target="_top">Butterflies &amp; Moths</a>');
document.write('<br><a class=mm href="../odonata/index.html" target="_top">Dragonflies &amp; Damselflies</a>');
document.write('<br>&nbsp;<br><a class=mm href="../index.html" target="_top">BirdImages Home</a>');
document.write('<h3>&copy; David Hastings 2012</h3>'); 
document.write('<br>This web page is licenced for personal, private, non- commercial use only. Automated processing by advertising systems is not permitted.');
}


