//start the menu building
if(document.all)
 document.write('<div id="slidemenu2" style="left:-143" onMouseover="slide()" onMouseout="paintmenu()">');
else
 document.write('<layer id="slidemenu" onMouseover="slide()" onMouseout="paintmenu()">');

//used for window resizing
function repaint()
{
 window.location.reload();
}
function repaint2()
{
 if (document.layers)
  setTimeout("window.onresize=repaint",400);
}
window.onload=repaint2;

//fill the menu with our links
function fillmenu()
{
 var array1=new Array();
 var array1links=new Array();
 var array2=new Array();
 var array2links=new Array();

 array1[0]="&nbsp;RefugeEarth Home";
 array1[1]="&nbsp;The Gentle Zoo";
 array1[2]="Homeward Bound";
 array1[3]="Travels Afar";
 array1[4]="Gathering Places";
 array1[5]="Busy, Busy Lives";
 array1[6]="Playing Around";
 array1[7]="A Pale Blue Dot";
 array1[8]="Walking on Water";
 array1[9]="Web Sightings!";
 array1[10]="Two.Two.Cool!!";

 array1links[0]="http://www.refugeearth.org/ZooHome.htm target=_blank";
 array1links[1]="http://www.refugeearth.org/pages/gentlezoo/gentlezoo.htm target=_blank";
 array1links[2]="http://www.refugeearth.org/pages/homeward/homeward.htm target=_blank";
 array1links[3]="http://www.refugeearth.org/pages/travels/travels.htm target=_blank";
 array1links[4]="http://www.refugeearth.org/pages/gathering/gathering.htm target=_blank";
 array1links[5]="http://www.refugeearth.org/pages/busylives/busylives.htm target=_blank";
 array1links[6]="http://www.refugeearth.org/pages/justplaying/justplaying.htm target=_blank";
 array1links[7]="http://www.refugeearth.org/pages/palebluedot/palebluedot.htm target=_blank";
 array1links[8]="http://www.refugeearth.org/pages/walkwater/walkwater.htm target=_blank";
 array1links[9]="http://www.refugeearth.org/pages/websighting/websighting.htm target=_blank";
 array1links[10]="http://www.refugeearth.org/pages/22cool/22cool.htm target=_blank";

 array2[0]="Subscribe!";
 array2[1]="Read The Manual!";
 array2[2]="Search The Zoo!";
 array2[3]="RE:Academy";
 array2[4]="Webspinner R&egrave;sume";
 array2[5]="Instructional-Designs";
 array2[6]="The Outsourcerer";
 
 array2links[0]="http://www.refugeearth.org/pages/subscribe/subscribe.htm target=_blank";
 array2links[1]="http://www.refugeearth.org/pages/readmanual/readmanual.htm target=_blank";
 array2links[2]="http://www.refugeearth.org/pages/search/search.htm target=_blank";
 array2links[3]="http://www.refugeearth.org/BoydZoo/campus/Novaweb/DCTE/OLEweb/final-pt-1.htm target=_blank";
 array2links[4]="http://www.refugeearth.org/BoydZoo/campus/Novaweb/DCTE/OLEweb/lcb-resume.htm target=_blank";
 array2links[5]="http://www.refugeearth.org/BoydZoo/index.html target=_blank";
 array2links[6]="http://www.refugeearth.org/BoydZoo/TheOutsourcerer.html target=_blank";
 
 document.write('<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="161"><tr><td ALIGN=RIGHT valign="top"><img src="http://www.refugeearth.org/slidemenu/contents-bttn.gif" width="133" height="41" alt="CONTENTS"></td><td ALIGN="LEFT" valign="top" rowspan="5"><img src="http://www.refugeearth.org/slidemenu/menutag-bttn.gif" alt="SITE MAP" width="26" height="165"></td></tr><tr><td valign="top" background="http://www.refugeearth.org/slidemenu/liteblu-bg.jpg"><div align="center"><center><table bgcolor="#B0C4DE" background="http://www.refugeearth.org/slidemenu/liteblu-bg.jpg" border="0" cellpadding="0" cellspacing="0" width="100%">');
 for (i=0;i<=array1.length-1;i++)
  document.write('<tr><td><FONT FACE="arial" SIZE="2"><a href='+array1links[i]+'>'+array1[i]+'</a></FONT></td></tr>');
 document.write('</table></center></div></td></tr><tr><td valign="top"><img src="http://www.refugeearth.org/slidemenu/specials-bttn.gif" width="133" height="41" alt="SPECIALS"></td></tr><tr><td valign="top" background="http://www.refugeearth.org/slidemenu/liteblu-bg.jpg"><div align="center"><center><table bgcolor="#B0C4DE" background="http://www.refugeearth.org/slidemenu/liteblu-bg.jpg" border="0" cellpadding="0" cellspacing="0" width="100%">');
 for (i=0;i<=array2.length-1;i++)
  document.write('<tr><td><FONT FACE="arial" SIZE="2"><a href='+array2links[i]+'>'+array2[i]+'</a></FONT></td></tr>');
 document.write('</table></center></div></td></tr><tr><td><img src="http://www.refugeearth.org/slidemenu/menubottom-bttn.gif" width="133" height="50" alt="SITE MAP"></td></tr></table></center></div>');

}

//Used when the surfer scrolls the page
function menuscroll()
{
 themenu.top==document.body.scrollTop;
}
function menuscroll2()
{
 themenu.top=pageYOffset;
}

//finish the menu, close it, and set it's properties
if (document.all)
{
 fillmenu();
 document.write('</div>');
 themenu=document.all.slidemenu2.style;
 rightboundary=0;
 leftboundary=-143;
 window.onscroll=menuscroll;
}
else
{
 fillmenu();
 document.write('</layer>');
 themenu=document.layers.slidemenu;
 rightboundary=143;
 leftboundary=0;
 setInterval("menuscroll2()",50)
}

//moving the menu back and forth
function slide()
{
 if (window.paintmenuit)
  clearInterval(paintmenuit);
 slideit=setInterval("slideengine()",10);
}

function paintmenu()
{
 clearInterval(slideit);
 paintmenuit=setInterval("paintengine()",10);
}

function slideengine()
{
 if (document.all&&themenu.pixelLeft<rightboundary)
  themenu.pixelLeft+=5;
 else if(document.layers&&themenu.left<rightboundary)
  themenu.left+=5;
 else if (window.slideit)
  clearInterval(slideit);
}

function paintengine()
{
 if (document.all&&themenu.pixelLeft>leftboundary)
  themenu.pixelLeft-=5;
 else if(document.layers&&themenu.left>leftboundary)
  themenu.left-=5;
 else if (window.paintmenuit)
  clearInterval(paintmenuit);
}

