// Site Components
// (c) Copyright 2009 TrakMark, Inc.
// Last Updated: 2009Jan27
//

<!-- Begin

var aInfoWin, docWin, lv

// Displace UnderConstruction window
function uCon() {
if (aInfoWin) aInfoWin.close()
aInfoWin= window.open('../about/UCon.htm','UnderCon','width=200,height=150,left=400,top=300')
}

// Displace Document window
function uDoc(doc) {
if (docWin) docWin.close()
docWin= window.open(doc,'DocuWin','width=775,height=500,left=25,top=180')
// docWin.focus()
}

function menuSelect(menuID) {
  for (i= 1; i < 11; i++) { //only display selected menu item
	element= document.getElementById('m' +i)
	if (element == null) return //stop when empty menu item found
	if (menuID == i) { // selected menu element
		element.style.display= 'block'
    	eval("document.pix" + i + ".src = '../pix/swimmerR.gif'")
    } else {
		element.style.display= 'none'
    	eval("document.pix" + i + ".src = '../pix/swimmerL.gif'")
    }
  }
}

function toggle(menuID) {
	menuSelect(menuID)
}

function closeAll() { // collapse all level2 elements
  for (i= 1; i <= 11; i++) {
    element= document.getElementById('m' +i)
    if (element == null) return
	element.style.display= 'none'
    eval("document.pix" + i + ".src = '../pix/swimmerL.gif'")
  }
}

function openAll() { // expand all level2 elements
  for (i= 1; i <= 11; i++) {
    element= document.getElementById('m' +i)
    if (element == null) return
	element.style.display= 'block'
    eval("document.pix" + i + ".src = '../pix/swimmerR.gif'")
  }
}

function eaddr(mode, account, sldomain, tldomain) {
var addr= account +"@" +sldomain +"." +tldomain
if (mode == 0) document.write(addr)
else if (mode == 1) document.write("<a href=mailto:" +addr +">")
else document.write("<a href='mailto:" +addr +"'>" +addr +"</a>")
}

//  End -->

