
var isIE=document.all?true:false;
var isNS6=!isIE&&document.getElementById?true:false;
var old=!isNS4&&!isNS6&&!isIE;


var pmenu;
if(isNS6)pmenu=document.getElementById.style;

key="lock";
function toggleLock(){ if (key=="lock") key="unlock"; else key="lock"}
 
var doc1="" 

if (isNS6||isIE)
{ 
doc1 ='<div id="table" STYLE="position:absolute; left:3; top:10px; width:125px; visibility: hidden; z-index: 600; font-size:8px; font-family: verdana; font-weight:bold"></div>'
doc1+='<div id="pmenu" STYLE="position:absolute; left:60px; top:10px; width:110px; visibility: hidden; z-index: 600; background: #336666; border: 1px black solid; font-size:8px; font-family: arial; font-weight:bold"></div>'
}

if(isNS4) {alert("This web site is designed for Internet Explorer (any version) or Netscape version 6 onwards. \n\n" +
           "Netscape Nav. 4 is catered for in a basic way but earlier Netscape versions are not supported. \n\n" +
	   "Please view this web site with a supported browser if you see this message. \n\n" +
	   "Please see the Introduction page for more details. Thank you.")

doc1 =('<LAYER id="table" top=" 10" left="10" width="110"></LAYER>')
doc1+=('<LAYER id="pmenu" top=" 10" left="60" width="110"></LAYER>')
}
  
      	   
if(old) {alert("This web site is designed for Internet Explorer (any version) or Netscape version 6 onwards. \n\n" +
           "Netscape Nav. 4 is catered for in a basic way but earlier Netscape versions are not supported. \n\n" +
	   "Please view this web site with a supported browser if you see this message. \n\n" +
	    "Please see the Introduction page for more details. Thank you.")}

document.write(doc1);


function showTab() {
    
   tabz = "";
   tabz += '<table border="1" cellpadding="0" cellspacing="0" width="127" bgcolor="#ffeecc"><tr><td>'
   tabz += '<table ID="tabbox" border="0" cellpadding="0" cellspacing="0" width="125" height=250 bgcolor="#ffeecc">'
   tabz += '<tr>'
   tabz += '<td colspan="3" align="center" onMouseOut="resetPos();hidemenu();"><img src="images/tranpix.gif" height=6 width=125 border="0"></td></tr>'
   tabz += '<tr>'
   tabz += '<td rowspan="29" width="1"><img src="images/tranpix.gif" height="250" width="1" border=0><BR></td>'
   tabz += '<td onMouseOut="hidemenu()" width="10"><img src="images/dot.gif" height=12 width=10  border="0"></td>'
   tabz += '<td><a onMouseOver="popmenu(\'intro\')"  href="" onClick="return false">&nbsp;Introduction</a></td>'
   tabz += '<td rowspan="29" width="1"><img src="images/tranpix1.gif" height="250" width="1" onMouseOut="hidemenu()"><BR></td></tr>'
   tabz += '<tr><td colspan=3><img src="images/tranpix.gif" height="3" width="1"><BR></td></tr>'
   tabz += '<tr>'
   tabz += '<td  onMouseOut="hidemenu()" width="10"><h6><img src="images/dot.gif" height=12 width=10  border="0"></td>'
   tabz += '<td><a onMouseOver="popmenu(\'friends\')"  href="" onClick="return false">&nbsp;People on the way</a></td></tr>'
   tabz += '<tr><td colspan=3><img src="images/tranpix.gif" height="3" width="1"><BR></td></tr>'
   tabz += '<tr>'
   tabz += '<td onMouseOut="hidemenu()"><h6><img src="images/dot.gif" height=12 width=10  border="0"></td>'
   tabz += '<td width="200"><a onMouseOver="popmenu(\'oz\')" href="" onClick="return false">&nbsp;Australia </a></td></tr>'
   tabz += '<tr>'
   tabz += '<td onMouseOut="hidemenu()"><h6><img src="images/dot.gif" height=12 width=10  border="0"></td>'
   tabz += '<td width="200"><a onMouseOver="popmenu(\'can\')" href="" onClick="return false">&nbsp;Canada</a></td></tr>'
   tabz += '<tr>'
   tabz += '<td onMouseOut="hidemenu()"><h6><img src="images/dot.gif" height=12 width=10  border="0"></td>'
   tabz += '<td><a onMouseOver="popmenu(\'ice\')" href="" onClick="return false">&nbsp;Iceland 97</a></td></tr>'
   tabz += '<tr>'
   tabz += '<td  onMouseOut="hidemenu()"><h6><img src="images/dot.gif" height=12 width=10  border="0"></td>'
   tabz += '<td><a onMouseOver="popmenu(\'nzbike\')" href="" onClick="return false">&nbsp;New Zealand - bike</a></td></tr>'
   tabz += '<tr>'
   tabz += '<td onMouseOut="hidemenu()"><h6><img src="images/dot.gif" height=12 width=10 border="0"></td>'
   tabz += '<td ><a onMouseOver="popmenu(\'nzhike\')" href="" onClick="return false">&nbsp;New Zealand - hike</a></td></tr>'
   tabz += '<tr>'
   tabz += '<td onMouseOut="hidemenu()"><h6><img src="images/dot.gif" height=12 width=10 border="0"></td>'
   tabz += '<td ><a onMouseOver="popmenu(\'scot\')" href="" onClick="return false">&nbsp;Scotland </a></td></tr>'
   tabz += '<tr>'
   tabz += '<td  onMouseOut="hidemenu()"><h6><img src="images/dot.gif" height=12 width=10 border="0"></td>'
   tabz += '<td><a onMouseOver="popmenu(\'usabike\')" href="" onClick="return false">&nbsp;USA - bike 95</a></td></tr>'
   tabz += '<tr>'
   tabz += '<td onMouseOut="hidemenu()"><h6><img src="images/dot.gif" height=12 width=10 border="0"></td>'
   tabz += '<td><a onMouseOver="popmenu(\'usahike\')" href="" onClick="return false">&nbsp;USA - hike</a></td></tr>'
   tabz += '<tr>'
   tabz += '<td onMouseOut="hidemenu()"><h6><img src="images/dot.gif" height=12 width=10 border="0"></td>'
   tabz += '<td ><a onMouseOver="popmenu(\'waleshike\')" href="" onClick="return false">&nbsp;Wales - Y2K Eve </a><br></td></tr>'
   tabz += '<tr><td colspan=3><img src="images/tranpix.gif" height="6" width="1"></td></tr>'
   tabz += '<tr>'
   tabz += '<td colspan="3" onMouseOut="resetPos();hidemenu()"><img src="images/tranpix.gif" height=4 width=125 border="0"></td></tr>'
   tabz += '</table>'
   tabz += '</td></tr></table>'
var table=document.getElementById? document.getElementById("table") : document.all? document.all.table : document.layers? document.table : ""   

if (isNS6||isIE){table.style.visibility='visible'; table.innerHTML = tabz;} 
else{	table.document.open("text/html"); table.document.writeln(tabz); table.document.close();}


}

function popmenu(var1) {
       	
        tabl ="";
	tabl = '<table cellpadding="0" cellspacing="0" border="0" width="110" bgcolor="#336666"><tr><td>';       
        if (var1 == "intro") 
       	{tabl += '<table id="menubox" width="100%" onMouseOver="resetPos();">';
	tabl += '<tr><td ><a href="intro.html"  target="DocPage">Introduction</a></td></tr>';
	tabl += '<tr><td ><a href="browser.html"  target="DocPage">Browser details</a></td></tr>';
	tabl += '</table>';
	}

        if (var1 == "oz") 
       	{tabl += '<table id="menubox" width="100%" onMouseOver="resetPos();" >';
	tabl += '<tr><td ><a href="oz/intro.html"  target="DocPage">Introduction</a></td></tr>';
        tabl += '<tr><td ><a href="oz/equip.html"  target="DocPage">Equipment</a></td></tr>';
	tabl += '<tr><td ><a href="oz/route96.html"  target="DocPage">96 Route map</a></td></tr>';
	tabl += '<tr><td ><a href="oz/nullar.html"  target="DocPage">96 Nullarbor</a></td></tr>';
	tabl += '<tr><td ><a href="oz/stuart.html"  target="DocPage">96 Stuart Hwy</a></td></tr>';
	
	tabl += '</table>';
	}
	if (var1 == "can") 
       	{tabl += '<table id="menubox" width="100%" onMouseOver="resetPos();">';
	tabl += '<tr><td ><a href="can/transcan.html"  target="DocPage">Trans-Canada</a></td></tr>';
	tabl += '<tr><td ><a href="can/quebec.html"  target="DocPage">Quebec 98/99</a></td></tr>';
	tabl += '<tr><td ><a href="can/que-ns98.html"  target="DocPage">Que-Nova Scotia </a></td></tr>';
	tabl += '</table>';
	}
	if (var1 == "ice") 
      	{tabl += '<table id="menubox" width="100%" onMouseOver="resetPos();">';
	tabl += '<tr><td ><a href="ice/iceland.html"  target="DocPage">Freezing June 97!</a></td></tr>';
	tabl += '</table>';
	}
	if (var1 == "nzbike") 
       	{tabl += '<table id="menubox" width="100%" onMouseOver="resetPos();">';
	tabl += '<tr><td ><a href="nzb/intro.html"  target="DocPage">Introduction</a></td></tr>';
	tabl += '<tr><td ><a href="nzb/nznorth.html"  target="DocPage">North Island</a></td></tr>';
	tabl += '<tr><td ><a href="nzb/nzsouth.html"  target="DocPage">South Island</a></td></tr>';
	tabl += '</table>';
	}
	if (var1 == "nzhike")  
       	{tabl += '<table id="menubox" width="100%" onMouseOver="resetPos();">';
        tabl += '<tr><td ><a href="nzh/intro.html"  target="DocPage">Introduction</a></td></tr>';
        tabl += '<tr><td ><a href="nzh/abel.html"  target="DocPage">Abel Tasman</a></td></tr>';
        tabl += '<tr><td ><a href="nzh/rees.html"  target="DocPage">Rees - Dart</a></td></tr>';
       	tabl += '<tr><td ><a href="nzh/rburn.html"  target="DocPage">Routeburn</a></td></tr>';
        tabl += '<tr><td ><a href="nzh/green.html"  target="DocPage">Greenstone</a></td></tr>';
        tabl += '</table>';
       	}
	if (var1 == "scot") 
      	{tabl += '<table id="menubox" width="100%" onMouseOver="resetPos();">';
        tabl += '<tr><td ><a href="scot/intro.html"  target="DocPage">Introduction</a></td></tr>';
	tabl += '<tr><td ><a href="scot/scot90.html"  target="DocPage">Scotland 1990</a></td></tr>';
	tabl += '<tr><td ><a href="scot/scotnmr.html"  target="DocPage">Scotland 2000</a></td></tr>';
	tabl += '<tr><td ><a href="scot/scot02.html"  target="DocPage">Scotland 2002</a></td></tr>';
	tabl += '</table>';
	}
	if (var1 == "usabike")  
       	{tabl += '<table id="menubox" width="100%" onMouseOver="resetPos();">';
       	tabl += '<tr><td ><a href="usab/route95.html"  target="DocPage">Route map</a></a></td></tr>';
        tabl += '<tr><td ><a href="usab/intro.html"  target="DocPage">Introduction</a></a></td></tr>';
        tabl += '<tr><td ><a href="usab/washton.html"  target="DocPage">Washington</a></td></tr>';
        tabl += '<tr><td ><a href="usab/bc.html"  target="DocPage">BC</a></td></tr>';
        tabl += '<tr><td ><a href="usab/alberta.html"  target="DocPage">Alberta</a></td></tr>';
        tabl += '<tr><td ><a href="usab/montana.html"  target="DocPage">Montana</a></td></tr>';
        tabl += '<tr><td ><a href="usab/yelstone.html"  target="DocPage">Yellowstone, Wy.</a></td></tr>';
        tabl += '<tr><td ><a href="usab/wyoming.html"  target="DocPage">Wyoming</a></td></tr>';
        tabl += '<tr><td ><a href="usab/utah1.html"  target="DocPage">Utah 1</a></td></tr>';
        tabl += '<tr><td ><a href="usab/colorado.html"  target="DocPage">Colorado</a></td></tr>';
        tabl += '<tr><td ><a href="usab/utah2.html"  target="DocPage">Utah 2</a></td></tr>';
        tabl += '<tr><td ><a href="usab/arizona.html"  target="DocPage">Arizona</a></td></tr>';
        tabl += '</table>';
       	}
	if (var1 == "usahike")  
       	{tabl += '<table id="menubox" width="100%" onMouseOver="resetPos();">';
       	tabl += '<tr><td ><a href="usah/adirdak.html"  target="DocPage">Adirondacks</a></a></td></tr>';
        tabl += '<tr><td ><a href="usah/pct.html"  target="DocPage">Pacific Crest Trail</a></td></tr>';
        tabl += '</table>';
       	}

	if (var1 == "waleshike")  
       	{tabl += '<table id="menubox" width="100%" onMouseOver="resetPos();">';
       	tabl += '<tr><td ><a href="walesh/snowdon.html"  target="DocPage">Snowdon</a></a></td></tr>';
        tabl += '</table>';
       	}

	if (var1 == "friends")  
       	{tabl += '<table id="menubox" width="100%" onMouseOver="resetPos();">';
	tabl += '<tr><td ><a href="other/people.html#p0"  target="DocPage">Intro</a></td></tr>';
        tabl += '<tr><td ><a href="other/people.html#p1"  target="DocPage">Axel</a></td></tr>';
        tabl += '<tr><td ><a href="other/people.html#p2"  target="DocPage">The Bedouin!</a></td></tr>';
        tabl += '<tr><td ><a href="other/people.html#p3"  target="DocPage">EBB</a></td></tr>';
       	tabl += '<tr><td ><a href="other/people.html#p4"  target="DocPage">Nikki & Pat</a></td></tr>';
        tabl += '<tr><td ><a href="other/people.html#p5"  target="DocPage">Helen & Adrian</a></td></tr>';
        tabl += '<tr><td ><a href="other/people.html#p6"  target="DocPage">Deena</a></td></tr>';
        tabl += '<tr><td ><a href="other/people.html#p7"  target="DocPage">Helmut</a></td></tr>';
        tabl += '<tr><td ><a href="other/people.html#p8"  target="DocPage">Wendy</a></td></tr>';
        tabl += '<tr><td ><a href="other/people.html#p9"  target="DocPage">Leroy</a></td></tr>';
        tabl += '<tr><td ><a href="other/people.html#p10"  target="DocPage">Mitsu</a></td></tr>';
	tabl += '<tr><td ><a href="other/people.html#p11"  target="DocPage">Silk</a></td></tr>';
        tabl += '<tr><td ><a href="other/people.html#p12"  target="DocPage">Sachie</a></td></tr>';
	tabl += '<tr><td ><a href="other/people.html#p13"  target="DocPage">Japanese guy?</a></td></tr>';
        tabl += '</table>';
       	}
	tabl += '</td></tr></table>';
var pmenu=document.getElementById? document.getElementById("pmenu") :  document.all? document.all.pmenu : document.layers? document.pmenu : ""   
if (isIE||isNS6) {pmenu.style.visibility='visible'; pmenu.innerHTML = tabl;}
if (isNS4) {pmenu.document.write(tabl); pmenu.document.close()};
var xpos,ypos;
if(isIE) { getPos(pmenu,xpos,ypos)}
if(isNS6){ trakr = document.addEventListener("mousemove",getPos,true);}

if(isNS4){ window.captureEvents(Event.MOUSEMOVE);window.onmousemove = getPos4;}
//if(isNS4) {alert()}
}

function getPos(evnt,xpos,ypos) {
	pmenu= document.getElementById? document.getElementById("pmenu") : "" ;
	
	if (isIE){
       	e = window.event;
       	ypos = e.clientY;
	pmenu.style.pixelTop = (ypos + document.body.scrollTop) - 10;
       	}
	else if (isNS6){
	ypos=evnt.pageY;
	pmenu.style.top =  (ypos + document.body.scrollTop) - 10;
       	}
 }

function getPos4(evnt) {
        //ypos=document.pageYOffset;
	ypos=evnt.pageY;
	pmenu = document.layers? document.pmenu : ""   
	pmenu.pixelTop = ypos;
}

function resetPos() {if(isNS6){ trakr = document.removeEventListener("mousemove",getPos,true);}}

function hidemenu() {
var pmenu=document.getElementById? document.getElementById("pmenu") :  document.all? document.all.pmenu : document.layers? document.pmenu : ""  
pmenu.style.visibility='hidden';}
