var gWdw2="";
var gPath;

//******************************************************************************

function zPageHeader(level) {

  var path;
  
  if (level == 1) path = "../";
  else path = "";

  document.writeln(
    '<center>' +
    '<table border=0 cellpadding=0 cellspacing=0 width=1000>' +
    ' <tr>' +
    '  <td>' +
    '   <table border=0 cellpadding=0 cellspacing=0 width=100%>' +
    '    <tr class=Banner height=60>' +
    '     <td width=220px valign=middle align=left>&nbsp;</td>' +
    '     <td valign=middle align=center>' +
    '      <img src=' + path + 'img/toz.bmp border=0 alt="The Online Zoo">' +
    '     </td>' +
    '     <td width=220px>' +
    '      <form action="http://www.google.com/cse" id="cse-search-box">' +
    '        <div>' +
    '          <input type="hidden" name="cx" value="002005307915002452640:an8tfld04a8" />' +
    '          <input type="hidden" name="ie" value="UTF-8" />' +
    '          <input type="text" name="q" size="30" />' +
    '          <input type="submit" name="sa" value="Search" />' +
    '        </div>' +
    '      </form>' +
    '      <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>' +
    '     </td>' +
    '    </tr>' +
    '   </table>' +
    '  </td>' +
    ' </tr>' +
    ' <tr>' +
    '  <td class=ContentBackground>' +
    '   <div id="outside">' +
    '   <ul id="navigation-1">' +
    '    <li><a href="' + path + 'index.html" title="Home" >Home</a></li>' +
    '    <li>' +
    '     <a href="' + path + 'animals.html" title="Animals" >Animals</a>' +
    '     <ul class="navigation-2">' +
    '      <li>' +
    '       <a href="' + path + 'pages/animals_common.html" title="All Animals" >All Animals</a>' +
    '       <ul class="navigation-3">' +
    '        <li><a href="' + path + 'pages/animals_common.html" title="By Common Name" >By Common Name</a></li>' +
    '        <li><a href="' + path + 'pages/animals_scientific.html" title="By Scientific Name" >By Scientific Name</a></li>' +
    '        <li><a href="' + path + 'pages/animals.html" title="By Classification" >By Classification</a></li>' +
    '       </ul>' +
    '      </li>' +
    '      <li>' +
    '       <a href="' + path + 'pages/amphibians_common.html" title="Amphibians" >Amphibians</a>' +
    '       <ul class="navigation-3">' +
    '        <li><a href="' + path + 'pages/amphibians_common.html" title="By Common Name" >By Common Name</a></li>' +
    '        <li><a href="' + path + 'pages/amphibians_scientific.html" title="By Scientific Name" >By Scientific Name</a></li>' +
    '        <li><a href="' + path + 'pages/amphibians.html" title="By Classification" >By Classification</a></li>' +
    '       </ul>' +
    '      </li>' +
    '      <li>' +
    '       <a href="' + path + 'pages/birds_common.html" title="Birds" >Birds</a>' +
    '       <ul class="navigation-3">' +
    '        <li><a href="' + path + 'pages/birds_common.html" title="By Common Name" >By Common Name</a></li>' +
    '        <li><a href="' + path + 'pages/birds_scientific.html" title="By Scientific Name" >By Scientific Name</a></li>' +
    '        <li><a href="' + path + 'pages/birds.html" title="By Classification" >By Classification</a></li>' +
    '       </ul>' +
    '      </li>' +
    '      <li>' +
    '       <a href="' + path + 'pages/fish_common.html" title="Fish" >Fish</a>' +
    '       <ul class="navigation-3">' +
    '        <li><a href="' + path + 'pages/fish_common.html" title="By Common Name" >By Common Name</a></li>' +
    '        <li><a href="' + path + 'pages/fish_scientific.html" title="By Scientific Name" >By Scientific Name</a></li>' +
    '        <li><a href="' + path + 'pages/fish.html" title="By Classification" >By Classification</a></li>' +
    '       </ul>' +
    '      </li>' +
    '      <li>' +
    '       <a href="' + path + 'pages/invertebrates_common.html" title="Invertebrates" >Invertebrates</a>' +
    '       <ul class="navigation-3">' +
    '        <li><a href="' + path + 'pages/invertebrates_common.html" title="By Common Name" >By Common Name</a></li>' +
    '        <li><a href="' + path + 'pages/invertebrates_scientific.html" title="By Scientific Name" >By Scientific Name</a></li>' +
    '        <li><a href="' + path + 'pages/invertebrates.html" title="By Classification" >By Classification</a></li>' +
    '       </ul>' +
    '      </li>' +
    '      <li>' +
    '       <a href="' + path + 'pages/mammals_common.html" title="Mammals" >Mammals</a>' +
    '       <ul class="navigation-3">' +
    '        <li><a href="' + path + 'pages/mammals_common.html" title="By Common Name" >By Common Name</a></li>' +
    '        <li><a href="' + path + 'pages/mammals_scientific.html" title="By Scientific Name" >By Scientific Name</a></li>' +
    '        <li><a href="' + path + 'pages/mammals.html" title="By Classification" >By Classification</a></li>' +
    '       </ul>' +
    '      </li>' +
    '      <li>' +
    '       <a href="' + path + 'pages/reptiles_common.html" title="Reptiles" >Reptiles</a>' +
    '       <ul class="navigation-3">' +
    '        <li><a href="' + path + 'pages/reptiles_common.html" title="By Common Name" >By Common Name</a></li>' +
    '        <li><a href="' + path + 'pages/reptiles_scientific.html" title="By Scientific Name" >By Scientific Name</a></li>' +
    '        <li><a href="' + path + 'pages/reptiles.html" title="By Classification" >By Classification</a></li>' +
    '       </ul>' +
    '      </li>' +
    '     </ul>' +
    '    </li>' +
    '    <li><a href="' + path + 'locations.html" title="Locations" >Locations</a>' +
    '     <ul class="navigation-2">' +
    '      <li><a href="' + path + 'pages/locations_zoos.html" title="Zoos" >Zoos</a></li>' +
    '      <li><a href="' + path + 'pages/locations_aquariums.html" title="Aquariums" >Aquariums</a></li>' +
    '      <li><a href="' + path + 'pages/locations_wild.html" title="Wild" >Wild</a></li>' +
    '      <li><a href="' + path + 'pages/locations_other.html" title="Other" >Other</a></li>' +
    '     </ul>' +
    '    </li>' +
    '    <li><a href="' + path + 'themes.html" title="Themes" >Themes</a>' +
    '     <ul class="navigation-2">' +
    '      <li><a href="' + path + 'pages/themes_typical_zoo_animals.html" title="Typical Zoo Animals" >Typical Zoo Animals</a></li>' +
    '      <li><a href="' + path + 'pages/themes_african_animals.html" title="African Animals" >African Animals</a></li>' +
    '      <li><a href="' + path + 'pages/themes_australian_animals.html" title="Australian Animals" >Australian Animals</a></li>' +
    '      <li>' +
    '       <a href="' + path + 'themes_north_american_birds.html" title="North American Birds" >North American Birds</a>' +
    '       <ul class="navigation-3">' +
    '        <li><a href="' + path + 'pages/themes_north_american_birds_-_birds_of_prey.html" title="Birds of Prey" >Birds of Prey</a></li>' +
    '        <li><a href="' + path + 'pages/themes_north_american_birds_-_crows_and_jays.html" title="Crows & Jays" >Crows & Jays</a></li>' +
    '        <li><a href="' + path + 'pages/themes_north_american_birds_-_doves.html" title="Doves" >Doves</a></li>' +
    '        <li><a href="' + path + 'pages/themes_north_american_birds_-_herons.html" title="Herons" >Herons</a></li>' +
    '        <li><a href="' + path + 'pages/themes_north_american_birds_-_shorebirds.html" title="Shorebirds" >Shorebirds</a></li>' +
    '        <li><a href="' + path + 'pages/themes_north_american_birds_-_sparrows.html" title="Sparrows" >Sparrows</a></li>' +
    '        <li><a href="' + path + 'pages/themes_north_american_birds_-_warblers.html" title="Warbler" >Warbler</a></li>' +
    '        <li><a href="' + path + 'pages/themes_north_american_birds_-_waterfowl.html" title="Waterfowl" >Waterfowl</a></li>' +
    '        <li><a href="' + path + 'pages/themes_north_american_birds_-_woodpeckers.html" title="Woodpeckers" >Woodpeckers</a></li>' +
    '        <li><a href="' + path + 'pages/themes_north_american_birds_-_other_birds.html" title="Other Birds" >Other Birds</a></li>' +
    '       </ul>' +
    '      </li>' +
    '      <li><a href="' + path + 'pages/themes_north_american_mammals.html" title="North American Mammals" >North American Mammals</a></li>' +
    '      <li><a href="' + path + 'pages/themes_south_american_animals.html" title="South American Animals" >South American Animals</a></li>' +
    '      <li><a href="' + path + 'pages/themes_insects_and_arachnids.html" title="Insects and Arachnids" >Insects and Arachnids</a></li>' +
    '      <li><a href="' + path + 'pages/themes_felines.html" title="Felines" >Felines</a></li>' +
    '      <li><a href="' + path + 'pages/themes_primates.html" title="Felines" >Primates</a></li>' +
    '      <li><a href="' + path + 'pages/themes_pets.html" title="Pets" >Pets</a></li>' +
    '      <li><a href="' + path + 'pages/themes_farm_animals.html" title="Farm Animals" >Farm Animals</a></li>' +
    '     </ul>' +
    '    </li>' +
    '    <li><a href="' + path + 'funstuff.html" title="More" >Fun Stuff</a>' +
    '     <ul class="navigation-2">' +
    '      <li><a href="' + path + 'jokes.html" title="Animal Jokes" >Animal Jokes</a></li>' +
    '      <li><a href="' + path + 'puzzles.html" title="Puzzles" >Puzzles</a></li>' +
    '     </ul>' +
    '    </li>' +
    '    <li><a href="' + path + 'about.html" title="About TOZ" >About TOZ</a></li>' +
    '   </ul>' +
    '   </div>' +
    '  </td>' +
    ' </tr>' +
    ' <tr>' +
    '  <td class=ContentBackground>' +
    '   <table width=100% border=0 bordercolor=black cellpadding=20 cellspacing=0>' +
    '    <tr>' +
    '     <td align=center>');
}

//******************************************************************************

function zPageFooter() {
  document.writeln(
    '     </td>' +
    '    </tr>' +
    '   </table>' +
    '   <p class=small><a href=http://www.theonlinezoo.com class=small>www.TheOnlineZoo.com</a>' +
    '   <br>&copy; & TM 2003-2012 Jeff Whitlock <a href=mailto:jeff@theonlinezoo.com class=small>jeff@theonlinezoo.com</a></p>' +
    '  </td>' +
    ' </tr>' +
    '</table>' +
    '</center>') ;
}

//******************************************************************************

function zRandomPic(width, align) {
     var pSeq; 
     pSeq = Math.floor(Math.random() * 75) + 1000;
     document.writeln('<img src="img/random/random' + pSeq + '.jpg" width=' + width + 
                      ' border=0 class=float' + align + ' hspace=20>');
}

//******************************************************************************

//function zPopWdw(pSrc, pWidth, pHeight, pLeft, pTop, pScroll) {
//  if (!gWdw2.closed && gWdw2.name=='w2') gWdw2.close();
//  if (pScroll == '') pScroll = 'no';
//  if (pLeft == 0) pLeft = Math.floor((screen.width  - pWidth)  / 2);
//  if (pTop  == 0) pTop  = Math.floor((screen.height - pHeight) / 2);
//  gWdw2 = window.open('', 'w2', 'height=' + pHeight + ',width=' + pWidth + ',top=' + pTop + ', left=' + pLeft + 
//          ', menubar=no, resizable=yes, scrollbars=' + pScroll + ', status=no', true);
//  gWdw2.document.open();
//  gWdw2.document.write(pSrc);
//  gWdw2.document.close();
//  gWdw2.document.focus();
//}

//******************************************************************************

//function zRules(pTitle, pBody, pWidth, pHeight) {
//  var pSrc;
//  pSrc = "<html><head><title>" + pTitle + "</title></head>" +
//         "<body onBlur=window.close() onKeyPress=window.close()> " + 
//         "<table border=1 cellpadding=10 cellspacing=0 bordercolor=black " +
//         "background='img/bgleopard.jpg' width=100%><tr><td align=center>" +
//         "<table border=1 cellpadding=10 cellspacing=0 bordercolor=black bgcolor=#ffffcc width=100%>" +
//         "<tr><td><center><h2>" + pTitle + "</h2></center>" + pBody +
//         "</td></tr></table></td></tr></table></body></html>";
//  zPopWdw(pSrc,pWidth,pHeight,100,50,'no');
//}

//******************************************************************************

//function zColBox(pContents) {
//  document.writeln('<tr><td><table width=100% border=0 cellpadding=10 cellspacing=0 >');
//  document.writeln('<tr><td class=Col>' + pContents + '</td></tr></table></td></tr>');
//}

//******************************************************************************

//function zColPic() {
//  var pSeq; 
//  pSeq = Math.floor(Math.random() * 279) + 1001;
//  zColBox("<img src='" + path + "col/col" + pSeq + ".jpg' border=1 bordercolor=black>");
//}

//******************************************************************************

//function zColMsg(pPage, pSubPage) {
//  var lSrc = '';
//  if (pPage == 'jok') lSrc = 
//    "<a href='mailto:" + zEmail() +            
//    "'>Send us</a> your favorite animal jokes, and we'll add them to this page!";
//  if (pPage == 'gam') lSrc = 
//    "<table border=0 cellpadding=0 cellspacing=0>" +
//    "<tr><td class=Col" + zColMsg2(pSubPage, "eli") + "><a href=eli.html>Elimination</a></td></tr>" +
//    "<tr><td class=Col" + zColMsg2(pSubPage, "mem") + "><a href=mem.html>Memory</a></td></tr>" +
//    "<tr><td class=Col" + zColMsg2(pSubPage, "peg") + "><a href=peg.html>Peg</a></td></tr>" +
//    "<tr><td class=Col" + zColMsg2(pSubPage, "spz") + "><a href=spz.html>Slide Puzzle</a></td></tr>" +
//    "<tr><td class=Col" + zColMsg2(pSubPage, "squ") + "><a href=squ.html>Squares</a></td></tr>" +
//    "<tr><td class=Col" + zColMsg2(pSubPage, "ttt") + "><a href=ttt.html>Tic-Tac-Toe</a></td></tr>" +
//    "<tr><td class=Col" + zColMsg2(pSubPage, "wrd") + "><a href=wrd.html>Word Guess</a></td></tr>" +
//    "</table>";
//  if (pPage == 'ani') lSrc = "<div id=idColMsg></div>"; 
//  if (lSrc != '') zColBox(lSrc);
//}

//******************************************************************************

//function zColAni() {
//  var lSrc = '';
//  lSrc = 
//    "<table border=0 cellpadding=2 cellspacing=0>" +
//    "<tr><td class=Col align=center><a href=http://www.flickr.com/photos/jeffwhitlock/ target=_blank>View Larger Versions Of Our Best Photos At Flickr</a></td></tr>" +
//    "<tr><td class=Col align=center><a href=locations.html>View Photos By Location</a></td></tr>" +
//    "<tr><td class=Col align=center><a href=permissions.html>Want To Use These Photos?</a></td></tr>" +
//    "<tr><td class=Col align=center><a href=http://animaldiversity.ummz.umich.edu/site/animal_names/scientific_name.html target=_blank>About Scientific Names</td></tr>" +
//    "<tr><td class=Col align=center><a href=http://www.talkorigins.org/faqs/evolution-fact.html target=_blank>Evolution: Fact or Theory?</td></tr></table>";
//  zColBox(lSrc);
//}

//******************************************************************************

//function zColMsg2(pSubPage1, pSubPage2) {
//  if (pSubPage1 == pSubPage2) return "On";
//  else                        return "Off";
//}

//******************************************************************************

//function zCol(pPage, pSubPage) {
//  zColMsg(pPage, pSubPage);
//  if (pPage == 'ani') zColAni();
//  zColPic();
//  zColBox(
//    "<center><span id=small><a href='http://www.JungleMouse.net'>www.JungleMouse.net</a>" +
//    "<br>&copy; & TM 2003-2010 <a href='mailto:" + zEmail() + "'>Jeff Whitlock</a></span></center>");
//}

//******************************************************************************

//function zChgIDSrc(pID, pSrc) {

//  // Netscape Navigator 4
//  if(document.layers){ 
//   pLayer= document.layers[pID]; 
//   pLayer.document.open(); 
//   pLayer.document.write(pSrc); 
//   pLayer.document.close(); 
//  }
//  // Internet Explorer
//  if(document.all) { 
//   pLayer = document.all[pID]; 
//   pLayer.innerHTML = pSrc; 
//  } 
//  // Netscape Navigator 6
//  if(!document.all && document.getElementById) { 
//   pLayer= document.getElementById(pID); 
//   pLayer.innerHTML = pSrc; 
//  } 
//}


//function fColMsg() {
// var pSrc = '';
// pSrc += '<table border=0 cellpadding=0 cellspacing=0 width=100%>'
// pSrc += ' <tr>'
// pSrc += '  <td class=Col>All Animals</td>'
// pSrc += '  <td class=Col><a href=animals.html>Tree</a></td>'
// pSrc += '  <td class=Col><a href=animals_list.html>List</a></td>'
// pSrc += ' </tr>'
// pSrc += ' <tr><td>&nbsp;</td></tr>';
// pSrc += ' <tr>';
// pSrc += '  <td class=Col>Amphibians</td>'
// pSrc += '  <td class=Col>&nbsp;<a href=amphibians.html>Tree</a></td>';
// pSrc += '  <td class=Col><a href=amphibians_list.html>List</a></td>';
// pSrc += ' </tr>';
// pSrc += ' <tr>';
// pSrc += '  <td class=Col>Birds</td>'
// pSrc += '  <td class=Col>&nbsp;<a href=birds.html>Tree</a></td>';
// pSrc += '  <td class=Col><a href=birds_list.html>List</a></td>';
// pSrc += ' </tr>';
// pSrc += ' <tr>';
// pSrc += '  <td class=Col>Fish</td>'
// pSrc += '  <td class=Col>&nbsp;<a href=fish.html>Tree</a></td>';
// pSrc += '  <td class=Col><a href=fish_list.html>List</a></td>';
// pSrc += ' </tr>';
// pSrc += ' <tr>';
// pSrc += '  <td class=Col>Invertebrates</td>'
// pSrc += '  <td class=Col>&nbsp;<a href=invertebrates.html>Tree</a></td>';
// pSrc += '  <td class=Col><a href=invertebrates_list.html>List</a></td>';
// pSrc += ' </tr>';
// pSrc += ' <tr>';
// pSrc += '  <td class=Col>Mammals</td>'
// pSrc += '  <td class=Col>&nbsp;<a href=mammals.html>Tree</a></td>';
// pSrc += '  <td class=Col><a href=mammals_list.html>List</a></td>';
// pSrc += ' </tr>';
// pSrc += ' <tr>';
// pSrc += '  <td class=Col>Reptiles</td>'
// pSrc += '  <td class=Col>&nbsp;<a href=reptiles.html>Tree</a></td>';
// pSrc += '  <td class=Col><a href=reptiles_list.html>List</a></td>';
// pSrc += ' </tr>';
// pSrc += '</table>'
// idColMsg.innerHTML = pSrc;
//}

//function fPic2(pPic, pCmn, pSci, pLoc, pCpy) {
// var pSrc; var pWdw1=''; var pPic2=''
// pPic2 = pPic;
// if (pPic < 10000) pPic2 = '0' + pPic;
// if (pPic < 1000) pPic2 = '00' + pPic;
// if (pPic < 100) pPic2 = '000' + pPic;
// if (pPic < 10) pPic2 = '0000' + pPic;
// if (!pWdw1.closed && pWdw1.name=='w1') pWdw1.close();
// pWdw1 = window.open('', 'w1', 'height=590,width=700,top=10,left=10,menubar=no,resizable=yes,scrollbars=no,status=no', true);
// pWdw1.document.open();
// pWdw1.document.write('<html><head><title>JungleMouse.net</title></head>');
// pWdw1.document.write('<body><table border=0 cellpadding=0 cellspacing=0 height=100% width=100%>');
// pWdw1.document.write('<tr><td align=center valign=middle>');
// pWdw1.document.write('<img border=1 bordercolor=black src=img/ani' + pPic2 + '.jpg>');
// if (pCmn != '') pWdw1.document.write('<br><b>' + pCmn + '</b>');
// if (pSci != '') pWdw1.document.write('<br><i><font size=-1>' + pSci + '</font></i>');
// if (pLoc != '') pWdw1.document.write('<br>' + pLoc);
// if (pCpy != '') pWdw1.document.write('<br><font size=-1>' + pCpy + '</font>');
// pWdw1.document.write('</td></tr></table></body></html>');
// pWdw1.document.close();
// pWdw1.document.focus();
//}

