/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//
//left-side navigation menu
//
//submenu Portable ops
var menu1=new Array()
menu1[0]='<a href="ops_backyard_sept2006.php" class="navsub" title="" alt="">Backyard: sept. 2, 2006</a>'
menu1[1]='<a href="ops_texel_sept2006.php" class="navsub" title="" alt="">Texel Isl.: sept. 4-8, 2006</a>'

//submenu Statistics
var menu2=new Array()
menu2[0]='<a href="statistics.php" class="navsub" title="" alt="">Overall statistics</a>'
menu2[1]='<a href="bestdx.php" class="navsub" title="" alt="">Best DX</a>'
menu2[2]='<a href="workedgrids.php" class="navsub" title="" alt="">Worked Grids</a>'
menu2[3]='<a href="dxcc_80m.php" class="navsub" title="" alt="">DXCC 80m</a>'
menu2[4]='<a href="dxcc_40m.php" class="navsub" title="" alt="">DXCC 40m</a>'
menu2[5]='<a href="dxcc_20m.php" class="navsub" title="" alt="">DXCC 20m</a>'
menu2[6]='<a href="dxcc_17m.php" class="navsub" title="" alt="">DXCC 17m</a>'
menu2[7]='<a href="dxcc_15m.php" class="navsub" title="" alt="">DXCC 15m</a>'
menu2[8]='<a href="dxcc_12m.php" class="navsub" title="" alt="">DXCC 12m</a>'
menu2[9]='<a href="dxcc_10m.php" class="navsub" title="" alt="">DXCC 10m</a>'
menu2[10]='<a href="dxcc_6m.php" class="navsub" title="" alt="">DXCC 6m</a>'
menu2[11]='<a href="dxcc_2m.php" class="navsub" title="" alt="">DXCC 2m</a>'
menu2[12]='<a href="dxcc_sat.php" class="navsub" title="" alt="">DXCC satellite</a>'

//submenu AMSAT
var menu3=new Array()
menu3[0]='<a href="amsat_history.php" class="navsub" title="" alt="">History</a>'
menu3[1]='<a href="amsat_active.php" class="navsub" title="" alt="">Active satellites</a>'
menu3[2]='<a href="amsat_iss.php" class="navsub" title="" alt="">ISS</a>'
menu3[3]='<a href="amsat_operatingpractice.php" class="navsub" title="" alt="">Operating practice</a>'
menu3[4]='<a href="amsat_whatdoineed.php" class="navsub" title="" alt="">What do I need?</a>'
menu3[5]='<a href="amsat_keps.php" class="navsub" title="" alt="">Kepler data</a>'
menu3[6]='<a href="amsat_uk2005.php" class="navsub" title="" alt="">AMSAT-UK 2005</a>'
menu3[7]='<a href="amsat_links.php" class="navsub" title="" alt="">Links</a>'

//submenu WXSAT
var menu4=new Array()
menu4[0]='<a href="wxsat_active.php" class="navsub" title="" alt="">Active satellites</a>'
menu4[1]='<a href="wxsat_techinfo.php" class="navsub" title="" alt="">Tech info</a>'
menu4[2]='<a href="wxsat_setup.php" class="navsub" title="" alt="">Typical setup</a>'
menu4[3]='<a href="wxsat_keps.php" class="navsub" title="" alt="">Kepler data</a>'
menu4[4]='<a href="wxsat_gallery.php" class="navsub" title="" alt="">Image gallery</a>'
menu4[5]='<a href="wxsat_links.php" class="navsub" title="" alt="">Links</a>'

//submenu Portable satellite operation
var menu5=new Array()
menu5[0]='<a href="portable_setup.php" class="navsub" title="" alt="">Setup</a>'
menu5[1]='<a href="portable_challenges.php" class="navsub" title="" alt="">Challenges</a>'
menu5[2]='<a href="portable_tipstricks.php" class="navsub" title="" alt="">Tips & Tricks</a>'
menu5[3]='<a href="portable_links.php" class="navsub" title="" alt="">Links</a>'

//submenu Experiments, antennas
var menu6=new Array()
menu6[0]='<a href="portable70cmyagi.php" class="navsub" title="" alt="">Portable 70cm yagi</a>'
menu6[1]='<a href="hybridquad13cm.php" class="navsub" title="" alt="">13cm hybrid quad</a>'
menu6[2]='<a href="arrowantenna.php" class="navsub" title="" alt="">Arrow antenna</a>'

//submenu Experiments, hardware
var menu7=new Array()
menu7[0]='<a href="lvbtracker.php" class="navsub" title="" alt="">LVB Tracker</a>'
menu7[1]='<a href="signalsource13cm.php" class="navsub" title="" alt="">2.4 GHz signal source</a>'

//submenu Experiments, software
var menu8=new Array()
menu8[0]='<a href="kepsupdater.php" class="navsub" title="" alt="">KepsUpdater 1.0</a>'

//submenu Experiments, misc
var menu9=new Array()
menu9[0]='<a href="ft847output.php" class="navsub" title="" alt="">FT-847 output power</a>'


var menuwidth='150px' //default menu width
var menubgcolor='#092659'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="no" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
		
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
	obj.visibility=visible
else if (e.type=="click")
	obj.visibility=hidden
}

function iecompattest(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
	var edgeoffset=0
	if (whichedge=="rightedge"){
		var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
		dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
		if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
			edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
	}
	else{
		var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
		var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
		dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
		if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
			edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
		if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
			edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
		}
	}
	return edgeoffset
}

function populatemenu(what){
	if (ie4||ns6)
	dropmenuobj.innerHTML=what.join("")
}

function dropdownmenu(obj, e, menucontents, menuwidth, menumode){
	if (window.event) event.cancelBubble=true
	else if (e.stopPropagation) e.stopPropagation()
	clearhidemenu()
	dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
	populatemenu(menucontents)

	if (ie4||ns6){
		showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
		dropmenuobj.x=getposOffset(obj, "left")
		dropmenuobj.y=getposOffset(obj, "top")
		if (menumode != 1) {
			dropmenuobj.style.left=dropmenuobj.x+30-clearbrowseredge(obj, "rightedge")+"px"
			dropmenuobj.style.top=dropmenuobj.y-0-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
		}
		if (menumode == 1) {
			dropmenuobj.style.left=dropmenuobj.x+0-clearbrowseredge(obj, "rightedge")+"px"
			dropmenuobj.style.top=dropmenuobj.y+0-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
		}
	}

	return clickreturnvalue()
}

function clickreturnvalue(){
	if (ie4||ns6) return false
	else return true
}

function contains_ns6(a, b) {
	while (b.parentNode)
	if ((b = b.parentNode) == a)
		return true;
	return false;
}

function dynamichide(e){
	if (ie4&&!dropmenuobj.contains(e.toElement))
		delayhidemenu()
	else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
		delayhidemenu()
}

function hidemenu(e){
	if (typeof dropmenuobj!="undefined"){
	if (ie4||ns6)
		dropmenuobj.style.visibility="hidden"
	}
}

function delayhidemenu(){
	if (ie4||ns6)
		delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
	if (typeof delayhide!="undefined")
		clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
	document.onclick=hidemenu


